var _injected=function(){"use strict";const n=null==(t=()=>{window.currentHand=null;let n=!1;window.receiveHook=function(t){var e;return n||(window.postMessage(JSON.stringify({pna:!0,hook:!0})),n=!0),"data"in t&&"42"==t.data.substr(0,2)&&((e=JSON.parse(t.data.substr(2))).length<2||"gC"===e[0]&&"gameResult"in e[1]&&"string"==typeof e[1].gameResult&&"hI"in e[1]&&(null!==window.currentHand&&window.postMessage(JSON.stringify({pna:!0,handID:window.currentHand})),window.currentHand=e[1].hI)),t},window.addEventListener("load",(()=>{window.postMessage(JSON.stringify({pna:!0,gameID:window.gameID}))})),window.addEventListener("message",(async n=>{try{if(!JSON.parse(n.data).pna)return}catch{return}const t=JSON.parse(n.data);"ws"in t&&window._websockets[window._websockets.length-1].send(t.ws)}))})||"function"==typeof t?{main:t}:t;var t;const e=(...n)=>{console.error};return(async()=>{try{return await n.main()}catch(t){throw e('The unlisted script "injected" crashed on startup!',t),t}})()}();
