三国杀打小抄

打小抄支持网页版和微端,微端文件请加群 830137048

// ==UserScript==
// @name         三国杀打小抄
// @namespace    https://greasyfork.org/scripts/448004
// @version      2.9.36
// @author       小麦 孤独尊
// @description  打小抄支持网页版和微端,微端文件请加群 830137048
// @icon         https://i0.hdslb.com/bfs/new_dyn/17ec41a0ca79633b77399065ab80da3f2138912.png
// @match        *://game.4399iw2.com/yxsgs/*
// @match        *://my.4399.com/yxsgs/*
// @match        *://*.sanguosha.com/*
// @match        *://web.kuaiwan.com/kwsgsn/*
// @match        *://wan.baidu.com/microend?gameId=19793595/*
// @match        *://www.7k7k.com/special/sgs/?*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function () {
	'use strict';

	var e,t,n,i=Object.freeze,s=Object.defineProperty,a=(e,t,n)=>(((e,t,n)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;})(e,"symbol"!=typeof t?t+"":t,n),n);function o(e,t=null,n=!0){let i;return i||"undefined"==typeof localStorage||(i=localStorage.getItem(e)),i?JSON.parse(i):t}async function l(e,t,n=!0){"undefined"!=typeof localStorage&&localStorage.setItem(e,JSON.stringify(t));}async function r(e,t=!0){"undefined"!=typeof localStorage&&localStorage.removeItem(e);}function d(e,t=0){let n="";const i="  ".repeat(t);if(Array.isArray(e)){e.every((e=>"object"!=typeof e||!e))?n+=`${i}${e.join("\t")}\n`:(n+=`${i}<ol>\n`,e.forEach((e=>{n+=`${i}  <li>\n`,n+=d(e,t+2),n+=`${i}  </li>\n`;})),n+=`${i}</ol>\n`);}else if("object"==typeof e&&null!==e){if(Object.values(e).every((e=>"object"!=typeof e||!e)))n+=`${i}${Object.entries(e).map((([e,t])=>`<strong>${e}:</strong> ${t}`)).join(", ")}\n`;else {n+=`${i}<ul>\n`;for(const s in e)n+=`${i}  <li>\n`,n+=`${i}    <strong>${s}:</strong>\n`,n+=d(e[s],t+2),n+=`${i}  </li>\n`;n+=`${i}</ul>\n`;}}else n+=`${i}  ${e}\n`;return n}const c=[];let u=!1,h=null;function p(e,t="acTooltip",n=1e4,i="",s=null,a=!1){a?function(e,t,n,i){let s=document.getElementById(t);s||(s=document.createElement("div"),s.id=t,s.className="ac-tooltip "+i,document.body.appendChild(s));s.innerHTML=e,s.className="ac-tooltip "+i,s.addEventListener("click",(()=>{g(uniqueId);})),setTimeout((()=>{s.classList.remove("hide"),s.classList.add("show"),s.style.top="20px";}),50),h&&clearTimeout(h);h=setTimeout((()=>g(t)),n);}(e,t,n,i):(c.push({text:e,id:t,duration:n,className:i,clickCallback:s}),u||f());}function m(e){(null==ChannelUtils?void 0:ChannelUtils.openQQBuy)&&ChannelUtils.openQQBuy({ret:!0,msg:e});}function f(e){if(0===c.length)return void(u=!1);u=!0;const{text:t,id:n,duration:i,className:s,clickCallback:a}=c.shift();let o=document.getElementById(n);o&&o.remove();let l=n+"-"+(new Date).getTime(),r=document.createElement("div");r.id=l,r.className="ac-tooltip "+s,r.innerHTML=t,document.body.appendChild(r),a&&"function"==typeof a&&r.addEventListener("click",a),r.addEventListener("click",(()=>{g(l),f();})),setTimeout((()=>{r.classList.remove("hide"),r.classList.add("show"),r.style.top="20px";}),50),i?setTimeout((()=>{g(l),f();}),i):u=!1;}function g(e){let t=document.getElementById(e);t&&(t.classList.remove("show"),t.classList.add("hide"),setTimeout((()=>{t&&t.remove();}),300));}var v,y,b,w,S,k=function(e){return String.raw(n||(n=i(s(t=['\n<html><head><meta charset="utf-8" /><title>战绩胜率统计</title><style>\ntable { margin-right: 8px; border-collapse: collapse; }\nth, td { text-align: center; border: 1px solid black; font-size: 24px; box-sizing: border-box; }\ntd { padding: 2px 5px; }\n.nav, thead { background: white; position: sticky;; }\n.rate { margin: 5px; font-size: 28px;}\n.button {  display: none; } \n.button[name=mode] ~ .label { display: inline-block; font-size: 30px; user-select: none; border: solid 1px black; border-radius: 5px; padding: 5px; margin: 5px; }\nth .button ~ .label { display: inline-block; width: 100%; height: 100%;}\nth .button:checked ~ .label::after { content: "↓"; }\nth.reverse .button:checked ~ .label::after { content: "↑"; }\n.button:checked ~ .label { background: rgb(64,160,255); } \n.s0 { background: white; }\n.s1 { background: rgb(221,0,0); }\n.s2 { background: rgb(255, 200, 0); }\n.s3 { background: rgb(0, 136, 68); }\n.s4 { background: rgb(0, 94, 183); }\n.s5 { background: rgb(255, 0, 255); }\n</style></head><body style="margin: 0 8px;">\n<div class="nav" style="top: 0; height: 136px; z-index: 3"><div id="modeTab"></div><div id="summary"></div></div>\n<div style="display: flex; align-items: flex-start; flex-wrap: wrap;"><table id="detail"><thead style="top: 135px; z-index: 1"></thead><tbody></tbody></table>\n<table id="record"><thead style="top: 135px; z-index: 2"></thead><tbody></tbody></table></div>\n\n<script>\nconst data = Object.entries(',").reduce((acc,[mode, records]) => {\nacc[mode] = Object.entries(records).reverse().map(([time, record]) => ({timestamp:parseInt(time), time: new Date(time*1000).toISOString().slice(0,16).replace('T',' '), ...record, durationstr: formatSeconds(record.duration)}));\nreturn acc;\n},{});\nconst modeName = {1: '八人标准', 2: '六人身份', 3: '八人军争', 4: '应变身份', 5: '八人至尊', 6: '身份老友房', 7: '国战', 8: '应变国战', 9: '国战老友房', 10: '新1V1', 11: '欢乐', 12: '应变欢乐', 13: '欢乐老友房', 14: '统率', 15: '4V4演武', 16: '应变演武', 17: '欢乐演武', 18: '国战演武', 19: '统率排位', 20: '欢乐排位', 21: '智斗三国', 22: '欢乐新手', 23: '欢乐新手', 24: '六人新手', 25: '六人新手', 26: '排位赛', 27: '主公杀', 28: '1v1面杀练习场', 29: '五人匹配', 30: '排位赛', 31: '欢乐33', 32: '33老友房', 33: '武将试炼', 34: '武将试炼', 35: '斗地主', 36: '线上赛事', 37: '山河图', 38: '王战练习', 39: 'SCL练习', 40: '斗地主练习', 42: '八人匹配', 43: '个人挑战1V1', 44: '单骑无双'};\nconst sfName = {5:{0: '综合', 1: '主公', 2: '忠臣', 3: '反贼', 4: '内奸'},7:{0: '综合', 1: '魏国', 2: '蜀国', 3: '吴国', 4: '群雄', 5:'晋国'},26:{0:'综合',2:'先手',3:'后手'},35:{0:'综合',1:'地主',3:'农民'},44:{0:'综合',1:'先手',4:'后手'}};\ncolors=['white','rgb(221,0,0)','rgb(255, 200, 0)','rgb(0, 136, 68)','rgb(0, 94, 183)','rgb(255, 0, 255)','black'];\nconst modeTab = document.getElementById('modeTab');\n[26,35,44,5,7].forEach(mode => {\nif(mode in data) modeTab.innerHTML += '<label><input type=\"radio\" class=\"button\" name=\"mode\" value=\"'+mode+'\" onclick=\"reSet()\"><span class=\"label\">'+modeName[mode]+'</span></label>';\n}); modeTab.innerHTML += ' (更多功能敬请期待…)';\ndocument.querySelector('#record thead').innerHTML = '<tr onclick=\"recordSort(event)\">'+['时间','武将','身份','胜负','时长'].map((name,i)=>'<th'+(i?'':' class=\"reverse\"')+'><label><input type=\"radio\" class=\"button\" name=\"record\" onchange=\"recordSort(event)\" '+(i?'':'checked')+'><span class=\"label\">'+name+'</span></label></th>').join('')+'</tr>';\nfunction reSet() {\nvar i, tabcontent, tablinks;\nwindow.mode = document.querySelector('#modeTab input[name=\"mode\"]:checked')?.value\nwindow.guozhanQ = modeName[mode].includes('国战');\nwindow.records = data[mode].filter(record => record.shenfen).sort();\nlet summary = Array.from({length:10},(_,i)=>[0,0,0,i]);\nlet detail = records.reduce((acc, record) => {\n    summary[0][record.result] += 1;\n    summary[0][2] += record.duration;\n    summary[record.shenfen][record.result] += 1;\n    record.general.forEach((g,n)=>{\n        if(!acc[g]) acc[g] = Array.from({length:10},(_,i)=>[0,0,0,i]);\n        acc[g][0][record.result] += 1;\n        acc[g][0][2] += record.duration;\n        acc[g][guozhanQ?(n+1):record.shenfen][record.result] += 1;\n    });\n    return acc;\n},{});\nsummary = summary.filter(s=>s[0]+s[1]>0);\nlet sf = guozhanQ?[0,1,2]:summary.map(s=>s[3]);\ndocument.querySelector('#detail thead').innerHTML = '<tr><th rowspan=2>武将</th>'+sf.map(sf=>'<th colspan=4 style=\"background:'+colors[sf]+';\">'+(guozhanQ?{0:'综合',1:'主将',2:'副将'}[sf]:sfName[window.mode][sf])+'</th>').join('')+'<th rowspan=2 onclick=\"detailSort(event)\"><label><input type=\"radio\" class=\"button\" name=\"detail\" onchange=\"detailSort(event)\"><span class=\"label\">平均时长</span></label></th></tr><tr onclick=\"detailSort(event)\">'+sf.flatMap((sf,i)=>['胜率','出场','胜场','败场'].map((name,j)=>'<th class=\"reverse\"><label><input type=\"radio\" class=\"button\" name=\"detail\" onchange=\"detailSort(event)\" '+(i==0&&j==1?'checked':'')+'><span class=\"label\">'+name+'</span></label></th>')).join('')+'</tr>';\nwindow.detail = Object.keys(detail).map(general=>{\n    let rate = detail[general].filter(s=>sf.includes(s[3]));\n    rate.forEach(s=>{ s[4] = s[0]+s[1]; s[5] = 100*s[0]/s[4]; s[2] = s[2]/s[4]; });\n    return ({general, rate});\n});\nlet summaryDiv = document.getElementById('summary');\nsummaryDiv.innerHTML = '';\nsummary.forEach(([win,lose,time,sf])=>{ summaryDiv.innerHTML += '<span class=\"rate\" style=\"color:'+colors[guozhanQ?[6,4,1,3,2,5][sf]:sf||6]+';\">'+sfName[window.mode][sf]+'胜率'+((100*win/(win+lose)).toFixed(2)+'%').replace(/(.0)?0%/,'%')+'('+win+'胜:'+lose+'负)</span>'; });\ndetailSort();\nrecordSort();\n}\n\nfunction detailSort(event,sf=0,key=4,reverse=true) {\nif(event){\n    event.stopPropagation();\n    let element = event?.target;\n    if (element.nodeName !== 'INPUT') return;\n    while (element && element.nodeName !== 'TH') {\n        element = element.parentElement;\n    }\n    if (element?.parentElement?.parentElement?.parentElement?.id == 'detail'){\n        if(element.rowSpan>1) {sf = 0; key = 2; }\n        else {\n            sf = Math.floor(element.cellIndex/4);\n            key = [5,4,0,1][element.cellIndex%4];\n        }\n        reverse = element.classList.toggle('reverse');\n    }\n}\nwindow.detail = window.detail?.sort((a,b)=>{ a=a.rate[sf][key];b=b.rate[sf][key]; return isNaN(a)&&isNaN(b)?0:isNaN(a)?-1:isNaN(b)?1:a-b; });\nif(reverse) window.detail = window.detail?.reverse();\ndocument.querySelector('#detail tbody').innerHTML = window.detail?.map(({general, rate})=>'<tr><td>'+general+'</td>'+rate.map(s=>'<td>'+(s[4]?(s[5].toFixed(2)+'%').replace(/(.0)?0%/,'%'):'')+'</td><td>'+s[4]+'</td><td>'+s[0]+'</td><td>'+s[1]+'</td>').join('')+'<td>'+formatSeconds(rate[0][2])+'</td></tr>')?.join('');\n}\n\nfunction recordSort(event,key='timestamp', reverse=true) {\nif(event){\n    event.stopPropagation();\n    let element = event?.target;\n    if (element.nodeName !== 'INPUT') return;\n    while (element && element.nodeName !== 'TH') {\n        element = element.parentElement;\n    }\n    if (element?.parentElement?.parentElement?.parentElement?.id == 'record'){\n        key = ['timestamp','general','shenfen','result','duration'][element.cellIndex]??key;\n        reverse = element.classList.toggle('reverse');\n    }\n}\nif(key!=='general') window.records = window.records?.sort((a,b)=>a[key]-b[key]);\nelse window.records = window.records?.sort((a,b)=>a[key][0].localeCompare(b[key][0]));\nif(reverse) window.records = window.records?.reverse();\ndocument.querySelector('#record tbody').innerHTML = window.records?.map(record => '<tr><td>'+record.time+'</td><td>'+record.general.join(' ')+'</td><td>'+sfName[window.mode][record.shenfen]+'</td><td>'+(record.result?'失败':'胜利')+'</td><td>'+record.durationstr+'</td></tr>')?.join('');\n}\n\nfunction formatSeconds(seconds) {\nconst hrs = Math.floor(seconds / 3600).toString().padStart(2, '0');\nconst mins = Math.floor((seconds % 3600) / 60).toString().padStart(2, '0');\nconst secs = Math.floor((seconds % 60)).toString().padStart(2, '0');\nreturn (seconds>=3600?(hrs+':'):'')+mins+':'+secs;\n}\n\ndocument.querySelector('#modeTab input[name=\"mode\"]').click();\n<\/script></body></html>"],"raw",{value:i(a||t.slice())}))),e);var t,a;},x="jsjiami.com.v7";function I(){const e=[x,"ETOjesGjQitgamCiXlV.dcQProrem.nvgSh7gJMu==","A1pcMSkDWPq","WQjyWQWCla","WQJdV8kKW7/cUW","mqTbWO7cOGTU","W4HvAxW","pKhcMadcMq","WQZdUHWqoHVcSftcKCoEWQpcJa","EhxcHvDLotae","zSogy8o8uhWSst7cNSkrihNdPcm","WP0Fn8o6CW","W7FcOeXfyeRcLvRcQmoF","WRfuW7Lidq","FCoEjL5A","WR3dQ0NcUmkdWRebj0y","WRuoW6VcUCos","WOmIWRdcJd8","mM/dOWav","W54smCoF5zg15yY15yAl5Q6g5lYX6AUe","W7RcI2jYqa","WQGZcbZdGG","55Ie6ikt44oT5A6N6zMt5O+J5PYU5B+/5zgy","k8oFgmoGf8oQWPxdUq","W6r/qSkTW4pcPCotFuWHiX5X","zSo8yJlcHW","ygCIbSkfdSoYoCol","htRcHvmbWQHq","oKldQGSQW6/cRq","6ywm6Asx5O6h5P6l5Bs+5ywL6zEE","WPPYWPTLmvVdLmko","W6pdUrtcOCoaWOvGfJGComoPmGWBwmoV","WQldImkgW7lcVSkbtG","g8o/W5pcU20","m8oNj8oqmW","W4HVW6PliG","g8kcW6NdJWrjDG","WPvKWPewoG","WRPCW79oiG","psZcU1KQ","wvBcKCkiWOm","W4jrDetcMeldOW","FfRcN8kFWOG","W7ueWQpdTSo/","WPHSW5vVlG","ebqCWQec","W5vvW79RhG","FCkxW4hdQCkO","EuRcH8krWRpcJGRcL8kXzSoabG","smoPzrlcLW","WOdcQ8oGWPeq","WRK9W4dcJ8oQ","E1FcLSkDWPRcHbO","W40eWRZdTCox","yCkIWQJcUSkoWOJcNmojWPy","W7SbwCk7xW","hv7dHKRdPq","fCoOW5SQtW","qSkIW7pdSWbjxG4Vtmog","WPZcOCorFmkwcHtcS0BcPmo8FKxcU1RdIG","gW0JWQix","Eh3cGLD0mce","ACk5WRlcSa","W7NcU1XitKBcJwdcVmoDWPxcVYS","W6dcSb/dR8ojW4fGa2izrCo3BG","WPe8W4lcIxq","htRcHvmbWQ91WPis","cCo2W5qRwSo0W416","5PY86iEa5yEJ5l2Y5y2e5P6c","WQqBeHVdQSo/W6rG","A0/cN8kxWOu","kWVcRuSF","W6pdPCkBW6TdW5i0ptxcUSo2rq","lta3WRy7","umoal3L0","WQ5lWQ1dha","WQddQNtcQCkdWPa7dq","WOTmWP1Saa","s8k1W5uSt8k3W5LRcadcGsW","AGJcS08ms3tcSCodWRRcLWi","WPJdGZyNuhFdTW","WOGHW7tcUu/cOh/cPa","pmoylSo3dSoMWP8","WRa7WQtcGIy2Fq","EuRcH8krWRpcJGRcL8kJE8oHft4","FSkxWO7dHZBdPv0EdmoXdXK","6yAd6AET5O6f5P+I5y2e5l+t6AQY","W51UW7r5h8kasZ3cR8k2","EmoBieFcOmojsmoYfW","WPeTpSooWOW","WRhcTCoAWRKyWO48fW","w8opaMT/","WRuPW6RcRCoh","rCkKWQ3cLmkR","WPlcUSoiFmkOgb/cHehcPSob","ofFdTdjAhNm","5ysP5l6G6yAm6Awb5O275P+T5y6D5P66","WPadW4/cP38","hwtdTcyhWPBcIvxdIW","AMePamkCi8oc","ur9DqSkZ","of/dUWCdW6xcVry9hq","B2tdUdSWW7NcHa","pK/dUY0TW6/cPcC6gCkdjrxcHG","iCoFWRlcPGa","6BMW55Qk5BoR5y2h5B6N5zcIW6hcL8oyWO8","swVcPvn2","6z+g6kAH5ywY5lYR5y2E5P2pWQnTE8oh5OIX55E35Bcz5OIg5yEp5lId"].concat(["WOaMfColBmoOW59GW4FcTx55WQ4","WQ9oCfqPd8olqKu","oLhdTrzzex7cMa","WOSMWRdcRXK","kMddRcCr","i8oIW6HdFmk6aq","rmoNW4BdL8kE","jmoVW6fbBG","WRTsWOv8gG","WR54WQubkuZdULC/","kKRdRXzxkxlcKCox","k8ogW53cMMJcSa","WOvhvhuO","WOu6W5VcLwe","j3O4aSkdm8ov","FG1bWOdcLbfPzIJdNgtcJfG5WRy","aSodW67cP3u","C8kUW4ddRmk1WRjd","oLNdSHzigg8","jmopWQRcQdVcUmoSW6hdNhaPWRlcTq","owutk8oTcZZdR8oSWRZcJ8otW4Lk","FbbqWOZcVrT5","W7VcPK1ez0ZcNq","WOGBdCoQWPC","W585y8kE","WQGKjI3dIq","pSofp8o7j8oSWO/dJCkSz8khW4JdQG","WOe9WRhcRX8","WQZcKmoKz8kN","e8oBW6jVDq","W4ztrNlcHq","xSk4W6FdSba","WQhdLmkCW7/cUmkKB8oF","zJjTxmkt","AhW4dmk1kCosj8oWzSoWW73dQG","E8o9rZxcSCk8WOZdImoqW6msWQiIdW","B8o9rYdcR8k2WPhdImomW6mP","55wz55s15Bgv5OMk5ysd5lIT","bsekWPOd","W71LD2xcNq","WOWvnmkZfmk1AW","lCoiW6vADG","gNpcIHZcSGRdHmoYn3hcKeDiW4e","WPtdHtaSwNZdTmov","o8ovj8o1ha","gwldTW9+","WRGfW5BcMCo+","a3FdK27dTa","D8o/W6VdLmk+xMFdHmoz","WR0Re8oZ","6yAS6AAD5O+Q5PY+5y686zMN5Pwh5l656AId","WP/dGIaLwx7dTSou","fhJcKdZcRcFdVCoAfq","W7XxzeFcOW","CrDc","p03dSHH5eM/cR8oxWR/cQZS","nSoEjCoXf8olWQ/dK8ku","FHXrWQRcObTZwWRdK37cLLqJWRyY","WQqLnSoWWPJdVmkkCwa5eHLoWPzMWPDlW4C","W6JcKmknW7hcRSoLECopzH7dPvG","WRixab7dSCoaW7vLnSkV","W6hdPmkqW6blW5rVgGtcRSoyFYa","WO3cTCoxDSkZhZ/cJeVcVmokz1G","W7TNW7ZcMwdcNGeDW6hdNulcLCkRWR53","h1/dQHjS","ztvVtCksEs1EW4ee","EKqhfmkU","pfikmCof","WP/dJJ8LqG","DCkUW53dR8ktWPrZWRrKl8oiAXK","c8k2fwP0WQW1cGVdJfnA","cHJcVfau","WOy6W6pcVMZcOwZcKGv1W5ioFq","fx/dVIicWRBcJ10","WRC2WQ3cGdq","5yA95l2X6yEv6AwE5O6P5P665yY75P6x","W5uPWPddN8oLySkPWQBdNCoyxvPZ","W4qOrSkZDG","e3/dSY8rWPdcVhxdOG","WR02WRBcSYi8Da","WQqBeGRdQCoNW6jSaCkTW43cICkL","5P+55zk05y2g5l6l6AU25lUI5AwWtWhcICkH","WOGgi8oUWQW","Ae0+emkc","W648qSkIAW","kL7dRHO1W5xcVsS5ca","uubTW7XhWRtcKmoUWRPzDSkL","Bh3cKMvZncCu","W4fDC3hcK0pdO8oM","WQDvAL4zkmoRxh7cKfpdMh4","of/dUWCwW7/cGYS1a8kMdYVcIZuAW74","WRhcN8onF8k2","ACk5WRlcSmk+WQ/cVmoqWRpdKq","WO99W5jBiq","AhW4dmk8j8oij8oVESoxW6NdQXNcGSoZ","W6eRWQ3dUCon","re3cGunR","WOPWW5H5pq","WP9UWPXRg0ldKmkeW6GEW5hcVa","WPmGW57cGMhcNwZcSXTYW4e","55wH5Bod5OIA5y2Z5lYk55ss","W74lWQFdPCo9","WQioW7pcImozW69oW7O/W48j","W7uvlGrJC8kNEwBcIg3dQKm","WQqAWQJcLtq","dMVdUgZdOW","5ywR5l6P5yYs5P6B6iEMod5xyq","W50YWORdLCovrCkjWRJdPG"].concat(["WPBdQtS+wG","j8oLW6jeza","WQ3dQ8kyW5ZcLq","WO13W4X/ot7dPG","DCkUW53dRW","BfpcH8kiWRy","jSkNWPNdVmoLWOC0WPSI","W7ZcP1TgBKxcNfC","WOPTW4PvgJldUSoHnCkgWQWsxLhcNW","FG1bWOdcLbfPFcpdJLJcKG","WRiMWRxcJG88BsK0W4RcKSoQW4e","W6SnFf4VASoSE2JcJvldIa","zIvRw8ksEtXtW5ytrHiC","BSoWW6hdOSk4D0hdVq","aNCUlCoK","jMdMNiyq5Pso5yMNzv3dGu7PMAlMLOVLHkpOTlRNLBK","W4PAy3JcKehdOCoN","DCoCpupcSmoTECoB","W4jZzwlcKW","g0msjCoy","kCoPW47cRge","55Qf6ig344gs5A+C6zIn5OYq5P6P5B6W5zgY","WQviE1iWiSo7","W7FcGmkyWP5pW5nRuq","khpdRGKb","W5n1W6r0mCkmuWFcU8k0suFcLa","zSoqvbGG","vSoStZGWW5yOib0","WPevn8kXcCk1DSocedZdVa","mG1AW7lcSCkkW6K","WQ1vA2KS","55Uh5lQo6ygr5yIv5BsG5yEY6zEX","WRRcHCo7WRKS","r8oPW53dICkf","kv3dNWeU","k8otdSoCdG","bmonW5VcSgq","zSogy8o8xumpuJBcHmktpa","E8oSn0n6nWtdGYq4qhrO","WRZdRCkxW5RcVG","W6C6ECkRyG","kv3cKb/cHG","WPCOcmokCCodW7nO","ySobn07cTW","WOj2W5bFkHxdMSoLfW","DSkpW67dSKhdO8kGW4tdHgGxWOdcIa","6ysO6AAx5O6F5P2W5y6m55EW","BuGVl8kA","jSogW7BcG0y","WQehfrxdISo8W7vxm8kYW5ZcHmk5","WPqGW5/cICoo","l07dJvtdHq","WQ5oFxGT","WOWKjWddIG","W757W7VcL0dcNraW","Be3cMSkFWP3cTrFcQCkX","c2tdUdGAWOVcJvtdI3G+W4rOs8ozkW","DLFcUCkjWRG","EX1zWO7cRW","W4PkW4fEgG","WOmfn8kooCk1CSo0fINdSvJcNW","WQy5l8ohWQe","BmkIW4NdHtK","fmoKjCoSdq","WOeYaSoCE8opW79GW4FcU294WQG","W50KCSksr0BdSq","WQ5zWOfraW","udVcNdBcQKldMSoJohhcP00","W4jrDfxcNuRdQ8oNkhCsE8o4la","WPmTmmoBWOG","FWLAW7FcRSopW6tcNmk+kCkoW5yIaKZdIqlcISkRzSkgWPldRSoHW6K8wSoY","e2xdTXKZ","WPH9W4PQkJldVSonkCkuWRW","W5SYWOddKSolBSkXWPZdICoA","zfeCn8kg","E8o9j2Lopr7dPb84r2nLW7VcRCob","D8kZW4ZdO8k6WP5J","WRiMWRxcJG88Bs4QW5m","BCoTvGlcPmkkWOtdGCoBW7qKWRqz","l8oKW65iDSkXaSky","6z2M6ksz5yEB5l2z5yY+5P6sWPz9g0RMI6lNLjpLS4NMIQFLH6ZKUlO","fuxdIg3dSgO","FCk1W4FdPCkJWRntWQPF","metdOq0ZW4lcNq8y","bmoDWPRcLG4","6yAu6AAM5OYC5PYl5y6055wV","gsFcIvWoWOrW","ECoKW6ZdNCkOx3C","WOHWW5TzmZJdQG","BCkeC8odmSoWWONdTCkS","WRzJWR8lgwVdMLmDu8kdlvZcLLW","dSoGW4HuFG","WQiWkCo2WOS","WQaNWRJcJsG","aJVcTNOi","WPRcOComF8k5ptpcSa","z8kTW5RdRdK","y8owE8oYBa","mu7dGZSQ","WRlcUCoDWP0wWOC0fG3cJ8oDuqeD","D8ogzmo7","nSoOW6iqFa","5P2k5zoW5Bwf5lYq6AQ3WQBdIg1x5lQ+5Psr5y6W5l6555sl","WQyoW7RcTKW","WPJdIfpcT8kq","W5W5w8k1yW"]));return (I=function(){return e})()}function W(e,t){const n=I();return W=function(t,i){let s=n[t-=179];if(void 0===W.hYtIDO){const t=function(e,t){let n,i,s=[],a=0,o="";for(e=function(e){let t="",n="";for(let i,s,a=0,o=0;s=e.charAt(o++);~s&&(i=a%4?64*i+s:s,a++%4)?t+=String.fromCharCode(255&i>>(-2*a&6)):0)s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(s);for(let i=0,s=t.length;i<s;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)}(e),i=0;i<256;i++)s[i]=i;for(i=0;i<256;i++)a=(a+s[i]+t.charCodeAt(i%t.length))%256,n=s[i],s[i]=s[a],s[a]=n;i=0,a=0;for(let l=0;l<e.length;l++)i=(i+1)%256,a=(a+s[i])%256,n=s[i],s[i]=s[a],s[a]=n,o+=String.fromCharCode(e.charCodeAt(l)^s[(s[i]+s[a])%256]);return o};W.viTgLd=t,e=arguments,W.hYtIDO=!0;}const a=t+n[0],o=e[a];return o?s=o:(void 0===W.pYcDIc&&(W.pYcDIc=!0),s=W.viTgLd(s,i),e[a]=s),s},W(e,t)}async function C(e=Ce.v){const t=W,n={MrSTd:function(e,t){return e(t)},LKhlk:"酒馆挂机今日可用",NjEti:function(e,t){return e(t)},lWlDV:t(187,"&W]U"),dBmul:function(e,t){return e===t},zQFBl:"fGrXL",dAcLm:"JYgRY",ksoIr:t(301,"^)XC"),dHzlq:"界小抄会员<br>无限制使用",lWTcl:t(305,"f&xv"),RWgDZ:function(e,t,n,i){return e(t,n,i)},CSuaq:"autoHuangGai",mBKaa:function(e,t){return e*t},awOKF:function(e,t){return e===t},Pqqmr:"task",pDqgI:t(225,"9hbO"),ZcMSy:function(e,t){return e!==t},wIity:"WzLeS",NaDsk:"HiFJy",QBelZ:t(481,"KDdW"),Rbims:t(202,"0zA0"),TGMKl:function(e,t){return e!==t},pWPoq:t(438,"A*Z3"),oYRaV:t(206,"0gC)"),xJQEi:"autoYueKaSwitch",aGrXn:function(e){return e()},gUopm:function(e,t){return e!==t},hAifJ:t(222,"x*gV"),BrZra:t(477,"qeH8")},i=[{id:t(452,"%6Ur"),action:ce},{id:n.QBelZ,action:me},{id:n.Rbims,action:de}];if(e)if(n.TGMKl(t(253,"A*Z3"),n[t(183,"Hx[!")]))i[t(320,"FX#@")]({id:n[t(341,"ru3f")],action:ue},{id:n[t(252,"IAlp")],action:le},{id:n.xJQEi,action:re}),n[t(240,"a(H[")](E);else {let e="本周已体验<br>今日可使用";_0x523735[t(339,"PmNT")]!==e&&(n.MrSTd(_0x2225f3,n[t(203,"tH!y")]),_0x90798d[t(302,"[NFk")]=e);}else if(n[t(370,"db]N")](n[t(345,"^vTn")],n[t(361,"uNpj")])){[{id:n.Pqqmr,action:ue},{id:t(383,"tH!y"),action:le},{id:n[t(279,"db]N")],action:re}][t(419,"qeH8")]((({id:e})=>{const i=t;if(n[i(179,"%6Ur")](n.zQFBl,n[i(267,"0gC)")])){let e=i(218,"FX#@")+new _0x332899(_0xd5878f.guildVIP[_0x3b52ac[i(356,"x*gV")]])[i(490,"KDdW")]();_0x17c801[i(433,"f&xv")]!==e&&(n.NjEti(_0x2906cc,_0x116126[i(422,"%lus")]+n[i(358,"f]5*")]),_0x45cbed[i(303,"0zA0")]=e);}else {const t=document[i(467,"uyXJ")](e);t&&("bICdq"!==i(259,"x*gV")?(t[i(249,"$!BY")]=!1,t.disabled=!0,t[i(192,"^vTn")](new Event(n[i(380,"^)XC")]))):_0x39bb38[i(352,"0zA0")]&&_0xb124b2());}}));}else {_0xb7b0df[t(464,"x*gV")]=!1,_0x261790[t(274,"inN5")]=!1;let e=n.dHzlq;_0x363c80.innerHTML!==e&&(n[t(311,"$kAl")](_0x1ebe73,n.lWTcl),_0x56bc26="v",n.RWgDZ(_0x1bbdb8,n[t(239,"%6Ur")],_0x149471+n.mBKaa(n[t(328,"x*gV")](n.mBKaa(7,24),3600),1e3),!1),_0x1320be[t(219,"UQ(1")]=e);}i[t(223,"6IDZ")]((({id:e,action:i})=>{const s=t,a=document[s(319,"IAlp")](e);a&&(a[s(434,"qeH8")]=!1,n.awOKF(e,n[s(436,"%lus")])||n[s(416,"&W]U")](e,s(330,"OC3a"))?n.pDqgI===s(421,")h@*")?(_0x5d2429.onchange="",_0xfbfec6[s(333,"#O3T")]=!0,_0x48ff1d[s(249,"$!BY")]=!1,_0x43cc22[s(480,"A*Z3")]=s(300,"P3(h")):a[s(418,"tH!y")]=()=>i():n.ZcMSy(n[s(216,"ru3f")],n.NaDsk)?a[s(437,"$kAl")]&&i():_0x202a84[s(404,"qJ!L")]=!1);}));}function E(){const e=W,t={JWCUZ:function(e,t,n,i){return e(t,n,i)},EKXQe:function(e,t){return e(t)},LFkcz:e(229,"Nryz"),xVcCh:function(e,t){return e(t)},RbsCb:"黄盖主公小号刷百胜功能可用!",ahfCe:e(226,"[NFk"),nhJwI:function(e,t){return e!==t},ihRoO:e(364,"9hbO"),JaDpL:e(373,"uyXJ"),tllTh:e(290,"$!BY")},n=document[e(276,"%lus")](t.tllTh);n.forEach((i=>{const s=e,a={YJmAi:t.LFkcz,aDrsu:function(e,n){return t.xVcCh(e,n)},tcEHk:t[s(244,"%lus")],JmRSz:t[s(209,"6IDZ")],AVAGG:s(204,"UAx9"),stkUv:function(e,n){return t[s(277,"9hbO")](e,n)},LMtja:t.ihRoO,LVFzB:s(459,"ru3f"),SUwVH:function(e,n){return t[s(268,"a(H[")](e,n)},EImxI:t[s(316,"kn^Z")]};i.disabled=!1,i[s(475,"qJ!L")]=function(){const e=s;this[e(242,"f&xv")]?(n.forEach((t=>{const n=e,i={SQoOb:a.YJmAi,bEJUL:function(e,t){return a[W(195,"0gC)")](e,t)},kuuXw:a[n(255,"f]5*")],JOxqr:a[n(448,"a(H[")],HWUIR:a[n(415,"jBhF")],XuqNT:n(402,"P3(h")};if(a[n(368,"6IDZ")](a[n(324,"PmNT")],a[n(273,"^vTn")])){if(t!==this)if(a.SUwVH(a[n(397,"dm0N")],a[n(440,"g(ge")])){const e={LcgDk:function(e,t){return e(t)},dXEbF:i[n(357,"a(H[")]};i[n(344,"9*Qn")](_0x4afb06,i[n(250,"f&xv")]),_0x178c16.innerHTML=_0x2cc5d1,_0x57bd6b[n(237,"sUxE")]=!1,_0x3070c7[n(185,"%lus")]=function(){const t=n;this.checked?(_0x1f8e08[t(406,"f]5*")]=!1,_0x45d408.autoBotSwitch=9,_0x190bc0.readyStart(0)):(_0x4415e5[t(188,"UQ(1")]=!1,e[t(256,"a(H[")](_0x179d0b,"盖主速刷已关闭")),_0x177ef7[t(456,"vxed")](_0x401b3e[t(408,"9hbO")]),_0x5e5e60[t(366,"9hbO")](e.dXEbF,(()=>_0x324d92()),500);};}else t.checked=!1;}else {const e=i[n(291,"0zA0")].split("|");let t=0;for(;;){switch(e[t++]){case"0":_0x60ed3b[n(495,"inN5")]=!1;continue;case"1":_0x2530bf.delay(i[n(461,"$kAl")],(()=>_0xa10af9()),500);continue;case"2":this[n(308,"6IDZ")]?(_0x30ef45.checked=!1,_0x27585c[n(387,"9*Qn")]=!0,_0x4a70ca[n(205,"6IDZ")](i.HWUIR,(()=>_0x520b18[n(472,"%tGd")]()),500)):(_0x2fa382[n(258,"jBhF")]=!1,_0x573eeb[n(476,"f]5*")](n(297,"ru3f"),(()=>_0x370218(n(353,"A*Z3"))),500));continue;case"3":_0x24bd64.auto(_0x1eb1f3[n(201,"f&xv")]);continue;case"4":_0xde73f0[n(298,"uyXJ")](n(329,"Nryz"))[n(263,"sUxE")][n(468,"uyXJ")](i[n(435,"ru3f")],'"'+_0x4903f8[n(280,"%tGd")][n(400,"PmNT")]()[n(199,"#O3T")](2,"0")+'"');continue}break}}})),t[e(213,"UQ(1")](fe,parseInt(this[e(385,"#O3T")][e(262,"Xn!H")]),parseInt(this.dataset[e(197,"0zA0")]),this[e(450,"qeH8")][e(221,"$kAl")])):t[e(270,"&W]U")](fe,!1);};}));}async function D(e=!1){const t=W,n={TKnFX:t(355,"PmNT"),FOSkX:function(e,t){return e(t)},XQwul:t(425,"0zA0"),PpUSG:".status",YvnZN:t(231,"f&xv"),AXGFX:t(243,"IAlp"),gGerb:function(e,t){return e(t)},GcWfO:"酒馆挂机今日可用",mXPTq:function(e){return e()},XLYqW:t(251,"sUxE"),QDAtz:"autoBotSetUp",hVGWA:function(e,t){return e!==t},yXXEp:t(430,"#O3T"),AAmgb:"4|7|0|6|3|1|8|5|2",xMndl:t(346,"Hx[!"),uWuhS:function(e,t){return e===t},inQAU:function(e,t){return e===t},buLDO:"ufHov",KTnxh:function(e,t){return e(t)},vsUXZ:function(e,t){return e<=t},YcdWR:function(e,t,n,i){return e(t,n,i)},EMNJs:t(257,"FX#@"),LRYcA:"autoHGExplanation",YRuEb:function(e,t){return e-t},mBhza:function(e,t){return e*t},ZorFz:function(e,t){return e+t},QmVPv:function(e,t){return e*t},zdQBZ:function(e,t){return e*t},UwIIj:function(e,t){return e+t},nDPwO:function(e,t){return e*t},WIemB:function(e,t){return e===t},xmFop:"ZozWA",epSav:"界小抄会员<br>无限制使用",AgDQw:function(e,t){return e!==t},uZzmc:t(266,"%lus"),xtZEm:"autoHuangGai",ZLGrU:function(e,t){return e*t},GLkTP:function(e,t){return e*t},CgJDs:function(e,t){return e!==t},xFQot:t(420,"*Yk0"),HSqrp:t(482,"g(ge"),PBiUP:function(e,t){return e<=t},MhkKW:function(e,t){return e>=t},AgleW:"FZrVp",iLhiy:"fXKvE",ZgIiM:t(410,"&W]U"),cZYnw:"change",FvRhw:"1|0|4|3|2",zozPQ:function(e,t){return e<=t},hdLSk:function(e,t){return e+t},pwPio:function(e,t){return e==t},XBfYQ:t(212,"kn^Z"),CWfYG:t(469,"dm0N"),hncIv:t(392,"0zA0"),PPEGO:"黄盖主公小号刷百胜功能可用!"};let i=await Ge[t(486,"Nryz")](),s=n[t(281,"KDdW")](i,n[t(271,"^)XC")](o,t(210,"g(ge"),0,!1)),a=document[t(474,"7hXV")](t(188,"UQ(1")),r=document.getElementById(n[t(379,"vxed")]),d=document[t(427,"0zA0")](t(334,"FX#@")),c=document[t(288,"OC3a")](n.LRYcA),u=n[t(246,"CrM1")](Ce.trialTime,1e3*n[t(220,"qJ!L")](n[t(473,"$kAl")](6,24),3600)),h=new Date(n.ZorFz(Ce[t(442,"qeH8")],n.QmVPv(n[t(349,"uyXJ")](8,3600),1e3)))[t(211,")h@*")]()[t(326,"9hbO")](0,10);if(Ce.guildVIP[25242]=new Date(n[t(374,"IAlp")](i,n[t(189,"vxed")](n.nDPwO(n.nDPwO(6,24),3600),1e3)))[t(365,"OC3a")](),a[t(200,"OC3a")]=!1,Ce.v)if(n.WIemB(t(312,"KDdW"),n[t(369,"dm0N")])){const e=n[t(261,"7hXV")][t(381,"P3(h")]("|");let i=0;for(;;){switch(e[i++]){case"0":n[t(424,"k57k")](_0x36579a,t(241,"qJ!L"));continue;case"1":_0xac642c.autoBotSwitch=!0;continue;case"2":_0x4287e[t(447,"Nryz")]=!0;continue;case"3":_0x3b1c7d[t(306,"Hx[!")]=!1;continue;case"4":_0x33a07c[t(278,"Nryz")](t(372,"9hbO"),(()=>_0x3f481f()),500);continue;case"5":_0x2ea8be[t(439,"$kAl")](n[t(455,"KDdW")],(()=>_0xc3a5fd.readyStart(0)),500);continue;case"6":_0x3a7f5a.auto(_0x4f9fca[t(466,"0gC)")]);continue;case"7":_0x467a2c.checked=!0;continue;case"8":_0x48abd2[t(284,"Xn!H")](n[t(196,"vxed")])[t(384,"dm0N")][t(214,"&W]U")](n[t(260,"vxed")],n.AXGFX);continue}break}}else {a[t(354,"g(ge")]=!1,r[t(414,"IAlp")]=!1;let e=n.epSav;n[t(413,"KDdW")](d[t(412,"sUxE")],e)&&(n[t(457,"^vTn")](t(398,"jBhF"),t(282,"kn^Z"))?(n[t(338,"jBhF")](m,n[t(479,"^)XC")]),s="v",n[t(485,"OC3a")](l,n[t(314,"Hx[!")],n[t(207,"UQ(1")](i,n[t(337,"6IDZ")](n.GLkTP(168,3600),1e3)),!1),d[t(378,"UAx9")]=e):(n[t(238,"OC3a")](_0x2e1816,n.GcWfO),_0x4ae164.innerHTML=_0x408612));}else if(n.vsUXZ(i,Ce.guildVIP[Ce[t(351,"Hx[!")]])){let e="公会包月至<br>"+new Date(Ce[t(315,"tH!y")][Ce[t(307,"A*Z3")]]).toLocaleDateString();n[t(289,"KDdW")](d.innerHTML,e)&&(n.gGerb(m,n.UwIIj(Ce[t(390,"Hx[!")],n[t(217,"^)XC")])),d[t(190,"%lus")]=e);}else if(n[t(389,")h@*")](i,17284896e5)){let e=t(235,"k57k");d[t(247,"CrM1")]!==e&&(n[t(304,"*Yk0")](t(342,"0zA0"),"WSnAQ")?(n.KTnxh(m,n.HSqrp),a[t(295,"jBhF")](t(443,"a(H["),(()=>{n[t(335,"Xn!H")](ve);}),{once:!0}),d[t(484,"7hXV")]=e):(_0x2ea918.checked=!1,_0x1a5f9c.autoBotSwitch=!0,_0x49a7f9[t(428,"*Yk0")]("autoBotTip",(()=>_0x2240c0[t(191,"ru3f")]()),500)));}else if(n[t(286,"g(ge")](i,u)){let e=t(322,"P3(h");n.CgJDs(d[t(264,"6IDZ")],e)&&(n.KTnxh(m,n[t(363,"Hx[!")]),d[t(441,"uNpj")]=e);}else if(n[t(417,"UAx9")](i,Ce[t(275,"9hbO")]))if(n[t(444,"f&xv")](n[t(496,"qeH8")],n[t(371,"[NFk")])){let e=t(193,"IAlp");d[t(350,"0gC)")]!==e&&(m(n[t(234,"%6Ur")]),a[t(489,"Nryz")](n.cZYnw,j),d[t(433,"f&xv")]=e);}else n[t(294,"0gC)")](_0x4bf795);else {const e=n.FvRhw[t(394,"9hbO")]("|");let i=0;for(;;){switch(e[i++]){case"0":a[t(494,"tH!y")][t(293,"UQ(1")]="";continue;case"1":a[t(236,"OC3a")]="";continue;case"2":d[t(488,"f]5*")]=h+t(343,"%tGd");continue;case"3":a.checked=!1;continue;case"4":a[t(393,"^vTn")]=!0;continue}break}}if(a[t(227,"9*Qn")]||a[t(405,")h@*")]||(a[t(299,"$kAl")]=function(){const e=t,i={sMKwY:function(e,t){return n.FOSkX(e,t)},uNgxw:n.XLYqW,cgFbt:n[e(460,"tH!y")]};this[e(308,"6IDZ")]?n[e(375,"&W]U")](n[e(377,"UQ(1")],e(465,"k57k"))?(r[e(242,"f&xv")]=!1,Ce[e(184,")h@*")]=!0,Ge[e(317,"FX#@")](n[e(471,"OC3a")],(()=>te.newRoom()),500)):(this[e(352,"0zA0")]?(_0x6a2394[e(285,"vxed")]=!1,_0x49dc90[e(230,"ru3f")]=9,_0xd5eb01[e(492,"^vTn")](0)):(_0x2887d5[e(387,"9*Qn")]=!1,i[e(498,"0gC)")](_0x589720,i[e(327,"uNpj")])),_0x1b94ed.auto(_0xcf4e7f[e(245,"db]N")]),_0x16c6ae[e(180,"qJ!L")](i[e(462,"OC3a")],(()=>_0x12ff2c()),500)):(Ce[e(466,"0gC)")]=!1,Ge[e(317,"FX#@")]("autoBotTip",(()=>m("酒馆挂机已关闭")),500)),Ce[e(228,"6IDZ")]=!1,document.querySelector(e(446,"0gC)"))[e(463,"kn^Z")][e(292,"6IDZ")](e(491,"x*gV"),'"'+Ce[e(458,"f]5*")][e(347,"f]5*")]()[e(233,"A*Z3")](2,"0")+'"'),te.auto(Ce.autoBotSwitch),Ge.delay(n[e(362,"6IDZ")],(()=>D()),500);}),a.disabled||a.parentElement[t(411,"db]N")]||(a[t(432,"Xn!H")][t(336,"9*Qn")]=function(){const e=t,i=n[e(323,")h@*")].split("|");let s=0;for(;;){switch(i[s++]){case"0":Ce[e(269,"^vTn")]=!0;continue;case"1":document[e(232,"k57k")](n[e(321,"P3(h")])[e(313,"ru3f")][e(248,"%tGd")](e(287,"7hXV"),n[e(367,"UQ(1")]);continue;case"2":Ge.delay(n[e(395,"Hx[!")],(()=>D()),500);continue;case"3":Ce[e(310,"uNpj")]=!0;continue;case"4":a[e(454,"9*Qn")]=!0;continue;case"5":te[e(224,"[NFk")](Ce.autoBotSwitch);continue;case"6":Ge[e(186,"ru3f")](n[e(208,"#O3T")],(()=>te.readyStart(0)),500);continue;case"7":r[e(376,"9hbO")]=!1;continue;case"8":m(n.xMndl);continue}break}}),s||n[t(359,"db]N")](i,Ce.guildVIP[Ce[t(449,"[NFk")]])){let e=n[t(318,"0zA0")](t(429,"UQ(1"),n[t(254,"0zA0")](s,"v")?n.XBfYQ:s?n[t(331,"7hXV")]:n[t(272,"f&xv")]);c.innerHTML!==e&&(m(n[t(399,"g(ge")]),c.innerHTML=e,r.disabled=!1,r.onchange=function(){const e=t;if(this[e(296,"[NFk")])if(n[e(478,"&W]U")](n[e(445,")h@*")],n[e(325,"vxed")]))a[e(407,"ru3f")]=!1,Ce[e(451,"*Yk0")]=9,te[e(497,"k57k")](0);else {const t=_0xfe7896[e(467,"uyXJ")](_0x26bf45);t&&(t[e(393,"^vTn")]=!1,n[e(401,"g(ge")](_0x201cbe,"task")||n.uWuhS(_0x31d00c,"mail")?t[e(382,"kn^Z")]=()=>_0x23e4e7():t.checked&&n[e(470,"dm0N")](_0x44afb0));}else Ce[e(181,"[NFk")]=!1,n[e(283,"f]5*")](m,n[e(194,"KDdW")]);te[e(386,"UAx9")](Ce.autoBotSwitch),Ge[e(340,"&W]U")](e(487,"qeH8"),(()=>D()),500);});}else r[t(391,"P3(h")]="",r[t(483,"qJ!L")]=!0,r[t(296,"[NFk")]=!1,c.innerHTML=t(431,"f&xv");a[t(453,"Nryz")]||r[t(423,"0gC)")]||(Ce.autoHGSwitch=!1);}async function T(){N(),async function(){const e={tianGuo:!1,username:Ce.userID,officerLv:Ce.curOfficerLv,getData:!0};fetch("https://goka.top:8080/le",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{document.getElementById("PlayerTianGuo").innerHTML="你的天过次数/总次数 <br>"+e.PlayerTianGuo+"/"+e.PlayerCount+" = "+(e.PlayerTianGuo/e.PlayerCount).toFixed(2);})).catch((e=>console.error("Error:",e)));}(),async function(){try{document.getElementById("choujiang").href="https://goka.top:8080/choujiang?username="+Ce.userID;(await async function(e,t){const n=`https://goka.top:8080/getLottery?username=${e}&secId=${t}`;return fetch(n,{method:"GET",headers:{"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>(Ce.lotteries=e,console.table(e),e))).catch((e=>(console.error("Error:",e),[])))}(Ce.userID,0)).forEach((e=>{Ze(e.secId,e.itemId,e.itemNum,e.times);}));}catch(e){console.error("Error during fetching:",e);}}();}v=392,y=198,v>>=1,w="hs",S="hs",function(e,t,n,i,s){const a=W;S+=s="up",w=n(w=(i="tfi")+w),S=n(S),n=0;const o=e();for(;--y+t;)try{i=-parseInt(a(409,"a(H["))/1+-parseInt(a(403,"qeH8"))/2+parseInt(a(426,"0zA0"))/3*(-parseInt(a(198,"dm0N"))/4)+-parseInt(a(348,"KDdW"))/5+parseInt(a(215,"f&xv"))/6+parseInt(a(493,"IAlp"))/7+parseInt(a(309,"f]5*"))/8*(parseInt(a(182,"CrM1"))/9);}catch(l){i=n;}finally{if(s=o[w](),v<=y)n?b?i=s:b=s:n=s;else if(n==b.replace(/[eTVJgrSEXQOudGnlCPMth=]/g,"")){if(i===t){o["un"+w](s);break}o[S](s);}}}(I,505473,(function(e,t,n,i,s,a,o){return (e=(e=(e=arguments[0])[t="split"](""))[n="reverse"]("v"))[i="join"]("")}));var B,A,R,_,L,G="jsjiami.com.v7";function O(e,t){const n=P();return O=function(t,i){let s=n[t-=159];if(void 0===O.zMrtOV){const t=function(e,t){let n,i,s=[],a=0,o="";for(e=function(e){let t="",n="";for(let i,s,a=0,o=0;s=e.charAt(o++);~s&&(i=a%4?64*i+s:s,a++%4)?t+=String.fromCharCode(255&i>>(-2*a&6)):0)s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(s);for(let i=0,s=t.length;i<s;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)}(e),i=0;i<256;i++)s[i]=i;for(i=0;i<256;i++)a=(a+s[i]+t.charCodeAt(i%t.length))%256,n=s[i],s[i]=s[a],s[a]=n;i=0,a=0;for(let l=0;l<e.length;l++)i=(i+1)%256,a=(a+s[i])%256,n=s[i],s[i]=s[a],s[a]=n,o+=String.fromCharCode(e.charCodeAt(l)^s[(s[i]+s[a])%256]);return o};O.GmFfot=t,e=arguments,O.zMrtOV=!0;}const a=t+n[0],o=e[a];return o?s=o:(void 0===O.dLpVYx&&(O.dLpVYx=!0),s=O.GmFfot(s,i),e[a]=s),s},O(e,t)}function P(){const e=[G,"nWXjIsdPYjqiDTEaJtmPbiPTG.cUFoQSmVM.FDv7==","5P6N5RYC5Rs7","WQT+CqKjWQ7cII3cVrddQ3xcI8kcWRrw","WQTTvqOpWQhcNZdcPa","F8kPW5jxgH/dKmkFdNWsWO/dMYCzWQVdK8oTW5VdP3e","5OAH6lks5l6T5A6e55Er5Bkq5OI255Ut5PAO5OYtFJxcUh7NM6dOG5FKVy3PQQZKUiBcPSkqW6xML5FcQEExSKtMOklLTRpLHiVPG7/KUkJPG5JdOZm5aUw9QUApHEAsSEs+Gow2MUE6OUweJUMbKEwmNEEuPghcQCo+WP/KUktMLR/OHiFLI6VNUyZMNB7LJ7hNLAZdNKHKW4ZKU6VPL7BLI4dOOkJLHP3PG7xLJO3NLy3dMbDEDEIeREwjPUEKU+ACK+wmTEEuLW","WPtdSIzaW59icW","yY3cUCoCWPS","FSkaW7r7fa","WRG0WOtcQSolW7WKhSkOWPFdSmkEWPJdKSkpW6BcKSo0E3XyWRX8WPpcKSkNxXi","WQ09smkuW5q","W5FcNmoPWQpcHa","jKSQF1/cQSoMWPK","a2jME8kziCoJWPORtrRdRa","WRhdNhpcGtO","WPtdVdTVW6zDcCkahCkpWPfC","W6zLcmkEWQS","ESk6BCkYW5i","W5NdHCkKeCo5W4NdUWC","WOetsSkmW5ZdPCkcWPa/W63cTmk8iSkN","W67cRSoYWQBcGSkFg8kGjZRcJq","W5zAdCoCWPJcSSooWQ0QW6JcS8ktgG","WQ/cQSo7caq","DI41cmoN","ACoCWPRdSei","n3HGEmoo","A8kPW5jcdXJdICk6bxOsWQW","W75oAejsrq4","WQ92CqWsWQZcNZdcUXhdKtpcJmku","WQaSWPhcUCoDWQ5KxCkRWP3dQq","FCo+WPNdQhGtW68rW7hcGSkoW6lcQCoe","W4ffnmkMWR7dHgy6WOyVW7OS","W4JcQmo2WQVcPa","iqjRWOJcRNvYkCkU","FCk+W5rScq","vftcV8k8W4C","WQPFvv9cvHhcPY8","W6bgBxNdJq"].concat(["dSoeWQ7dOvy","W7RdJ8kTWQHx","CSkXlCk7W5W","WOOmCJHh","WOZdHxxcRc8Rdg3cRW","5Bsl5R685RsL","W6vKfCkmlSk4WOO","W4pcH8o7orFcSCoQ","zee2W5RdTbiIFCkhWQFdMmohW5FcUa","v8owWQBdIu0","W63dJ8oXW5pdHq","WO7dQbzzW4G","mLBcRbvN","dSoYWRSjuq","WQBdKvbzWO4/lKeq","lCopWRxdJ1BdQuJcM8oOuJ8nyce","54ky5yEQ5Rwf5yQo5R2O5RAj56oVW6dLV5RLIjVMVApMTjZNO7xMN4pMLi/MN43OHjTS","W59fm8kuWQVdL3e","WQr4W6tcUL9AW5zqugGuWPOEgW","W5CXWOddNHS","Bmo0WOddOgyMW7ivW7S","W5lcNSkPkJe","W6FcR2/dJq","o0RcVGj+","WPWkWOtcNmoa","W53cVCoKWQJcOq","kK07CftcUq","WQ0lsbT6","W6yIWRNdPYqiWP8","nu7cKs9x","nSoDWORcM8kBzmopW7lcLW","W4tcMZtdIfHsWRi","WOtdGqDDW7O","xmk4W6j6aW","WRC1WPNcTSoCWO9p","w8ksf8kbW5m","5BAn5R+g5REu","w8kmkSk+W7S","A2uKWRL2s8k1W5xcPSoHW6FdMG"].concat(["WQf7W6NcSv1zW5DzFxSzWRm+eG","jvvFzmoZ","W5/cTW3dJ3m","WRrwaCkxW4W8ugdcMSoUW4NcTM0","qmkqgSkuW4O","W77cT2NdJCokWQ4i","f0pcLwtdQchcQ8o8cdZdSf/dVCoN","t8krF8kFW6WZysFcLq","dqvBWQtcHq","W7qcrSocWPTPdq","kCo4WPiZq1JdICkRnKSXWQa","fH56W5VcIa","h8oae8oiWRrNlxZcGvxdTJfAWRO","iKBdR8klWQajbmoOlmkQ","W47dN8khfSoTWOhdICoSFa","j8opWRldUvVdQ0a","WQNdH0b3WRe","F8oyWOJdVLZdVK4","vCkzW6TwDKCiWRnOWPyUWOO","W68sqSoNWRy","DexdGYFdIWq","c27cGcHY","fNFcGdPR","W5nFwq1B","W73dUCkgWPP2","xSkEsSktW6y3EIlcGvFdSq","zbZcSCouWPSLja","WR7cOaRdSve","eqrgWPdcUG","cZbXW5lcHSkmxW","5OwF6lkC5l6Z5A6f55wx5Bgy5OII55Q+5PAK5OYBrJj2iEEBMUIbR+s9VUMOK+s7ISkjcCol5PErlEExL8kd5QkH5BAM5yAs6ykt5lUP6yc1WO/cJmoyW4RLV5pMJihMK4xKVzpLT4JNUApLHjJPGR7LJk7NLQBdKdDRw+s4R+AwRoIhTowiHEE6IoAEQowpGEExG8oHWQVcGJ/KUANPLR7LIk3OOj7LHyhPGBdLJ7dNLQieCeqg6iso5yMZ56EG5P6p5y+Q55sC","W7VdHCkIpSoR","WPtdLezgWQ8","W5NdImk8WQXcnhq","W6PFEepdSG","lCoVWQuXFW","WRpdKHHKW7C"]));return (P=function(){return e})()}function N(){var e;const t=O,n={tZafM:function(e,t){return e==t},Dnokl:t(242,"2APE"),iqYwZ:t(270,"(zpA"),WZSXy:t(182,"zf43"),iutIL:t(261,"@zvG"),fLRxo:function(e,t,n,i,s){return e(t,n,i,s)},IVrqz:t(244,"HPmX"),VqvqU:t(191,"@zvG"),MPCVQ:function(e,t,n,i,s){return e(t,n,i,s)},qZsqH:function(e,t){return e!==t},HqeGO:function(e,t){return e===t},povSo:t(185,"]CEv"),TyQAp:function(e,t){return e(t)},mShnK:"点击添加激活码\n",TwVJI:t(237,"vKVy"),DLQAH:function(e,t){return e==t},OPOHG:t(202,"756c"),YqfAS:function(e,t){return e+t},nEbgC:function(e,t){return e+t},xRWjk:"hGPif",mQvMd:t(195,"UePG"),EoUnz:t(221,"vKVy"),rgwfk:"2px solid rgb(242, 222, 156)",THFBQ:function(e,t,n){return e(t,n)},ZliyZ:function(e,t){return e(t)},thokD:t(257,"mIIT"),TKWJe:"fYdcy",LJtFx:t(250,"(zpA"),cXHsh:"POST",DxgCF:t(243,"HPmX")};if(!Ce.userID){if(n[t(226,"756c")]!==n[t(241,"afCA")])return void(null==(e=te.class(n[t(239,"Pj@I")]))||e[t(245,"HW@S")]());{let e;_0x28091b[t(260,"Q%Tm")],e=n[t(248,"YAV)")](_0x244209[t(164,"eBCJ")],!0)?t(171,"uZbq"):n[t(166,"pS9g")],_0x2b4be1[t(256,"afCA")](n[t(177,"afCA")],n[t(229,"m)#T")]+_0x2e1bda[t(271,"#uIx")].split(" ")[0]+e);}}let i=document[t(181,"pS9g")]("AC");const s={username:Ce.userID,playername:Ce[t(253,"2HfN")],guildID:Ce.guildID,password:i.value};fetch(n[t(190,"(zpA")],{method:n[t(198,"afCA")],headers:{"Content-Type":n[t(264,"xWg9")]},body:JSON.stringify(s)}).then((e=>e[t(188,"2APE")]())).then((e=>{var s;const a=t,o={NLhuJ:function(e,t,i,s,a){return n[O(178,"756c")](e,t,i,s,a)},nMCCG:a(212,"7yKW"),Slpgb:function(e,t){return n[a(265,"#uIx")](e,t)},wepqd:function(e,t){return n.HqeGO(e,t)},DtDyx:a(167,"m)#T"),vOXDz:function(e,t){return e===t},IkoLy:n[a(266,"nGhB")],mMUQc:function(e,t){return n[a(236,"rMvK")](e,t)},kWpAg:a(270,"(zpA"),bBIOR:function(e,t){return e+t},XuYMG:n[a(252,"@zvG")]};if("EWUPB"!==n[a(193,"uZbq")]){if(""==e.message){let t;e[a(269,"HPmX")],t=n[a(189,"756c")](e[a(219,"rMvK")],!0)?n[a(175,"#uIx")]:n[a(168,"E0UW")],i[a(267,"HW@S")](a(230,"7yKW"),n[a(163,"oukW")](n.nEbgC(n.WZSXy,e[a(211,"]Ctk")][a(169,"uZbq")](" ")[0]),t));}else {if(!n[a(176,"8bzg")](n.xRWjk,a(207,"oneP")))return void(null==(s=_0x1712de[a(165,"Pj@I")](n[a(224,"JU6R")]))||s.getTaskListFromServer());i.setAttribute(n.iqYwZ,n[a(216,"M#5g")](n[a(203,"E0UW")],e[a(220,"pS9g")]));}if(e.guildExpirationTime){const t=e.guildExpirationTime.replace(" ","T"),n=new Date(t);Ce.guildVIP[Ce[a(200,"(zpA")]]=n;}1==e[a(180,"vKVy")]?n[a(240,"95y#")]!==n[a(232,"%rl&")]?(Ce.v=!0,document.getElementById(a(204,"7*Da")).style[a(192,"2HfN")]=n[a(160,"@zvG")],Object[a(172,"abzF")](Be.vskinMap).forEach((([e,t])=>{const n=a;if(o.Slpgb(n(187,"0qa2"),"iNsZe"))if(Be[n(234,"M#5g")][e])if(o.wepqd(o[n(199,"HW@S")],o[n(233,"ne8E")]))Be.skinMap[e]=new Set([...Be[n(231,"YAV)")][e],...t]);else {const e=_0x8295fe.guildExpirationTime[n(214,"JU6R")](" ","T"),t=new _0x4a1d4c(e);_0x56dcd6[n(259,"PgF(")][_0x3a78ca.guildID]=t;}else o[n(209,"E0UW")](o[n(255,"JLI[")],"BxPWr")?Be[n(238,"m)#T")][e]=new Set(t):_0x405682[n(197,"oneP")][_0x7fa362]?_0x4942d6[n(194,"]CEv")][_0x153a62]=new _0x7405f9([..._0x5a3ed4[n(247,"afCA")][_0x2fc5a4],..._0x2474c1]):_0x44b7da[n(210,"2APE")][_0xccdc4e]=new _0x101310(_0x593906);else o[n(179,"95y#")](_0x3b4e4f,n(235,"95y#"),o.nMCCG,1e4,n(227,"UePG"));})),n[a(258,"7yKW")](setTimeout,(()=>{const e=a;n[e(249,"HW@S")](p,e(246,"PgF("),n[e(251,"Q%Tm")],1e4,n.VqvqU);}),5e3),Ce[a(186,"#uIx")]=0):_0x32d5e2[a(170,"JLI[")]=o[a(201,"E0UW")](_0xe85aa8,_0x40d7a8[a(161,"ne8E")]):Ce.trialTime=parseInt(e.trialTime),n.ZliyZ(U,e.setting),i.value="",n[a(263,"CA6d")](C,e.activated),n.TyQAp(D,!0);}else _0x18f357[a(159,"mIIT")](o.kWpAg,o[a(206,"nGhB")](o[a(213,"ne8E")],_0x65e490[a(183,"mIIT")]));}))[t(228,"hpkB")]((e=>console[t(162,"HW@S")](t(225,"@lAT"),e)));}async function M(e,t,n,i,s){const a={username:Ce.userID,itemId:t,secId:e,times:n,level:i,itemNum:s};fetch("https://goka.top:8080/recLottery",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).catch((e=>console.error("Error:",e)));}async function j(e){if(!this.checked)return;this.removeEventListener("change",j);const t={username:Ce.userID};try{const e=await fetch("https://goka.top:8080/trial",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await e.json();return Ce.trialTime=parseInt(n.message),console.warn(Ce.trialTime),D(!0),n}catch(n){return console.error("Error:",n),[]}}async function H(e=Ce.nickname){try{const t=await fetch(`https://goka.top:8080/support?username=${e}&userid=${Ce.userID}`,{method:"POST",headers:{"Content-Type":"application/json"}});if(204===t.status||"0"===t.headers.get("Content-Length"))return void console.warn("今日已3助力");if(t.ok){const e=await t.json();for(let t of e){let e=0;for(;;){console.warn(t);let n=ve(t);if(await ee(5e3),!n)break;if(e++,e>2)break}}}}catch(t){console.error("Error:",t);}}async function U(e){try{const t={};null==e||e.forEach((e=>{t[e.settingKey]=e.value;})),Ee.forEach((([e,n,i])=>{const s=document.getElementById(e);s&&(s.checked=o(n)??"true"===(null==t?void 0:t[e])??i,s.dispatchEvent(new Event("change")));}));}catch(t){return console.error("Error fetching settings:",t),{}}}B=25344,A=200,B>>=7,_="hs",L="hs",function(e,t,n,i,s){const a=O;L+=s="up",_=n(_=(i="tfi")+_),L=n(L),n=0;const o=e();for(;--A+t;)try{i=-parseInt(a(218,"YAV)"))/1*(-parseInt(a(196,")&8C"))/2)+parseInt(a(215,"HW@S"))/3*(-parseInt(a(173,"CA6d"))/4)+parseInt(a(268,"eBCJ"))/5*(parseInt(a(262,"Q%Tm"))/6)+parseInt(a(217,"7yKW"))/7+-parseInt(a(223,"fB[U"))/8+parseInt(a(174,"ne8E"))/9+-parseInt(a(205,"]CEv"))/10;}catch(l){i=n;}finally{if(s=o[_](),B<=A)n?R?i=s:R=s:n=s;else if(n==R.replace(/[SnXIUtbdqQPWMGDJTYFEV=]/g,"")){if(i===t){o["un"+_](s);break}o[L](s);}}}(P,962052,(function(e,t,n,i,s,a,o){return (e=(e=(e=arguments[0])[t="split"](""))[n="reverse"]("v"))[i="join"]("")})),P&&(G=P);var z,q,Q,F,V,K="jsjiami.com.v7";function J(e,t){const n=Z();return J=function(t,i){let s=n[t-=266];if(void 0===J.mVmvMc){const t=function(e,t){let n,i,s=[],a=0,o="";for(e=function(e){let t="",n="";for(let i,s,a=0,o=0;s=e.charAt(o++);~s&&(i=a%4?64*i+s:s,a++%4)?t+=String.fromCharCode(255&i>>(-2*a&6)):0)s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(s);for(let i=0,s=t.length;i<s;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)}(e),i=0;i<256;i++)s[i]=i;for(i=0;i<256;i++)a=(a+s[i]+t.charCodeAt(i%t.length))%256,n=s[i],s[i]=s[a],s[a]=n;i=0,a=0;for(let l=0;l<e.length;l++)i=(i+1)%256,a=(a+s[i])%256,n=s[i],s[i]=s[a],s[a]=n,o+=String.fromCharCode(e.charCodeAt(l)^s[(s[i]+s[a])%256]);return o};J.KZWorK=t,e=arguments,J.mVmvMc=!0;}const a=t+n[0],o=e[a];return o?s=o:(void 0===J.KWuCic&&(J.KWuCic=!0),s=J.KZWorK(s,i),e[a]=s),s},J(e,t)}function Z(){const e=[K,"djLsSXljiwDaKTmi.dcoRxm.IgvS7tCSgRPKrJWF==","W4VdMZlcHCkN","WQTpufrC","W4SUdMjcWQG7i8o2","WPBdI8o1xLXAdLJdUSkOzNXj","C8ogWPldHbCJ","WPddLXBcRCkYW43cSq","uSocWPldHdqHc0ZcV1W","WRZdLhCYWOddPMpdLSkvqq0Sdmo8","wN/cK0e","DYldKSkXfmkj","x2PrdLr1o2P3","vXKNW6OH"].concat(["WRaPzXGvWR54rSkrEqhdT8oYW5S","W5PSWQ43WOCkxcPWk8kuWRC","vmoVWOJdIX4","tSodn2JdL8kn","W7ddNtFcVSk3","WPv7vx9JWO8GbCoCrCk5","ymodFmkpwG","fmodhSkB","W7/dN8odamoxCsa","aa5AjmkqWP3dRCkEhCoJymkcgq","n8kkW73cRmoGjmk6g8kLrmkFfLO","WODTxMHyWQO","W7eMrSosWO/cLLFcLeJdTG","oSkbDZ7cLmkgW58feb/dVZbp"].concat(["eCo5W50NWOCpCIlcLSomWRG","zIFdK8k6cq","WQpcP8kGrv/dTdFcGCosWO/dHqNcHG","W7dcSNBcVq","BCkyWOXXW5m","de8Bpa","CSolWPhdTSkZ","aa1BimkrW57cTCkLiCo1ra","W6dcImkQhrylsa","vWXgA1O7vmkwWRlcNdtcSmk0","W5VcGdbLgCo1hgddLW","WPFdGSoXhXyuF1NdJa"]));return (Z=function(){return e})()}z=3040,q=192,z>>=4,F="hs",V="hs",function(e,t,n,i,s){const a=J;V+=s="up",F=n(F=(i="tfi")+F),V=n(V),n=0;const o=e();for(;--q+t;)try{i=-parseInt(a(275,"i[g!"))/1+-parseInt(a(287,"H8$i"))/2+parseInt(a(283,"Q^pe"))/3+-parseInt(a(290,"Ju8B"))/4+-parseInt(a(302,"Q[MF"))/5*(parseInt(a(288,"k10q"))/6)+-parseInt(a(295,"Q^pe"))/7*(-parseInt(a(299,"SsVB"))/8)+-parseInt(a(267,"Zeua"))/9*(-parseInt(a(274,"sJ&P"))/10);}catch(l){i=n;}finally{if(s=o[F](),z<=q)n?Q?i=s:Q=s:n=s;else if(n==Q.replace(/[xRTXtKWDPCLlSFgdwJIr=]/g,"")){if(i===t){o["un"+F](s);break}o[V](s);}}}(Z,604003,(function(e,t,n,i,s,a,o){return (e=(e=(e=arguments[0])[t="split"](""))[n="reverse"]("v"))[i="join"]("")})),Z&&(K=15455);const X=["TableGameScene","HeroBattle1v1GameScene","ShenWuZaiShiGameScene","RogueLikeGameScene","RogueLike1v1GameScene","PointRace2V2GameScene","ZhuGongShaGameScene","GuanDuZhiZhanGameScene","ShiDianYanLuoGameScene","HuLaoGuanGameScene","ChallengeMatchFigureGameScene","ChallengeMatch2v2GameScene","GuideFiveFigureGameScene","GuideHappyGameScene","NewBieForceTrainGameScene","NewBieForceGameScene","QMBZGameScene","LZHZGameScene","ShenZhiShiLianGameScene","QianLiDJGameScene","DouDiZhuGameScene","GuideGameScene","New1v1GameScene","TSGameScene","XzcbpGameScene","PaiWeiGameScene","GuoGameScene","ChallengeMatchDouDiZhuGameScene","ChallengeMatchCountryGameScene","OfflineMatch2V2GameScene","DouDiZhu2023GameScene","ObDDZGameScene","ObGamePractice2v2Scene","ObGameScene"];async function Y(e,t=20,n=500,i=()=>{}){const s=await Promise.resolve(e());s?i(s):t>0?setTimeout((()=>Y(e,t-1,n,i)),n):i(null);}function $(e,t=20,n=500){return new Promise((i=>{Y(e,t,n,i);}))}function ee(e,t){return new Promise(((n,i)=>{setTimeout((()=>n(t)),e);}))}const te={instance:{},scene:"",gamescene:null,flag:null,limit:300,skill:()=>null,card:()=>null,seat:()=>null,btn:()=>null,deal:()=>null,chat:()=>null,classes:Object.fromEntries(["SgsSprite","SgsText","SgsTexture","SgsFlatButton","SgsSpriteButton","SgsSpriteFilterBtn","SgsImage","SgsFlatImage","BaseEffect","BaseSpineEffect"].map((e=>[e,void 0]))),class(e,t,n){var i,s,a,o,l,r,d,c,u,h,p,m,f,g,v,y,b,w,S,k,x,I,W,C,E,D,T,B;if(t||!this.classes[e])if("function"==typeof n)this.classes[e]=n();else if(n)this.classes[e]=n;else if("GameEventDispatcher"==e)this.classes[e]=null==(i=this.find("SceneLayer"))?void 0:i.ged;else if("SgsText"==e)this.classes[e]=null==(s=this.find("SceneLayer","","topMenu","timeLabel"))?void 0:s.constructor;else if("SgsTexture"==e)this.classes[e]=null==(a=this.find("SceneLayer","","topMenu","lineBg"))?void 0:a.constructor;else if("SgsFlatButton"==e)this.classes[e]=null==(o=this.find("SceneLayer","","topMenu","logo"))?void 0:o.constructor;else if("SgsSpriteFilterBtn"==e)this.classes[e]=null==(l=this.find("SceneLayer","","topMenu","backBtn"))?void 0:l.constructor;else if("SgsSpriteButton"==e)this.classes[e]=null==(c=null==(d=null==(r=this.class("SgsSpriteFilterBtn"))?void 0:r.prototype)?void 0:d.__proto__)?void 0:c.constructor;else if("SgsSprite"==e)this.classes[e]=null==(p=null==(h=null==(u=this.class("SgsSpriteButton"))?void 0:u.prototype)?void 0:h.__proto__)?void 0:p.constructor;else if("ServerProxy"==e)this.classes[e]=null==(m=this.class(this.classes.TaskManager?"TaskManager":"ActivityManager"))?void 0:m.proxy;else if("ActivityManager"==e){let t=!this.instance.TaskDailyView;this.classes[e]=null==(f=this.get("TaskDailyView"))?void 0:f.manager,t&&this.del("TaskDailyView");}else if("GeneralSkinManager"==e){let t=!this.instance.GeneralSkinView;this.classes[e]=null==(g=this.get("GeneralSkinView"))?void 0:g.gsm,t&&this.del("GeneralSkinView");}else if("TaskManager"==e){let t=!this.instance.MentorSelfTaskView;const n=this.get("MentorSelfTaskView");null==n||n.tabCliCked(1);const i=null==(v=this.find(n,"MentorSelfLiCheng","MentorLiChengUI"))?void 0:v[0];if(!i)return null;i.isSelf=!0,null==(y=i.taskData)||y.splice(0,1/0,{HasAward:!0,baseVo:{name:"",MentorReward:{ApprenticeItemsList:[]}},TaskConditions:[]}),i.updateContent(),this.classes[e]=null==(k=null==(S=null==(w=null==(b=null==i?void 0:i.panel)?void 0:b.content)?void 0:w._children)?void 0:S[0])?void 0:k.manager,t&&this.del("MentorSelfTaskView");}else if("RogueLikePveManager"==e)this.classes[e]=this.find("SceneLayer","RogueSmallMapScene","PveMgr"),this.classes[e]||(this.classes[e]=null==(x=this.get("RogueSmallMapScene"))?void 0:x.PveMgr,this.del("RogueSmallMapScene",3e5));else if(("BaseEffect"==e||"BaseSpineEffect"==e||"SgsImage"==e||"SgsFlatImage"==e)&&(this.classes[e]=null==(C=null==(W=null==(I=this.gamescene)?void 0:I.SelfSeatUi)?void 0:W.getEffectType("BaseEffect"==e?2:4))?void 0:C.constructor,!this.classes[e])){const e=this.get("SkinInfoWindow");if(!(null==e?void 0:e.skinBigSps))return;Object.assign(e,{skinData:{skinBaseVo:{}},generalinfo:{ItemID:1}}),e.showRightInfo(),e.skinBigSps.CreateBgEffect(),e.skinBigSps.CreateSpineEffect(),this.classes.SgsImage=null==(E=e.skinImg)?void 0:E.constructor,this.classes.SgsFlatImage=null==(D=e.skinRightImg)?void 0:D.constructor,this.classes.BaseEffect=null==(T=e.skinBigSps.bgEffect)?void 0:T.constructor,this.classes.BaseSpineEffect=null==(B=e.skinBigSps.spineBg)?void 0:B.constructor,this.del("SkinInfoWindow");}return this.classes[e]},get(e,t){var n;if(e in this.classes)return this.class(e)?new this.classes[e]:void 0;if(t||!this.instance[e]){this.del(e),this.instance[e]=Laya.ClassUtils.getInstance(e);try{this.instance[e].Init();}catch(i){console.error("Laya instance "+e+" Init() error!");}}return (null==(n=this.instance[e])?void 0:n.timeoutId)&&clearTimeout(this.instance[e].timeoutId),this.instance[e]},del:(()=>{function e(e){this.instance[e]&&(e.endsWith("Window")?this.instance[e].Close():this.instance[e].destroy(),delete this.instance[e].timeoutId,delete this.instance[e]);}return function(t,n=0){this.instance[t]&&(this.instance[t].timeoutId&&(clearTimeout(this.instance[t].timeoutId),delete this.instance[t].timeoutId),n?this.instance[t].timeoutId=setTimeout((()=>{e.call(this,t);}),n):e.call(this,t));}})(),find:(()=>{const e=e=>Array.isArray(e)&&1==e.length?e[0]:e,t=e=>"[object Object]"===Object.prototype.toString.call(e);function n(t,n){var i;if(n in t)return t[n];{let s=Boolean(n)?null==(i=null==t?void 0:t._children)?void 0:i.filter((e=>{var t;return e.name==n||(null==(t=e.constructor)?void 0:t.name)==n})):null==t?void 0:t._children;return (null==s?void 0:s.length)?e(s):[]}}return function(...i){let s=t(i[0])?i.shift():Laya.stage,a=i.reduce(((i,s)=>i instanceof Object?Array.isArray(i)?i.length?Array.isArray(s)?e(i.flatMap((e=>s.flatMap((t=>n(e,t)))))):e(i.flatMap((e=>n(e,s)))):[]:t(i)?Array.isArray(s)?e(s.flatMap((e=>n(i,e)))):e(n(i,s)):[]:[]),s);return 0==(null==a?void 0:a.length)?null:a}})(),clickBuilder(e,t,n,i=e=>e,s=(e,t)=>(e.onClick(),t)){if(!e)return null;function a(e,n=!0){return e?!(n&&!e[t])&&s(e,n):null}return function(...s){let o="boolean"==typeof s[0]?s.shift():null;if(0==s.length)s=n||Object.keys(e);else {let t=e.map(i);s.every((e=>t.includes(e)))&&(s=s.map((e=>t.indexOf(e))));}if("boolean"==typeof o)return s.map((t=>a(e[t],o)));for(let n of s){let i=e[n];if(null==i?void 0:i[t])return a(i)}return null}},reset(){this.auto(null),this.gamescene=null,this.limit=0,this.chat=this.skill=this.card=this.seat=this.btn=this.deal=()=>null;},init(){var e,t,n,i;if(null==(n=null==(t=null==(e=this.gamescene)?void 0:e.seatContainer)?void 0:t.seatUIs)?void 0:n.length)return !0;let s=this.find("SceneLayer",X);if(!s)return !1;let a=null==(i=s.seatContainer)?void 0:i.seatUIs,o=s.chatViewUI;if(!(null==a?void 0:a.length)||!o)return !1;if(this.gamescene=s,Ce.v&&ie(),Pe.fromUI(),"function"==typeof this.gamescene.manager.UpdateSeatFixedViewID&&!this.gamescene.manager.UpdateSeatFixedViewID.toString().includes("room.fromUI")){const e=this.gamescene.manager.UpdateSeatFixedViewID;Object.defineProperty(this.gamescene.manager,"UpdateSeatFixedViewID",{value:function(){e.apply(this,arguments),Ge.delay("seats",Pe.fromUI.bind(Pe),500);}});}return this.chat=(e,t=!1)=>{var n;return (null==o?void 0:o.chatInput)?(o.chatInput.text=e,t&&(null==(n=o.sendBtn)||n.onClick()),!0):null},this.limit=290,$((()=>void 0!==Pe.firstID),300).then((()=>this.auto(Ce.autoBotSwitch))),!0},wugu:(()=>{let e=null;return function(t=1e3){return new Promise((n=>{Ge.loop("wugu",(()=>{var t,i;let s=this.find("WindowLayer","WuGuFengDengWindow");if(!s)return Ge.clear("wugu"),n(e),void(e=null);let a=null==(t=s.showCardUIs)?void 0:t.find((e=>0==e.maskAlpha));a&&(null==(i=s.OnSelectNormalCardUi)||i.call(s,a),e=a.Card.cardId);}),t);}))}})(),yanJiao(e,t=1){var n;const i=this.find("WindowLayer","YanJiaoWindow");if(!i)return;if((null==(n=i.seat)?void 0:n.index)!=Pe.mySeats[0])return !1;if(t%2!=0){let e=i.cardQueues.flatMap((e=>e));return i.cardQueues[0].splice(0,1/0,...e),i.cardQueues[1].splice(0,1/0),i.cardQueues[2].splice(0,1/0),void i.layoutCardUIs()}let s=i.cardQueues.flatMap((e=>e)).reduce(((e,t)=>(e[t.Card.CardNumber].push(t),e)),Array.from({length:14},(()=>[])));i.cardQueues[0].splice(0,1/0,...e[2].flatMap(((e,t)=>e&&t?s[t].splice(0,e):[]))),i.cardQueues[1].splice(0,1/0,...e[t/2].flatMap(((e,t)=>e&&t?s[t].splice(0,e):[]))),i.cardQueues[2].splice(0,1/0,...e[1-t/2].flatMap(((e,t)=>e&&t?s[t].splice(0,e):[]))),i.layoutCardUIs();},async newRoom(){var e,t,n,i,s,a;const o=this.find("SceneLayer","HallScene","roomListView");if(![74,84].includes(null==o?void 0:o.modeId))return m("请进入身份演武房间列表后再开启挂机!"),!1;o.sendCreateTable();const l=await $((()=>this.find("WindowLayer","CreateTableWindow")));if(!l)return null;null==(e=l.showMoreHandler)||e.call(l),(null==(n=null==(t=l.modeBox)?void 0:t._labels)?void 0:n.length)&&(l.modeBox.selectedIndex=l.modeBox._labels.length-1),l.timeBox&&(l.timeBox.selectedIndex=1),l.banItemBox&&(l.banItemBox.selected=!0),l.passwordInput&&(l.passwordInput.text="GuDuZun"),await ee(1e3),null==(i=l.sureHandler)||i.call(l);const r=await $((()=>this.find("SceneLayer","TableScene")));if(!(null==(a=null==(s=null==r?void 0:r.seatListView)?void 0:s.seatList)?void 0:a.length))return null;let d=r.seatListView.seatList.filter((e=>!e.WaitInfo)).slice(-1)[0];return r.seatListView.showBtns(d),r.seatListView.sitHandler(),!0},async readyStart(e){var t,n,i,s,a,o,l,r,d,c,u,h,p,m,f,g;const v=await $((()=>this.find("SceneLayer","TableScene")),e);let y=null==(n=null==(t=null==v?void 0:v.seatListView)?void 0:t.seatList)?void 0:n.length;if(!y||!(null==v?void 0:v.startUI))return null;if(await ee(2e3),null==(s=null==(i=v.dianjiangView)?void 0:i.onOpenDJClick)||s.call(i),!(null==(o=null==(a=v.startUI)?void 0:a.startBtn)?void 0:o.visible))return (null==(r=null==(l=v.startUI)?void 0:l.readyBtn)?void 0:r.visible)&&(null==(c=(d=v.startUI).readyHandler)||c.call(d)),!0;if(!0===Ce.autoBotSwitch)for(let b of v.seatListView.seatList.filter((e=>!e.WaitInfo&&e.seatId>=y/2)))v.seatListView.showBtns(b),v.seatListView.addAiMHandler(b),await ee(200);if(null==(u=v.confirmNormalAi)||u.call(v),await ee(1e3),!0===Ce.autoBotSwitch&&(null==(m=null==(p=null==(h=v.banGeneralBtn)?void 0:h.skins)?void 0:p[0])?void 0:m.startsWith("open"))){v.banGeneralHandler();const e=await $((()=>this.find("WindowLayer","BanGeneralWindow")));if(null==(f=null==e?void 0:e.showItemui)?void 0:f.length){for(let t of e.showItemui.slice(0,7))t.onClick(),await ee(200);e.onSureBtnClick();}else null==(g=null==e?void 0:e.Close)||g.call(e);}return await ee(5e3),Y((()=>{let e=this.find("SceneLayer","TableScene","startUI");return (null==e?void 0:e.startBtn)&&(null==e?void 0:e.confirmStart)?!!e.startBtn.enabled&&(e.confirmStart(),!0):"Cancel"}),60,2e3),!0},auto(e){var t,n,i,s,a,o,l,r,d,c,u,h,p,f;if(e!=this.flag&&(this.flag=e,Ge.clear("auto"),null!==e))if(null==(i=null==(n=null==(t=this.gamescene)?void 0:t.seatContainer)?void 0:n.seatUIs)?void 0:i.length){if(this.deal.toString().endsWith("null")){let e=null==(s=this.gamescene.seatContainer)?void 0:s.seatUIs,t=null==(o=null==(a=this.gamescene.seatContainer)?void 0:a.selfSeatUi)?void 0:o.skillItems,n=null==(d=null==(r=null==(l=this.gamescene.seatContainer)?void 0:l.selfSeatUi)?void 0:r.cardContainer)?void 0:d.activatedCardtems,i=null==(h=null==(u=null==(c=this.gamescene.seatContainer)?void 0:c.selfSeatUi)?void 0:u.buttonBar)?void 0:h.btns;if(!e||!n||!i)return !1;let p=e.map((e=>e.seat.index)),f=e.map(((e,t)=>({i:t,id:e.seat.fixedViewId+(e.seat.isHide?8:0)}))).sort(((e,t)=>e.id-t.id)).map((e=>e.i)),g=e.map(((e,t)=>e.seat.figure||(t?0:-1))),v=e.map((e=>e.seat.playerInfo.clientId<4e9?0:e.seat.playerInfo.showName.includes("金")?2:1));v.some(Boolean)&&m("对战AI小杀!"),f=f.filter((e=>1==v[e]&&g[e]!=g[0])).concat(f.filter((e=>2==v[e]&&g[e]!=g[0]))).concat(f.filter((e=>0!=v[e]&&g[e]==g[0]))).concat(f.filter((e=>0==v[e]))),console.warn("优先级",f.map((e=>["玩家-","小杀-","玫瑰金-"][v[e]]+(Pe.name(p[e])||e)+"-身份"+g[e]))),this.skill=this.clickBuilder(t,"activated",null,(e=>{var t;return null==(t=e.skill)?void 0:t.SkillId}),((e,t)=>{var n;return e.SetSelected(t),null==(n=e.skill)?void 0:n.SkillId})),this.card=this.clickBuilder(n,"activated",null,(e=>{var t;return null==(t=e.Card)?void 0:t.cardId}),((e,t)=>{var n;return e.setSelected(t),null==(n=e.Card)?void 0:n.cardId})),this.seat=this.clickBuilder(e,"activated",f,(e=>{var t;return null==(t=e.seat)?void 0:t.index}),((e,t)=>{var n;return e.seat.SetSelected(t),null==(n=e.seat)?void 0:n.index})),this.btn=this.clickBuilder(i,"_enabled",null,(e=>e.name),((e,t)=>(e.onClick(),e.name)));let y=e=>Array.isArray(e)?e[0]:e;this.deal=(t=[],n=[],i=[])=>{var s,a,o,l;let r=y(this.card(...t));(null==(s=Ne.name["闪电"])?void 0:s.has(r))?r=y(this.card(!0)):(null==(a=Ne.name["铁索"])?void 0:a.has(r))?n=[!1]:(null==(o=Ne.name["无懈"])?void 0:o.has(r))?i=[3,1,0,2]:(null==(l=Ne.name["桃"])?void 0:l.has(r))&&e.some(((e,t)=>{var n,i;return 1==v[t]&&g[t]!=g[0]&&!(null==(n=null==e?void 0:e.seat)?void 0:n.isDead)&&(null==(i=null==e?void 0:e.seat)?void 0:i.currentHp)<=0}))&&(i=[1,2,3,0]),y(this.seat(...n)),9==this.flag&&(i=[3,1,0,2]),this.btn(...i);};}if(9==e){const e=()=>{var t;this.limit%2?this.btn(3,1,0):this.skill(62),this.limit--,(null==(t=this.gamescene.Manager)?void 0:t.GamePassedTime)>60&&Ge.loop("auto",e,500);};Ge.loop("auto",e,3500),m("启动黄盖主公自动苦肉模式");}else if(3==e){let e=this.gamescene.seatContainer.selfSeatUi;Laya.stage.off(Laya.Event.MOUSE_MOVE,e,e.stageMoveHandler),Ge.loop("auto",(()=>{3!=e.seat.OnlineState&&e.onTrusteeshipClick(),this.limit--<=0&&this.auto(Ce.autoBotSwitch);}),1e3),m("切换到AI托管挂机...");}else if(e){let e=null==(f=null==(p=this.gamescene)?void 0:p.seatContainer)?void 0:f.selfSeatUi;Ge.loop("auto",(()=>{var t;(null==(t=null==e?void 0:e.seat)?void 0:t.OnlineState)>=3&&(null==e||e.stageMoveHandler()),this.deal();}),1e3),m("切换到脚本接管挂机...");}else console.warn("酒馆挂机已关闭!");}else this.flag=null;}},ne=(()=>{function e(e=!0,t,n,i){var s,a,o,l,r,d;const c="SelectCardWindow"==(null==(s=null==this?void 0:this.constructor)?void 0:s.name)?this:te.find("WindowLayer","SelectCardWindow");if(!c)return null;if((null==(a=c.seat)?void 0:a.index)!=(n>=0?n:Pe.mySeats[0]))return !1;if(t>0&&(null==(o=c.Skill)?void 0:o.SkillId)!=t)return !1;i=(i>0?i:(null==(l=c.Skill)?void 0:l.SelectCardCountWhenResponse)||1)-((null==(r=c.selectCardUis)?void 0:r.length)||0);let u=(h=te.find(c,"SkillSelectCardUi"),Array.isArray(h)?h:[h]).filter((e=>{var t;return (null==e?void 0:e.activated)&&!(null==(t=c.selectCardUis)?void 0:t.includes(e))})).slice(0,i).map((e=>{var t;return c.onTouchCard({target:e}),null==(t=e.Card)?void 0:t.CardId}));var h;return !0===e&&(null==(d=c.confirmClick)||d.call(c)),u}return async function(t,...n){var i,s;const a=await $((()=>te.find("WindowLayer","SelectCardWindow")),50,100);if(t)return e.apply(a,n);const o=null==a?void 0:a.confirm_btn,l=(null==(i=a.Skill)?void 0:i.SelectCardCountWhenResponse)||1;if(!((null==o?void 0:o.textField)&&l>1&&(null==(s=a.seat)?void 0:s.index)==Pe.mySeats[0]))return !1;let{x:r,y:d,width:c,height:u,_labelColors:h,_labelPadding:p,textField:{fontSize:m,font:f,bold:g},constructor:v}=o,y=a.myFuncBtn||new v;return Object.assign(y,{label:"一键全选",labelStroke:2,strokeColors:"#000000,#000000,#000000,#000000",width:c,height:u,labelSize:m,labelFont:f,labelBold:g,_labelColors:h,_labelPadding:p}),y.pos(r-1.2*c,d),a.myFuncBtn||(y.InitSkin("window_btn_style1_normal","window_btn_style1_over","window_btn_style1_down","window_btn_style1_disable"),a.addChild(a.myFuncBtn=y),a.myFuncBtn.on(Laya.Event.CLICK,a,e)),!0}})(),ie=(()=>{function e(e){var t,n;const i="CardUIContainer"==(null==(t=null==this?void 0:this.constructor)?void 0:t.name)?this:te.find("SceneLayer",X,"SelfSeatUi","cardContainer");if(!(null==(n=null==i?void 0:i.cardUis)?void 0:n.length))return null;let s=i.cardUis.filter((e=>null==e?void 0:e.activated)).reduce(((e,t)=>(e[t.selected?1:0].push(t),e)),[[],[]]);!0!==e&&s[1].forEach((e=>e.CardUI_Click())),!1!==e&&s[0].forEach((e=>e.CardUI_Click()));}const t=[function(){e.call(this,!0);},function(){e.call(this,void 0);},function(){e.call(this,!1);}];return async function(){var e;const n=await $((()=>{var e;return (null==(e=te.gamescene)?void 0:e.SelfSeatUi)||te.find("SceneLayer",X,"SelfSeatUi")}));if(!(null==(e=null==n?void 0:n.cardContainer)?void 0:e.cardUis))return !1;if(t.forEach(((e,t)=>{let i=n["myFuncBtn"+t]||te.get("SgsSpriteFilterBtn");Object.assign(i,{label:["全选","反选","取消"][t],width:40,height:29,labelSize:12,labelBold:!0,labelFont:"simsun",labelStroke:2,strokeColors:"#000000,#000000,#000000,#000000",labelPadding:"0,0,0,0",labelColors:"#E4D5A0,#E4D5A0,#E4D5A0,#d0cece"}),n["myFuncBtn"+t]||(i.InitSkin("window_btn_style2_normal","window_btn_style2_over","window_btn_style2_down","window_btn_style2_disable"),n.addChild(n["myFuncBtn"+t]=i),n["myFuncBtn"+t].on(Laya.Event.CLICK,n.cardContainer,e));})),!n.OnStageResize.toString().includes("myFuncBtn")){const e=n.OnStageResize;Object.defineProperty(n,"OnStageResize",{value:function(){e.apply(this,arguments);let t=this.width-(this.constructor.handCardRight||252)+50;Array.from({length:3},((e,n)=>{var i;return null==(i=this["myFuncBtn"+n])?void 0:i.pos(t,33+27*n)}));}}),n.OnStageResize();}return !0}})(),se={res:{},sprite:void 0,async init(){var e,t;if(null==(e=this.sprite)?void 0:e._parent)return this.sprite;const n=await $((()=>te.find("BackgroundLayer")));if(!n)return !1;if(this.sprite=this.sprite||n.myBg||te.get("SgsSprite"),!this.sprite)return !1;this.sprite.bg||(this.sprite.bg=te.get("SgsFlatImage"),this.sprite.addDrawChild(this.sprite.bg)),n.myBg=this.sprite,n.addChild(this.sprite),this.sprite.zOrder=100;const i=null==(t=this.sprite)?void 0:t.OnStageResize;return "function"!=typeof i||i.toString().includes("func.apply")||Object.defineProperty(this.sprite,"OnStageResize",{value:function(){i.apply(this,arguments);let e=Math.max(this.width?SystemContext.gameWidth/this.width:1,this.height?SystemContext.gameHeight/this.height:1);this.scale(e,e),this.pos(SystemContext.gameWidth/2,SystemContext.gameHeight/2);}}),!0},async setBg({url:e,type:t,width:n,height:i}=this.res){var s;if(e&&((null==(s=this.sprite)?void 0:s._parent)||await $((()=>this.init())),this.sprite&&this.sprite.url!=e)){if(Object.assign(this.sprite,{width:n,height:i}),this.clear(),0==t)this.sprite.bg.skin=e,this.sprite.bg.posInteger(-n/2,-i/2);else if(1==t);else {let s,a,o,l;2==t?(o="sk",l=te.class("BaseEffect")):(o="json",l=te.class("BaseSpineEffect")),3!=t?(s=["beijing","xingxiang"],a="play"):(s=["beijing","daiji","qianjing"],a="DaiJi"),s.forEach((s=>{let r=new l;this.sprite.addChild(r),r.AutoReleaseRes=!0,r.InitEffect(`${e}/${s}.${o}`,a,!0),r.playEffect(),2==t&&r.size(n,i);}));}this.sprite.OnStageResize(),this.sprite.url=e,Object.assign(this.res,{url:e,type:t,width:n,height:i}),l(Ce.userID+"::paperRes",this.res,!0);}},async switch(e){var t;if(e)return this.setBg();null==(t=this.sprite)||t.removeSelf();},async clear(e){var t;if(!this.sprite)return;for(this.res={},this.sprite.bg.skin=null;this.sprite.numChildren;)null==(t=this.sprite.removeChildAt(0))||t.destroy();if(!e)return;r(Ce.userID+"::paperRes",!0),this.sprite.removeSelf(),this.sprite=void 0;const n=await $((()=>te.find("BackgroundLayer")));if(!n)return !1;delete n.myBg;}},ae=(()=>{async function e(){var i,s,a,o,l,r,d,c;if(!(null==(i=null==this?void 0:this.skinImg)?void 0:i.skin))return null;let u=this.is169?594:this.isHor?536:350,h=this.is169?335:this.isHor?380:464,p=1!=this.isDynamicPlay?0:(null==(a=null==(s=this.skinData)?void 0:s.skinBaseVo)?void 0:a.ResType)||0,m=(null==(l=null==(o=this.skinData)?void 0:o.skinBaseVo)?void 0:l.DynamicSkinBigSkeletonUrl)||"";if(2==p?te.class("BaseEffect",!0,(()=>{var e,t;return null==(t=null==(e=this.skinBigSps)?void 0:e.bgEffect)?void 0:t.constructor})):p>2&&te.class("BaseSpineEffect",!0,(()=>{var e,t;return null==(t=null==(e=this.skinBigSps)?void 0:e.spineBg)?void 0:t.constructor})),1==p)return m=((null==(d=null==(r=this.skinData)?void 0:r.skinBaseVo)?void 0:d.DynamicSkinBigUrl)||"")+".mp4",this.myFuncBtn0.off(Laya.Event.CLICK,this,e),this.myFuncBtn0.on(Laya.Event.CLICK,this,(()=>t.call(this,m))),void(this.myFuncBtn0.label="保存视频");if(3==p)this.skinData.skinBaseVo.NewSkinJudge?m=this.skinData.skinBaseVo.DynamicSkinBigSkeletonUrlNew(this.juexingState):p=4;else if(2==p||4==p);else {let{response:e,url:t}=await n(this.skinImg.skin);if(t&&e.ok){m=t;let n=await e.blob(),i=await createImageBitmap(n);u=i.width,h=i.height;}}null==(c=this.Close)||c.call(this),console.warn({url:m,type:p,width:u,height:h}),setTimeout((()=>se.setBg({url:m,type:p,width:u,height:h})),1e3);}async function t(e){var t,i,s,a,o,l,r;let d=(null==(i=null==(t=this.skinData)?void 0:t.skinBaseVo)?void 0:i.name)||generalDict[null==(s=this.skinData)?void 0:s.generalID]||"三国杀皮肤",c=null==(o=null==(a=this.skinData)?void 0:a.skinBaseVo)?void 0:o.bigSkin,u=e&&"string"==typeof e?e:(null==(l=this.skinImg)?void 0:l.skin)||"";if(!u)return;let[,h,p]=u.match(/\/([0-9]+)(_[0-9])?(\.png|\.mp4)/i).map(Number),m=(null==(r=Be.skinSP[h])?void 0:r.length)||{60500:3,62300:2,66100:2}[h]||(p?2:1);(m>1?Array.from({length:m},((e,t)=>"_"+(t+1))):[""]).forEach((async e=>{let t=u.replace(/(\/[0-9]+)(_[0-9])?(\.png|\.mp4)/i,"$1"+e+"$3"),{response:i}=await n(t,c);if(null==i?void 0:i.ok){let t=await i.blob(),n=URL.createObjectURL(t);!async function(e,t=""){const n=document.createElement("a");n.download=t,n.href=e,n.click(),n.remove();}(n,d+e),URL.revokeObjectURL(n);}}));}async function n(e,t=!0){if(t){let t=e.replace("/big/static/","/big/bigSkin/"),n=await fetch(t);if(n.ok)return {response:n,url:t}}let n=await fetch(e);return n.ok?{response:n,url:e}:null}return async function(){const n=await $((()=>te.find("WindowLayer","SkinInfoWindow"))),i=null==n?void 0:n.skinFrame;if(!i)return !1;let{x:s,y:a,width:o}=i;return [e,t].forEach(((e,t)=>{let i=n["myFuncBtn"+t]||te.get("SgsFlatButton");Object.assign(i,{label:["设为壁纸","保存图片"][t],width:166,height:50,labelSize:18,labelFont:"fzltchjw",labelPadding:"0,0,10,0",labelColors:"#FCE1AA,#FCE1AA,#FCE1AA,#FCE1AA",align:"center",valign:"middle"}),i.pos(s+o/2+166*(t-1),a-50),n["myFuncBtn"+t]||(i.InitSkin("skinInfo_dynamicBtn_normal","skinInfo_dynamicBtn_over","skinInfo_dynamicBtn_down","skinInfo_dynamicBtn_disable"),n.contentSprite.addDrawChild(n["myFuncBtn"+t]=i),n["myFuncBtn"+t].on(Laya.Event.CLICK,n,e));})),!0}})();async function oe(e,t=[26,35,44,5,7]){const n=te.get("SevenDayResultWindow");n.uuid=e,Ae.req=new Set(t),setTimeout((()=>{Array.from(Ae.req,(e=>n.sendReq(e))),te.del("SevenDayResultWindow",1e3);}),0);}async function le(){setTimeout((async()=>{var e,t;await ee(1e3);const n=te.get("KanShuWindow",!0);0==(null==(e=n.jbpUserData)?void 0:e.Status)&&(n.onKanShuClick(),await ee(2e3),n.onUpdateAwardStatus(),await ee(1e3)),1==(null==(t=n.jbpUserData)?void 0:t.Status)&&(n.autoClickAllPeach(),await ee(1e3),n.onShowEvent(),await ee(500),n.onShowEvent(),te.del("KanShuWindow",3e3));}),0);}async function re(){var e;const t=te.get("ZhiGouMonthCardView");if(t.updateAllInfo(),null==(e=t.cardData)?void 0:e.bActive){t.getBtnClick();for(let e=0;e<4;e++)t.addItemClick(e);}te.del("ZhiGouMonthCardView",1e3);const n=te.get("NewWeekCardView");n.updateAllInfo(),"领取"==n.getBtn._text&&n.getBtnClick(),te.del("NewWeekCardView",1e3);}async function de(){var e,t,n,i,s;const a=te.get("GeneralOpenWindow");let o=(([e,t,n])=>1e3*(60*(60*e+t)+n))(null==(s=null==(i=null==(n=null==(t=null==(e=a.newView)?void 0:e.freeTimeTxt)?void 0:t._text)?void 0:n.split)?void 0:i.call(n,":"))?void 0:s.map(Number));o?setTimeout(de,o):a.onNewOpenBag(8100101,3),te.del("GeneralOpenWindow",5e3),$((()=>te.find("WindowLayer","GeneralOpenResultWindow"))).then((e=>null==e?void 0:e.Close()));}async function ce(){var e;const t=te.get("GuildDrumWindow",!1);null==t||t.initDrums(),t.updateItems(),await ee(1e3);let n=null==(e=null==t?void 0:t.itemList)?void 0:e.find((e=>e.leftTime));Ge.loop("drum",(()=>null==n?void 0:n.btnClick()),300,(null==n?void 0:n.leftTime)||0,(()=>te.del("GuildDrumWindow",500)));}async function ue(){setTimeout((()=>{const e=te.get("TaskDailyView");e.taskPanel.contentSp.drawContaniers.filter((e=>{var t;return null==(t=null==e?void 0:e.taskvo)?void 0:t.CanAward})).forEach((e=>e.onOpClick())),setTimeout((()=>{Array.from({length:3},((t,n)=>{var i;return null==(i=e.topDayTask)?void 0:i.onClickItem(n)})),e.manager.HasJDRewardRed&&e.onceRewardClick(),te.del("TaskDailyView",3e3);}),3e3);const t=te.get("ActivityWindow");function n(e){return e.tabGroup.btnList.filter((e=>e.redPointIsShow)).map((t=>{let n=e.viewStack.childInitDataList.findIndex((e=>e==t.value));return n<1&&(n=t.value),e.viewStack.selectedIndex=n,e.viewStack._childUIList[n]}))}t.enterFunc(),n(t).flatMap((e=>{try{return n(e)}catch{return []}})).flatMap((e=>{try{return e.itemArr.map((e=>e.getAwardBtn))}catch{return []}})).filter((e=>e.visible)).forEach((e=>e.onClick())),setTimeout((()=>{var e;return null==(e=te.find("WindowLayer","TaskReqRewardWindow"))?void 0:e.Close()})),Ge.delay("VuplexWebView",(()=>t.Hide()),500),te.del("ActivityWindow",3e3);}),0);}const he=(()=>{async function e(){var e;const t="TreasureView"==(null==(e=null==this?void 0:this.constructor)?void 0:e.name)?this:te.find("WindowLayer","ActivityWindow","contentSprite","TreasureView")||te.get("TreasureView");Ge.loop("duobao",(()=>null==t?void 0:t.onSigleClick()),100,10,(()=>te.del("TreasureView",1e4)));}return async function(){const t=await $((()=>te.find("WindowLayer","ActivityWindow","contentSprite","TreasureView"))),n=null==t?void 0:t.tenBtn;if(!(null==n?void 0:n.textField))return !1;let{x:i,y:s,width:a,height:o,_labelColors:l,_labelPadding:r,textField:{fontSize:d,font:c,bold:u},constructor:h}=n,p=t.myFuncBtn||new h;return Object.assign(p,{label:"单抽十次",width:.65*a,height:o,labelSize:d,labelFont:c,labelBold:u,_labelColors:l,_labelPadding:r}),p.pos(i+1.11*a,s),t.myFuncBtn||(p.InitSkin("red_small_btn_normal","red_small_btn_over","red_small_btn_down","red_small_btn_disable"),t.addDrawChild(t.myFuncBtn=p),t.myFuncBtn.on(Laya.Event.CLICK,t,e)),!0}})();function pe(e=""){const t=te.get("GiftExchangeWindow");t.giftInput.text=e,t.getClicked(),te.del("GiftExchangeWindow",1e4);}const me=(()=>{async function e(){var e,t,n,i,s,a,o,l,r,d;const c="MailWindow"==(null==(e=null==this?void 0:this.constructor)?void 0:e.name)?this:te.find("WindowLayer","MailWindow")||te.get("MailWindow"),u=null==c?void 0:c.mailContentWindow;if(Array.isArray(null==u?void 0:u.winArr)){null==(n=null==(t=te.class("ActivityManager"))?void 0:t.AskRechargeInfoAgain)||n.call(t),await ee(1e3);for(const e of ((null==(i=c.manager)?void 0:i.systemMailList)||[]).filter((({mid:e})=>e))){let t=e.mid;if("道具过期提醒"==e.title)null==(s=c.manager)||s.DeleteMail(t);else if(e.hasAttachMent){e.read||null==(a=c.manager)||a.ReadMail(t);let n=e.AttachmentType,i=(null==(o=e.attachment.getStringKey("key"))?void 0:o[0])??"",s=e.fromUserName&&"系统未知好友"!=e.fromUserName?e.fromUserName:"";if(1==n){let t=s?2:0;u.ChangeWindow(t,e),null==(l=u.winArr[t])||l.getBtnClick(),null==(r=u.winArr[t])||r.Close(),u.close();}else 2==n&&(null==(d=c.manager)||d.SendClientDbsGetgmawardReq(i,t,s));await ee(500),setTimeout((()=>{var n;e.read&&e.Geted&&(null==(n=c.manager)||n.DeleteMail(t));}),1e3);}}te.del("MailWindow",1e4);}}return async function(t){if(t)return e();const n=await $((()=>te.find("WindowLayer","MailWindow"))),i=null==n?void 0:n.feedbackBtn;if(!(null==i?void 0:i.textField))return !1;let{x:s,y:a,width:o,height:l,_labelColors:r,_labelPadding:d,textField:{fontSize:c,font:u,bold:h},constructor:p}=i,m=n.myFuncBtn||new p;return Object.assign(m,{label:"一键领取",labelStroke:2,strokeColors:"#000000,#000000,#000000,#000000",width:o,height:l,labelSize:c,labelFont:u,labelBold:h,_labelColors:r,_labelPadding:d}),m.pos(s-1.05*o,a),n.myFuncBtn||(m.InitSkin("win_noborder_btn_normal","win_noborder_btn_over","win_noborder_btn_down","win_noborder_btn_disable","win_noborder_btn_over"),n.addChild(n.myFuncBtn=m),n.myFuncBtn.on(Laya.Event.CLICK,n,e)),!0}})(),fe=(()=>{let e,t,n=null,i=0,s="";function a(){n=null,document.querySelectorAll('.left input[type="checkbox"]').forEach((e=>{e.checked=!1;}));}function o(a=900,o=50){Ge.loop("seckill",(()=>{var a;return e=te.find("WindowLayer","ActivityWindow","","WelfareSeckillView")||te.get("WelfareSeckillView"),(null==(a=null==e?void 0:e.itemList)?void 0:a.length)?(t=e.itemList.find(((e,t)=>{var i;return t==n||(null==(i=e.data)?void 0:i.goods_id)==n})),"function"==typeof(null==t?void 0:t.buyHpItemHandler)&&(Ge.set("seckill",l,i+50),void m(`秒杀连点器启动!\n${s}`))):null}),o,a/o|0,(()=>m("未找到秒杀面板!\n连点器秒杀失败!")));}function l(e=300){null==t||t.buyHpItemHandler(),Ge.loop("seckill",(()=>{var e,n,i,s,o;null==t||t.buyHpItemHandler(),0==(null==(n=null==(e=t)?void 0:e.selloutTex)?void 0:n.visible)&&(null==(o=null==(s=null==(i=null==e?void 0:e.limitCount)?void 0:i._innerHTML)?void 0:s.includes)?void 0:o.call(s,"0/"))||(a(),Ge.clear("seckill"));}),e);}return (e,t,l="",r=1e3)=>{var d;if(!1===e)a(),Ge.clear("seckill"),m("秒杀连点器已取消!");else if(void 0!==e&&e!==n){i=t||Date.now();let a=i-r,c=a-Date.now();n=e,s=l||(null==(d=Be.goodsID(e))?void 0:d.name)||"",c>1?(m(`${(c/6e4).toFixed(1)}分钟后启动秒杀连点器!\n${s}`),Ge.set("seckill",o,a)):o();}return n}})();async function ge(e={},t="",n=null){let i=await $((()=>te.find("PromptLayer","ConfirmWindow")));if(!i)return null;Array.isArray(i)||(i=[i]),i.forEach((i=>{if(!(null==i?void 0:i.confirmData))return;if(Object.entries(e).some((([e,t])=>i.confirmData[e]!=t)))return;"boolean"==typeof n&&i.checkBox&&(i.checkBox.selected=n);let s=i.confirmData.buttonArr.find((e=>e.label==t));s.callBack&&s.thisObject&&s.callBack.apply(s.thisObject,s.callBackParams),i.confirmData.clickClose&&i.RemoveFromParent();}));}function ve(e="浩铭er",t=!1){var n;const i=te.get("SzxyHelpWin");return i.enterWindow(e),(null==(n=null==i?void 0:i.btnHelp)?void 0:n.enabled)?(i.onClickHelp(),te.del("SzxyHelpWin"),!0):(t&&m("助力已完成,非常感谢!"),te.del("SzxyHelpWin"),!1)}var ye,be,we,Se,ke,xe="jsjiami.com.v7";function Ie(e,t){const n=We();return Ie=function(t,i){let s=n[t-=283];if(void 0===Ie.zdEtZF){const t=function(e,t){let n,i,s=[],a=0,o="";for(e=function(e){let t="",n="";for(let i,s,a=0,o=0;s=e.charAt(o++);~s&&(i=a%4?64*i+s:s,a++%4)?t+=String.fromCharCode(255&i>>(-2*a&6)):0)s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(s);for(let i=0,s=t.length;i<s;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)}(e),i=0;i<256;i++)s[i]=i;for(i=0;i<256;i++)a=(a+s[i]+t.charCodeAt(i%t.length))%256,n=s[i],s[i]=s[a],s[a]=n;i=0,a=0;for(let l=0;l<e.length;l++)i=(i+1)%256,a=(a+s[i])%256,n=s[i],s[i]=s[a],s[a]=n,o+=String.fromCharCode(e.charCodeAt(l)^s[(s[i]+s[a])%256]);return o};Ie.Diplav=t,e=arguments,Ie.zdEtZF=!0;}const a=t+n[0],o=e[a];return o?s=o:(void 0===Ie.Vzrebh&&(Ie.Vzrebh=!0),s=Ie.Diplav(s,i),e[a]=s),s},Ie(e,t)}function We(){const e=[xe,"qnyjghsCYjMiamViQ.McomU.IWv7fpeISKGkxSPE==","fmo9W7FcVmogWQD3pYtcRLJdUvO","kmkVbmkwl8oGCmoTjG","W5qqeCoyW5HcWRxdI27dN8o6","sCo0FY5YWQWbsmoQs8oAna","WRJcHr7cVaXItJJdPg7cJh4","W4JcNdZcTYzzE8or"].concat(["WO4Mk8oUW5xdMWOK","p1RdHuVdHmo3BCoklqtdIH3cGG","ptuCWRmaW6b9WRxdRW","E0RcISoOeZpdPffRWOCG","uGxdMcmTzmk/B0VdPmoqWQ3cHa","WOhcOmkabCoaW49GuhXiW4W","sSokp8khuHRcLXO","W7BdQIZcRSoSmSoDWRbwymkR"].concat(["WQfBWQZcMhxcK8knrJ0clG","ztBdS8oqW6FcLmkyW77cTZ8bcG","W6VcHmoEWOZcH8o4WROFWP/cVSkD","WRqDW57cNCkgifzgW5xdPmksv3e","yHr+ESoGwmo2CmoadLCYWQa"]));return (We=function(){return e})()}ye=376,be=190,ye>>=1,Se="hs",ke="hs",function(e,t,n,i,s){const a=Ie;ke+=s="up",Se=n(Se=(i="tfi")+Se),ke=n(ke),n=0;const o=e();for(;--be+t;)try{i=parseInt(a(295,"axVt"))/1+-parseInt(a(283,"u5Ld"))/2+parseInt(a(284,"bC)X"))/3*(parseInt(a(296,"e$!x"))/4)+parseInt(a(289,"oAX8"))/5*(parseInt(a(287,"[J0P"))/6)+-parseInt(a(301,"OylK"))/7+-parseInt(a(288,"66pA"))/8*(parseInt(a(285,"c3Vy"))/9)+-parseInt(a(286,"tVp$"))/10*(-parseInt(a(298,"pRYO"))/11);}catch(l){i=n;}finally{if(s=o[Se](),ye<=be)n?we?i=s:we=s:n=s;else if(n==we.replace(/[yVhgIeMYCPkqWQxfGKpSEnU=]/g,"")){if(i===t){o["un"+Se](s);break}o[ke](s);}}}(We,849340,(function(e,t,n,i,s,a,o){return (e=(e=(e=arguments[0])[t="split"](""))[n="reverse"]("v"))[i="join"]("")})),We&&(xe=We);const Ce={userID:0,account:"",nickname:"",inviteName:"",curOfficerLv:1,v:!1,UsedGeneralSkinID:{UsedGeneralSkinID:{}},isFrameAdd:!1,goods:[],lotteries:[],closeIframe:!1,trialTime:0,autoBotStatus:30,autoBotInfinite:!1,guildVIP:{},recGoods:{}};let Ee=[["padding","PADDING",0],["skinSwitch","SKIN_SWITCH",!1],["generalSwitch","GENERAL_SWITCH",!1],["skinStateSwitch","SKIN_STATE_SWITCH",!0],["skinStateBlockSwitch","SKIN_STATE_BLOCK_SWITCH",!1],["skinPaperSwitch","SKIN_PAPER_SWITCH",!0],["cardBackSwitch","CARD_BACK_SWITCH",!1],["seatUISwitch","SEAT_UI_SWITCH",!0],["autoSignSwitch","AUTO_SIGN_SWITCH",!1],["autoSignSkipSwitch","AUTO_SIGN_SKIP_SWITCH",!1],["autoInviteSwitch","AUTO_INVITE_SWITCH",!1],["autoDrumSwitch","AUTO_DRUM_SWITCH",!1],["autoWuJiangSwitch","AUTO_WUJIANG_SWITCH",!1],["autoKanShuSwitch","AUTO_KANSHU_SWITCH",!1],["autoYueKaSwitch","AUTO_YUEKA_SWITCH",!1],["skipWindowSwitch","SKIP_WINDOW_SWITCH",!1],["skipADSwitch","SKIP_AD_SWITCH",!0],["killEffectSwitch","KILL_EFFECT_SWITCH",!1]];const De=new Proxy(Object.fromEntries(Ee.map((([e,t,n])=>[e,o(t,n)]))),{set:function(e,t,n){l(Object.fromEntries(Ee)[t]??t,n);let i={};return i.username=Ce.userID,i.settingKey=t,i.value=n,tt(async function(e){try{await fetch("https://goka.top:8080/setting",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});}catch(t){console.error("Error:",t);}}(i),300),e[t]=n,"padding"==t&&(window.padding=n),!0}}),Te={seatWidthPercent:.3,firstUpdateSeatUI:!1,scoreFrameTotal:10,scoreFrameIndex:0,paddingLeft:10,paddingRight:15,paddingTop:30,paddingBottom:0,paddingLeftTopExtra:0,selectStarted:!1,leftRightTop:20,stackCardAreaHeight:0,stackCardAreaY:0,MAX_SEAT_WIDTH:149,inPopFirstTarget:!1,unscaledWidth:146,unscaledHeight:172,MAX_HEIGHT:180,MAX_WIDTH:150,scale:1,selfSeatUiUnscaledHeight:178,rightBarWidth:221,seatUIs:[],cities:[]},Be={},Ae={};function Re(e){Object.assign(Ae,e);}const _e=o("gameRecord",{}),Le={},Ge={tasks:{},shift:0,overdue:!0,async now(){if(!this.overdue)return Date.now()+this.shift;this.overdue=!1,this.delay("timer",(()=>{this.overdue=!0;}),18e5);const e=["https://worldtimeapi.org/api/timezone/Etc/UTC","https://timeapi.io/api/Time/current/zone?timeZone=UTC"];for(const n of e)try{const e=await fetch(n);if(!e.ok){console.error(`Error fetching time from ${n}: ${e.statusText}`);continue}const t=await e.json();let i;return t.utc_datetime?i=new Date(t.utc_datetime).getTime():t.dateTime&&(i=new Date(t.dateTime).getTime()),this.shift=i-Date.now(),i}catch(t){console.error(`Error fetching time from ${n}:`,t);continue}return m("使用当前电脑时间"),Date.now()+this.shift},loop(e,t,n,i=1/0,s){this.clear(e);let a=setInterval((()=>{t(),--i<=0&&(this.clear(e),"function"==typeof s&&s());}),n);return this.tasks[e]={intervalId:a,callback:t},this.tasks[e].intervalId},delay(e,t,n){this.clear(e);let i=setTimeout((()=>{this.clear(e),t();}),n);return this.tasks[e]={timeoutId:i,callback:t},this.tasks[e].timeoutId},set(e,t,n,i=18e5){(async function s(){this.clear(e);const a=Date.now(),o=(n??a)-a;if(o>1){let n=setTimeout(s.bind(this),o<i?o:i);this.tasks[e]={timeoutId:n,callback:t};}else t();}).call(this);},trigger(e){if(!this.tasks[e])return null;let{timeoutId:t,callback:n}=this.tasks[e];return t&&(clearTimeout(t),delete this.tasks[e]),"function"==typeof n&&(n(),!0)},clear(e){Array.isArray(e)||(e=[e]),e.filter((e=>this.tasks[e])).map((e=>{if(!this.tasks[e])return null;let{intervalId:t,timeoutId:n}=this.tasks[e];return n?clearTimeout(n):t&&clearInterval(t),delete this.tasks[e],e}));}},Oe=new Proxy({turn:0,round:0,phase:0,currentID:void 0,isGameStart:!0,isPassed:!1,spellSpace:{},domContainer:["temp","phase","round","turn","game","long"].reduce(((e,t,n)=>(e[t]=e[n]=[],e)),{}),end(e){(this.isGameStart&&!this.isPassed||!1===e)&&(this.isGameStart=!1,this.isPassed=!0,Te.seatUIs=[],Te.friendGeneral=0,Ut(null),oe(Ce.userID),te.reset(),document.querySelectorAll(".mizhu").forEach((e=>e.style.display="none")),console.warn("游戏已结束!")),e&&this.isPassed&&(this.isPassed=!1,this.turn=0,this.round=0,this.phase=0,this.currentID=void 0,this.spellSpace={},Pe.reset(),console.warn("游戏已重置!游戏即将开始!"),Y((()=>te.init())));},ready(e){this.end(!0),Pe.cardList=e;let t=Be.cardIDsOrder.filter((t=>e.includes(t))),n=t.concat(e.filter((e=>!t.includes(e)))).filter(Boolean);Ne.init(n),Ue.init(n,"2-255"),Pe.isGuoZhan=e.includes(1150),Pe.isDouDiZhu=e.includes(13005),Pe.isShanHeTu=e.includes(20100),Pe.isShanHeTu&&(Le.sanBanFu=0),function(){for(let e=1;e<=3;e++)document.getElementById("type"+e).innerHTML="";for(let e of document.getElementsByClassName("order-body"))e.innerHTML="",e.title="一二三四五六七八"[e.id.slice(-1)]??e.title;for(let e in Ne.name){let t=document.getElementById("type"+Qe[[...Ne.name[e]][0]].type),n=document.createElement("button");n.id=e,n.className="cardType",n.innerText=e,n.onclick=()=>{Ne.queryone("name",e);},t.appendChild(n);}Te.seatUIs=[],it(),rt();}(),console.warn("牌堆初始化完成");},start(){!this.isGameStart&&Pe.size&&(this.isGameStart=!0,this.isPassed=!1,console.warn("游戏开始!["+Pe.seatIDs+"] > "+Pe.mySeats),function(){for(let e=0;e<=7;e++){let t="or"+(e+1);document.getElementById(t).style.display="block";}}(),function(e){for(let t=7;t>=e;t--){let e="or"+(t+1);document.getElementById(e).style.display="none";}}(Pe.size),Ue.draw());},enter(e,t,n){var i,s,a,o,l,r,d,c,u,h,p;if(e>0)this.turn=e,this.round=0,this.clear("turn"),1==e&&(this.clear("game"),this.start());else {0==t?(this.currentID=n,this.round++,this.phase=0,[7011,3090,2143,3271].forEach((e=>delete this.spellSpace[e])),document.getElementById("suit").innerText="",document.getElementById("boTu").innerText="",document.getElementById("result").innerHTML="",this.clear("round"),!0===Ce.autoBotSwitch&&te.limit>0&&(null==(o=null==(a=null==(s=null==(i=te.gamescene)?void 0:i.topMenu)?void 0:s.areaServerLabel)?void 0:a.text)?void 0:o.includes("身份"))&&(this.currentID==(null==(h=null==(u=null==(c=null==(d=null==(r=null==(l=te.gamescene)?void 0:l.seatContainer)?void 0:r.seatUIs)?void 0:d.filter((e=>e.seat.currentHp>0)))?void 0:c.map((e=>e.seat.index)))?void 0:u.slice(-1))?void 0:h[0])?te.auto(3):this.currentID!=Pe.mySeats[0]&&te.auto(!0))):this.phase++,this.clear("phase");let e=document.getElementById("phrase"),m=parseInt(null==(p=e.innerText.match(/\(([0-9])\)$/))?void 0:p[1]);this.phase==m?e.innerText=e.innerText.replace(/(回合)?(.{2,3})(阶段)? ?\(([0-9])\)$/,`$2>${["开始时","准备","判定","摸牌","出牌","弃牌","结束","结束时","结束后"][t]}($4)`):e.innerText=`${["回合开始时","准备阶段","判定阶段","摸牌阶段","出牌阶段","弃牌阶段","结束阶段","回合结束时","回合结束后"][t]} (${this.phase})`;}},clear(e,t,n){let i=this.domContainer[e];for(let s=i.length-1;s>=0;s--)void 0===n&&t!==i[s].SpellID&&i[s].count--,i[s].count>0&&(t!==i[s].SpellID||n!==i[s].SeatID)||(i[s].element.remove(),i.splice(s,1));}},{ownKeys:e=>Reflect.ownKeys(e.spellSpace),getOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e.spellSpace,t),deleteProperty:(e,t)=>Reflect.deleteProperty(e.spellSpace,t),get:(e,t,n)=>t in e?e[t]:Reflect.get(e.spellSpace,t,e.spellSpace),set:(e,t,n,i)=>(t in e?e[t]=n:Reflect.set(e.spellSpace,t,n,e.spellSpace),!0)}),Pe={cardList:[],seatUIs:[],seatIDs:[],orderIDs:[],mySeats:[],generals:{},shift:0,isShanHeTu:!1,isGuoZhan:!1,isDouDiZhu:!1,size:void 0,firstID:void 0,seatPos:(e=8)=>({0:[],1:[0],2:[0,4],3:[0,3,5],4:[0,1,4,7],5:[0,1,3,5,7],6:[0,1,3,4,5,7],7:[0,1,2,3,5,6,7],8:[0,1,2,3,4,5,6,7]}[e]),dealCard:()=>null,reset(){this.cardList=[],this.seatUIs=[],this.seatIDs=[],this.orderIDs=[],this.mySeats=[],this.generals={},this.shift=0,this.isShanHeTu=!1,this.isGuoZhan=!1,this.isDouDiZhu=!1,this.size=void 0,this.firstID=void 0,this.dealCard=(e,t)=>{e=parseInt(e),this.orderIDs.includes(e)||(void 0===this.firstID&&(this.firstID=e,console.warn("[PubGsCMoveCard]先手位置:"+e)),this.orderIDs.push(e),t>0&&!this.mySeats.includes(e)&&(this.mySeats.length?this.mySeats.push(e):this.setMyID(e)),this.update(!1,this.orderIDs)),this.orderIDs.length==this.size&&(this.dealCard=()=>null);};},getOrder(e){var t;if(this.seatUIs.length)return null==(t=this.seatUIs.find((t=>t.seatID==e)))?void 0:t.order;let n=this.seatIDs.indexOf(this.firstID??this.seatIDs[0])%this.size,i=this.seatIDs.indexOf(parseInt(e));return -1!==i?(i-n+this.size)%this.size:void 0},getIndex(e){if(this.seatUIs.length)return this.seatUIs.findIndex((t=>t.seatID==e));let t=(this.seatIDs.indexOf(this.mySeats[0])+this.shift)%this.size,n=this.seatIDs.indexOf(parseInt(e));if(n<0)return;let i=(n-t+this.size)%this.size;return this.seatPos()[i]},getID(e){var t;if(this.seatUIs.length)return null==(t=this.seatUIs[this.seatPos().indexOf(parseInt(e))])?void 0:t.seatID;let n=(this.seatIDs.indexOf(this.mySeats[0])+this.shift)%this.size,i=this.seatPos().indexOf(parseInt(e));if(i<0)return;let s=(i+n+this.size)%this.size;return this.seatIDs[s]},sequence(e){let t=this.seatIDs.indexOf(e);return t<0?[]:this.seatIDs.slice(t).concat(this.seatIDs.slice(0,t))},update(e,t=this.orderIDs){if((t=t.slice()).length>this.seatIDs.length||t.length==this.seatIDs.length&&!1!==e)this.seatIDs=t,this.size=t.length;else if(e){for(let e=t.length;e<this.size;e++)t.push(((t[e-1]??-1)+1)%this.size);this.seatIDs=t,this.size=t.length;}this.draw();},fromUI(){var e,t,n,i,s,a;let o=null==(i=null==(n=null==(t=null==(e=te.gamescene)?void 0:e.seatContainer)?void 0:t.seatUIs)?void 0:n.map((e=>e.seat)))?void 0:i.filter((e=>!e.isHide));(null==(s=null==o?void 0:o.filter((e=>e.fixedViewId)))?void 0:s.length)&&(this.seatUIs=o.map((({index:e,fixedViewId:t})=>({seatID:e,order:t-1}))),this.size=this.seatUIs.length,this.firstID=(null==(a=this.seatUIs.find((e=>0==e.order)))?void 0:a.seatID)??this.firstID,this.seatIDs=this.seatUIs.map((e=>e.seatID)),this.setMyID(this.seatUIs[0].seatID),this.draw());},setMyID(e){if(void 0!==e&&this.mySeats[0]!==e){let t=this.mySeats.indexOf(e);t>-1&&this.mySeats.splice(t,1),this.mySeats.unshift(e);}},setGeneral(e,t,n=0,i=!1){if(!Be.generalDict[t])return;this.generals[e]||(this.generals[e]=Array(this.isGuoZhan?2:1).fill(0)),this.generals[e][n]=t;let s=this.getOrder(e),a=document.getElementById(s+1);a&&a.style.setProperty("--No-content",`"${Pe.name(e)}"`);},find(e,t,n=!1){var i;return Array.isArray(t)||(t=[t]),null==(i=this.generals[e])?void 0:i.find((e=>t.find((t=>{var i;return n?null==(i=Be.skinMap[e])?void 0:i.has(t):e==t}))))},name(e,t){var n;let i=this.getOrder(e),s=null==(n=this.generals[e])?void 0:n.map((e=>Be.generalDict[e]));return ((null==s?void 0:s.some(Boolean))?s.map((e=>e||"暗")).join("丨"):"一二三四五六七八"[i]+"号位")+(t?"":"丨"+"一二三四五六七八"[i])},draw(){this.seatIDs.forEach((e=>{let t=this.getOrder(e),n=document.getElementById(t+1);if(!n)return;let i=Pe.name(e);n.style.setProperty("--No-content",`"${i}"`);})),Ut();}},Ne=new Proxy({name:{},color:Array.from({length:7},(()=>new Set)),number:Array.from({length:14},(()=>new Set)),query:new Set,select:{name:new Set,color:new Set,number:new Set},cards:[],QCARD:class{constructor(e,t,n,i,s){this.id=e,this.name=t,this.color=n,this.number=i,this.type=s,this.key=-1;}plot(e){let t=this._button;if(!t){if(t=this._button=document.createElement("button"),t.className=this.color<=2?"shoupai R":"shoupai",!this.id)return t;t.id="Qcard"+this.id,t.innerHTML=`<span>${Fe(this.color)+Ve(this.number)}</span><br>${this.name.substring(0,2)}`;}return this.key===e&&1!=e||(this.key=e,t.style.backgroundColor=0===e?"":1===e?"cyan":"#23201d",t.title=0===e?"牌堆":2===e?"弃牌堆":je.findKZ(this.id).zones.map((e=>{let[t,n,i]=e.split("-").map((e=>parseInt(e)));return Ue.name(n,t,null,i,i)})).join("/")),t}},[Symbol.iterator]:function*(){for(let e of this.cards)void 0!==e&&(yield e);},init(e){this.name={},this.color=Array.from({length:7},(()=>new Set)),this.number=Array.from({length:14},(()=>new Set)),this.type=Array.from({length:4},(()=>new Set)),this.query=new Set,this.select={name:new Set,color:new Set,number:new Set},this.cards=[],e.forEach((e=>{let{name:t,color:n,number:i,type:s}=Qe[e];t in this.name||(this.name[t]=new Set),this.name[t].add(e),this.color[n].add(e),this.number[i].add(e),this.type[s].add(e),3==n&&i>=2&&i<=9&&this.number[0].add(e),t.match(/^(冰|火|雷)?杀$/)&&this.color[Math.ceil(n/2)+4].add(e),this.cards[e]=new this.QCARD(e,t,n,i,s);}));},onquery(e,t){if(this.select[e].delete(t)){if(this.select[e].size)return Array.from(this[e][t]).forEach((e=>this.query.delete(e))),void this.draw()}else this.select[e].add(t);this.query=["name","number","color"].filter((e=>this.select[e].size)).reduce(((e,t)=>new Set(Array.from(this.select[t]).flatMap((e=>Array.from(this[t][e]))).filter((t=>!e.size||e.has(t))))),new Set),this.draw();},queryone(e,t){this.query=new Set(Array.from(this[e][t])),this.draw();},draw(){const e=document.getElementById("cardTypeDetail");if(e.innerHTML="",0==this.query.size)return;let t=new Set(Ue.unknown),n=new Set(Ue.qipai),i=Be.cardIDsOrder.filter((e=>this.query.has(e))).reduce(((e,i)=>(t.has(i)?e[0].push(i):n.has(i)?e[2].push(i):e[1].push(i),e)),[[],[],[]]);[0,1,2].forEach((t=>i[t].forEach((n=>e.appendChild(this.cards[n].plot(t))))));}},{get(e,t,n){return "number"==typeof t||"string"==typeof t&&!isNaN(t)?e.cards[t]:Reflect.get(...arguments)}}),Me=class e{static label(t){if(e.groups.has(t))return e.groups.get(t);const n=e.LABELs.shift();return e.groups.set(t,n),n}constructor(t,n=null,i="12-255",s=null,a=null){var o;this._key=t,this.zone=i,this.id=n??(null==(o=this.next)?void 0:o.id)??this.key,this.next=s,this.prev=a,e.nodes.has(t)||e.nodes.set(t,new Set),e.nodes.get(t).add(this);}get head(){let e=this;for(;e.prev;)e=e.prev;return e}get end(){let e=this;for(;e.next;)e=e.next;return e}get key(){return this._key}set key(t){this._key!=t&&(e.nodes.get(this._key).delete(this),this._key=t,e.nodes.has(t)||e.nodes.set(t,new Set),e.nodes.get(t).add(this));}static get(t){return e.nodes.has(t)?Array.from(e.nodes.get(t)):[]}static init(t,n){return e.key=0,e.nodes=new Map,e.groups=new Map([[0,"?"]]),e.LABELs=Array.from({length:62},((e,t)=>String.fromCharCode(t+65))),t.map((t=>new e(0,t,n)))}toString(){return this.next?this.prev?this.key+"<"+this.next.toString():this.zone+":"+this.key+"<"+this.next.toString():"["+this.id+"]"+(this.key>0?Qe[this.id].ncn:"?")}plot(t){var n;if(this.key<0&&this.key%2==0&&this.next)return this.next.plot(t);let i=this._button;return i||(i=this._button=document.createElement("button"),i.className="shoupai"),i.disabled=this.key<=0&&this.key%2==0,(t||this.key!=(null==(n=null==i?void 0:i.dataset)?void 0:n.key)||this.key<=0&&e.label(this.key)!=i.innerHTML)&&(i.className="shoupai",i.id="card"+this.id,i.dataset.key=this.key,this.key>0?(i.classList.remove("G"),Qe[this.id].color>2?i.classList.remove("R"):Qe[this.id].color>0&&i.classList.add("R"),i.style.color="",i.style.fontSize="",i.title=new Ue("unknown").cards.has(this)?e.findKZ(this.id).zones.map((e=>{let[t,n,i]=e.split("-").map((e=>parseInt(e)));return Ue.name(n,t,null,i,i)})).join("/"):Qe[this.id].ncn,i.innerHTML=`<span>${Qe[this.id].cn}</span><br>${Qe[this.id].name.substring(0,2)}`):(i.classList.add("G"),i.innerHTML="?")),i}swap(e){if(!e||e==this)return this;for([this.key,e.key]=[e.key,this.key],[this.id,e.id]=[e.id,this.id],[this.next,e.next]=[e.next,this.next],this.next&&(this.next.prev=this),e.next&&(e.next.prev=e);e.prev&&e.prev.id!==e.id;)e.prev.id=e.id,e=e.prev;for(e.plot(!0),Ue.draw(e.zone),e=this;e.prev&&e.prev.id!==e.id;)e.prev.id=e.id,e=e.prev;return e.plot(!0),Ue.draw(e.zone),this}create(t){const n=new e(this.key,this.id,this.zone,this.next,this);return this.key=t,this.next&&(this.next.prev=n),this.next=n,this}delete(){let t=!1;if(this.next){let n=this.next;return this.key=n.key,this.id=n.id,this.next=n.next,n.next?n.next.prev=this:new Ue("unknown").cards.delete(n)&&(t=!0,this.prev&&new Ue("unknown").cards.add(this)),e.nodes.get(n.key).delete(n),t}return 0===this.key?(this.key=this.id,Vt(this.id,this.key),!0):null}destroy(t){let n=!1,i=this.key;for(;i<0;)this.delete()&&(n=!0),e.unpack(i)&&(n=!0),i=this.key;return this.key!=t&&(this.key=t??this.id,Vt(this.id,this.key)),this.prev?e.unpack(this.prev.key):(this.plot(!0),Ue.draw(this.zone)),n&&Ue.draw("unknown"),this}identify(t,n=null){if(null!==n&&console.count("REidentify"+n+">"+this),this.id==t)return this.key>0||(n&&(this.end.id=n),this.destroy()),this;let i,s=new Set([this.key]),a=[[this.key,[]]];for(;a.length>0;){let[n,o]=a.shift();if(i=e.find(n,t),i){o.concat(i).reduce(((e,t)=>e.swap(t).next),this);break}for(let t of e.get(n).filter((e=>e.next)))s.has(t.next.key)||(s.add(t.next.key),a.push([t.next.key,o.concat(t)]));}if(i){if(n){let e=this;for(e.id=n;e.next;)e=e.next,e.id=n;}return this.destroy(),this}return t>0?this.identify(0,t):(console.error("identify error: "+(t>0?t:n)+">"+this),null)}static move(t,n){return Array.isArray(t)||(t=[t]),null==t||t.forEach((e=>e.zone=n)),Array.from(new Set(null==t?void 0:t.map((e=>e.key)))).filter((e=>e<=0)).map((t=>e.unpack(t))).length?Ue.draw("unknown"):Array.from(new Set(null==t?void 0:t.map((e=>e.key)))).filter((e=>e>0&&Ne.query.has(e))).forEach((e=>{Ne[e].plot("2-255"==n?2:1);})),t}static pack(t,n,i){if(!((null==t?void 0:t.length)>1&&(null==t?void 0:t.every((e=>e)))))return;let s,a=new Set(t.map((e=>e.key)));if(1===a.size)return [...a][0];if(e.key=e.key-1,i){if(1===new Set(t.map((e=>e.head.zone))).size)return null;let n=Array.from(e.nodes.keys()).filter((e=>e<0));for(let t=0;t>=e.key;t--)if(!n.includes(2*t-1)&&!n.includes(2*t-2)){s=2*t-i;break}n.filter((e=>e>s)).sort(((e,t)=>e-t)).forEach((t=>{e.get(t).forEach((e=>{e.key=e.key-2,e.head.plot(!0);}));})),s=-i;}else s=2*e.key-(n?2:1);return t.forEach((e=>{e.create(s),new Ue("unknown").cards.delete(e),n||new Ue("unknown").cards.add(e.end);})),Ue.draw("unknown"),s}static unpack(t){if(t>0)return !0;const n=e.get(t);let i=new Set(n.map((e=>{var t;return null==(t=e.next)?void 0:t.key}))),s=new Set(n.map((e=>e.head.zone)));if(1===n.length||!s.has("1-255")&&(1===s.size||1===i.size&&0!==t)){e.groups.has(t)&&(e.LABELs.unshift(e.groups.get(t)),e.groups.delete(t));let i=n.map((e=>e.delete())).some(Boolean);return Array.from(new Set(n.filter((e=>e.prev)).map((e=>e.prev.key)))).forEach((t=>e.unpack(t))),n.filter((e=>!e.prev)).forEach((e=>e.plot(!0))),Array.from(s).forEach((e=>Ue.draw(e))),i}return !1}static find(t,n){let i=e.get(t).find((e=>e.id==n));if(void 0===i&&0!=t){let s=e.get(0).find((e=>e.id==n));s&&(i=e.get(t).find((e=>0==e.end.key)),void 0!==i&&s.swap(i.end));}return i}static findIDs(t,n=!1,i=new Set,s=new Set){return s.add(t),t>0||!n&&0==t?i.add(t):(n||t%2!=0)&&e.get(t).forEach((t=>{if(t.next){let a=t.next.key;s.has(a)||e.findIDs(a,n,i,s);}else n&&i.add(t.id);})),Array.from(i)}static findKZ(t,n=!1,i=new Set,s=new Set){let a=t;return !(a instanceof e)&&t>0&&(a=e.get(t)[0]),a instanceof e||(a=e.get(0).find((e=>e.id==t))),a instanceof e&&(n||0!=a.key?(s.add(a.head.zone),i.has(a.key)||(i.add(a.key),(a.key<0||n&&0==a.key)&&e.get(a.key).forEach((t=>{t!=a&&e.findKZ(t,n,i,s);}))),a.prev&&e.findKZ(a.prev,n,i,s)):(s.add(""),i.add(0))),{keys:Array.from(i),zones:Array.from(s)}}};a(Me,"key",NaN),a(Me,"nodes",new Map),a(Me,"groups",new Map([[0,"?"]])),a(Me,"LABELs",Array.from({length:50},((e,t)=>String.fromCodePoint(t<20?9312+t:t<35?12861+t:12942+t))));let je=Me;const He=class e{static get paidui(){return Array.from(new Set(Array.from(je.get(0),(({id:e})=>e)).concat((e.obj["1-255"]??[]).map((({id:e})=>e)))))}static get qipai(){return (e.obj["2-255"]??[]).filter((({key:e})=>e>0)).map((({id:e})=>e))}static get unknown(){return Array.from(je.get(0),(({id:e})=>e))}static shoupai(t){return (e.obj["5-"+t]??[]).filter((({key:e})=>e>0)).map((({id:e})=>e))}constructor(t,n=5,i=null,s=null,a=null,o=null){var l;"number"==typeof t?(this.id=t,this.zone=n,0==this.id&&[0,1,2,3,9,12].includes(this.zone)&&(this.id=255),9==this.zone&&(this.zone=1),4==this.zone&&(this.id=this.id+"-"+(o||a||0)),8==this.zone&&(this.id="-"+(a||o||0)),this.zoneID=this.zone+"-"+this.id):"string"==typeof t?[this.zoneID,this.zone,this.id]=t.match(/(.*?)-(.*)/)??[t,t,""]:null==(l=null==t?void 0:t.every)||l.call(t,(e=>e instanceof je)),this.zoneID in e.obj||(e.obj[this.zoneID]=[]),this.pos=(65280===i||1===i?1:0===i||-1===i?-1:0)*(1==this.zone?-1:1),1!=n&&(this.pos=0),this.count=s;}show(t=[]){if(isNaN(je.key))return [];if(Array.isArray(t)||(t=[t]),0==t.filter((e=>e>0)).length)return [];let n=[],i=t.slice();if(-1==this.pos)n=this.cards.slice(0,t.length).map((e=>e.identify(i.shift())));else if(1==this.pos)n=this.cards.slice(-t.length).map((e=>e.identify(i.shift())));else if(1!=this.zone){let e=i.map((e=>je.findKZ(e,!0).keys));this.cards.slice().sort(((e,t)=>t.key-e.key)).some((t=>{if(0==i.filter((e=>e>0)).length)return !0;e.some(((e,s)=>{if(e.includes(t.key))return n[s]=t.identify(i[s]),e.length=0,i[s]=null,!0}));})),i.forEach(((e,t)=>{var i,s,a,o;if(e&&(n[t]=null==(i=this.cards.find((e=>0==e.id)))?void 0:i.identify(e),void 0===n[t]&&(n[t]=null==(s=this.cards.find((e=>0==e.key)))?void 0:s.identify(e)),void 0===n[t])){let i=je.get(e)[0];i?(n[t]=null==(o=null==(a=this.cards.find((e=>!n.includes(e))))?void 0:a.swap(i))?void 0:o.identify(e),console.error(this.zoneID+"SWAP Card ["+e+"] Shown")):(n[t]=new je(e,e,this.zoneID),12!=this.zone&&console.error(this.zoneID+" No Card ["+e+"] Shown"));}}));}return e.draw(this.zoneID),n}remove(t=[],n,i){if(isNaN(je.key))return [];Array.isArray(t)||(t=[t]),i&&(this.count=i);let s=[],a=t.slice();if(-1==this.pos)s=this.cards.splice(0,this.count);else if(1==this.pos)s=this.cards.splice(-this.count);else if(t.filter((e=>e>0)).length>0){let e=a.map((e=>je.findKZ(e,!0).keys));this.cards.slice().reverse().sort(((e,t)=>t.key-e.key)).some((t=>{if(0==a.filter((e=>e>0)).length)return !0;e.some(((e,n)=>{if(e.includes(t.key))return s[n]=this.cards.splice(this.cards.indexOf(t),1)[0],e.length=0,a[n]=null,!0}));})),a.forEach(((e,t)=>{var n;if(!e)return;let i=this.cards.findIndex((e=>0==e.id));if(-1===i&&(i=this.cards.findIndex((e=>0==e.key))),i>-1)s[t]=this.cards.splice(i,1)[0];else {let i=je.get(e)[0],a=this.cards.findIndex((e=>!s.includes(e)));i&&a>=0?(s[t]=null==(n=this.cards.splice(a,1)[0])?void 0:n.swap(i),console.error(this.zoneID+"SWAP Card ["+e+"] Moved")):(s[t]=new je(e,e,this.zoneID),12!=this.zone&&console.error(this.zoneID+" No Card ["+e+"] Moved"));}}));}else if(this.count==this.length||1==this.size)s=this.cards.splice(0,this.count);else if(1==this.zone||2==this.zone){var o=[...this.cards.filter((e=>e.key<=0)).sort(((e,t)=>t.key-e.key)),...this.cards.filter((e=>e.key>0))];if([11104,3488,862].includes(n)){var l=new Set(o.map((e=>e.key)));11104==n?l=new Set(Array.from(l).filter((e=>je.get(e).some((e=>{var t;return null==(t=Ne.type[3])?void 0:t.has(e.id)}))))):3488==n?l=new Set(Array.from(l).filter((e=>je.get(e).some((e=>{var t,n,i;return (null==(t=Ne.name["雷杀"])?void 0:t.has(e.id))||(null==(n=Ne.name["火杀"])?void 0:n.has(e.id))||(null==(i=Ne.name["冰杀"])?void 0:i.has(e.id))}))))):862==n&&(l=new Set(Array.from(l).filter((e=>je.get(e).some((e=>Ne.number[6].has(e.id))))))),o=o.filter((e=>l.has(e.key)));}s=o.slice(0,this.count),s.some((e=>e.key>0||e.key%2))&&je.pack(o,!0),s.forEach((e=>this.cards.splice(this.cards.indexOf(e),1)));}else je.pack(this.cards),s=this.cards.splice(0,this.count);return s.length!=this.count&&Array.from({length:this.count-s.length},(()=>(console.error(this.zoneID+" New Card Moved"),s.push(new je(0,0,this.zoneID))))),t.filter((e=>e>0)).length==this.count?t.forEach(((e,t)=>{var n;return null==(n=s[t])?void 0:n.identify(e)})):s.filter((e=>e.key>0)).length==this.count&&s.forEach((({id:e},n)=>{t[n]=e;})),e.draw(this.zoneID),s}add(t){if(!isNaN(je.key))return -1==this.pos?e.obj[this.zoneID]=je.move(t,this.zoneID).reverse().concat(this.cards):e.obj[this.zoneID]=this.cards.concat(je.move(t,this.zoneID)),e.draw(this.zoneID),t}set(t){isNaN(je.key)||(e.obj[this.zoneID]=je.move(t,this.zoneID),e.draw(this.zoneID));}get cards(){return e.obj[this.zoneID]??[]}get length(){var e;return (null==(e=this.cards)?void 0:e.length)??0}get size(){var e;return new Set((null==(e=this.cards)?void 0:e.map((e=>e.key)))??[]).size}static init(t,n){e.obj={unknown:new Set},e.obj[n]=je.init(t,n);}static draw(t){var n,i;if(isNaN(je.key))return;if(void 0===t)return void Object.keys(e.obj).filter((e=>"5"==e.split("-")[0])).forEach((t=>e.draw(t)));let s=null,a=null,[o,l,r]=(null==(n=t.split("-"))?void 0:n.map(Number))??[];if("unknown"==t)s="knownCards";else if(1==o)s="paiduiCards";else if(5==o)s=String(Pe.getOrder(l)+1);else {if(4!=o||!(r in Be.markSpell))return;s="mark"+t;}a=document.getElementById(s);let d=Array.from(e.obj[t]??[]);if("unknown"==t&&(Array.from(new Set(d.map((e=>e.head.zone)))).forEach((t=>e.draw(t))),Ne.draw()),d&&0!=d.filter((e=>e.key>0||e.key%2!=0)).length){if(a)a.querySelectorAll(":scope>.shoupai").forEach((e=>e.remove()));else {if(4!=o)return;null==(i=document.getElementById(String(Pe.getOrder(l)+1)))||i.insertAdjacentHTML("beforeend",`<div id="${s}" class="markedCard"><span class = 'mark'>${Be.markSpell[r]}</span></div>`),a=document.getElementById(s);}"1-255"!=t&&d.sort(((e,t)=>e.key>0&&t.key>0?0:t.key-e.key)),4==o&&(a=a.firstElementChild||a);var c=1;d.map((e=>e.plot("unknown"==t))).reverse().forEach(((e,n,i)=>{var s,l;if(e.dataset.key==(null==(l=null==(s=i[n+1])?void 0:s.dataset)?void 0:l.key))c++;else {c>1&&(e.style.fontSize="",e.innerHTML=`<span>${e.innerHTML}×</span><br>${c}`);let n=parseInt(e.dataset.key);if(n<0){let i=je.findIDs(n).sort(((e,t)=>e>0&&t>0?0:t-e));e.title=c+"张:"+i.map((e=>Qe[e].ncn)).join("/"),"1-255"!==t&&i.length<5&&(e.style.fontSize="",e.innerHTML=i.map((e=>{var t,n;return (null==(n=null==(t=je.get(e)[0])?void 0:t.plot())?void 0:n.outerHTML)||""})).join(""));}4==o?a.insertAdjacentElement("afterend",e):a.insertAdjacentElement("afterbegin",e),c=1;}}));}else a&&(a.classList.contains("markedCard")?a.remove():a.querySelectorAll(":scope>.shoupai").forEach((e=>e.remove())));}static name(e,t,n,i,s){var a;let o;if(isNaN(t))return "?";if(1==t&&0==e)return "牌堆(游戏开始前) ";if(1==t&&255==e)o="牌堆";else if(2==t)o="弃牌堆";else if(3==t)o="处理区";else if(4==t)o="标记";else if(5==t)o="手牌";else if(6==t)o="装备";else if(7==t)o="判定区";else if(8==t)o="弹窗";else {if(9==t)return "洗牌";10==t?o="交换临时区":11==t?o="弃牌临时区":12==t?o="回收区":0==t&&(o="游戏外");}return ([0,1,2,3,8,11,12].includes(t)?"":Pe.name(e,!0))+([4,8].includes(t)?"["+(null==(a=Be.spellDict[8==t?s:i||s||0])?void 0:a.name)+"]":"")+(o??"zone"+t)+({0:"底",65280:"顶",65282:"*"}[n]??(n?":"+n:""))}};a(He,"obj",{unknown:new Set});let Ue=He;function ze(e=[],t=[]){const n=new Map;return e.forEach((e=>{n.set(e.GoodsBaseID,e.ChangeCount);})),t.forEach((e=>{const{GoodsBaseID:t,ChangeCount:i}=e;n.has(t)?n.set(t,n.get(t)+i):n.set(t,i);})),Array.from(n,(([e,t])=>({GoodsBaseID:e,ChangeCount:t})))}const qe={"乐不思蜀":"乐","兵粮寸断":"兵","八卦阵":"八卦","爪黄飞电":"爪黄+1","的卢":"的卢+1","绝影":"绝影+1","骅骝":"骅骝+1","赤兔":"赤兔-1","大宛":"大宛-1","紫骍":"紫骍-1","紫騂":"紫骍-1","诸葛连弩":"连弩","木牛流马":"木马","顺手牵羊":"顺手","万箭齐发":"万箭","五谷丰登":"五谷","无中生有":"无中","过河拆桥":"过拆","桃园结义":"桃园","无懈可击":"无懈","南蛮入侵":"南蛮","借刀杀人":"借刀","铁索连环":"铁索","随机应变":"随机","远交近攻":"远交","以逸待劳":"逸劳","知己知彼":"知己","逐近弃远":"逐近","洞烛先机":"洞烛","出其不意":"出其","水淹七军":"水淹","无懈可击·国":"国无","挟天子以令诸侯":"挟令","方天画戟":"方天戟","雌雄双股剑":"雌雄剑","青龙偃月刀":"青龙刀","丈八蛇矛":"丈八矛","朱雀羽扇":"朱雀扇","白银狮子":"白银狮","三尖两刃刀":"三尖刀","乌铁锁链":"乌铁链","五行鹤翎扇":"五行扇","太公阴符":"太公符","无双方天戟":"无双戟","束发紫金冠":"紫金冠","玲珑狮蛮带":"玲珑带","红棉百花袍":"百花袍","红锦百花袍":"百花袍","四乘粮舆":"四乘舆","铁蒺玄舆":"铁蒺舆","飞轮战舆":"飞轮舆","鬼龙斩月刀":"鬼龙刀","国风玉袍":"国风袍","赤炎镇魂琴":"赤炎琴","奇门八阵":"奇门阵","绝尘金戈":"绝尘+1","修罗炼狱戟":"修罗戟","虚妄之冕":"虚妄冕","赤血青峰":"赤青锋","赤血青锋":"赤青锋","鸾凤和鸣剑":"鸾凤剑","七彩神鹿":"神鹿-1","金乌落日弓":"金乌弓","刑天破军斧":"刑天斧","长安大舰":"长安-2","禅让诏书":"诏书","镔铁双戟":"镔铁戟","继往开来":"继往","攻守兼备":"攻守","进退自如":"进退","洪荒之力":"洪荒","同舟共济":"同舟","力争上游":"力争","逆水行舟":"逆水","撒豆成兵":"撒豆","移花接木":"移花","联军盛宴":"联军","调虎离山":"调虎","火烧连营":"火烧","勠力同心":"勠力","调剂盐梅":"调剂","声东击西":"声东","增兵减灶":"增兵","草木皆兵":"草木","唯我独尊":"独尊","弃甲曳兵":"弃甲","金蝉脱壳":"金蝉","故步自封":"自封","金鼓笙旗":"金鼓","党同伐异":"伐异","燎原之火":"燎原","八卦阵(复制)":"八卦","仁王盾(复制)":"仁王盾","藤甲(复制)":"藤甲","白银狮子(复制)":"白银狮","商鞅变法":"变法","真龙长剑":"真龙剑","传国玉玺":"玉玺","厚积形":"厚积","桎梏形":"桎梏","盈冲形":"盈冲","背水形":"背水","整肃形":"整肃","寸兵形":"寸兵","雄黄酒":"酒"},Qe=new Proxy({cards:{0:{name:"",type:0,color:0,number:0,ncn:"?",cn:"0",c:"",n:0}},[Symbol.iterator]:function*(){for(let e in this.cards)yield this.cards[e];}},{get:function(e,t){var n;if(t in e)return e[t];if(!e.cards[t])if(null==(n=Be.cardDict)?void 0:n[t]){let{name:n,type:i,color:s,number:a,subType:o}=Be.cardDict[t],l=Fe(s),r=Ve(a);e.cards[t]={name:{6:"火杀",7:"雷杀",11:"冰杀",12:"闪闪"}[o]||qe[n]||n,type:parseInt(i),color:parseInt(s),number:parseInt(a),ncn:n+l+r,cn:l+r,c:l,n:r};}else e.cards[t]=e.cards[0];return e.cards[t]}});function Fe(e){return ["","♥","♦","♠","♣"][e]??""}function Ve(e,t=!0){return t&&1==parseInt(e)?"A":{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"J",12:"Q",13:"K"}[e]??""}async function Ke(e,t){m("复制成功!");var n={1:"⒈",2:"⒉",3:"⒊",4:"⒋",5:"⒌",6:"⒍",7:"⒎",8:"⒏",9:"⒐",J:"Ⓙ",Q:"Ⓠ",K:"Ⓚ","+":" ",10:"⒑"};if(t&&Object.keys(n).forEach((t=>{e=e.replaceAll(t,n[t]);})),te.chat(e),window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",e);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var i=document.createElement("textarea");i.textContent=e,i.style.position="fixed",document.body.appendChild(i),i.select();try{return document.execCommand("copy")}catch(s){return console.warn("Copy to clipboard failed.",s),prompt("Copy to clipboard: Ctrl+C, Enter",e)}finally{document.body.removeChild(i);}}}let Je={9020101:"欢乐豆",100301:"手气卡",100201:"点将卡",1150001:"灵宝经诰",100401:"换将卡",200201:"诏令天下",112301:"校尉将印",112101:"朱砂",12119999:"桃花",111801:"功勋",1111801:"水晶碎片",1114301:"圣魂玄晶",112501:"大将军印",1142901:"夺宝券"};function Ze(e,t,n,i){var s;if(null==document.getElementById("sec"+e)){let t=document.getElementById("lottery");const n=document.createElement("div"),s=document.createElement("div");s.innerHTML=Be.secId[e].Name+" 次数:"+i+"<br>",s.id="sec"+e+"+times",n.id="sec"+e,n.append(s),t.append(n),t.append(document.createElement("hr"));}if(void 0!==document.getElementById("sec"+e)&&null==document.getElementById(e+"+"+t)){document.getElementById("sec"+e+"+times").innerHTML=Be.secId[e].Name+" 次数:"+i+"<br>";let a=document.getElementById("sec"+e);const o=document.createElement("div");o.className="suit",function(e){return !Je[e]}(t)&&o.classList.add("r");const l=document.createElement("span"),r=document.createElement("span");l.innerText=(null==(s=Be.goodsID(t))?void 0:s.name)+" * ",r.innerText=n,l.id=e+"+"+t,r.id=e+"+"+t+"+number",o.append(l),o.append(r),a.appendChild(o);}else if(void 0!==document.getElementById(e)&&null!=document.getElementById(e+"+"+t)){document.getElementById("sec"+e+"+times").innerHTML=Be.secId[e].Name+" 次数:"+i+"<br>";let s=document.getElementById(e+"+"+t+"+number"),a=parseInt(s.innerText);a+=n,s.innerText=a;}}function Xe(e){let t=document.getElementById("lastUseCard");const n=document.createElement("div");for(const s of e){if("0"==s)continue;var i=document.createElement("button");i.className=Qe[s].color<=2?"shoupai R":"shoupai";let e=document.createElement("span");e.innerText=Qe[s].cn,i.appendChild(e),i.appendChild(document.createElement("br")),i.innerHTML+=Qe[s].name.substring(0,2),n.append(i);}t.innerHTML=n.innerHTML;}const Ye=new MutationObserver((e=>{e.forEach((e=>{const t=e.target,n=document.getElementById(t.id),i=document.getElementById("s"+t.id);if(i&&n&&("childList"===e.type||"attributes"===e.type)){const e=t.innerHTML;if(i.dataset.lastContent!==e){if(i){const e=t.cloneNode(!0);i.innerHTML=e.innerHTML,et(i);}i.dataset.lastContent=e;}}}));})),$e={attributes:!0,childList:!0,subtree:!0};function et(e){e&&e instanceof HTMLElement&&(e.scrollHeight>40?e.classList.add("show-ellipsis"):e.classList.remove("show-ellipsis"));}function tt(e,t){let n;function i(...i){clearTimeout(n),n=setTimeout((()=>e.apply(this,i)),t);}return i.cancel=function(){clearTimeout(n),n=null;},i}const nt=tt((()=>{requestAnimationFrame((()=>{document.querySelectorAll(".sorder-body").forEach((e=>{et(e);}));}));}),500);function it(){const e=document.getElementById("seatUI"),t=document.createDocumentFragment();for(let n of Te.seatUIs)if(n.posY&&n.posX&&void 0!==n.actualSeatID)if(null==document.getElementById("sor"+n.actualSeatID)){const e=document.createElement("div");e.className="sorderContainer",e.id="sor"+n.actualSeatID,e.style.top=n.posY+"px",e.style.left=n.posX+"px",e.style.width=(Te.unscaledWidth+Te.paddingRight)*Te.scale+"px";const i=document.createElement("div");i.className="sorder-body",i.classList.add("sNo"+n.actualSeatID),i.id="s"+n.actualSeatID,e.appendChild(i);const s=document.getElementById(n.actualSeatID);s&&(Ye.observe(s,$e),t.appendChild(e));}else {const e=document.getElementById("sor"+n.actualSeatID);e.style.top=n.posY+"px",e.style.left=n.posX+"px",e.style.width=(Te.unscaledWidth+Te.paddingRight)*Te.scale+"px";}if(0===Te.seatUIs.length){Ye.disconnect();for(let e=1;e<=8;e++){const t=document.getElementById("sor"+e);t&&t.remove();}}e.appendChild(t);}async function st(e,t){for(let i of e){const{x:e,y:t}=Be.Rcity[i.id],n=Te.centerX+e*SystemContext.gameScale/window.devicePixelRatio+"px",s=Te.centerY+t*SystemContext.gameScale/window.devicePixelRatio+"px";if(null==document.getElementById("city"+i.id+i.event)){const e=document.createElement("div");if(e.id="city"+i.id+i.event,e.className="city",e.style.position="absolute",e.style.fontSize="15px",e.style.left=n,e.style.top=s,void 0!==Be.Rfight[i.event]){let t=[];for(let e of Be.Rfight[i.event].generals){let n=e.start?"[先行]":"",[i,s]=ht(e,Le.difficulty);s?t.push('<span style="color: rgb(240, 65, 85); font-weight: bolder">'+e.generalname+n+" "+i.join(" ")+"</span>"):t.push(e.generalname+n);}e.innerHTML=Be.text[i.event]+"<hr>"+t.join("<br>").replace(/\n/g," ")+"<hr>"+Be.Rfight[i.event].get.replace(/\n/g,"<br>");}else {let t=[];for(let e=1;e<4;e++){let n=i.event+e.toString().padStart(2,"0"),s=[];if(Be.Rchoose[n])if(Be.Rchoose[n].generals)for(let e of Be.Rchoose[n].generals){let t=e.start?"[先行]":"",[n,i]=ht(e,Le.difficulty);i?s.push('<span style="color: rgb(240, 65, 85); font-weight: bolder">'+e.generalname+" "+t+n.join(" ")+"</span>"):s.push(e.generalname+t);}else s.push(Be.Rchoose[n].lost)&&s.push("");t.push(s);}e.innerHTML=(void 0!==Be.text[i.event]?Be.text[i.event]+"<hr>":"")+(Be.Rchoose[i.event+"01"]?(""==Be.Rchoose[i.event+"01"].lost?"":t[0].join("<br>").replace(/\n/g," ")+"<hr>")+Be.Rchoose[i.event+"01"].get.replace(/\n/g,"<br>"):"")+(Be.Rchoose[i.event+"02"]?"<hr>"+(""==Be.Rchoose[i.event+"02"].lost?"":t[1].join("<br>").replace(/\n/g," ")+"<hr>")+Be.Rchoose[i.event+"02"].get.replace(/\n/g,"<br>"):"")+(Be.Rchoose[i.event+"03"]?"<hr>"+(""==Be.Rchoose[i.event+"03"].lost?"":t[2].join("<br>").replace(/\n/g," ")+"<hr>")+Be.Rchoose[i.event+"03"].get.replace(/\n/g,"<br>"):"");}document.getElementById("rogueUI").appendChild(e);}else {const e=document.getElementById("city"+i.id+i.event);e.style.left=n,e.style.top=s;}}const n=e.map((e=>"city"+e.id+e.event));document.querySelectorAll("div.city").forEach((e=>{n.includes(e.id)||e.remove();}));}function at(e,t="点击复制",n=!0,i=!1,s=null){let a=document.createElement("button");return a.className="calRes",a.title=t,a.disabled=i,a.innerText=e,a.onclick=()=>{Ke(e,n),a.innerText="复制成功",setTimeout((()=>{a.textContent=e;}),500);},a}async function ot(e){let t=e.slice().sort(((e,t)=>e-t)),n=[];!function e(i,s,a){if(13!==a){if(!(a>13))for(let n=s;n<t.length;n++)n>s&&t[n]===t[n-1]||(i.push(t[n]),e(i,n+1,a+t[n]),i.pop());}else n.push(i.slice());}([],0,0);let i=document.getElementById("result");i.innerHTML="";for(let s of n.sort(((e,t)=>t.length-e.length)))if(i.appendChild(at(s.map((e=>Ve(e,!1))).join("+"))),i.children.length>=15)break;""===i.innerHTML&&(i.innerHTML='<span class="textRes">【资援】无解!</span>');}async function lt(e,t){function n(e,t,i,s,a){if(i.length!==a+1){for(let o=s;o<e.length;o++)o>s&&e[o]===e[o-1]||(i.push(e[o]),i[0]+=e[o],n(e,t,i,o+1,a),i[0]-=i.pop());return t}t.push([...i,...i.reduce(((e,t)=>(e.splice(e.indexOf(t),1),e)),e.slice())]);}let i=document.getElementById("result");if(i.innerHTML="",!(null==e?void 0:e.length)||!(null==t?void 0:t.length))return;let s=Math.max(e.length,t.length);e.sort(((e,t)=>e-t)),t.sort(((e,t)=>e-t));for(let l=2;l<=s;l++){let a=n(e,[],[0],0,l);n(t,[],[0],0,l).forEach((e=>a.forEach((t=>{e[0]>t[0]&&e.slice(1,l+1).every((e=>!t.slice(1,l+1).includes(e)))&&(s<3||Array.from({length:l}).some(((n,i)=>e[i+1]<t[i+1])))&&i.appendChild(at(e.slice(1,l+1).map((e=>Ve(e)))+"→"+t.slice(1,l+1).map((e=>Ve(e))),"点击复制",!1));}))));}let a=Array.from(new Set(t)),o=Array.from(new Set(e));a.forEach((e=>{let t=o.filter((t=>t<e));t.length&&i.appendChild(at(Ve(e)+"→"+t.map((e=>Ve(e))).join("/"),"点击复制",!1));})),""===i.innerHTML&&(i.innerHTML='<span class="textRes">【易城】无法交换!</span>');}async function rt(e){var t,n,i;if(!(null==e?void 0:e.allData))return Te.cities=[],st(Te.cities),document.getElementById("centerUI").classList.remove("show"),void document.getElementById("centerUI").classList.add("hide");const s=document.getElementById("centerUI");s.classList.remove("hide"),s.classList.add("show");let a=e.allData,o=a.shopData,l=a.chapterData,r=a.generalpool;if(o){o.bShow=!0;let e=[];if(o.itemId&&Be.Rplot)for(let t of o.itemId)Be.Rplot[t]&&e.push(Be.Rplot[t].name);!function(e){var t=document.getElementById("storeDetail");t.innerText="",0==e.length&&(e=["暂无集市数据"]);for(let n of e){let e=document.createElement("button");e.className="storeDetail",e.innerText=n,t.append(e);}}(e);}if(r&&r.general_change&&r.general_change.length>0){p(`小抄提示:可换将为${r.general_change.map((e=>Be.generalDict[e]||`Unknown (${e})`)).reverse().join(", ")}`,"acTooltip",1e4,"green",null,!0);}let d=a.seasonData,c=d&&d.difficulty;c&&(Le.difficulty=c),Le.general=(null==(n=null==(t=a.gameData)?void 0:t.myGeneral)?void 0:n.uGeneralId)??0,Le.itemId=(null==(i=a.gameData)?void 0:i.itemId)??[],l&&l.locations&&(Te.cities=l.locations.map((e=>({id:e.location,event:e.event}))),Be.Rcity&&st(Te.cities));}window.addEventListener("resize",nt);const dt=(()=>{class e{constructor(){this.id=0,this.goods_id=0,this.goods_cnt=0,this.price_type=0,this.price_num=0,this.stock=0,this.buy_limit=0,this.ori_price=0,this.all_bought_cnt=0,this.self_bought_cnt=0;}Read(e){this.id=e.readUnsignedByte(),this.goods_id=e.readUnsignedInt(),this.goods_cnt=e.readUnsignedInt(),this.price_type=e.readUnsignedByte(),this.price_num=e.readUnsignedInt(),this.stock=e.readUnsignedInt(),this.buy_limit=e.readUnsignedByte(),this.ori_price=e.readUnsignedInt();}UpdateDate(e){this.goods_id=e.goods_id,this.goods_cnt=e.goods_cnt,this.price_type=e.price_type,this.price_num=e.price_num,this.stock=e.stock,this.buy_limit=e.buy_limit,this.ori_price=e.ori_price,this.all_bought_cnt=e.all_bought_cnt,this.self_bought_cnt=e.self_bought_cnt;}}let t=!1;return async n=>{if(t)return null;const i=document.querySelectorAll('.left input[type="checkbox"]');let s=function(t){t.position=0;let n=[],i=t.readBoolean();if(t.Data.length<=1)return null;let s=t.readUnsignedInt(),a=t.readUnsignedInt(),o=new Date(1e3*s).toISOString().slice(5,16).replace("T"," "),l=new Date(1e3*a).toISOString().slice(5,16).replace("T"," "),r=t.readUnsignedInt();for(let d=0;d<r;d++){let i=new e;i.Read(t);let s=n.find((e=>e.id==i.id));s?s.UpdateDate(i):n.push(i);}r=t.readUnsignedInt();for(let e=0;e<r;e++){let e=t.readUnsignedInt(),i=t.readUnsignedInt(),s=n.find((t=>t.id==e));s&&(s.all_bought_cnt=i);}r=t.readUnsignedInt();for(let e=0;e<r;e++){let e=t.readUnsignedInt(),i=t.readUnsignedInt(),s=n.find((t=>t.id==e));s&&(s.self_bought_cnt=i);}return {commonVo:n,start_time:s,end_time:a,start:o,end:l,next:i}}(n);if(!s)return null;let{commonVo:a,start_time:o,end_time:l,start:r,end:d,next:c}=s;if(c)return;o=1e3*(o-28800);let u=a.map((({goods_id:e,goods_cnt:t,price_type:n,price_num:s,stock:a,buy_limit:l,ori_price:c,all_bought_cnt:u,self_bought_cnt:h},p)=>{var m;let f=s+["","通用元宝","元宝","银两"][n]+": "+(null==(m=Be.goodsID(e))?void 0:m.name)+(t>1?"*"+t:""),g=`${r} ~ ${d} 共${a}个`,v=u>=a||h>=l;return Object.assign(i[p].dataset??{},{goods_id:e,start_time:o,goods:f}),{goods_id:e,goods:f,title:g,disabled:v}})),h=document.getElementsByClassName("right")[0];h&&(h.innerHTML=u.map((({goods:e,title:t,disabled:n})=>`<span class="secKillDetailText${n?" gray":""}" title="${t}">${e}</span>`)).join(""));let p=h.start-6e4;return p>Date.now()&&Ge.set("miaosha",(()=>{m(`${r}\n秒杀即将开始!\n`+u.map((({goods:e})=>e)).join("\n")),t=!0,setTimeout((()=>{t=!1;}),66666);}),p),n.Size==n.position}})();let ct=["巳蛇","灵动","八门","盾弓","智迟","持盈","卫主","不死","刚烈","觉醒","悲鸣","断肠","节命","先机","悲鸣","忘魂","雅士","挥泪","不屈","封冻","灵躯","武魂","已蛇"];const ut={getspell:0,getspell_ZD:1,getspell_KN:2,getspell_EM:3,getspell_LY:4};function ht(e,t){let n=[],i=!1,s=function(e){switch(Math.floor((e-1)/5)){case 0:default:return "getspell";case 1:return "getspell_ZD";case 2:return "getspell_KN";case 3:return "getspell_EM";case 4:return "getspell_LY"}}(t);const a=ut[s];let o=Object.keys(ut).filter((e=>ut[e]<=a)).map((t=>e[t])).filter(Boolean).join(";");o=null==o?void 0:o.split(";").map((e=>{var t;return (null==(t=Be.spellDict[e])?void 0:t.name)||"无收录技能"}));for(let l of o)ct.includes(l)&&(n.push(l),i=!0);return [n,i]}var pt=[],mt=[],ft={290:"推锋",766:"匡弼"},gt=[],vt={},yt={},bt={},wt={},St=new Map,kt=()=>({name:"加载中"}),xt=[],It={},Wt={},Ct={},Et={},Dt={},Tt={};async function Bt(e){return new Promise((t=>JSZipUtils.getBinaryContent("test.sanguosha.com"===window.location.host?"https://test.sanguosha.com/h5/res/config//Config_w.sgs":"https://web.sanguosha.com/220/h5_2/res/config/Config_w.sgs?v="+window.resourceVersion,((n,i)=>JSZip.loadAsync(i).then((async n=>{var i,s,a=(s=new Date).getFullYear().toString()+(s.getMonth()+1).toString().padStart(2,"0")+s.getDate().toString().padStart(2,"0");let d=["sys_playcard","cha_spell","character","hd_roguelike","hd_1v1_rogue","sys_h5_shop","sys_gs_dbs_fs_goodsbaseinfo","sys_server_item_drops_templete_config","sys_h5_dbs_clientserverpub","cha_gs_dbs_fs_skininfo","gn_dbs_quest","sys_h5_quest","sys_h5_task","ff_dbs_lottery_new","ff_exchange_new","sys_treasure_chest","gn_dbs_giftbag","ff_tiangong","ff_chess"];var c=await Promise.all(d.map((e=>n.file(e+".sgs").async("arraybuffer").then((e=>JSON.parse((new TextDecoder).decode(new Zlib.Gunzip(CtrUtil.Ctr.Ofb_Dec(e)).decompress()))))))).then((e=>d.reduce(((t,n,i)=>(t[n+".sgs"]=e[i],t)),{})));function u(e,t){if("object"!=typeof e)return e;let n={};for(let i in e){n[t.get(i)||i]=e[i];}return n}var h,m=new Map([["id","编号"],["name","名称"],["time","时间"],["desc","说明"],["reward","奖励"],["price","价格"],["max","限购"],["effect","效果"],["info","信息"]]),f=c["sys_gs_dbs_fs_goodsbaseinfo.sgs"].root.goodslist.goods.reduce(((e,t)=>(e.set(t.a,t),e)),new Map),g=c["sys_gs_dbs_fs_goodsbaseinfo.sgs"].root.abbreviation.field.reduce(((e,{Short:t,Long:n})=>(e.set(t,n),e)),new Map),v=c["sys_server_item_drops_templete_config.sgs"].AllDrop.DropTemplete.DropGroup.DropItem.reduce(((e,t)=>(e.has(t.a)||e.set(t.a,[]),e.get(t.a).push(t.d),e)),new Map);h={},kt=function(e){if(e=parseInt(e),h[e])return h[e];let t=u(f.get(e),g),n=c["sys_h5_shop.sgs"].root.itemtips.find((({a:t})=>t==e)),i=t.usedeffect&&S(t.usedeffect);return h[e]={...t,...n&&{info:n.e},...i&&{effect:i}}};var y={};function b(e){var t;let n=null==e?void 0:e.replace(/([^0-9,\.])/g,"").split(",").map((e=>parseInt(e)));return (null==n?void 0:n.length)<2?e:(y[n[0]]??(y[n[0]]=null==(t=f.get(n[0]))?void 0:t.b)??n[0])+(parseInt(n[1])>1?"*"+n[1]:"")}var w={};function S(e){let t=parseInt(e);if(1e3!=t&&Math.abs(t)>0)return w[t]??(w[t]=(v.get(Math.abs(t))??[]).map((e=>{var t;return (null==(t=f.get(e))?void 0:t.b)??S(e)})).join(t>0?"/":"&"))}gt=c["cha_spell.sgs"].GameSpells.spell.reduce(((e,{a:t,c:n,o:i})=>{var s,a;let o={name:n,spellid:t,desc:(null==(a=null==(s=null==i?void 0:i.replace(/<[^\<\>]*>/g,""))?void 0:s.replace(/#.*/g,""))?void 0:a.replace(/[;\n]+$/g,""))||""};return (o.desc.includes("暗置")||o.desc.includes("扣置")||o.desc.includes("移出"))&&(ft[t]=qe[o.name]??o.name),e[t]=o,e}),[]);let k=c["sys_playcard.sgs"].abbreviation.reduce(((e,{Short:t,Long:n})=>(e.set(t,n),e)),new Map);if(pt=c["sys_playcard.sgs"].GamePlayCards.card.map((e=>u(e,k))).reduce(((e,t)=>{var n,i;return e[t.id]={...t,name:t.name??(null==(n=gt[t.spellId])?void 0:n.name),desc:null==(i=gt[t.spellId])?void 0:i.desc},e}),[]),mt=c["sys_playcard.sgs"].GamePlayCards.card.sort(((e,t)=>e.c-t.c||e.d-t.d||e.h-t.h||e.m-t.m||e.g-t.g||e.f-t.f||e.a-t.a)).map((({a:e})=>e)),St=new Map(c["cha_gs_dbs_fs_skininfo.sgs"].generalskin.items.item.map((e=>[String(e.a),[e.a,e.c,e.v||e.q,e.r]])).reverse()),bt=c["cha_gs_dbs_fs_skininfo.sgs"].root.manu.item.reduce(((e,{skinID:t,name:n,skinlevel:i,dongPoint:s})=>{let a=parseInt(t/100);return e[a]||(e[a]={}),e[a][t]={level:{"0,0":"普通","0,1":"稀有","0,2":"史诗","0,3":"传说","0,4":"限定"}[i]||"未知",name:n,state:void 0!==s},e}),{}),yt=c["cha_gs_dbs_fs_skininfo.sgs"].generalskin.speciaSkin.filter((e=>String(e.skinID).includes("_"))).reduce(((e,t)=>{let[n,i]=t.skinID.split("_").map(Number);return e[n]?e[n].includes(i)||e[n].push(i):e[n]=[i],e}),{}),Object.entries(yt).forEach((([e,t])=>{var n,i;null==(n=St.get(e))||n.push(t);let s=parseInt(e/100),a=null==(i=bt[s])?void 0:i[e];a&&(delete bt[s][e],t.forEach((t=>{bt[s][e+"_"+t]={...a,name:a.name+t};})));})),vt=c["character.sgs"].GameCharacters.character.reduce(((e,{a:t,ai:n,b:i})=>(e[t]=(n||"")+(null==i?void 0:i.replaceAll("&","")),e)),{}),c["character.sgs"].GameCharacters.character.forEach((({a:e,v:t})=>{if("string"!=typeof t)return void(wt[e]=new Set([e]));let n=[e,...t.split(";").map((e=>parseInt(e)))],i=n.find((e=>e in wt));if(i){let e=wt[i];n.filter((t=>!e.has(t))).forEach((t=>(wt[t]=e).add(t)));}else {let e=new Set(n);n.forEach((t=>wt[t]=e));}})),Tt=c["character.sgs"].WuJiangs.Spgroup.reduce(((e,t)=>{const n=t.spgenerals?t.spgenerals.split(",").map(Number):[];return n.forEach((t=>{e[t]=new Set(n);})),e}),{}),Dt=c["ff_tiangong.sgs"].root.Common.reduce(((e,t)=>(e[t.Id]=t,e)),{}),"string"!=typeof e){!async function(e,t){let n=o("CDK");n||(n=[]);let i=e.filter((e=>!n.includes(e)));await ee(1e4);for(let o of i)p(`找到兑换码!<br>${o}<br>点击该通知即可兑换`,"ac-tooltip",1e4,"green",(function(){!n.includes(o)&&n.push(o),l("CDK",n),pe(o);}));var s=document.getElementById(t);s.innerText="",0==e.length&&"CDK"==t&&(e=["所有兑换码已经兑换","迟点再看看吧"],r("CDK"));for(let o of e){let e=document.createElement("button");e.className="calRes",e.innerText=o,e.onmousedown=function(){pe(o),e.innerText="已兑换",setTimeout((()=>{e.textContent=o;}),"500");},s.append(e);var a=document.createElement("br");s.append(a);}}(c["gn_dbs_giftbag.sgs"].giftsys.gifts.giftsItem.Item.filter((e=>e.allServerWord&&!e.platform&&(!e.level||"0,201"==e.level)&&e.endtime>=a&&e.begintime<=a)).sort(((e,t)=>e.endtime-t.endtime)).map((({c_allServerWord:e,allServerWord:t})=>e||t)).filter(Boolean),"CDK");}if(Object.assign(Be,{cardDict:pt,cardIDsOrder:mt,markSpell:ft,spellDict:gt,generalDict:vt,skinSP:yt,skinDict:bt,skinMap:wt,bigSkin:St,goodsID:kt,secId:Dt}),"string"==typeof e&&"roge"!=e||async function(n,i){It=n.Root.Level.reduce(((e,{cityID:t,cityname:n,citypic:i,citycoordinate:s,startshow:a})=>{let[o,l]=s.split(",").map(Number);return e[t]={x:o,y:-l,boss:a,name:n??(null==i?void 0:i.replace(/^city_([0-9])_(.+)*\.png$/,((e,t,n)=>({"1jjy":"将军营","1jl":"箭楼","1wl":"望楼","1fht1":"烽火台(左)","1ck":"仓库","1yf":"营房","1fht2":"烽火台(右)","1sjc":"神君祠","2xsj":"西市集","2wl":"望楼","2dsj":"东市集","2wk":"武库","2hgl":"挥公陵","2sdg":"舜帝宫","2gcm":"干城门","2ywt":"演武台","3ds":"东市","3gg":"桂宫","3bg":"北宫","3wyg":"未央宫","3wk":"武库","3mgg":"明光宫","3clg":"长乐宫","4js":"金市","4lyt":"凌云台","4hly":"华林园","4tc":"太仓","4tx":"碳墟","4smm":"司马门","4wk":"武库","4sz":"石址","5my":"梅园","5fhl":"凤凰林","5lt":"龙亭","5wk":"武库","5wl":"望楼","5cm":"城门","5ql":"谯楼","5clg":"陈留宫","6jkg":"建康宫","6ql":"戚里","6wl":"望楼","6ycq":"邺城桥","6ywt":"演武台","6sg":"书馆","6wfl":"万福楼","6wk":"武库","6tqt":"铜雀台"}[t+n]??e))))},e}),{}),n.Root.Tactics.forEach((({plot:e,plotname:t,plotdesc:n,school:i,money:s,level:a})=>{xt[e]={name:t.replaceAll("·",""),desc:n.replaceAll(" ",""),school:i,money:s,level:a,type:2};})),n.Root.Spell.forEach((({id:e,spellid:t,money:n,level:i})=>{var s,a;xt[e]={name:null==(s=gt[t])?void 0:s.name,desc:null==(a=gt[t])?void 0:a.desc,spellid:t,money:n,level:i,type:3};})),n.Root.Card.forEach((({id:e,cardid:t,isequip:n,money:i,level:s})=>{var a=pt[t];xt[e]={name:{6:"火杀",7:"雷杀",11:"冰杀",12:"闪闪"}[a.subType]??a.name,desc:a.desc,color:a.color,number:a.number,money:i,level:s,type:4+n,rType:100*(10*a.type+a.subType)+n};}));var s,a=n.Root.Roundid.reduce(((e,{useSeason:t})=>t)),o=new Map,l=n.Root.Text.reduce(((e,{ID:t,text:n})=>(e[t]=n,e)),[]);n.Root.General=(s=n.root.abbreviation.reduce(((e,{Short:t,Long:n})=>(e.set(t,n),e)),new Map),n.Root.General.map((e=>u(e,s)))),n.Root.Adventure.forEach((e=>{e.chapname=l[e.chapname]??e.chapname;}));let r=n.Root.RewardGroup.reduce(((e,{reward:t,rewarddesc:n,allreward:i,abandonmoney:s})=>{var a,o;return e[t]=(s?s+"铜币/":"")+(null==(o=null==(a=null==i?void 0:i.split(";"))?void 0:a.flatMap((e=>null==e?void 0:e.split(","))))?void 0:o.map((e=>["随机","普通","稀有","史诗","传说"][e])).join("/"))+n.replace("多选一","自选"),e}),n.Root.Other.reduce(((e,{reward:t,rewardname:n})=>(e[t]=n,e)),{}));var d=n.Root.Chapter.reduce(((e,{seasonID:t,chapter:n,cityName:i,bosslocation:s,location:a})=>(a.split(";").forEach((s=>{e[s]=`${t}-${n}${i}`;})),e[s]=`${t}-${n}${i}BOSS`,e)),{}),c=n.Root.General.reduce(((e,t)=>(e[t.generalgroup]||(e[t.generalgroup]=[]),e[t.generalgroup].push(t),t.generalname=t.generalname.replace("&",""),e)),{});n.Root.General.forEach((e=>{e.GeneralRank||(e.GeneralRank=0),e.JumpStage&&(e.next=(([e,t])=>c[e][t-1]??c[e][0])(e.JumpStage.split(";"))),e.info={general:e.generalname,hp:e.hp,maxhp:e.maxhp,card:e.cardnum,draw:e.draw,sha:1+e.exshatimes,armor:e.armor,getarmor:e.getarmor,...e.next?{next:e.next.generalname}:{}},e.spells=["","_ZD","_KN","_EM","_LY"].flatMap(((t,n)=>{var i;return ((null==(i=e["getspell"+t])?void 0:i.split(";"))??[]).map((e=>gt[e])).filter(Boolean).map((e=>({...e,level:n})))})),e.spell=e.spells.map((({name:e})=>e)).join(","),e.cards=["","_ZD","_KN","_EM","_LY"].flatMap(((t,n)=>{var i,s;return [...(null==(i=e["carddesc"+t])?void 0:i.split(";"))??[],...(null==(s=e["equip"+t])?void 0:s.split(";"))??[]].map((e=>pt[e])).filter(Boolean).map((({id:e})=>({id:e,ncn:Qe[e].ncn,level:n})))})),e.card=e.cards.map((({ncn:e})=>e)).join(",");})),Ct=n.Root.Fight.reduce(((e,t)=>{function n(e,i,s=!1){e&&(t.fight+=g(e.info),t.lost+=(e.start?"[先手]":"")+e.generalname,e.next?(t.lost+=">",e.next.stage=i,e.next.info.pre=e.generalname,t.generals.push(e.next),n(e.next,i+1,s)):s||(t.fight+="+",t.lost+=" "));}if(t.generals=[...c[t.Ggroup]??[]],t.fight="",t.lost="",t.startnum){let e=t.generals.find((e=>e.generalID==t.startnum));e&&(e.start=!0);}return t.generals.forEach(((e,t,i)=>n(e,1,t==i.length-1))),t.get=t.itemgroup+"铜币\n"+(t.rewarditem?String(t.rewarditem).split(";"):[]).concat(String(t.reward).split(";")).map((e=>r[e])).join("\n"),t.text=l[t.text]??t.text,t.name=l[t.name]??t.name,e[t.fightID]=t,e}),[]);for(let e in c)e in Ct||(Ct[e]={generals:c[e]});if(Wt=n.Root.Choose.reduce(((e,t)=>{var i,s,a;return 7==t.type?(e[t.effectID]=Ct[t.event1],o.set(t.event1,null==(i=n.Root.Adventure.find((e=>e.ID===parseInt(t.effectID/10))))?void 0:i.chapname)):3==t.type&&"2"==t.event1?e[t.effectID]={get:"营地"}:e[t.effectID]={lost:(a=f(t.lostitem,t.lostnum,t.effectID),a?"失去 "+a:a),get:(s=f(t.getitem,t.getnum,t.effectID),s&&t.showitem?s.replace("随机","特定"):s)},e}),[]),Object.assign(Be,{Rfight:Ct,Rchoose:Wt,Rcity:It,vskinMap:Tt,Rplot:xt,text:l}),!e||"roge"==e){var h=Object.entries(c).reduce(((e,[t,n])=>{var i,s,a,l,r;let d=t.length<6?t.slice(-3):"99"!==t.slice(0,2)?t.slice(-5,-2)+">":"*"+t.slice(-2),c=t.length<6?t.slice(0,-3)-2:"99"!==t.slice(0,2)?t.slice(0,-5)-2:t.slice(-3,-2)-t.slice(-4,-3)+9;if(["新年大吉"].includes((null==(i=Ct[t])?void 0:i.name)??(null==(s=Ct[parseInt(d)+4e3])?void 0:s.name)))return e;e[d]||(e[d]={fight:(null==(a=Ct[t])?void 0:a.name)??(null==(l=Ct[parseInt(d)+4e3])?void 0:l.name)??"",generals:{}}),o.has(t)&&(e[d].event=o.get(t));let u=e[d].generals;return ((null==(r=Ct[t])?void 0:r.generals)??n).forEach((e=>{let t=(d.startsWith("*")?c:"")+(e.stage||"")+"#"+e.generalID;for(;;){if(u[t]){if(u[t].levels.includes(c)){t+="@";continue}}else u[t]={general:(e.info.pre?">":"")+e.generalname+(e.info.next?">":""),info:g(e.info),levels:[],start:[],infos:{},spell:{},card:{},ad:{}};break}let n=u[t];c%10<6&&c<20&&(n.levels.push(c),e.start&&n.start.push(c)),n.infos[c]=e.info,e.otherad&&(n.ad[c]=e.otherad),e.spells&&e.spells.forEach((e=>{n.spell[e.spellid]||(n.spell[e.spellid]={...e,levels:[],level:void 0}),c%10<6&&c<20&&n.spell[e.spellid].levels.push(c+(e.level??0));})),e.cards&&e.cards.forEach((e=>{n.card[e.id]||(n.card[e.id]={name:e.ncn,levels:[],level:void 0}),c%10<6&&c<20&&n.card[e.id].levels.push(c+(e.level??0));}));})),e}),{});Object.entries(h).forEach((([e,t])=>{h[e].shift=e.startsWith("*")&&1==Math.min(...Object.values(t.generals).flatMap((e=>e.levels)))?1:0,t.generals=Object.values(t.generals).map((t=>(t.level=Math.min(...t.levels.sort(((e,t)=>t-e)))-h[e].shift,t.level=t.level,t.spell=Object.values(t.spell).map((n=>{let i=Math.min(...n.levels.sort(((e,t)=>t-e)));var s;return n.levels.some(((e,n,i)=>e<10&&!i.includes(e+10)&&(t.levels.includes(e+10)||2==t.levels.length&&t.levels.includes(10))))&&(n.level=[i]),n.levels.some((e=>e<10))&&((s=n.levels.filter(((e,t,n)=>e>=10&&!n.includes(e-10)))).length&&(n.level=[i,s[s.length-1]])),n.level=(n.level??i)-h[e].shift,delete n.levels,delete n.spellid,n})).sort(((e,t)=>{let n=e=>e[1]>=10?e[1]:e[0]??e;return n(e.level)%10-n(t.level)%10||n(e.level)-n(t.level)})),t.card=Object.values(t.card).map((n=>{let i=Math.min(...n.levels.sort(((e,t)=>t-e)));var s;return n.levels.some(((e,n,i)=>e<10&&!i.includes(e+10)&&(t.levels.includes(e+10)||2==t.levels.length&&t.levels.includes(10))))&&(n.level=[i]),n.levels.some((e=>e<10))&&((s=n.levels.filter(((e,t,n)=>e>=10&&!n.includes(e-10)))).length&&(n.level=[i,s[s.length-1]])),n.level=(n.level??i)-h[e].shift,delete n.levels,n})).sort(((e,t)=>{let n=e=>e[1]>=10?e[1]:e[0]??e;return n(e.level)%10-n(t.level)%10||n(e.level)-n(t.level)})),t.card.length||delete t.card,t.info=Object.values(t.infos).reduce(((e,t)=>(Object.keys(e).forEach((n=>{t[n]>e[n]&&(e[n]=t[n]);})),e)),{hp:0,card:0,draw:0,sha:0}),Object.keys(t.ad).length?Object.keys(t.ad).sort(((e,t)=>t-e)).forEach(((e,n,i)=>{(e>=10&&t.ad[e]==t.ad[e%10]||t.ad[e]==t.ad[i[n+1]])&&delete t.ad[e];})):delete t.ad,t.start.length?t.start=Math.min(...t.start):delete t.start,delete t.infos,delete t.levels,t))).sort(((e,t)=>e.level-t.level));}));var p=n.Root.UniversalGroup.filter((e=>void 0!==e.fightgroup)).reduce(((e,t)=>{e[t.fightID]||(e[t.fightID]={});let n=String(t.fightgroup).slice(-3);return e[t.fightID][n]||(e[t.fightID][n]=[]),e[t.fightID][n].push(t),e}),{}),m=Array.from(Array.from(n.Root.Level.reduce(((e,{cityID:t,eventfight:n,universalfight:i,startshow:s})=>{var a,o;function l(n){if(!n||0==n.length)return;let i=e.get(n);i?i.includes(d[t])||i.push(d[t]):e.set(n,[d[t]]);}return l(i),l(null==(o=null==(a=null==n?void 0:n.split(";"))?void 0:a.map((e=>e.slice(-3))))?void 0:o.filter(((e,t,n)=>!n.slice(t+1).includes(e)))),e}),new Map).entries()).reduce(((e,[t,n])=>{let i=n.length>1&&new Set(n.map((e=>e.slice(0,3)))).size<2?n.map(((e,t)=>e.slice(t?3:0))).join("/"):String(n);return e.get(i)||e.set(i,new Set),(p[t]?Object.keys(p[t]):t).forEach((t=>e.get(i).add(t))),e}),new Map).entries()).reduce(((e,[t,n])=>(e[t]=Array.from(n,(e=>h[e])),e)),{});Et.jsbs=JSON.stringify(Object.entries(m).filter((e=>e[0].includes(a+"-"))).reduce(((e,[t,n])=>{let i=t.slice(2);return e[i]||(e[i]=[]),n.forEach((t=>{"新年大吉"!=t.fight&&e[i].push(t);})),e}),{})),Et.jsft=JSON.stringify(Object.values(h).filter((e=>["天涯故交","招兵买马","万众敬仰"].includes(e.event)&&e.shift||["突来危机","擂台比武","战事推演","为民除害","赛前演习","宵小叫嚣"].includes(e.event))).reduce(((e,{event:t,generals:n,fight:i})=>(e[t]||(e[t]=[]),e[t].push({...i?{fight:i}:{},generals:n}),e)),{})),Et.wscd=JSON.stringify(Object.values(i.Card.map((({CitationID:e,money:t})=>({...xt[e],money:t}))).reduce(((e,{level:t,money:n,name:i,color:s,number:a,desc:o,rType:l})=>{let r=t+i+a;return e[r]||(e[r]={cl:[],level:n,name:i,number:a,type:l,desc:o}),e[r].cl.push(s),e}),{})).sort(At("type","level"))),Et.wssp=JSON.stringify(i.Spell.map((({CitationID:e,money:t})=>({...xt[e],money:t}))).sort(At("money","level","spellid")).map((({level:e,money:t,name:n,desc:i})=>({level:t,name:n,desc:i})))),Et.wszf=JSON.stringify(i.Tactics.map((({CitationID:e,money:t})=>({...xt[e],money:t}))).filter((e=>{var t;return (e.name=null==(t=e.name)?void 0:t.replace("·新",""))&&!e.name.includes("废弃")&&!e.desc.includes("备用")&&!/(游戏|战斗)开始/.test(e.desc)})).sort(((e,t)=>!e.money^!t.money?e.money?1:-1:0!=e.name.slice(0,2).localeCompare(t.name.slice(0,2))?e.name.slice(0,2).localeCompare(t.name.slice(0,2)):At("money","level","name.length")(e,t))).map((({level:e,money:t,name:n,desc:i})=>({level:t,name:n,desc:i}))).filter(((e,t,n)=>JSON.stringify(e)!=JSON.stringify(n[t+1])))),Et.jssp=JSON.stringify(xt.filter((e=>3==(null==e?void 0:e.type))).sort(At("level","money","spellid")).map((({level:e,money:t,name:n,desc:i})=>({name:n,level:e,desc:i})))),Et.jscd=JSON.stringify(Object.values(xt.filter((e=>(null==e?void 0:e.type)>=4)).reduce(((e,{level:t,money:n,name:i,color:s,number:a,type:o,desc:l,rType:r})=>{let d=t+i+a,c=[33,34].includes(Math.floor(r/100))||"诸葛连弩"==i&&4==t;return e[d]||(e[d]={cl:[],level:c?0:t,money:n,name:i,number:a,type:r+(c?6:0),desc:l}),e[d].cl.push(s),e}),{})).sort(At("type","level","money")).sort(((e,t)=>e.level>0&&0==t.level?-1:0))),Et.jssd=JSON.stringify(n.Root.seed.sort(At("level","seed")).map((({name:e,desc:t,level:n,huchijineng:i})=>{var s,a,o;let l=null==(s=null==t?void 0:t.match(/.*获得【([^【】]*)】.*/))?void 0:s[1];return l&&(t+=(null==(a=gt[i])?void 0:a.desc)??(null==(o=gt.find((e=>(null==e?void 0:e.name)==l)))?void 0:o.desc)),{name:e,level:n,desc:t}}))),Et.jssc=JSON.stringify(n.Root.school.map((({school:e,name:t,effect:n,needputong:i,needxiyou:s,needshishi:a,needchuanshuo:o})=>({school:e,name:t,need:[i,s,a,o],desc:xt[n].desc.replaceAll(" ","")})))).replace("(","(").replace(")",")").replace(")",")"),Et.jszf=JSON.stringify(xt.filter((e=>2==(null==e?void 0:e.type))).filter((e=>(e.school=parseInt(e.school||100),e.name=e.name.replace("·新",""),!e.name.includes("废弃")&&!e.desc.includes("备用")&&!e.name.includes("套装")))).sort(((e,t)=>0!=e.name.slice(0,2).localeCompare(t.name.slice(0,2))?e.name.slice(0,2).localeCompare(t.name.slice(0,2)):At("level","money","name.length")(e,t))).map((({level:e,money:t,name:n,desc:i,school:s})=>({...s<100?{school:s}:{},name:n,level:e,desc:i}))).filter(((e,t,n)=>JSON.stringify(e)!=JSON.stringify(n[t+1])))),Et.jstf=JSON.stringify(n.Root.saijitianfu.filter((e=>e.seasonID==a)).reduce(((e,{tfid:t,ceng:n,type:i,cost:s,plot:a,preposition:o})=>(e[t]={id:t,x:i,y:n,cost:s,pre:(null==o?void 0:o.split(/,|;/))??[],...xt[a]},e)),[{id:0,x:0,y:0,cost:0,pre:[],name:"",level:0,type:0}])),t(Et);}function f(e,t,i){var s,a,l;return e?e.includes(",")?(([e,t])=>["随机","普通","稀有","史诗","传说"][t]+{2:"战法",3:"技能",4:"手牌",5:"装备"}[e])(e.split(",")):r[e]?(t>1?t:"")+r[e]:xt[e]?null==(s=xt[e])?void 0:s.name:c[e]?(o.set(e,null==(a=n.Root.Adventure.find((e=>e.ID===parseInt(i/10))))?void 0:a.chapname),c[e].map((e=>e.generalname)).join("\n")):null==(l=n.Root.Card.find((t=>t.id==e)))?void 0:l.name:""}function g({general:e,hp:t,maxhp:n,armor:i,getarmor:s,card:a,draw:o,sha:l,next:r,pre:d}){return (d?">":"")+e+t+(n!==t?"/"+n:"")+"血"+a+"牌摸"+o+"杀"+l+(r?">":"")}}(c["hd_roguelike.sgs"],c["hd_1v1_rogue.sgs"]),"string"!=typeof e||"guanxing"==e){let n=function(e,t,i="https://web.sanguosha.com/220/h5_2/res/runtime/pc/general/big/bigSkin/"){let s=i+e+".png";return fetch(s).then((a=>a.ok?{name:t,desc:`<a target="_blank" href="${s}"><img src="${s.replace("bigSkin","static").replace("big/s","seat/s")}"></a>`}:i.includes("seat")?void 0:n(e,t,i.replace("big/s","seat/s").replace("bigSkin","static"))))};Be.gxjson={"结果为推演和预测,请以最终公告为准!更新时间":(new Date).toLocaleString(),"【充值消费】":[]};let s=c["gn_dbs_quest.sgs"].TaskAll.Task.filter((({_attributes:e})=>e.clientTimeStart>=String(a))).map((({_attributes:e,Reward:t})=>{let n=",";return t.SelectReward&&(t=t.SelectReward,n="/"),t.RewardItem.length||(t.RewardItem=[t.RewardItem]),{id:e.id,time:e.timeStart.slice(0,8)+"—"+e.timeEnd.slice(0,8),desc:"【"+e.name+"】"+e.desc,reward:t.RewardItem.map((({_attributes:e})=>b(e.itemId+","+e.count))).join(n)}})).concat(c["sys_h5_quest.sgs"].root.Task.filter((e=>e.ClientTimeStart>=String(a))).map((({Id:e,Name:t,Desc:n,Rewards:i,Count:s,ClientTimeStart:a,ExtraRewards:o,ClientTimeEnd:l,SelectRewards:r})=>{let d=r?"/":",";return {id:e,time:a.slice(0,8)+"—"+l.slice(0,8),desc:"【"+t+"】"+n,reward:[i+","+s,...(null==o?void 0:o.split(";"))??[]].map(b).join(d)}}))),o=c["sys_h5_task.sgs"].TaskAll.TaskNode.filter((({duration:e,quest_id:t})=>t&&(!e||(null==e?void 0:e.replace(new RegExp(".*?(?<![0-9])([0-9]{8}T[0-9]{6})?.*"),"$1"))>=String(a)))).reduce(((e,{duration:t,quest_id:n,name:i})=>{var a,o;let l=n.split(";").map((e=>parseInt(e))).filter((e=>e>0)),r=((null==(o=t||(null==(a=s.find((({id:e,time:t})=>l.includes(e)&&t)))?void 0:a.time))?void 0:o.slice(0,8))+"·【"+(null==i?void 0:i.replace(/.*盲盒.*/,"盲盒福利"))+"】").replace(/.*(充值|消费).*/,"【充值消费】");return l.forEach((t=>{""!=t&&(e[t]=r);})),e}),{});s.forEach((({id:e,...t})=>{let n=o[e]??String(a)+"·【其它任务】";Be.gxjson[n]||(Be.gxjson[n]=[]),Be.gxjson[n].push(t);})),(C=c["ff_dbs_lottery_new.sgs"].root.ShopGoods.filter((({timeRange:e})=>(null==e?void 0:e.replace(new RegExp(".*?(?<![0-9])([0-9]{8}T[0-9]{6}).*"),"$1"))>=String(a))).map((({Id:e,counts:t,exchangecount:n,timeRange:i})=>({time:null==i?void 0:i.replace(/.*?([0-9]+)T[0-9]+,([0-9]+)T[0-9]+/,((e,t,n)=>t+"-"+n)),desc:"消耗·星石币*"+n,reward:b(e+","+t)})))).length>1&&(Be.gxjson[(null==(E=C[0].time)?void 0:E.slice(0,8))+"·兑换【占星秘宝】"]=C),c["ff_exchange_new.sgs"].root.Common.filter((({duration:e})=>(null==e?void 0:e.replace(new RegExp(".*?(?<![0-9])([0-9]{8}T[0-9]{6}).*"),"$1"))>=String(a))).forEach((({itemid:e,goods:t,rewardstype:n,duration:i})=>Be.gxjson[i.slice(0,8)+"·【"+kt(e).name+"】兑换"]=t.sort(((e,t)=>t.exchangecount1-e.exchangecount1)).map((({exchangecount1:t,Id2:n,counts:s,limitcounts:a,itemid2:o,exchangecount2:l})=>{let r=String(s).split(";");return {time:i.slice(0,8)+"—"+i.slice(16,24),desc:"消耗·"+b((o??e)+","+(l??t))+(a?",限"+a+"次":""),reward:String(n).split(";").map(((e,t)=>b(e+","+r[t]))).join("/")}})))),c["sys_treasure_chest.sgs"].root.Common.filter((({duration:e})=>(null==e?void 0:e.replace(new RegExp(".*?(?<![0-9])([0-9]{8}T[0-9]{6}).*"),"$1"))>=String(a))).forEach((({itemid:e,rewards:t,duration:n})=>Be.gxjson[n.slice(0,8)+"·开启【"+kt(e).name+"】"]=t.map((t=>({time:n.slice(0,8)+"—"+n.slice(16,24),desc:"开启·"+b(e+","+t.counts),reward:JSON.stringify(t).split(/,"goodsid[0-9]+":" *([0-9,;]+) *"/).filter((e=>(null==e?void 0:e.search(/([0-9]+,[0-9]+);?([0-9]+,[0-9]+)?/))>=0)).map((e=>e.replace(/([0-9]+,[0-9]+);?([0-9]+,[0-9]+)?/,((e,t,n)=>b(t)+(n?"["+b(n)+"]":""))))).join(2==t.rewardstype?"/":",")})))));let l=[],r=[],d=[],h=c["sys_h5_dbs_clientserverpub.sgs"].client.DuoBao[0].item.filter((({BeginTime:e})=>e>String(a))).flatMap((({DropId:e,ExchangeId:t,BeginTime:n,EndTime:i})=>{let s=n.slice(0,8)+"-"+i.slice(0,8),a=(v.get(Math.abs(e))??[]).map(kt).filter((({name:e})=>!["夺宝碎片","夺宝重置券","绑定元宝","桃花","功勋","武将包","皮肤包","稀有皮肤包","豪华皮肤包","普通将印宝箱","稀有将印宝箱","史诗将印宝箱","大将军印"].includes(e))),o=a.map((({ID:e})=>e)),l=(v.get(Math.abs(t))??[]).map(kt).filter((({ID:e,name:t,TypeID:n})=>o.includes(e)||!(43==n&&(null==t?void 0:t.endsWith("动态套装"))||36==n&&(null==t?void 0:t.startsWith("文和乱武*"))||25==n&&["赵襄","沙摩柯(SP)","孙尚香(界限突破)"].includes(t)||["枭雄金印","水晶碎片","圣魂玄晶","史诗皮肤锦囊","传说皮肤锦囊","至臻皮肤礼盒","谋定水晶自选礼盒"].includes(t)))).map((({ID:e,name:t})=>{let n=a.findIndex((({name:e})=>e==t));return n>=0&&o.splice(n,1,e),e}));return Array.from(new Set([...o,...l])).map(kt).map((({ID:e,TypeID:t,PicID:n,name:i,returngoods:a,usedeffect:r,info:c,fragment:u})=>{var h;let p={time:s,name:i,price:[...o.includes(e)?["四角"]:[],...l.includes(e)&&u?[u+"夺宝碎片"]:[]].join("/"),...(m=["祈福灯","圣魂玄晶","枭雄金印"].includes(i)?"":a&&"0"!=a&&a.split(";").filter((e=>(null==e?void 0:e.search(/[0-9]+,[0-9]+/))>=0)).map(b).join(";")||(null==r?void 0:r.search(/^([0-9]+,[0-9]+;?)+$/))>=0&&r.replace(/([0-9]+),[0-9,]+/g,b)||r&&S(r)||c,m&&{desc:m})};var m;return (36==t||(null==(h=p.name)?void 0:h.search(/\*[^0-9]/))>=0)&&d.push({name:i,res:n}),p}))}));h.length&&(Be.gxjson["夺宝行动"]=h,h=h.map((({name:e})=>e)));let p=c["sys_gs_dbs_fs_goodsbaseinfo.sgs"].root.goodslist.goods.filter((e=>{var t;return (null==(t=e.x)?void 0:t.replace(new RegExp(".*?(?<![0-9])([0-9]{8}T[0-9]{6}).*"),"$1"))>=String(a)&&834901!=e.a})).map((({a:e,ah:t,l:n})=>{if(n&&n.replace(/([0-9]+),[0-9,]+/g,((e,n)=>(t||[100301,200101,1325201].includes(parseInt(n))||l.push(parseInt(n)),e))),!t)return e;r.push(e);})).filter(Boolean).concat(l).sort(((e,t)=>e-t)).filter(((e,t,n)=>0==t||e!=n[t-1]));Array.from(new Set(c["cha_gs_dbs_fs_skininfo.sgs"].root.manu.item.filter((e=>e.SellTime>String(a))).map((e=>e.baseID)).concat(p.concat(p.filter(((e,t,n)=>e-n[t-1]>1e3&&n[t+1]-e<1e3)).map((e=>c["sys_gs_dbs_fs_goodsbaseinfo.sgs"].root.goodslist.goods.filter((t=>t.a-e>0&&t.a-e<1e4)).map((e=>e.a)))).reduce(((e,t)=>[...e,...t]),[])).sort(((e,t)=>e-t))))).map((e=>kt(e))).filter((e=>e&&![...h,"夺宝碎片","夺宝重置券","绑定元宝","桃花","功勋","武将包","皮肤包","稀有皮肤包","豪华皮肤包","普通将印宝箱","稀有将印宝箱","史诗将印宝箱","大将军印"].includes(e.name))).forEach((({ID:e,TypeID:t,PicID:n,name:i,maxBuyCount:s,yuanbao:a,returngoods:o,SellTime:l,usedeffect:r,info:c,yuanbaoonly:u,fragment:h,exchange:p,shopvisual:m})=>{var f;let g={...l&&{time:l.replace(/.*?([0-9]+)T[0-9]+;([0-9]+)T[0-9]+/,((e,t,n)=>t+"-"+n))},name:i,...(null==p?void 0:p.includes(","))?{price:b(p)}:m&&999999!=a&&{price:u?a+"通用元宝":a+"元宝",...s&&((e,t)=>parseInt(e)>0?{max:t+"个/"+(1==e?"":e)+"天"}:{})(...s.split(";"))},...(v=["祈福灯","圣魂玄晶","枭雄金印"].includes(i)?"":o&&"0"!=o&&o.split(";").filter((e=>(null==e?void 0:e.search(/[0-9]+,[0-9]+/))>=0)).map(b).join(";")||(null==r?void 0:r.search(/^([0-9]+,[0-9]+;?)+$/))>=0&&r.replace(/([0-9]+),[0-9,]+/g,b)||r&&S(r)||c,v&&{desc:v})};var v;(36==t||(null==(f=g.name)?void 0:f.search(/\*[^0-9]/))>=0)&&d.push({name:i,res:n}),String(g.price).includes("夺宝")||String(g.price).includes("灵宝")?(Be.gxjson["夺宝行动"]||(Be.gxjson["夺宝行动"]=[]),Be.gxjson["夺宝行动"].push(g)):g.max?(Be.gxjson["限购礼包"]||(Be.gxjson["限购礼包"]=[]),Be.gxjson["限购礼包"].push(g)):(Be.gxjson["其它道具"]||(Be.gxjson["其它道具"]=[]),Be.gxjson["其它道具"].push(g));})),null==(i=Be.gxjson["其它道具"])||i.sort(((e,t)=>e.price&&!t.price?-1:1)),r.length&&(Be.gxjson["祈福武将"]=Object.entries(r.map((e=>kt(e))).filter((({returngoods:e})=>{var t;return 25==(null==(t=kt(e.split(";")[1].split(",")[0]))?void 0:t.TypeID)})).reduce(((e,{name:t,lotteryPrice:n})=>(e[n]||(e[n]=[]),e[n].push(t.replace("武将","").replace(/\(.*?\)/g,"")),e)),{})).sort(((e,t)=>t[0]-e[0])).map((([e,t])=>({price:e+"同心结",reward:t.join("/")})))),(W=c["ff_tiangong.sgs"].root.Drop.reduce(((e,{Id:t,ItemId:n,MaxCount:i})=>{var s;return e[t]||(e[t]=[]),s=b(n+","+i),["欢乐豆","手气卡","点将卡","灵宝经","换将卡","诏令天","校尉将","朱砂*","灵宝经","桃花*","功勋*","传世玉","大将军","夺宝券","水晶碎","圣魂玄"].includes(s.slice(0,3))||e[t].push(s),e}),[]).reduce(((e,t)=>{if(t){let n=e.find((({reward:e})=>t.includes(e)));n&&(n.reward=t.join(","));}return e}),c["ff_tiangong.sgs"].root.Common.slice().reverse().reduce(((e,{Id:t,Name:n,bigrewards:i,Duration2:s})=>{let o=parseInt(s.slice(0,8))+1;if(o<parseInt(a))return e;let l=e.find((({name:e})=>e==n));return l?l.time+=";"+o:e.push({name:n,reward:vt[i],time:String(o)}),e}),[]).reverse())).length&&(Be.gxjson["祈愿台"]=W);const f=(I={},function(e){return I[e]?I[e]:I[e]=c["ff_chess.sgs"].root.NewChess.filter((({PlanId2:t})=>t==e)).reduce(((e,{MaxFloors:t})=>e+parseInt(t)),0)});x=c["ff_chess.sgs"].root.Common.reduce(((e,{GrandPrize:t,PlanID2:n,duration2:i})=>{var s;let o=parseInt(i.slice(0,8))+1;return o<parseInt(a)||e.push({reward:null==(s=kt(t))?void 0:s.name,"预估价格":f(n)/2|0,time:o+"-"+i.slice(16,24)}),e}),[]),x.length&&(Be.gxjson["绘卷"]=x),Be.gxjson["新品皮肤"]=d.map((({name:e})=>({name:e}))),Object.entries(Be.gxjson).forEach((([e,t])=>Be.gxjson[e]=Array.isArray(t)?t.map((e=>u(e,m))):u(t,m))),e&&"guanxing"!=e||t(Promise.all(d.map((({name:e,res:t})=>n(t,e)))).then((e=>Be.gxjson["新品皮肤"]=e.filter(Boolean))).then((()=>(Object.entries(Be.gxjson).forEach((([e,t])=>Be.gxjson[e]=Array.isArray(t)?t.map((e=>u(e,m))):u(t,m))),Be.gxjson))));}var x,I,W,C,E;t(c),console.warn("[initMap] Config_w 解析完成");}))))))}function At(...e){return new Function("_a","_b","return "+e.map((e=>"((_a."+e+")-(_b."+e+"))")).join("||"))}Object.assign(Be,{cardDict:pt,cardIDsOrder:mt,spellDict:gt,generalDict:vt,skinSP:yt,skinDict:bt,skinMap:wt,bigSkin:St,goodsID:kt,rogejson:Et,gxjson:{},Rfight:Ct,Rchoose:Wt,Rcity:It,secId:Dt,vskinMap:Tt,Rplot:xt});var Rt='<head><title>三国杀打小抄</title><meta charset="UTF-8"><style>::-webkit-scrollbar{width:5px;height:12px}::-webkit-scrollbar-track{border:1px solid #050505}::-webkit-scrollbar-thumb{background:#5f563f}::-webkit-scrollbar-thumb:hover{background:#2c2c2c}.body{width:100%;margin:0;padding:0;font-size:13px;width:100%;background:#23201d;background-size:cover;color:#f2de9c;display:flex;flex-direction:column;margin:1px;user-select:none;max-width:100vw;overflow-x:hidden;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif}.nav{width:100%;background:#23201d;text-align:center}.nav1{font-weight:bolder;height:20px;width:100%;color:#f2de9c;background:#23201d;margin-right:15px;display:block}#nav1:empty{display:none}.nav2{height:20px;width:49%;float:right;text-align:center;color:#f2de9c;background:#23201d;margin-left:3px;border:1px solid #f2de9c;display:block;border-radius:5px}.nav2:hover{color:#f2de9c;background:#372820;border:1px solid #f2de9c}.nav2:focus{background:#372820;box-shadow:1px 1px 3px #f2de9c}.content{margin:1px}.AC-head{font-weight:bolder;height:66px;width:13%;float:right;text-align:center;color:#f2de9c;background:#23201d;margin:1px;border-radius:5px;border:1px #23201d solid;box-shadow:1px 0 3px;overflow:hidden}.AC-head:hover{background:#372820;border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}.AC-body{height:60px;width:79%;float:left;box-shadow:1px 0 3px;border:1px #23201d solid;color:#f2de9c;margin:1px;overflow:hidden;border-radius:5px;background:#23201d;resize:none}.invite-body{height:40px;width:92%;float:left;display:flex;box-shadow:1px 0 3px;border:1px #23201d solid;color:#f2de9c;margin:5px;overflow:hidden;border-radius:5px;background:#23201d;resize:none}.orderContainer{text-align:right;vertical-align:bottom}.order-head{font-weight:bolder;width:10%;height:25px;float:left;text-align:center;color:#f2de9c;margin-left:3px}.order-body:empty{height:35px}.order-body{position:relative;padding:5px;height:auto;width:94%;display:block;box-shadow:1px 1px 3px;z-index:1;margin:1px;overflow:hidden;border-radius:5px}.order-body:after{text-align:center;content:var(--No-content, \'座位号丨武将\');position:absolute;bottom:0;right:5px;z-index:-1;font:800 20px \'Arial Black\';-webkit-text-fill-color:transparent;-webkit-text-stroke-width:1px}.knownShouPai{border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}.knownCardsInHand{text-align:center;position:relative;overflow:hidden;display:none;height:auto}.knownCards:empty{text-align:center;position:relative;overflow:hidden;display:none}.knownCards{width:94%;text-align:center;position:relative;overflow:hidden;height:auto}@keyframes blink{50%{border-color:#f2de9c}}.paiduiCards:after{text-align:center;content:\'牌堆\';position:absolute;bottom:0;right:5px;z-index:-1;font:800 20px \'Arial Black\';-webkit-text-fill-color:transparent;-webkit-text-stroke-width:1px}.knownCards{padding:5px;height:auto;width:94%;float:right;display:block;box-shadow:1px 1px 3px;margin:1px;overflow:hidden;border-radius:5px}.knownCards:after{text-align:center;content:\'场上手牌\';position:absolute;bottom:0;right:5px;z-index:-1;font:800 20px \'Arial Black\';-webkit-text-fill-color:transparent;-webkit-text-stroke-width:1px}#quanBian:after{text-align:center;content:\'权变牌\';position:absolute;bottom:0;right:5px;z-index:-1;font:800 20px \'Arial Black\';-webkit-text-fill-color:transparent;-webkit-text-stroke-width:1px}#yanXi:after{text-align:center;content:\'宴戏牌\';position:absolute;bottom:0;right:5px;z-index:-1;font:800 20px \'Arial Black\';-webkit-text-fill-color:transparent;-webkit-text-stroke-width:1px}.cardTypeDetail:after{text-align:center;content:\'牌堆类型详情\';position:absolute;bottom:0;right:5px;z-index:-1;font:800 20px \'Arial Black\';-webkit-text-fill-color:transparent;-webkit-text-stroke-width:1px}.ding{text-align:center;width:100%;position:relative;height:auto;display:none}.dingCards{text-align:center;position:relative;height:auto;min-height:60px;display:none}.dingCards:after{content:\'第一张为牌堆顶\';position:absolute;bottom:0;right:5px;z-index:-1;font:800 20px \'Arial Black\';-webkit-text-fill-color:transparent;-webkit-text-stroke-width:1px}.di{text-align:center;width:100%;position:relative;height:auto;display:none}.diCards{text-align:center;position:relative;height:auto;min-height:60px;display:none}.diCards:after{content:\'第一张为牌堆底\';position:absolute;bottom:0;right:5px;z-index:-1;font:800 20px \'Arial Black\';-webkit-text-fill-color:transparent;-webkit-text-stroke-width:1px}.cardDetail{width:100%;overflow:hidden;display:block}.type{width:100%;float:left}.cardTypeContainer{width:100%;overflow:hidden;display:block}.type-head{width:10%;float:left;text-align:center;color:#f2de9c;margin-left:3px;display:block;overflow:hidden;cursor:pointer}.type-body{padding:5px;width:94%;display:block;box-shadow:1px 1px 3px;margin:1px;overflow:hidden;border-radius:5px}.cardType{font-size:12px;width:25%;height:22px;float:left;text-align:center;border:1px;margin:0;background:#d2c8a0;box-shadow:inset 1px 1px 1px #000}.cardType:hover{color:#f2de9c;background:#372820;border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}.storeDetail{font-size:12px;width:50%;height:22px;float:left;text-align:center;border:1px;margin:0;background:#d2c8a0;box-shadow:inset 1px 1px 1px #000}.detail{width:100%;float:left;overflow:hidden}.detail-head{width:10%;height:25px;float:left;text-align:center;color:#f2de9c;margin-left:3px}.detail-body{min-height:40px;padding:5px;width:94%;float:left;display:block;box-shadow:1px 1px 3px;margin:1px;border-radius:5px;overflow:hidden}.panel-header{background:#23201d;color:#f2de9c;padding:3px;text-align:left;border:none;width:100%;cursor:pointer;display:flex;align-items:center;border-radius:5px;border:1px transparent solid}.triangle{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #f2de9c;margin-right:10px;transition:transform .3s ease}.panel-content{max-height:0;width:100%;float:left;display:block;color:#f2de9c;margin:1px;overflow:hidden;border-radius:5px;background:#23201d;transition:max-height .3s ease-out}.panel-header.active .triangle{transform:rotate(90deg)}.panel-header.active{color:#f2de9c;background:#372820}.panel-header:hover{color:#f2de9c;background:#372820;border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}.r{color:#f04155}.suitRec{width:50%;float:right;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Emoji",Tahoma,Arial,sans-serif;text-shadow:1px 0 0 rgba(255,255,255,.7),0 1px 0 rgba(255,255,255,.7),-1px 0 0 rgba(255,255,255,.7),0 -1px 0 rgba(255,255,255,.7)}.suit{width:50%;float:left}.phrase{float:left}.face{width:12.5%;display:block;float:left}.face:hover{width:12.5%;display:block;float:left;background:#f2de9c}#shandian{width:100%;float:left}.function{width:50%;margin:1px}.jizhan{width:100%;float:left}.yanjiao{width:50%;float:left}.yanjiaospan{border:1px solid #0000;box-sizing:border-box}.yanjiaospan:hover{border:1px solid #f2de9c;cursor:pointer}.calRes{width:98%;height:20px;float:left;text-align:center;color:#f2de9c;background:#23201d;border:1px solid #f2de9c;display:block;border-radius:5px;font-size:13px;margin:1px}.secKillDetailText{width:100%;height:26px;float:left;text-align:center;color:#f2de9c;background:#23201d;display:block;border-radius:5px;line-height:26px;margin-top:17px}.calRes:not(:disabled):hover{font-size:12px;color:#f2de9c;background:#372820;border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}.mizhuBTN{width:48%;height:20px;text-align:center;color:#f2de9c;background:#23201d;border:1px solid #f2de9c;display:block;border-radius:5px}.mizhuBTN:hover{color:#f2de9c;background:#372820;border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}.mizhu{width:100%;height:20px;float:left;text-align:center;color:#f2de9c;background:#23201d;margin-left:3px;border:1px solid #f2de9c;display:block;border-radius:5px}.mizhu:hover{color:#f2de9c;background:#372820;border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}#mySeatID1{width:48%}#mySeatID2{width:48%}.res{width:100%;float:left}a:link,a:visited{color:inherit;text-decoration:none;display:inline-flex;text-decoration:underline;border-radius:5px;cursor:pointer;align-items:center;justify-content:center}a:hover{color:#f2de9c;background:#372820;border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}#donate{position:relative;color:#f2de9c;display:block;text-align:center}.uuid{position:relative;color:#f2de9c;display:block;text-align:center;cursor:pointer}.uuid:hover{color:#f2de9c;background:#372820;border:1px #23201d solid;animation:blink 2s;animation-iteration-count:infinite}.uuid:active{background:#372820}.width{width:100%;height:5px;clear:both}.switch-container{display:flex}.switch{position:relative;display:block;margin-left:10px;width:56px;height:26px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#23201d;-webkit-transition:.4s;transition:.4s;border-radius:34px;border:1px solid #f2de9c;--slider-position:2px}.slider:before{position:absolute;content:"";height:20px;width:20px;left:var(--slider-position,2px);bottom:2px;background-color:#f2de9c;-webkit-transition:.4s;transition:.4s;border-radius:50%}input:checked+.slider{background-color:#372820}input:focus+.slider{box-shadow:0 0 1px #372820}.status{position:absolute;top:50%;transform:translateY(-50%);left:5px;color:#555}.explanation{margin:0 10px;display:flex;width:100%}input:checked+.slider+.status:before{content:\'开\'}input:checked+.slider+#autoBotStatus:before{content:var(--bot-status, \'30\');color:#f2de9c}input+.slider+#autoBotStatus:before{content:var(--bot-status, \'关\')}input+.slider+.status:before{content:"关"}.calRes:disabled{background-color:#ccc;color:#666;cursor:not-allowed}.markedCard{display:inline-flex;align-items:center;border-radius:5px;border:1px solid #000;width:auto;background-color:#372820;color:#f2de9c}.mark{writing-mode:vertical-rl;margin-right:0;color:#f2de9c}.markedCard>.mark:only-child{display:none}.shoupai{color:#000;--shoupai-width:33px;padding:0;font-weight:bolder;margin-right:calc(32px - var(--shoupai-width));float:left;width:var(--shoupai-width);min-width:var(--shoupai-width);height:38px;border:1px solid #000;text-align:center;background:rgba(210,200,160,.5);border-radius:5px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Emoji",\'Noto Color Emoji\';white-space:nowrap;text-shadow:1px 0 0 rgba(255,255,255,.7),0 1px 0 rgba(255,255,255,.7),-1px 0 0 rgba(255,255,255,.7),0 -1px 0 rgba(255,255,255,.7);font-size:13px}.shoupai.R{color:red}.shoupai.G{background:0}.shoupai.G .shoupai{background:0;pointer-events:none}.order-body:not(#paiduiCards) .shoupai:disabled{display:none}.order-body:not(#paiduiCards) .shoupai.G{width:auto}.left{width:30%;float:left}.right{width:70%;float:right}input[type=checkbox]:disabled+.slider{background-color:gray;cursor:not-allowed}.question-mark{display:inline-block;position:relative;width:15px;height:15px;line-height:15px;text-align:center;border:1px solid #f2de9c;border-radius:50%;margin-left:2px;transition:background-color .3s}.question-mark:hover{background-color:#372820;cursor:pointer}.tooltip{position:relative;background-color:#333;text-align:center;padding:5px;border-radius:5px;max-width:200px;white-space:pre-line;z-index:10000000001;opacity:0;pointer-events:none;transition:opacity .1s ease-in-out;color:#f2de9c;font-size:13px}.tooltip.visible{opacity:1;pointer-events:auto}.tooltip.top{margin-left:50px}#sidebarHint{position:fixed;top:0;right:0;width:25px;height:100%;background-color:rgba(55,40,32,.8);color:#f2de9c;display:none;justify-content:center;align-items:center;font-size:20px;writing-mode:vertical-rl;text-orientation:upright}:root{--my-background-image:url(\'https://web.sanguosha.com/220/h5_2/res/assets/bigPng/propGet.png\')}.sorderContainer{font-size:13px;width:100%;display:flex;align-items:center;width:146px;z-index:10000000000;user-select:none;text-align:left;transition:height .2s;position:fixed;transform-origin:0 0}.sorder-head{display:flex;align-items:center;justify-content:center;font-weight:bolder;width:10%;height:25px;text-align:center;color:#f2de9c;margin-left:3px}.sorder-body{pointer-events:auto;height:auto;width:100%;float:right;display:flex;flex-wrap:wrap;overflow:hidden;z-index:1;max-height:48px}.sorder-body.show-ellipsis::after{content:\'...\';position:absolute;bottom:0;left:50%;transform:translateX(-50%);text-align:center;color:#f2de9c;font-weight:700;height:20px;background:linear-gradient(to bottom,rgba(255,255,255,0),rgb(0 0 0 / 80%));width:inherit}.sorder-body:hover{max-height:none;overflow:visible}.sorder-body:hover::after{display:none}.sorder-body:not(#paiduiCards) .shoupai:disabled{display:none}.sorder-body:not(#paiduiCards) .shoupai.G{width:auto}@keyframes fadeInLeftToRight{0%{clip-path:inset(0 100% 0 0);opacity:0}100%{clip-path:inset(0 0 0 0);opacity:1}}@keyframes fadeOutRightToLeft{0%{clip-path:inset(0 0 0 0);opacity:1}100%{clip-path:inset(0 100% 0 0);opacity:0}}.ac-tooltip{position:fixed;top:100px;left:45%;background-color:transparent;background-image:var(--my-background-image);cursor:pointer;background-size:100% 100%;color:#f44336;font-size:16px;border-radius:4px;z-index:9999;overflow:hidden;white-space:nowrap;padding:16px 32px;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:translateX(0);transition:opacity 1s ease-in-out,visibility 1s ease-in-out}.ac-tooltip.green{background-color:transparent;color:#f2de9c}.city{visibility:hidden;transition:opacity 1s ease-in-out,visibility 1s ease-in-out;background-color:rgba(55,52,39,.7);color:#f2de9c;align-items:center;justify-content:center;border-radius:5px;text-align:center;flex-direction:column;padding:5px}hr{width:100%;margin:0}@keyframes blink{50%{border-color:#f2de9c}}.centerUI{width:18px;height:18px;background-color:#4e251f;border-radius:4px;display:flex;border:1px solid rgb(110 107 91);justify-content:center;align-items:center;cursor:pointer;box-shadow:0 2px 4px rgba(0,0,0,.3);visibility:hidden}.centerUI::after{content:"!";font-family:Arial,sans-serif;font-size:15px;color:#fff;font-weight:700}.centerUI:hover{background-color:rgb(134 74 58)}.show{animation:fadeInLeftToRight 1s forwards,blink 2s infinite;visibility:visible}.hide{animation:fadeOutRightToLeft 1s forwards;visibility:hidden}.window{width:1024px;height:600px;border:2px solid #333;border-radius:8px;box-shadow:0 0 15px rgba(0,0,0,.5);position:relative;background-color:#f5f5f5;overflow:hidden}.window-header{display:flex;justify-content:space-between;align-items:center;background-color:#23201d;color:#fff;padding:5px;cursor:move}.window-header .title{font-weight:700;padding-left:10px}.window-header .controls{display:flex;gap:5px}.window-header .controls button{background:0 0;border:none;color:#fff;cursor:pointer;padding:5px}.window-header .controls button:hover{background-color:rgba(255,255,255,.2)}.window-content{width:100%;height:calc(100% - 40px);border:none}.fullscreen{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000}</style><script async src="https://www.googletagmanager.com/gtag/js?id=G-5C3C11THB3"><\/script><script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js" integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg==" crossorigin="anonymous" referrerpolicy="no-referrer"><\/script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-5C3C11THB3")<\/script></head><div class="body"><div class="nav"><div id="nav1"></div><div class="nav1" id="phrase">当前阶段提示</div></div><div class="content" id="content"><div class="orderAndShouPai" id="orderAndShouPai"><button class="panel-header"><span class="triangle"></span> <b>武将手牌</b></button><div class="panel-content order" id="button"><div class="orderContainer" id="or1"><div class="order-body No1" id="1" style="--No-content:\'神诸葛亮丨一\'"><button class="shoupai">♣Q<br>测试</button> <button class="shoupai">♣Q<br>测试</button> <button class="shoupai">♣Q<br>测试</button> <button class="shoupai">♣Q<br>测试</button><div class="markedCard"><span class="mark">木马</span> <button class="shoupai G">♥10<br>测试</button> <button class="shoupai R">♦K<br>测试</button></div><button class="shoupai">♣Q<br>测试</button> <button class="shoupai">♣Q<br>测试</button> <button class="shoupai">♣Q<br>测试</button> <button class="shoupai">♣Q<br>测试</button></div></div><div class="orderContainer" id="or2"><div class="order-body No2" id="2" style="--No-content:\'卧龙诸葛丨二\'"><button class="shoupai G">♥10<br>暗牌</button> <button class="shoupai G">♥10<br>样式</button></div></div><div class="orderContainer" id="or3" style="--No-content:\'天候孔明丨三\'"><div class="order-body No3" id="3"></div></div><div class="orderContainer" id="or4" style="--No-content:\'诸葛亮丨四\'"><div class="order-body No4" id="4"></div></div><div class="orderContainer" id="or5" style="--No-content:\'武诸葛亮丨五\'"><div class="order-body No5" id="5"></div></div><div class="orderContainer" id="or6" style="--No-content:\'卧龙凤雏丨六\'"><div class="order-body No6" id="6"></div></div><div class="orderContainer" id="or7" style="--No-content:\'界卧龙诸葛丨七\'"><div class="order-body No7" id="7"></div></div><div class="orderContainer" id="or8" style="--No-content:\'界诸葛亮丨八\'"><div class="order-body No8" id="8"></div></div></div><div><div class="orderContainer"><div class="knownCards" id="knownCards"></div></div><div class="orderContainer"><div class="order-body paiduiCards" id="paiduiCards"></div></div><div class="orderContainer"><div class="knownCards quanBianYanXi" id="quanBian"></div><div class="knownCards quanBianYanXi" id="yanXi"></div></div></div></div><div class="width"></div><div class="cardDetail" id="cardDetail"><div class="space"></div><div class="detail"><div class="detail-body"><div class="suit r" id="heart">♥红桃 × 0</div><div class="suit" id="spade">♠黑桃 × 0</div><div class="suit" id="club">♣梅花 × 0</div><div class="suit r" id="diamond">♦方片 × 0</div><div class="suit r" id="hongsha">红杀 × 0</div><div class="suit" id="heisha" n>黑杀 × 0</div><div class="sha" id="sha">剩余出杀次数:指记入次数的杀</div><span>乱击/权变</span><div class="suitRec" id="suit"></div><br><span>博图</span><div class="suitRec" id="boTu"></div><br><span>上一张使用的牌</span><br><button class="shoupai R" id="lastUseCard">^^<br>•ω•</button><br><br><br><div id="guhuo" style="display:none">蛊惑牌</div><div class="function yanjiao" id="yanjiao">严教小抄</div><button class="function mizhuBTN" id="mizhu">糜竺小抄</button> <button class="function mizhu mySeatID" id="mySeatID1">座位:1</button> <button class="function mizhu mySeatID" id="mySeatID2">座位:2</button><div class="function res" id="result">结果样式:1 1 1 1 = 4</div></div></div><div class="width"></div><div class="type"><div class="cardTypeContainer"><div class="type-body type1" id="type1"><button class="cardType" id="test1">小抄</button> <button class="cardType">开发</button> <button class="cardType">小伙伴</button></div></div><div class="cardTypeContainer"><div class="type-body type2" id="type2"><button class="cardType">霜迟</button> <button class="cardType">孤独尊</button> <button class="cardType">无所谓</button> <button class="cardType">埃城</button> <button class="cardType">辉弥</button> <button class="cardType">天野</button> <button class="cardType">人富</button></div></div><div class="cardTypeContainer"><div class="type-body type3" id="type3"></div></div><div class="orderContainer"><div class="knownCards cardTypeDetail" id="cardTypeDetail"></div></div></div></div><div class="width"></div><div class="width"></div><div class="laya" id="laya"><div class="space"></div><button class="panel-header laya-header"><span class="triangle"></span> <b>快捷操作</b></button><div class="panel-content" id="layaDiv"><div class="switch-container"><div id="autoBotSwitchContainer"><span class="explanation">自动挂机<span class="question-mark" data-tooltip="AI接管挂机刷酒馆30亲密度&#10;自动创建演武房间开始对战&#10;建议点将张辽禁将只留标风&#10;禁用其它SP武将可提高胜率&#10;到身份演武房间列表后开启&#10;打开开关即可助力脚本作者&#10;领取限时至十月九日的体验&#10;界小抄用户可以无限制使用&#10;开关数字表示酒馆剩余时间&#10;双击打开官阶百胜无尽挂机&#10;">?</span></span> <label class="switch"><input id="autoBotSwitch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status" id="autoBotStatus"></span></label></div><div><span class="explanation" id="autoExplanation"></span></div></div><div class="switch-container"><div><span class="explanation">盖主速刷<span class="question-mark" data-tooltip="主公点将黄盖一分钟苦肉自杀速刷&#10;可用来刷武将百胜战功和官阶任务&#10;保证已激活的账号在 7 天内登录过&#10;一:登录小号创建自选身份密码房&#10;二:多开大号加入房间点自动挂机&#10;三:大号需双击自动挂机开始锁定&#10;四:小号点将黄盖,打开盖主速刷&#10;五:大号准备并保持两窗口在前台&#10;">?</span></span> <label class="switch"><input id="autoHGSwitch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status" id="autoHGStatus"></span></label></div><div><span class="explanation" id="autoHGExplanation"></span></div></div><div class="switch-container"><div><span class="explanation">加入互助<span class="question-mark" data-tooltip="点击加入小抄互相助力小组&#10;每天自动助力三位小抄玩家&#10;同时收到三位小抄玩家助力&#10;默认为小抄给当前玩家助力&#10;右侧可输入想要助力的玩家&#10;“再”打开《加入互助》开关&#10;该玩家可收到三个小抄助力&#10;">?</span></span> <label class="switch"><input id="autoInviteSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div><div><textarea class="invite-body" type="text" id="inviteName" required maxlength="10" size="10" placeholder="大西瓜"></textarea></div></div><button class="calRes" id="guanxing">自助观星</button> <button class="calRes" id="mail" disabled="disabled">一键领取邮箱物品</button> <button class="calRes" id="task" disabled="disabled">一键领取所有任务奖励</button></div></div><div class="store" id="store"><div class="space"></div><button class="panel-header"><span class="triangle"></span> <b>山河图</b></button><div class="panel-content"><div><button class="calRes" id="openStore">点击打开商店换装备->跳奇遇</button></div><div><span id="chongsheng">重生是否发动:否</span></div><div><span id="sanBanFu">三板斧计数器</span></div><div id="storeDetail"><button class="storeDetail">集市霸王·壹300</button> <button class="storeDetail">集市霸王·贰200</button> <button class="storeDetail">集市霸王·叁100</button> <button class="storeDetail">会员商店·肆1100</button> <button class="storeDetail">稳定承载1100</button> <button class="storeDetail">极奢1100</button></div></div></div><div class="secKill" id="secKill"><div class="space"></div><button class="panel-header"><span class="triangle"></span> <b>秒杀连点器(悬停查看详情)</b></button><div class="panel-content" id="secKillDetail"><div class="left"><br><div><label class="switch" title="秒杀连点器,界小抄可用,不保证成功率"><input id="secKillItem1Switch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status"></span></label></div><br><div><label class="switch" title="秒杀连点器,界小抄可用,不保证成功率"><input id="secKillItem2Switch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status"></span></label></div><br><div><label class="switch" title="秒杀连点器,界小抄可用,不保证成功率"><input id="secKillItem3Switch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status"></span></label></div><br></div><div class="right"><span class="secKillDetailText">暂无数据</span> <span class="secKillDetailText">暂无数据</span> <span class="secKillDetailText">暂无数据</span></div></div></div><div class="chat" id="chat"><div class="space"></div><button class="panel-header"><span class="triangle"></span> <b>聊天(点击自动输入)</b></button><div class="panel-content chat-body"></div></div><div class="CDK"><button class="panel-header"><span class="triangle"></span> <b>兑换码(点击即兑换)</b></button><div class="panel-content"><div class="function res" id="CDK"><button class="calRes">小麦好帅</button></div></div></div><div class="tianguo"><button class="panel-header"><span class="triangle"></span> <b>统计</b></button><div class="panel-content"><button id="gamerecord" class="calRes" style="text-align:center">战绩胜率统计</button><div id="PlayerTianGuo" style="text-align:center">你的天过次数/总次数</div><div><div id="lottery"><a href="https://goka.top:8080/choujiang?username=" target="_blank" class="calRes" id="choujiang">点击查看祈愿台数据</a></div></div></div></div><button class="panel-header"><span class="triangle"></span> <b>设置</b></button><div class="setting panel-content"><div class="switch-container"><div><span class="explanation">皮肤体验<span class="question-mark" data-tooltip="该功能仅限于体验皮肤&#10;喜欢还请购买支持画师&#10;此功能随时失效!!!">?</span></span> <label class="switch"><input id="skinSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div><div id="skinStateButton" style="display:none"><span class="explanation">动态皮肤</span> <label class="switch"><input id="skinStateSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div></div><div class="switch-container"><div><span class="explanation">皮肤壁纸 <span class="question-mark" data-tooltip="打开后进入皮肤详情界面进行设置&#10;可以将动静态皮肤设置为游戏壁纸&#10;也可以把静态皮肤图片保存到本地&#10;不建议与微端自定义背景同时使用">?</span> </span><label class="switch"><input id="skinPaperSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div><div><span class="explanation">屏蔽动态<span class="question-mark" data-tooltip="屏蔽其他人的动态皮肤&#10;电脑卡顿的话可以打开">?</span></span> <label class="switch"><input id="skinStateBlockSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div></div><div class="switch-container"><div style="display:none"><span class="explanation">金色卡背</span> <label class="switch"><input id="cardBackSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div><div><span class="explanation">明牌框框 <span class="question-mark" data-tooltip="明牌展示在武将下面">? </span></span><label class="switch"><input id="seatUISwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div><div><span class="explanation">五阶特效 <span class="question-mark" data-tooltip="其他角色显示五阶特效">? </span></span><label class="switch"><input id="generalSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div></div><div class="switch-container"><div><span class="explanation">自动签到 <span class="question-mark" data-tooltip="自动领取打卡签到的奖励">? </span></span><label class="switch"><input id="autoSignSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div><div><span class="explanation">跳体验卡 <span class="question-mark" data-tooltip="签到会有体验武将&#10;如领取会污染将池&#10;开启按钮跳过领取&#10;月底记得手动领取">? </span></span><label class="switch"><input id="autoSignSkipSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div></div><div class="switch-container"><div><span class="explanation">领武将包<span class="question-mark" data-tooltip="每天登录,自动领取免费的武将包">?</span></span> <label class="switch"><input id="autoWuJiangSwitch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status"></span></label></div><div><span class="explanation">公会三敲<span class="question-mark" data-tooltip="每天自动公会三敲&#10;无惧公会长的诫厉">?</span></span> <label class="switch"><input id="autoDrumSwitch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status"></span></label></div></div><div class="switch-container"><div><span class="explanation">月卡奖励<span class="question-mark" data-tooltip="自动领取月卡奖励&#10;界小抄先行体验">?</span></span> <label class="switch"><input id="autoYueKaSwitch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status"></span></label></div><div><span class="explanation">自动砍树<span class="question-mark" data-tooltip="每天登录自动砍树&#10;界小抄先行体验">?</span></span> <label class="switch"><input id="autoKanShuSwitch" type="checkbox" disabled="disabled"> <span class="slider"></span> <span class="status"></span></label></div></div><div class="switch-container"><div><span class="explanation">跳过弹窗<span class="question-mark" data-tooltip="跳过领取武将&#10;MVP结算&#10;出货弹窗&#10;老仙特效&#10;加快氪金速度">?</span></span> <label class="switch"><input id="skipWindowSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div><div><span class="explanation">击杀特效 <span class="question-mark" data-tooltip="屏蔽击杀特效">? </span></span><label class="switch"><input id="killEffectSwitch" type="checkbox"> <span class="slider"></span> <span class="status"></span></label></div></div></div><div class="width"></div><div class="ACContainer"><textarea class="AC-body" type="text" id="AC" name="AC" required placeholder="点击添加激活码&#13;&#10;当前激活码未激活"></textarea> <button class="AC-head" type="submit" id="ACSubmit">激活</button></div><div style="text-align:center"><a href="https://afdian.com/@yimadaO_o" target="_blank">开发不易 如您喜欢 不妨支持小抄</a><div class="width"></div><a href="https://qm.qq.com/q/PBA8Mt4rCI" target="_blank">加群一起玩</a><div class="width"></div><a href="https://support.qq.com/products/664780/" target="_blank">提需求</a><div class="width"></div><a href="https://greasyfork.org/zh-CN/scripts/448004-%E4%B8%89%E5%9B%BD%E6%9D%80%E6%89%93%E5%B0%8F%E6%8A%84/versions" target="_blank">查看历史更新</a><div class="width"></div><div class="uuid id" id="uuid">id:</div><div class="width"></div><div class="uuid nickName" id="nickName">昵称:</div><div class="width"></div><div class="uuid guildID" id="guildID">公会数字ID:</div><div class="width"></div><div class="width"></div></div></div><script><\/script></div>';let _t=null;const Lt=" "+"2.9.36".replace(/^2\.9\./,""),Gt="新增功能,可保存三国杀静态、动态皮肤至本地并设定为游戏壁纸;说明请查看设置中的“皮肤壁纸”".replace(/;/g,"<br>");function Ot(){window.innerWidth=document.documentElement.clientWidth-window.padding;}function Pt(){window.dispatchEvent(new Event("resize"));}let Nt;function Mt(){Nt&&clearTimeout(Nt),Nt=setTimeout((()=>{!function(){if(!SystemContext)return;Te.width=SystemContext.gameWidth*SystemContext.gameScale|0,Te.height=SystemContext.gameHeight*SystemContext.gameScale|0,Te.scale=SystemContext.gameScale,Te.seatUIs&&Te.seatUIs.length>0&&(Ht(),it());let e={width:(SystemContext.gameWidth*SystemContext.gameScale|0)/window.devicePixelRatio,height:(SystemContext.gameHeight*SystemContext.gameScale|0)/window.devicePixelRatio};De.padding&&document.getElementById("createIframe")?(document.getElementById("bgDiv").style.width=document.documentElement.clientWidth+"px",document.getElementById("createIframe").style.height="100%",document.getElementById("createIframe").style.right="0px",document.getElementById("createIframe").style.top="0px"):document.getElementById("bgDiv").style.width=document.documentElement.clientWidth+"px";let t=document.getElementById("cusBGDiv"),n=document.getElementById("sgsBgVideo"),i=document.getElementById("sgsBgIMG"),s=document.getElementById("seatUI"),a=document.getElementById("rogueUI"),o=document.getElementById("centerUI"),l=((window.innerHeight*window.devicePixelRatio-SystemContext.gameScale*SystemContext.gameHeight)/(2*window.devicePixelRatio)+SystemContext.gameScale*SystemContext.gameHeight/2)/window.devicePixelRatio;t&&(t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.left=window.innerWidth/2+"px",t.style.top=l+"px");n.width=e.width,n.height=e.height,n.style.left=window.innerWidth/2+"px",n.style.top=l+"px",i.width=e.width,i.height=e.height,s.style.width=`${e.width}px`,s.style.height=`${e.height}px`,s.style.left=window.innerWidth/2+"px",s.style.top=l+"px",a.style.width=`${e.width}px`,a.style.height=`${e.height}px`,a.style.left=window.innerWidth/2+"px",a.style.top=l+"px",Te.centerX=window.innerWidth>e.width?e.width/2:window.innerWidth/2,Te.centerY=e.height/2,o.style.left=210*SystemContext.gameScale/window.devicePixelRatio+"px",o.style.top=52*SystemContext.gameScale/window.devicePixelRatio+"px",Te.cities.length>0&&st(Te.cities);}(),Nt=null;}),500);}async function jt(e=!1){var t,n,i,s,a;if(e&&(null==(t=document.getElementById("seatUI"))||t.remove(),null==(n=document.getElementById("rogueUI"))||n.remove(),null==(i=document.getElementById("cusBGDiv"))||i.remove(),null==(s=document.getElementById("createIframe"))||s.remove(),Ce.isFrameAdd=!1),!Ce.isFrameAdd){window.addEventListener("resize",Mt),SystemContext._gameScreenType=SystemContext.gameScreenType,SystemContext._gameScale=SystemContext.gameScale,Object.defineProperty(SystemContext,"gameScreenType",{get:function(){return this._gameScreenType},set:function(e){this._gameScreenType!==e&&(this._gameScreenType=e,window.dispatchEvent(new Event("SGSresize")));}}),Object.defineProperty(SystemContext,"gameScale",{get:function(){return this._gameScale},set:function(e){this._gameScale!==e&&(this._gameScale=e,window.dispatchEvent(new Event("SGSresize")));}}),window.addEventListener("SGSresize",Pt);try{document.getElementById("bgDiv").firstElementChild.draggable=!1,null==(a=document.querySelector("link[rel=stylesheet]"))||a.remove();}catch{}return function(){var e=document.createElement("div");e.id="seatUI",e.style.position="absolute",e.style.top="50%",e.style.left="50%",e.style.transform="translate(-50%, -50%)",e.style.pointerEvents="none",e.style.display="";var t=document.createElement("div");t.id="rogueUI",t.style.position="absolute",t.style.top="50%",t.style.left="50%",t.style.transform="translate(-50%, -50%)",t.style.pointerEvents="none",t.style.display="",De.seatUISwitch?e.style.display="block":(e.style.display="none",document.querySelectorAll("#seatUI > *:not(.city)").forEach((e=>e.style.display="none")));var n=document.createElement("div");n.id="centerUI",n.className="centerUI",n.style.position="absolute",n.style.pointerEvents="auto",n.onmouseover=function(){document.querySelectorAll("div.city").forEach((e=>{e.classList.remove("hide"),e.classList.add("show");}));},n.onmouseout=function(){document.querySelectorAll("div.city").forEach((e=>{e.classList.remove("show"),e.classList.add("hide");}));},t.appendChild(n),document.body.appendChild(e),document.body.appendChild(t);}(),function(){var e=document.getElementById("bgDiv");if(e){var t=document.createElement("div");t.id="cusBGDiv",t.style.position="absolute",t.style.top="50%",t.style.left="50%",t.style.transform="translate(-50%, -50%)",t.style.zIndex="0",t.style.pointerEvents="none";var n=document.createElement("video");n.className="bg-ani",n.id="sgsBgVideo",n.autoplay=!0,n.loop=!0,n.muted=!0,n.preload="auto",n.style.setProperty("object-fit","fill","important");var i=document.createElement("img");i.className="bg-ani",i.id="sgsBgIMG",i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",i.style.zIndex="1",i.style.position="absolute",i.style.top="0",i.style.left="0",t.appendChild(n),t.appendChild(i),e.appendChild(t),window.dispatchEvent(new Event("resize"));}}(),function(){let e=document.getElementById("createIframe");if(!e){e=document.createElement("div"),e.id="createIframe",e.id="createIframe",e.className="createIframe",e.style.position="fixed",e.style.overflow="hidden",e.style.resize="vertical",e.style.top="31px",e.style.right="155px",e.style.width="230px",e.style.height="500px",e.style.zIndex="10000000000",e.style.display="flex",e.style.flexDirection="column",e.style.color="#f2de9c",e.style.background="rgb(35, 32, 29)",e.style.userSelect="none",e.style.textAlign="left",e.style.transition="height 200ms",e.style.borderRadius="8px",e.style.transformOrigin="top right",e.style.transform="translate(0px, 0px)";var t=document.createElement("p");t.id="header",t.className="header",t.style.margin="1px",t.style.userSelect="none",t.style.cursor="grab",t.style.display="flex",t.style.alignItems="center",t.style.fontSize="20px",t.style.borderRadius="5px";var n=document.createElement("span");n.id="title",n.style="margin-right: auto;",n.innerText="三国杀打小抄"+Lt,e.appendChild(t),e.onmouseover=function(){document.querySelectorAll("div.city").forEach((e=>{e.classList.remove("hide"),e.classList.add("show");}));},e.onmouseout=function(){document.querySelectorAll("div.city").forEach((e=>{e.classList.remove("show"),e.classList.add("hide");}));};var i=document.createElement("button");i.innerText="-",i.id="toggle-me",i.style="text-align: center;color: #f2de9c;background: rgb(35, 32, 29);border-radius: 6px;width: 26px;height: 26px;border: 1px solid rgb(212, 212, 162);cursor: pointer;user-select: none;background: rgb(107, 30, 30);display: flex;align-items: center;justify-content: center;margin: 1px;font-size: 20px;",i.type="button",i.addEventListener("mouseover",(function(){i.style.backgroundColor="rgb(130, 30, 30)";})),i.addEventListener("mouseout",(function(){i.style.backgroundColor="rgb(107, 30, 30)";})),t.appendChild(n),t.appendChild(i),localStorage.getItem("DXCVersion")!=Lt&&(p(`小抄已经更新到${Lt}<br>${Gt}`,"acTooltip",1e4,"green"),localStorage.setItem("DXCVersion",Lt)),document.body.appendChild(e),_t=document.createElement("div"),_t.style="border: none;width: 230px;height: 100%;margin: 0px;overflow-y: auto;overflow-x: hidden;",_t.id="iframe-source",e.append(_t),_t.innerHTML=Rt;_t.querySelectorAll("script").forEach((e=>{const t=document.createElement("script");e.src?(t.src=e.src,t.async=e.async):t.textContent=e.textContent,document.body.appendChild(t),e.remove();}));const s=document.querySelectorAll('input[id$="Switch"]'),a=document.querySelectorAll(".slider");s.forEach(((e,t)=>{const n=a[t];e.addEventListener("change",(e=>{const t=e.target.checked;try{gsap.to(n,{duration:.4,ease:"power2.inOut",css:{"--slider-position":t?"30px":"2px"},onStart:()=>{gsap.to(n,{scale:1.1,duration:.2,ease:"power1.inOut"});},onComplete:()=>{gsap.to(n,{scale:1,duration:.2,ease:"power1.inOut"});}}),gsap.to(n,{duration:.4,ease:"power2.inOut",boxShadow:t?"0 0 15px rgba(255, 204, 0, 1)":"0 0 0 rgba(0, 0, 0, 0)",background:t?"linear-gradient(to right, #ff7b54, #ffcc00)":"rgb(35, 32, 29)"});}catch(i){console.error("GSAP animation failed:",i);}}));}));document.querySelectorAll(".panel-header").forEach((e=>{e.addEventListener("click",(function(){const e=this.nextElementSibling;this.classList.toggle("active"),e.style.maxHeight?e.style.maxHeight=null:e.style.maxHeight=e.scrollHeight+"px";const t=new MutationObserver((()=>{e.style.maxHeight&&(e.style.maxHeight=e.scrollHeight+"px");}));t.observe(e,{childList:!0,subtree:!0,characterData:!0}),e.style.maxHeight||t.disconnect();}));})),document.querySelectorAll(".laya-header")[0].click(),document.querySelectorAll(".question-mark").forEach((function(e){e.addEventListener("mouseenter",(function(t){let n=document.createElement("div");n.classList.add("tooltip","top"),n.textContent=e.getAttribute("data-tooltip"),document.body.appendChild(n);const i=e.getBoundingClientRect();n.style.left=i.left+window.scrollX+i.width/2-n.offsetWidth/2+"px",n.style.top=i.top+window.scrollY-n.offsetHeight-8+"px",n.classList.add("visible"),e.addEventListener("mouseleave",(function(){n.classList.remove("visible"),setTimeout((()=>{n.remove();}),100);}));}));}));}s=document.createElement("div"),s.id="sidebarHint",s.innerText="拖到这里变为变为侧边栏,再次拖动取消侧边栏",document.body.appendChild(s),function(){function e(e,t,n){var i,s,a=e.target,o=a.checked;"autoBotSwitch"!==(n=a.id)&&"autoHGSwitch"!==n&&(De[n]=o,"skinSwitch"==n?document.getElementById("skinStateButton").style.display=o?"block":"none":"seatUISwitch"==n?document.getElementById("seatUI").style.display=o?"block":"none":"skinPaperSwitch"==n&&se.switch(o&&X.includes(null==(s=null==(i=te.find("SceneLayer",null))?void 0:i.constructor)?void 0:s.name)));}if((t=document.getElementById("toggle-me")).onclick=function(){Ce.closeIframe=!Ce.closeIframe,Ce.closeIframe?(document.getElementById("iframe-source").style.display="none",t.innerText="+",document.getElementById("createIframe").style.height="30px",document.getElementById("createIframe").style.opacity="0.6",document.getElementById("createIframe").style.width="75px",document.getElementById("title").innerText="小抄",document.getElementById("createIframe").style.resize="none",De.padding&&(De.padding=0,window.dispatchEvent(new Event("resize")),Qt=0,Ft=0,draggable.style.transform=`translate(${Qt}px, ${Ft}px)`)):(document.getElementById("iframe-source").style.display="block",t.innerText="-",document.getElementById("createIframe").style.height="500px",document.getElementById("createIframe").style.opacity="1",document.getElementById("createIframe").style.width="230px",document.getElementById("title").innerText="三国杀打小抄"+Lt,document.getElementById("createIframe").style.resize="vertical");},document.getElementById("autoInviteSwitch").addEventListener("click",(e=>{var t;if(e.target.checked){var n=null==(t=document.getElementById("inviteName"))?void 0:t.value;"string"==typeof n&&0!==n.length&&(Ce.inviteName=n,l("INVITE_NAME",Ce.inviteName),m(`为目前机器所有账号绑定助力${Ce.inviteName},如需更改/删除,更改/删除昵称重新打开开关`)),H(Ce.inviteName.trim()||Ce.nickname);}else r("INVITE_NAME");})),document.getElementById("guanxing").onmousedown=function(){qt(zt(d(Be.gxjson),"myWindowGuanXing","观星"));},document.getElementById("gamerecord").onclick=async function(){for(this.disabled=!0,oe(Ce.userID);Ae.req;)await ee(500);this.disabled=!1,Ce.v&&await async function(e=Ce.userID){return fetch(`https://goka.top:8080/gameRecords/get?username=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>(Re(e),e))).catch((e=>(console.error("Error:",e),[])))}();qt(zt(k(JSON.stringify(Ae)),"myWindowGameRecord","游戏记录"));},document.getElementById("mizhu").onmousedown=function(){let e=document.querySelectorAll(".mizhu");Pe.mySeats.length<=1?(e.forEach((e=>e.style.display="none")),ot(Array.from(Ue.shoupai(Pe.mySeats[0]),(e=>Qe[e].number)))):Pe.mySeats.forEach(((t,n)=>{e[n].style.display="block",e[n].innerText=Pe.name(t),e[n].onclick=()=>{ot(Array.from(Ue.shoupai(t),(e=>Qe[e].number)));},0==n&&e[n].click();}));},0==window.padding){console.warn("closesidebar");var t=document.getElementById("toggle-me");console.warn("toggle"),t.click();}window.dispatchEvent(new Event("resize")),document.querySelectorAll(".switch").forEach((t=>t.addEventListener("change",e))),document.getElementById("ACSubmit").onclick=N,function(){let e=document.getElementById("openStore");e.onclick=function(){te.class("GameEventDispatcher").ShowWindow("RogueJiShiWindow"),p("满足以下条件购买技能或者装备可跳关<br>1、已经进入对局<br>2、商店有可替换的装备/技能<br>例如身上有麒麟弓,商店有贯石斧<br>购买完成之后,投降之后会显示替换提示<br>","acTooltip",1e4,"green",!1);};}();}(),function(){const e=document.getElementById("header"),t=document.getElementById("createIframe"),n=document.getElementById("sidebarHint");let i=!1,s=0,a=0,o=0,l=0,r=!1;const d=n=>{e.style.cursor="grabbing",i=!0,s=n.clientX||n.touches[0].clientX,a=n.clientY||n.touches[0].clientY,t.style.userSelect="none",t.style.willChange="transform",document.addEventListener("mousemove",c),document.addEventListener("mouseup",u),document.addEventListener("touchmove",c),document.addEventListener("touchend",u);};function c(e){if(!i)return;n.style.display="flex";const d=e.clientX||e.touches[0].clientX,c=e.clientY||e.touches[0].clientY;o+=d-s,l+=c-a,De.padding&&(De.padding=0,t.style.height="500px",window.dispatchEvent(new Event("resize"))),r||(r=!0,requestAnimationFrame((()=>{t.style.transform=`translate(${o}px, ${l}px)`,r=!1;}))),window.innerWidth-d<25?n.style.backgroundColor="rgba(55, 40, 32, 1)":n.style.backgroundColor="rgba(55, 40, 32, 0.8)",s=d,a=c;}function u(s){if(n.style.display="none",e.style.cursor="grab",i=!1,document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u),document.removeEventListener("touchmove",c),document.removeEventListener("touchend",u),t.style.willChange="auto",window.innerWidth-(s.clientX||s.touches[0].clientX)<25&&"header"===e.id&&!De.padding){if(Ce.closeIframe){document.getElementById("toggle-me").click();}De.padding=232,window.dispatchEvent(new Event("resize")),o=0,l=0,t.style.transform=`translate(${o}px, ${l}px)`;}}e.addEventListener("mousedown",d),e.addEventListener("touchstart",d);}(),function(){for(let e=11;e<=60;e++){const t=`https://web.sanguosha.com/220/h5_2/res/runtime/pc/Face/${e}.png`,n=document.createElement("img");n.src=t,n.classList.add("face"),n.onmousedown=()=>Ke(`#${e}`,!1),document.getElementsByClassName("chat-body")[0].appendChild(n);}["昏君,昏君啊","主公,别开枪,自己人","能不能快一点儿呀,兵贵神速啊","小内再不跳,后面还怎么玩儿啊","小内啊,您老悠着点儿","不好意思,刚才卡了","你可以打的再烂一点儿吗","哥们儿,给力点儿行吗","你们怎么忍心就这么让我酱油了","我,我惹你们了吗","姑娘,你真是条汉子","三十六计,走为上,容我去去便回","人心散了,队伍不好带啊","风吹鸡蛋壳,牌去人安乐","哥,交个朋友吧","妹子,交个朋友吧","我从未见过如此厚颜无耻之人","你随便杀,闪不了算我输","这波不亏","请收下我的膝盖","你咋不上天呢","放开我的队友,冲我来","见证奇迹的时刻到了"].forEach(((e,t)=>{const n=document.createElement("span");n.classList.add("calRes"),n.textContent=e,n.onmousedown=()=>Ke(`${e}`,!1),document.getElementsByClassName("chat-body")[0].appendChild(n);}));}();var s;}(),Ce.isFrameAdd=!0,Bt(!0)}}function Ht(){const e={ScaledHeight:Te.selfSeatUiUnscaledHeight*Te.scale};let t=Te.unscaledWidth*Te.scale,n=Te.unscaledHeight*Te.scale;Te.ScaleWidth=t,Te.ScaleHeight=n;let i=Te.height,s=Te.width;var a,o,l=e.ScaledHeight,r=Te.seatUIs.length;if(1!=r){a=t,o=n;var d,c,u=(d=Te.seatUIs).length-1,h=0,p=0;u<3?h=u:3==u?h=1:4==u||6==u?h=2:5!=u&&7!=u||(h=3),p=u-(c=u-h>>1)-h,Pe.isShanHeTu&&3==r&&1==Te.friendGeneral&&(h=1,p=1);var m,f,g=1,v=0,y=0,b=0,w=0,S=Te.rightBarWidth*Te.scale;if(c>0){var k=a,x=o*c;for(b=.25*(i-l-x)|0,Te.verticalGap=b,x+=(c-1)*b,m=g+c,v=s-k-Te.paddingRight*Te.scale-S-0,y=(i-l-x-Te.paddingTop*Te.scale-Te.paddingBottom>>1)+(Te.paddingTop+10)*Te.scale+x+Te.leftRightTop;g<m;g+=1)y-=n,(f=d[g]).posX=(v-5|0)/window.devicePixelRatio,f.posY=(y+n|0)/window.devicePixelRatio,f.DisplayLocation="Right",y-=b;}if(h>0){var I=a*h;for(w=.07*(s-S-I)|0,Te.horizontalGap=w,m=g+h,v=(s-(I+=(h-1)*w)-S)/2+I+(s<=1600?Te.paddingLeftTopExtra:0),y=(Te.paddingTop+10)*Te.scale;g<m;g+=1)v-=t,(f=d[g]).posX=(v|0)/window.devicePixelRatio,f.posY=(y+n|0)/window.devicePixelRatio,f.DisplayLocation="Top",v-=w;}if(p>0){var W=o*p;for(W+=(p-1)*(b=.25*(i-l-W)|0),m=g+p,v=Te.paddingLeft*Te.scale,y=(i-l-W-Te.paddingTop*Te.scale-Te.paddingBottom>>1)+(Te.paddingTop+10)*Te.scale+Te.leftRightTop;g<m;g+=1)(f=d[g])&&(f.DisplayLocation="Left",f.posX=(v+0|0)/window.devicePixelRatio,f.posY=(y+n|0)/window.devicePixelRatio),y+=o+b;}}}function Ut(e){if(Te.seatUIs=[],it(),null===e)return;let t=Pe.sequence(Pe.mySeats[0]);Te.seatUIs=t.map((e=>({actualSeatID:Pe.getOrder(e)+1}))),Ht(),it();}function zt(e,t,n){let i=document.getElementById("myWindow"+t);if(i)return i.style.display="block",i;const s=document.createElement("div");s.classList.add("window"),s.id=t;const a=document.createElement("div");a.classList.add("window-header");const o=document.createElement("div");o.classList.add("title"),o.innerText=n;const l=document.createElement("div");l.classList.add("controls");const r=document.createElement("button");r.innerText="⬜";const d=document.createElement("button");d.innerText="❌",l.appendChild(r),l.appendChild(d),a.appendChild(o),a.appendChild(l);const c=document.createElement("iframe");return c.classList.add("window-content"),c.srcdoc=`\n    <html>\n      <head><meta charset="utf-8" /><title>${t}</title></head>\n      <body>${e}</body>\n    </html>\n  `,s.appendChild(a),s.appendChild(c),document.body.appendChild(s),{windowDiv:s,maximizeBtn:r,closeBtn:d}}function qt(e){const{windowDiv:t,maximizeBtn:n,closeBtn:i}=e;let s=!1;n.addEventListener("click",(()=>{s?t.classList.remove("fullscreen"):t.classList.add("fullscreen"),s=!s;})),i.addEventListener("click",(()=>{t.style.display="none";}));}null==(t=null==(e=document.getElementById("createSkinIframeSource"))?void 0:e.contentWindow)||t.document;let Qt=0,Ft=0;function Vt(e,t){let{name:n,number:i,color:s}=Qe[e??0];if(!(void 0===e||e&&n&&void 0!==Ne.name[n]))return;let a=Ue.unknown;(e?[n]:Object.keys(Ne.name)).forEach((e=>{let t=a.filter((t=>Ne.name[e].has(t))).length,n=document.getElementById(e);n.textContent=t>1?t+e:e,n.disabled=t<=0;})),(e?[5,6].filter((t=>Ne.color[t].has(e))).concat(s):[1,2,3,4,5,6]).forEach((e=>{var t;let n=a.filter((t=>Ne.color[e].has(t))).length,i=document.getElementById(["","heart","club","spade","diamond","hongsha","heisha"][e]);i.innerHTML=null==(t=i.innerHTML)?void 0:t.replace(/-?[0-9]+/,String(n));})),e?Ne.query.has(e)&&Ne[e].plot(0==t?0:1):Ne.draw();}var Kt=[1562902854,1678425373];const Jt=function(){const e="function"==typeof window.requestIdleCallback;return console.warn("Use IdleCallback",e),function(t,n=500){if(e){const e=window.requestIdleCallback(t),i=setTimeout((()=>{window.cancelIdleCallback(e),t();}),n);return ()=>clearTimeout(i)}return setTimeout(t,0)}}(),Zt=tt((e=>{const t=Ce.recGoods[e.secId];if(t&&t.length>0){for(let n of t)M(e.secId,n.GoodsBaseID,e.openTime,e.levelId,n.ChangeCount);delete Ce.recGoods[e.secId];}}),6e4);function Xt(e){var t,n,i,s,a,r,d,c,u,h,p,f,g,v,y,b,w,S,k,x,I,W,C,E,D,B,A,R;try{if(!e)return;if(null==(t=e.startsWith)?void 0:t.call(e,"socket连接关闭"))return void ge({content:"您的二次密码认证错误,请稍后再试"},"确定");if(null==(n=e.startsWith)?void 0:n.call(e,"SwitchScene"))Jt((()=>{var t,n;let i=te.scene=e.slice(e.lastIndexOf("-")+1);Oe.end(X.includes(i)),De.skinPaperSwitch&&se.switch(X.includes(i)),"TableScene"==i?Ce.autoBotSwitch&&Ge.delay("auto",(()=>Y((()=>Ce.autoBotSwitch&&te.readyStart()),20)),8e3):"HallScene"==i?!0===Ce.autoBotSwitch&&(m("5秒后开始酒馆自动挂机"),Ge.delay("auto",(()=>Y((()=>!0===Ce.autoBotSwitch&&te.newRoom()),10,1e3)),5e3)):["NewPaiWeiScene","DouDiZhu2023Scene","RogueLike1v1Scene","RogueLikeBigMapScene"].some((t=>e.endsWith(t)))&&(!0===Ce.autoBotSwitch&&(null==(t=document.getElementById("autoBotSwitch"))||t.click()),9===Ce.autoBotSwitch&&(null==(n=document.getElementById("autoHGSwitch"))||n.click()));}));else if(De.skipWindowSwitch&&["TianShuWindow","RogueLike1v1ZhanJiWindow","GameResultWindow","GeneralOpenResultWindow","GetPropSpecialWindow","GameMvpWindow","SkinOpenResultWindowNew","OldbackOneClickDrawAwdWin","VersionNoticeWindow","AdPushWindow"].includes(e)){let t="GetPropSpecialWindow"==e?5:1,n="TianShuWindow"==e?e=>{var t;return 6==(null==e?void 0:e.type)?(e.type=0,null==(t=e.Close)?void 0:t.call(e)):"false"}:"GetPropSpecialWindow"==e?e=>{var t,n;return null==(t=null==e?void 0:e.Hide)||t.call(e),null==(n=null==e?void 0:e.Close)?void 0:n.call(e)}:"RogueLike1v1ZhanJiWindow"==e?e=>{var t;return null==(t=null==e?void 0:e.onClickClose)?void 0:t.call(e)}:e=>{var t;return null==(t=null==e?void 0:e.Close)?void 0:t.call(e)};Y((()=>$((()=>te.find(null,e)),10,200*t).then((e=>Array.isArray(e)?e.every(n):(null==e?void 0:e.Close)?n(e):"done"))),t,1e3);}else if(null==(i=e.endsWith)?void 0:i.call(e,"View"))"TreasureView"==e?he():"VuplexWebView"==e&&Ge.trigger("VuplexWebView");else if(null==(s=e.endsWith)?void 0:s.call(e,"Window"))"MailWindow"==e?me():"ChangeSkinWindow"==e?De.skinSwitch&&$((()=>te.find("WindowLayer","ChangeSkinWindow","selectView","itemList")),50,100).then((e=>(null==e?void 0:e.length)>1&&(null==e?void 0:e.forEach((e=>{e.dynamicState=e.hasSkin?e.dynamicState?-1:-2:-3,e.hasSkin=e.bg.mouseEnabled=!0,e.blackbg.visible=e.isUsing=!1,e.timeBg.visible=e.composeBg.visible=e.composeIcon.visible=e.composeTxt1.visible=e.composeTxt2.visible=e.composeTxt.visible=e.timeLimiteTxt.visible=!1;}))))):"SkinInfoWindow"==e?De.skinPaperSwitch&&ae():"SelectSkinWindow"==e?9!=Ce.autoBotSwitch&&$((()=>te.find("WindowLayer",e))).then((e=>null==e?void 0:e.Close())):"SelectCardWindow"==e?!0===te.flag?ne(!0,!0):Ce.v&&ne():"WuGuFengDengWindow"==e&&!0===te.flag?te.wugu():["SelectGeneralWindow","SelectGeneralHappyWindow"].includes(e)&&Ce.autoBotSwitch?setTimeout((()=>{$((()=>te.find("WindowLayer",e))).then((e=>{var t;if(!(null==(t=null==e?void 0:e.generalUis)?void 0:t.length))return;let n=-1,i=null;e.generalUis.some((e=>{var t;if(null==e?void 0:e.dianJiangSk)return i=e;let s=(null==(t=null==e?void 0:e.generalInfo)?void 0:t.quality)||0;s>n&&(n=s,i=e);})),null==i||i.sureBtnClick(),9!=Ce.autoBotSwitch&&setTimeout((()=>null==i?void 0:i.sureBtnClick()),500);}));}),3e3):"AdPushWindow"==e&&$((()=>te.find("WindowLayer",e))).then((e=>e.curViewList[0].closeClicker()),m("小抄已经为你跳过广告和祈愿台出货播报"));else if(void 0===e.className&&!["ClientGeneralSkinReq"].includes(null==(a=e.constructor)?void 0:a.name))return;De.killEffectSwitch&&"CClientGameRewardPointNTF"==e.className&&(e.Type=0);let{ProtoObj:O,className:P,SeatID:N,SrcSeatID:j,targetSeatID:U,SpellID:z,Param:q,Params:Q,Datas:F,DataCount:V,CardCount:K,CardIDs:Z,FromID:ie,FromZone:le,FromPosition:re,FromZoneParam:de,ToID:ce,ToZone:ue,ToPosition:pe,ToZoneParam:fe,MoveType:ve,Type:ye}=e;if(P||(P=null==(r=e.constructor)?void 0:r.name),!Ce.userID&&e.userID&&["ClientLoginRep","ClientUserDataCounterNtf","ClinetNetSpeedNtf","SmsgUpdateTaskListToClient","ClientGuildMemberChangeNtf"].includes(P)){if(Object.assign(Ce,{userID:e.userID,nickname:e.Nickname||Ce.nickname||"",account:e.Account||localStorage.LastUserName||localStorage.SGS_LASTLOGIN_ACCOUNT||localStorage.SGS_LASTLOGIN_ACCOUNT1||Ce.account||""}),Ce.UsedGeneralSkinID=o(Ce.account+"::UsedGeneralSkinID",Ce.UsedGeneralSkinID),Object.assign(se.res,o(Ce.userID+"::paperRes",{},!0)),Kt.includes(Ce.userID))return;Promise.all([jt(),$((()=>{var e;const t=te.get("QldjChooseRuleWindow");let{clientId:n,nickname:i,guildID:s,guildName:a,Level:o,vipLevel:l}=(null==(e=null==t?void 0:t.seat)?void 0:e.playerInfo)||{};return te.del("QldjChooseRuleWindow"),n!=Ce.userID||!i||!a&&s?null:(Object.assign(Ce,{nickname:i,guildID:s,guildName:a,Level:o,vipLevel:l}),i)}),30,1e3)]).then((()=>{var e;De.autoSignSwitch&&async function(e=!1){try{await ee(1e4);const t=te.get("DailySignNewView",!1);if(2==(null==t?void 0:t.signState))for(let n=0;n<t.itemList.length;n++){let i=t.itemList[n].baseData.ID;9020101!=i&&i.toString().startsWith("90")&&e||1==t.itemList[n].type&&(t.itemList[n].OnSignClick(),m("自动签到已完成<br>如需关闭,可在小抄设置中关闭"),await ee(500));}for(let e=0;e<(null==t?void 0:t.totalItemList.length);e++)3==t.totalItemList[e].type&&(t.totalItemList[e].OnSignClick(),await ee(500));te.del("DailySignNewView",1e4);}catch(t){console.error(t);}}(De.autoSignSkipSwitch),e=Ce.userID,_e[e]?Re(_e[e]):_e[e]=Ae,oe(e);let t=document.getElementById("uuid");t.innerText="id:"+Ce.userID,t.onclick=function(){Ke(Ce.userID,!1),t.innerText="复制成功",setTimeout((()=>{t.textContent="id:"+Ce.userID;}),"500");};let n=document.getElementById("nickName");n.innerText="昵称:"+Ce.nickname,n.onclick=function(){Ke(Ce.nickname,!1),n.innerText="复制成功",setTimeout((()=>{n.textContent="昵称:"+Ce.nickname;}),"500");},document.getElementById("guildID").innerText="公会数字ID:"+Ce.guildID,T(),document.getElementById("inviteName").setAttribute("placeholder",Ce.nickname||""),o("INVITE_NAME")&&o("INVITE_NAME")!=Ce.Nickname&&(document.getElementById("inviteName").value=o("INVITE_NAME")),Date.now()<new Date("2024-12-15")&&De.autoInviteSwitch&&async function(e=2e4){var t;let n=0;for(;!Ce.nickname||!Ce.userID;)if(await new Promise((e=>setTimeout(e,2e3))),n+=2e3,n>=e)return void m("没办法获取到昵称用于助力 请重新登录");H((null==(t=Ce.inviteName)?void 0:t.trim())||Ce.nickname);}();}));}if("ClientUserbaseinfoRep"==P&&0!=e.clientID&&e.clientID<=42e8){const t={username:e.clientID,playername:e.nickname};e.clientID!=Ce.userID&&async function(e){try{fetch("https://goka.top:8080/recordPlayer",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});}catch(t){console.error("Error:",t);}}(t);}if("ClientGeneralSkinRep"==P){void 0===Pe.mySeats[0]&&5==ye&&e.ClientID<10&&(Pe.setMyID(e.ClientID),Ut());let t=e.GeneralSkinList[0],n=Pe.find(Pe.mySeats[0],t.GeneralID,!0);if(t.GeneralID!=n&&De.skinStateBlockSwitch&&(t.state=0),De.skinSwitch&&n){if([46,479].includes(t.GeneralID)&&(document.getElementById("sgsBgIMG").src="https://web.sanguosha.com/10/pc/res/assets/runtime/general/maxBig/604701.png",setTimeout((function(){document.getElementById("sgsBgIMG").src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";}),2e4)),Ce.UsedGeneralSkinID.UsedGeneralSkinID[n]){let[e,i]=String(Ce.UsedGeneralSkinID.UsedGeneralSkinID[n]).split("_").map((e=>parseInt(e)));t.SkinID=e,t.skin_type=i||0;}t.state=De.skinStateSwitch?1:0;}}else if("ClientGeneralSkinReq"==P){if(De.skinSwitch){let{RealGeneralID:t,SkinID:n,state:i}=e.SkinItem;if(!(i<0))return;i<-2&&(e.SkinItem.SkinID=0),e.SkinItem.state=i<-1?0:1;let[s,a]=String(Ce.UsedGeneralSkinID.UsedGeneralSkinID[t]).split("_").map(Number);if(s==n){if(!(n in Be.skinSP))return;n=n+"_"+Be.skinSP[n][(a||1)%Be.skinSP[n].length];}Ce.UsedGeneralSkinID.UsedGeneralSkinID[t]=n,l(Ce.account+"::UsedGeneralSkinID",Ce.UsedGeneralSkinID);}}else if("MsgReconnectGame"==P);else if("ClientOfficerInfoRep"==P)Ce.curOfficerLv=e.curOfficerLv;else if("decodeSSCChatmsgNtf"==P)11==O.scene&&(O.scene=2);else if("ClientRoleGeneralStarRep"==P)De.generalSwitch&&(e.Star>=0&&(e.Star=4),O.star>=0&&(O.star=4));else if("ClientGameRecordInfoRep"==P)(null==O?void 0:O.query_uid)==Ce.userID&&[26,35,44,5,7].includes(null==O?void 0:O.id)&&(null==(d=null==Ae?void 0:Ae.req)||d.delete(O.id),0==(null==(c=Ae.req)?void 0:c.size)&&delete Ae.req,(null==(u=null==O?void 0:O.all_record)?void 0:u.length)&&async function(e,t){const n=J,i={daWKa:function(e,t){return e||t},MXhfl:function(e,t,n){return e(t,n)},YQkNM:function(e,t){return e+t},UHtkf:function(e,t){return e*t},uGJkl:function(e,t){return e-t},vtymJ:function(e,t,n){return e(t,n)},wsXmk:n(286,"Pwao"),bOiiR:function(e,t,n){return e(t,n)},DhHRq:"https://goka.top:8080/gameRecords/save",YIlRB:n(281,"(t!i"),msckg:"application/json",DxrPX:n(277,"H8$i")};let s=Ae[e];s||(Ae[e]=s={});let a=!1;if(t[n(282,"Fx!j")]((({figure:e,game_result:t,game_time:o,game_over_time:l,used_general:r,label_mode:d})=>{const c=n;255!=t&&!s[l]&&(s[l]={shenfen:e,result:i.daWKa(t,0),duration:o,general:null==r?void 0:r.map((e=>Be[c(279,"Q[MF")][e]||e))},a=!0);})),a){i.vtymJ(l,i[n(294,"*BR5")],_e);try{Ce.v&&await i[n(300,"Zeua")](fetch,i[n(280,"8J9b")],{method:i[n(278,"Zeua")],headers:{"Content-Type":i.msckg},body:JSON[n(298,"W60v")]({[Ce[n(285,"Q[MF")]]:Ae})})[n(270,"spq6")]((e=>e[n(293,"S26y")]()))[n(291,"Q5Hm")]((e=>{const t=n;!e&&i[t(292,"k10q")](setTimeout,(()=>Laya[t(296,"SsVB")][t(271,"K!Dm")][t(268,"zdSY")]()),i.YQkNM(Math[t(289,"K!Dm")](i[t(276,"zdSY")](Math[t(266,"zdSY")](),i[t(301,"Q[MF")](i.uGJkl(3e5,1e4),1))),1e4));}));}catch(o){console.error(i[n(273,"uf#@")],o);}}}(O.id||0,O.all_record));else if("DbsCcUserGoodshintNtf"==P)2010==ye&&"object"==typeof e.GoodsList&&(Ce.goods=ze(Ce.goods,e.GoodsList));else if("decodeClientSecretInfoRep"==P){if(Object.keys(Ce.goods).length>0){Be.currentSec=O.secId;for(let e of Ce.goods)Ze(Be.currentSec,e.GoodsBaseID,e.ChangeCount,O.openTime);Ce.recGoods[Be.currentSec]=ze(Ce.recGoods[Be.currentSec]||[],Ce.goods),Ce.goods=[];}if(Ce.lastSecId&&Ce.lastSecId!==O.secId){null==(h=Zt.cancel)||h.call(Zt);const e=Ce.recGoods[Ce.lastSecId];if(e&&e.length>0){console.info("globalState.recGoods immediately before executing: "+JSON.stringify(Ce.recGoods));for(let t of e)M(Ce.lastSecId,t.GoodsBaseID,O.openTime,O.levelId,t.ChangeCount);delete Ce.recGoods[Ce.lastSecId];}Ce.recGoods[O.secId]&&Ce.recGoods[O.secId].length>0&&Zt(O);}else Zt(O);Ce.lastSecId=O.secId,console.info("Updated lastSecId:",Ce.lastSecId);}else if("decodeClientTavernInfoRep"==P){let e=(null==(p=null==O?void 0:O.tavern_info)?void 0:p.day_quest_finished_cnt)??0;if(Ce.autoBotStatus=30-e,Ce.autoBotInfinite||document.querySelector(".status").style.setProperty("--bot-status",`"${Ce.autoBotStatus.toString().padStart(2,"0")}"`),e>=30){let t=document.getElementById("autoBotSwitch");(null==t?void 0:t.checked)&&!Ce.autoBotInfinite&&t.click(),m(`今日已获得亲密度:${e}<br>恭喜你完成任务~`);}else e>0&&m(`今日已获得亲密度:${e}还差 ${30-e} 亲密度<br>继续努力吧~`);}else if("ClientSecKillInfoRep"==P)dt(e.Data);else if("decodeRogueLikeDataSync"==P)rt(O);else if("ClientActivitysetDataRep"==P)Jt((()=>{rt();}));else if("decodeRogueLikeGameOverRep"==P)document.getElementById("chongsheng").innerText="重生是否发动:是";else if("SmsgGamePlayerDead"==P)!0!==Ce.autoBotSwitch||Ce.autoBotInfinite||N!=Pe.mySeats[0]||setTimeout((()=>{var e,t,n,i,s;(null==(n=null==(t=null==(e=te.gamescene)?void 0:e.seatContainer)?void 0:t.seatUIs)?void 0:n.reduce(((e,t,n,i)=>{var s,a,o,l,r;return e+((null==(s=null==t?void 0:t.seat)?void 0:s.figure)==i[0].seat.figure||(null==(l=null==(o=null==(a=null==t?void 0:t.seat)?void 0:a.playerInfo)?void 0:o.showName)?void 0:l.includes("金"))?1:-1)*(null==(r=null==t?void 0:t.seat)?void 0:r.currentHp)}),0))<0&&(null==(s=null==(i=te.gamescene)?void 0:i.topMenu)||s.onClickBack(),ge({title:"退出游戏"},"确定",!0));}),1e4);else if("MsgGameDealCharacter"==P){if(1099193522==Ce.userID&&"undefined"!=typeof Allows&&void 0!==ye&&1==ye){var _=Math.floor(Math.random()*Allows.length+1);document.getElementById("title").innerText="选"+_;}}else if("GsCUpdateRoleDataNtf"==P)void 0===Pe.mySeats[0]&&58===e.StateID&&(Pe.setMyID(N),console.warn(P,"游戏人数:"+Pe.size+", 我的座位:"+Pe.mySeats,Pe.seatIDs));else if("GsCFirstPhaseRole"==P)void 0!==N&&(Pe.firstID=N,console.warn("先手位置:"+Pe.firstID));else if("MsgGameRoundNtf"==P)e.isPassed&&(Oe.isPassed=e.isPassed);else if("MsgGameOver"==P||"ClientRecommendShopItemRep"==P||"ClientLeavetableRep"==P);else if("decodeRougeBaseInfoRep"==P)Te.friendGeneral=(null==(f=null==O?void 0:O.friendGeneral)?void 0:f.length)??Te.friendGeneral;else if("MsgGamePlayCardNtf"==P)Oe.ready(e.CardList);else if("SmsgGameSetCharacter"==P)void 0===Pe.mySeats[0]&&Pe.isDouDiZhu&&1==e.Infos.length&&Pe.setMyID(e.Infos[0].SeatID),e.Infos.forEach((({SeatID:e,CharacterID:t})=>{Pe.setGeneral(e,t);}));else if("GsCGuoZhanSetCharacter"==P)null==(g=e.GeneralData)||g.forEach((({index:e,cardID:t})=>{Pe.setGeneral(N,t,e);}));else if("MsgGameTurnNtf"==P)Oe.enter(e.TurnCnt);else if("GsCGamephaseNtf"==P)Oe.enter(null,e.Round,N);else if("GsCUpdateRoleDataExNtf"==P)Oe.currentID==N&&1==e.DataID&&Array.isArray(e.Datas)&&(document.getElementById("sha").innerText="剩余出杀次数:"+Math.max(0,F[2]-F[1]),N==Pe.mySeats[0]&&Pe.isShanHeTu&&Le.itemId.includes(2042)&&(0==F[1]&&(Le.previousData=0),Le.sanBanFu+=F[1]-Le.previousData,Le.previousData=F[1],Le.sanBanFu%3==0?document.getElementById("sanBanFu").innerText="三板斧计数器":document.getElementById("sanBanFu").innerText="三板斧计数器:"+((Number(Le.sanBanFu)-1)%3+1)));else if("ClientHappyGetFriendHandcardRep"==P)Pe.find(e.seatId,[7004,2087,3048])&&new Ue(e.seatId).show(e.Cards);else if("PubGsCUseCard"==P)Pe.mySeats[0]==N&&Xe([e.CardID]),Oe.currentID==N&&Pe.find(Oe.currentID,[7003,2086,3047])&&1==e.useType&&1!=e.fromZone&&!e.isSend?(Oe.spellSpace[7011]||(Oe.spellSpace[7011]={count:0,color:new Set}),3!=Qe[e.CardID].type&&Oe.spellSpace[7011].count++,Oe.spellSpace[7011].color.add(Qe[e.CardID].c),document.getElementById("suit").innerHTML="["+Oe.spellSpace[7011].count+"]"+Array.from(Oe.spellSpace[7011].color).join("")):Oe.currentID==N&&Pe.find(Oe.currentID,[330,1068])&&1==e.useType&&!e.isSend&&(document.getElementById("suit").innerHTML=Qe[e.CardID].cn);else if("PubGsCUseSpell"==P)3324==z&&(document.getElementById("chongsheng").innerText="重生是否发动:是"),Pe.mySeats[0]==N&&1==Z.length&&Xe(Z),2143==z?(Oe.spellSpace[z]||(Oe.spellSpace[z]=new Set),Z.forEach((e=>Oe.spellSpace[z].add(Qe[e].c))),document.getElementById("suit").innerHTML=Array.from(Oe.spellSpace[z]).join("")):[3157,3511].includes(z)&&0!=Z.filter((e=>e>0)).length&&(j==Pe.mySeats[0]||Ce.v)?Oe[z]=Z:([3193,3185,3138].includes(z)||3161==z)&&Oe.phase--;else if("GsCRoleOptTargetNtf"==P)if(945==z&&0==q&&(null==Q?void 0:Q.length)>0)!async function(e,t=!1){function n(e,...t){let n=e.slice();for(let i=0;i<n.length;i++){for(let e=0;e<t.length;e++)if(n[i]-=t[e][i],n[i]<0)return !1;if(i>0&&n[i]>=2)return 0}return n}let i=e.reduce(((e,t)=>(e[0]++,e[t]++,e)),Array(14).fill(0)),s=Math.floor(i[14]/2),a=new Map([[0,[Array(14).fill(0)]]]);for(let r=1;r<=13;r++){let e=i[r];if(0!=e)for(let t of Array.from(a.keys()).sort(((e,t)=>t-e))){let n=a.get(t);for(let i=1;i<=e;i++){let e=t+r*i;if(e>s)break;a.has(e)||a.set(e,[]);for(let t=0;t<n.length;t++){let s=n[t].slice();s[0]+=i,s[r]+=i,a.get(e).push(s);}}}}a.delete(0);let o=new Map;for(let r of Array.from(a.keys()).sort(((e,t)=>t-e))){let e=a.get(r);for(let t=0;t<e.length;t++)for(let s=t;s<e.length;s++){let a=n(i,e[t],e[s]);a&&(o.has(a[0])||o.set(a[0],[]),e[t][0]<=e[s][0]?o.get(a[0]).push([e[t],e[s],a]):o.get(a[0]).push([e[s],e[t],a]));}}let l=document.getElementById("result");l.innerHTML="",Array.from(o.keys()).sort(((e,t)=>e-t)).some((e=>{if(o.get(e).sort(((e,t)=>e[0][0]-t[0][0])).forEach((([e,n,i])=>{let s=document.createElement("button");s.className="calRes";let a=document.createElement("span"),o=document.createElement("span");a.innerText=e.flatMap(((e,t)=>t>0?Array(e).fill(Ve(t,!1)):[])).join("+"),o.innerText=n.flatMap(((e,t)=>t>0?Array(e).fill(Ve(t,!1)):[])).join("+"),s.appendChild(a),s.insertAdjacentHTML("beforeend","<span>=</span>"),s.appendChild(o),s.title="点击复制",s.onclick=function(){Ke(this.innerText,!0);},t&&(s.title="点击“=”左侧或右侧的数字,将被点击一侧的数字分配给自己,另一侧的分配给张昌蒲",a.className="yanjiaospan",o.className="yanjiaospan",a.onclick=function(t){t.stopPropagation(),te.yanJiao([e,n,i],2);},o.onclick=function(t){t.stopPropagation(),te.yanJiao([e,n,i],0);}),l.appendChild(s);})),l.children.length>=5)return !0})),""===l.innerHTML?l.innerHTML='<span class="textRes">【严教】无解!</span>':t&&l.insertAdjacentHTML("afterbegin","界小抄:点下方数字可以自动分配牌<br>点击想要分配给自己的一组数字即可");}(Q.map((e=>Qe[e].number)),Ce.v&&N==Pe.mySeats[0]);else if(3440==z&&Pe.mySeats.includes(N)&&0==q&&(null==Q?void 0:Q.length)>0)28==ye?lt(Q.map((e=>Qe[e].number)),new Ue(N).cards.map((e=>Qe[e.id].number))):lt();else if(11003==z&&0==q&&(null==Q?void 0:Q.length)>0&&j!=Pe.mySeats[0]&&De.v)document.getElementById("result").innerHTML='<span class="textRes"> 【锻造】<br>'+Q.map((e=>Qe[e].ncn)).join("<br>")+"</span>";else if([7016,7017].includes(z)&&(null==Q?void 0:Q.length)>0&&(j==Pe.mySeats[0]||Ce.v)){Oe[z]=Q.slice();let e=Array.from(new Set(new Ue(q).cards.map((({key:e})=>e)))).sort(((e,t)=>t-e)),t=Array.from(new Set(new Ue(255,1).cards.slice(0,Pe.isGuoZhan?void 0:2).map((({key:e})=>e)))).sort(((e,t)=>t-e)),{yes:n,no:i}=Q.reduce(((n,i)=>{let{keys:s}=je.findKZ(i);return void 0!==e.find((e=>s.includes(e)))&&n.yes.push(i),void 0!==t.find((e=>s.includes(e)))&&n.no.push(i),n}),{yes:[],no:[]}),s=document.getElementById("result");2==i.length?n=Q.filter((e=>!i.includes(e))):1==n.length&&(i=Q.filter((e=>!n.includes(e)))),1==n.length||2==n.length?(s.innerHTML='<span class="textRes">【宴戏】'+n.map((e=>Qe[e].ncn)).join("/")+"</span>",Oe[z]=n.concat(Q.filter((e=>!n.includes(e))))):s.innerHTML='<span class="textRes">【宴戏】未知</span>';let a=new Ue(q).show(Oe[z][0]).concat(new Ue(255,1,Pe.isGuoZhan?null:1).show(Oe[z].slice(-2)));3==n.length?je.pack(a):1==n.length?je.pack(a.slice(1,3)):2==n.length&&(je.pack(a.slice(0,2)),je.pack(a.slice(1,3))),Q.forEach((e=>{s.innerHTML+='<span class="textRes'+(n.length<3&&n.includes(e)?" textRes":"")+'">'+Qe[e].ncn+":"+[[n,"手牌"],[i,"牌堆"]].filter((([t,n])=>t.includes(e))).map((([e,t])=>t)).join("/")+"</span><br>";}));}else [4,5,921,372,811,357,3119,501,3437].includes(z)&&(null==Q?void 0:Q.length)>0||[851,361,774,3310].includes(z)&&0==q&&(null==Q?void 0:Q.length)>0?void 0!==U&&255!==U&&new Ue(U).show(Q):943==z&&0==q&&1==(null==Q?void 0:Q.length)?new Ue(255,1,1).show(Q):898==z&&0==q&&(null==Q?void 0:Q.length)>2?void 0!==j&&255!==j&&new Ue(j).show(Q.slice(1,Q[0]+1)):(987==z||988==z)&&1==q&&(null==Q?void 0:Q.length)>2?void 0===U||255===U||j!=Pe.mySeats[0]&&!Ce.v||new Ue(U).show(Q.slice(-Q[1])):3266==z&&0==q&&(null==Q?void 0:Q.length)>0?void 0===U||j!=Pe.mySeats[0]&&!Ce.v||new Ue(U,255==U?1:5,1).show(Q.filter(((e,t)=>t%3==1))):3483==z&&1==q?(null==Q?void 0:Q.length)>2&&void 0!==U&&255!==U?new Ue(U).show(Q.slice(-Q[1])):Q[0]>0&&(Oe[z]=Q[0]):(7010==z||7011==z)&&(null==Q?void 0:Q.length)>0&&255==U?(Oe.spellSpace[7009]=Q.slice(),(j==Pe.mySeats[0]||Ce.v)&&je.pack(new Ue(255,1,1).show(Q))):2900==z&&28==ye&&Pe.setGeneral(U,Q[2],Q[1],!0);else if("CGsRoleSpellOptRep"==P)2022==z?Pe.setGeneral(N,F[0],F[1],!0):7009==z?(null==(v=Oe[7009])||v.pop(),(null==(y=Oe[7009])?void 0:y.length)||new Ue(255,1,1).show(F)):3336==z?new Ue(255,1,-1).show(null==(b=null==F?void 0:F.slice())?void 0:b.reverse()):F.length>0&&15==z&&10==ye&&async function(e){let t={tianGuo:e,username:Ce.userID,officerLv:Ce.curOfficerLv,getData:!1};fetch("https://goka.top:8080/le",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json())).then((e=>{document.getElementById("PlayerTianGuo").innerHTML="你的天过次数/总次数 <br>"+e.PlayerTianGuo+"/"+e.PlayerCount+" = "+(e.PlayerTianGuo/e.PlayerCount).toFixed(2);})).catch((e=>console.error("Error:",e)));}(1==Qe[F[0]].color);else if("PubGsCMoveCard"==P){if(Z=Z.slice(),0===K||0===ve||11===ue||e.isSend)return;if(713==z&&21==ve&&K==Z.length-2){let e=Z.splice(0,1)[0];Z.splice(e,1);}Z.filter((e=>e>0)).length!=K&&0!=Z.filter((e=>e>0)).length&&(console.error("PubGsCMoveCard error: 明暗牌混合:["+Z+"]"),console.error(e),Z=[]),1==le&&65282==re&&[3208,7011].includes(z)&&(re=65280,Z.reverse()),1==le&&65282==re&&13==ve&&1==K&&(re=65280),1==le&&65282==re&&4==ue&&8==ve&&795==z&&1==K&&(re=65280),1==le&&65282==re&&5==ue&&3101==z&&1==K&&(re=0),1==le&&65282==re&&5==ue&&!Pe.isGuoZhan&&[7016,7017].includes(z)&&1==K&&(re=65280),1==ue&&255==ce&&65280==pe&&(Z=Z.filter((e=>4400!=e&&4401!=e)));var L=new Ue(ie,le,re,K,z,de),G=new Ue(ce,ue,pe,K,z,fe);if(12==ue||12==le)12!=ue?G.add(Z.concat(Array(K-Z.length).fill(0)).map((e=>new je(e,e,G.zoneID)))):12!=le&&0!=le&&L.remove(Z,z);else if(5==le&&1==ue&&0==ce)G.add(L.remove(Z.filter((e=>e>0))).map((e=>e.destroy(0))));else if(2==le&&9==ue&&0==ie&&0==ce)Oe.isGameStart&&!Oe.isPassed&&je.pack(je.get(0).map((e=>e.destroy())),!1,1),G.set(G.cards.concat(L.cards.map((e=>e.destroy(0))))),L.set([]),Vt(),Oe.isPassed=!1;else if(255!==ve){if(1==le&&5==ue&&Pe.dealCard(ce,Z[0]),2==ue&&(Oe.spellSpace[3090]||(Oe.spellSpace[3090]=new Set),Z.forEach((e=>Oe.spellSpace[3090].add(Qe[e].c))),document.getElementById("boTu").innerHTML=Array.from(Oe.spellSpace[3090]).join("")),!(5!=le&&5!=ue||ce!=(null==(w=Pe.mySeats)?void 0:w[0])&&ie!=(null==(S=Pe.mySeats)?void 0:S[0]))){let e=Array.from(Ue.shoupai(Pe.mySeats[0]));5==ue?e.push(...Z):5==le&&(e=e.filter((e=>!Z.includes(e)))),e=e.map((e=>Qe[e]));const{countType2:t,countSha:n}=[...e].reduce(((e,t)=>(2!==t.type||["乐","兵","闪电"].includes(t.name)||e.countType2++,["杀","火杀","雷杀","冰杀"].includes(t.name)&&e.countSha++,e)),{countType2:0,countSha:0});document.getElementById("result").innerHTML='<span class="textRes">【权道】杀:普通锦囊</span><br><span class="textRes">'+n+":"+t+"</span>";}if([441,3492].includes(z)&&8==ue&&6==ve&&async function(e,t){if(!(null==e?void 0:e.length))return;let n=e.slice().sort(((e,t)=>e-t)),i=[];!function e(s,a,o){if(!(o>13)){i.unshift(s.slice()),t&&(i[0].K=13===o?s.length:0);for(let t=a;t<n.length;t++)t>a&&n[t]===n[t-1]||(s.push(n[t]),e(s,t+1,o+n[t]),s.pop());}}([],0,0);let s=document.getElementById("result");s.innerHTML="";for(let a of i.filter(((e,t,n)=>!n.some((t=>e.length<t.length&&e.every((e=>t.includes(e))))))).sort(((e,t)=>t.K-e.K||t.length-e.length)))s.appendChild(at(a.map((e=>Ve(e,!1))).join("+"))),t&&a.K&&s.lastChild.classList.add("textRes");}(Z.map((e=>Qe[e].number)),3492==z&&Ce.v),3033==z&&1==le&&8==ue&&1==Z.filter((e=>e>0)).length){let e=Qe[Z[0]].number,t=0,n=0,i=0;Ue.paidui.forEach((s=>{let a=Qe[s].number;a===e?i++:a>e?t++:n++;})),document.getElementById("result").innerHTML='<span class="textRes">【吉占】猜'+(t>n?"大":"小")+'</span><br><span class="textRes">跟'+e+"比,"+t+"张大\t\t"+n+"张小\t\t"+i+"平</span>";}if(3329==z&&ie==Oe.currentID){let e=Qe[Z[0]].number,t=Ue.paidui,n=["无中","洞烛","顺手","过拆","逐近","决斗","南蛮","万箭","出其","水淹","随机","洪荒","同舟","力争","移花"].flatMap((e=>t.filter((t=>{var n;return null==(n=Ne.name[e])?void 0:n.has(t)})))).reduce(((t,n)=>{let i=Qe[n].number;return i>e?t.g++:i<e?t.l++:t.e++,t}),{g:0,l:0,e:0}),i=["五谷","桃园","火攻","借刀","撒豆"].flatMap((e=>t.filter((t=>{var n;return null==(n=Ne.name[e])?void 0:n.has(t)})))).reduce(((t,n)=>{let i=Qe[n].number;return i>e?t.g++:i<e?t.l++:t.e++,t}),{g:0,l:0,e:0});document.getElementById("result").innerHTML='<span class="textRes">【和衷】'+(n.g>n.l?"大":n.g<n.l?"小":i.g>i.l?"大":i.g<i.l?"小":"平")+'</span><br><span class="textRes">'+n.g+"."+i.g+"大\t\t"+n.l+"."+i.l+"小</span>";}else 3488==z&&5==le&&5==ue&&21==ve&&1==Z.filter((e=>e>0)).length?(Oe[z]||(Oe[z]={}),Oe[z][ie]=Z.find((e=>e>0))):3488==z&&5==le&&10==ue&&11==ve&&0==Z.filter((e=>e>0)).length?(Z[0]=(null==(k=Oe[z])?void 0:k[ie])||0,Oe[z].stack=Z[0]):3488!=z||10!=le||1!=ue&&2!=ue||11!=ve||0!=Z.filter((e=>e>0)).length||(Z[0]=(null==(x=Oe[z])?void 0:x.stack)||0,null==(I=Oe[z])||delete I.stack);if([3157,3511].includes(z)&&2==le&&5==ue&&K==(null==(W=Oe[z])?void 0:W.length)&&0==Z.filter((e=>e>0)).length&&Oe[z].forEach(((e,t)=>Z[t]=e)),[7016,7017].includes(z)&&5==ue&&1==K&&(j==Pe.mySeats[0]||Ce.v)&&(Z[0]&&(null==(C=Oe[z])?void 0:C.includes(Z[0]))?Oe[z].splice(Oe[z].indexOf(Z[0]),1):5==le||2==(null==(E=Oe[z])?void 0:E.length)||1==(null==(D=Oe[z])?void 0:D.length)?Z[0]=(null==(B=Oe[z])?void 0:B.shift())||0:Pe.isGuoZhan),ie!=ce||le!=ue||re!=pe&&1==ue||de!=fe&&4==ue)if(3208==z&&10==le&&5==ue&&0===Z.filter((e=>e>0)).length)L.pos=-1,je.pack(L.cards.slice(0,L.length-1)),G.add(L.remove(Z));else if(3483==z)if(10==le&&10==ue)0===Z.filter((e=>e>0)).length&&(L.pos=-1,G.pos=1),G.add(L.remove(Z));else if(1==le&&10==ue&&65282==re)Oe[z]&&je.pack(L.cards.slice(0,Oe[z])),0==Z.filter((e=>e>0)).length&&(L.pos=-1),G.add(L.remove(Z));else if(5==le&&10==ue)Oe[z]=G.add(L.remove(Z));else if(10==le&&1==ue&&65282==re){if(0==Z.filter((e=>e>0)).length&&(null==(A=Oe[z])?void 0:A.length)==K&&Oe[z].every((e=>L.cards.includes(e)))){let e=Oe[z].flatMap((e=>L.cards.splice(L.cards.indexOf(e),1)));je.pack(G.add(e));let t=e.map((e=>e.key));t.every((e=>e>0))&&Z.splice(0,K,...t);}else G.add(L.remove(Z));delete Oe[z];}else G.add(L.remove(Z));else if(780==z&&5==le&&65282==re&&1==K)if(5==ue&&ie==Oe.currentID)Oe[z]=G.add(L.remove(Z))[0];else if(1==ue&&ie!=Oe.currentID&&L.cards.includes(Oe[z])){let e=null==(R=G.add(L.cards.splice(L.cards.indexOf(Oe[z]),1))[0])?void 0:R.key;e>0&&0==Z.filter((e=>e>0)).length&&(Z[0]=e),delete Oe[z];}else G.add(L.remove(Z));else G.add(L.remove(Z,z));else L.show(Z);}}}catch(O){console.error(O);}}function Yt(){let e=Array.prototype.slice.call(arguments);try{return "INIT"===e[0]?(window.WDVerSion="1.0.0",window.padding=De.padding||0,window.addEventListener("resize",Ot),new Promise(((e,t)=>{!function t(){var n;"undefined"!=typeof JSZipUtils&&"undefined"!=typeof CtrUtil&&void 0!==(null==(n=null==CtrUtil?void 0:CtrUtil.Ctr)?void 0:n.Ofb_Dec)&&"undefined"!=typeof SystemContext&&document.getElementById("bgDiv")?jt(!0).then(e):setTimeout(t,1e3);}();}))):"EXIT"===e[0]?(window.removeEventListener("resize",Ot),window.removeEventListener("resize",Mt),window.removeEventListener("SGSresize",Pt),null==(t=document.getElementById("seatUI"))||t.remove(),null==(n=document.getElementById("rogueUI"))||n.remove(),null==(i=document.getElementById("cusBGDiv"))||i.remove(),null==(s=document.getElementById("createIframe"))||s.remove(),Ce.isFrameAdd=!1,!0):Xt(e[e.length-1])}catch(a){console.error(a.message),console.error(a.stack);const[,e,t]=a.stack.match(/(\d+):(\d+)/);console.error("Line:",e),console.error("Column:",t),m("小抄GG了,联系作者解决");}var t,n,i,s;}"undefined"!=typeof SGSMODULE&&(Object.defineProperty(window.console,"log",{get:()=>console.info,set(){}}),window.SGSMODULE.forEach((e=>e("EXIT"))),delete window.SGSMODULE),console.info("%c三国杀打小抄","font-weight: bold; color: white; background-color: #525288; padding: 1px 4px; border-radius: 4px;"),window.SGSMODULE=[],Object.defineProperty(window.console,"log",{get:()=>function(...e){(window._debug||window.isLogAllClass)&&console.debug(...e),window.SGSMODULE.forEach((t=>null==t?void 0:t(...e)));},set(){}}),Yt("INIT").then((e=>{e&&window.SGSMODULE.push(Yt);}));

})();