1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9762],{79762:function(t,e,n){n.d(e,{$P:function(){return getMatch},E6:function(){return putGameInfo},G:function(){return getGameInfo},Jg:function(){return getGameDetail},TF:function(){return getReplay},Zp:function(){return getLeaderboard},jL:function(){return socketPing},kJ:function(){return getSampleBots},mB:function(){return getLeaderboardForUser},ne:function(){return putSampleBot},y3:function(){return initiateMatch},yC:function(){return getGameMessageReplay}});var a=n(11010),r=n(70655),i=n(27998);function getGameInfo(t){return _getGameInfo.apply(this,arguments)}function _getGameInfo(){return(_getGameInfo=(0,a._)(function(t){var e,n,a,o=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return e=o.length>1&&void 0!==o[1]?o[1]:function(t){},n=o.length>2&&void 0!==o[2]?o[2]:i.V,[4,fetch("https://api.botpot.ai/api/v1/creategame/?game_type="+t)];case 1:if(!(a=r.sent()).ok)return[3,3];return[4,a.json()];case 2:return e.apply(void 0,[r.sent()]),[3,5];case 3:if(404!==a.status)return[3,5];return[4,a.json()];case 4:n.apply(void 0,[r.sent()]),r.label=5;case 5:return[2]}})})).apply(this,arguments)}function getSampleBots(t){return _getSampleBots.apply(this,arguments)}function _getSampleBots(){return(_getSampleBots=(0,a._)(function(t){var e,n,a,o=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return e=o.length>1&&void 0!==o[1]?o[1]:function(t){},n=o.length>2&&void 0!==o[2]?o[2]:i.V,[4,fetch("".concat("https://api.botpot.ai/","api/v1/creategame/sample_bot?game_type=").concat(t))];case 1:if(!(a=r.sent()).ok)return[3,3];return[4,a.json()];case 2:return e.apply(void 0,[r.sent()]),[3,5];case 3:if(404!==a.status)return[3,5];return[4,a.json()];case 4:n.apply(void 0,[r.sent()]),r.label=5;case 5:return[2]}})})).apply(this,arguments)}function putGameInfo(t,e){return _putGameInfo.apply(this,arguments)}function _putGameInfo(){return(_putGameInfo=(0,a._)(function(t,e){var n,a,i=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:function(t){},[4,fetch("".concat("https://api.botpot.ai/","api/v1/creategame/"),{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify(e)})];case 1:if(!(a=r.sent()).ok)return[3,3];return[4,a.json()];case 2:n.apply(void 0,[r.sent()]),r.label=3;case 3:return[2]}})})).apply(this,arguments)}function putSampleBot(t,e){return _putSampleBot.apply(this,arguments)}function _putSampleBot(){return(_putSampleBot=(0,a._)(function(t,e){var n,a,i=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:function(t){},[4,fetch("".concat("https://api.botpot.ai/","api/v1/creategame/sample_bot"),{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify(e)})];case 1:if(!(a=r.sent()).ok)return[3,3];return[4,a.json()];case 2:n.apply(void 0,[r.sent()]),r.label=3;case 3:return[2]}})})).apply(this,arguments)}function initiateMatch(t,e,n,a){return _initiateMatch.apply(this,arguments)}function _initiateMatch(){return(_initiateMatch=(0,a._)(function(t,e,n,a){var i,o,c,s=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return i=s.length>4&&void 0!==s[4]?s[4]:function(t){},o=s.length>5&&void 0!==s[5]?s[5]:function(t){},[4,fetch("".concat("https://api.botpot.ai/","api/game/initiate_match"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_id:t,game_type:e,players:n,game_settings:a})})];case 1:if(!(c=r.sent()).ok)return[3,3];return[4,c.json()];case 2:return i.apply(void 0,[r.sent()]),[3,5];case 3:return[4,c.json()];case 4:o.apply(void 0,[r.sent()]),r.label=5;case 5:return[2]}})})).apply(this,arguments)}function getReplay(t,e,n,a){return _getReplay.apply(this,arguments)}function _getReplay(){return(_getReplay=(0,a._)(function(t,e,n,a){var o,c,s,u=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return o=u.length>4&&void 0!==u[4]?u[4]:function(t){},c=u.length>5&&void 0!==u[5]?u[5]:i.V,[4,fetch("".concat("https://api.botpot.ai/","api/game/game_replay?game_id=").concat(n,"&game_type=").concat(t,"&user_id=").concat(e,"&chunk=").concat(a))];case 1:if(!(s=r.sent()).ok)return[3,3];return[4,s.json()];case 2:return o.apply(void 0,[r.sent()]),[3,5];case 3:return[4,s.json()];case 4:c.apply(void 0,[r.sent()]),r.label=5;case 5:return[2]}})})).apply(this,arguments)}function getGameDetail(t,e,n){return _getGameDetail.apply(this,arguments)}function _getGameDetail(){return(_getGameDetail=(0,a._)(function(t,e,n){var a,o,c,s=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:function(t){},o=s.length>4&&void 0!==s[4]?s[4]:i.V,[4,fetch("".concat("https://api.botpot.ai/","api/game/game_detail?game_id=").concat(n,"&game_type=").concat(t,"&user_id=").concat(e))];case 1:if(!(c=r.sent()).ok)return[3,3];return[4,c.json()];case 2:return a.apply(void 0,[r.sent()]),[3,5];case 3:return[4,c.json()];case 4:o.apply(void 0,[r.sent()]),r.label=5;case 5:return[2]}})})).apply(this,arguments)}function getLeaderboard(t,e,n){return _getLeaderboard.apply(this,arguments)}function _getLeaderboard(){return(_getLeaderboard=(0,a._)(function(t,e,n){var a,i,o=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return a=o.length>3&&void 0!==o[3]?o[3]:function(t){},[4,fetch("".concat("https://api.botpot.ai/","api/game/leaderboard?game_type=").concat(t,"&offset=").concat(e,"&limit=").concat(n))];case 1:if(!(i=r.sent()).ok)return[3,3];return[4,i.json()];case 2:a.apply(void 0,[r.sent()]),r.label=3;case 3:return[2]}})})).apply(this,arguments)}function getLeaderboardForUser(t,e,n){return _getLeaderboardForUser.apply(this,arguments)}function _getLeaderboardForUser(){return(_getLeaderboardForUser=(0,a._)(function(t,e,n){var a,i,o=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return a=o.length>3&&void 0!==o[3]?o[3]:function(t){},[4,fetch("".concat("https://api.botpot.ai/","api/game/leaderboard/user?game_type=").concat(t,"&user_id=").concat(e),{method:"GET",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}})];case 1:if(!(i=r.sent()).ok)return[3,3];return[4,i.json()];case 2:a.apply(void 0,[r.sent()]),r.label=3;case 3:return[2]}})})).apply(this,arguments)}function getGameMessageReplay(t){return _getGameMessageReplay.apply(this,arguments)}function _getGameMessageReplay(){return(_getGameMessageReplay=(0,a._)(function(t){var e,n,a=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return e=a.length>1&&void 0!==a[1]?a[1]:function(t){},[4,fetch("".concat("https://api.botpot.ai/","api/game/game_message_replay?game_id=").concat(t))];case 1:if(!(n=r.sent()).ok)return[3,3];return[4,n.json()];case 2:e.apply(void 0,[r.sent()]),r.label=3;case 3:return[2]}})})).apply(this,arguments)}function getMatch(t,e,n,a){return _getMatch.apply(this,arguments)}function _getMatch(){return(_getMatch=(0,a._)(function(t,e,n,a){var o,c,s,u=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return o=u.length>4&&void 0!==u[4]?u[4]:function(t){},c=u.length>5&&void 0!==u[5]?u[5]:i.V,[4,fetch("".concat("https://api.botpot.ai/","api/game/match?match_id=").concat(t,"&user_id=").concat(e,"&game_type=").concat(n,"&bot_id=").concat(a))];case 1:if(!(s=r.sent()).ok)return[3,3];return[4,s.json()];case 2:return o.apply(void 0,[r.sent()]),[3,5];case 3:return[4,s.json()];case 4:c.apply(void 0,[r.sent()]),r.label=5;case 5:return[2]}})})).apply(this,arguments)}function socketPing(t){return _socketPing.apply(this,arguments)}function _socketPing(){return(_socketPing=(0,a._)(function(t){var e,n,a,i=arguments;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return e=i.length>1&&void 0!==i[1]?i[1]:function(t){},n=i.length>2&&void 0!==i[2]?i[2]:function(t){},[4,fetch("".concat("https://api.botpot.ai/","api/game/socket-ping"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({socket_room_id:t})})];case 1:if(!(a=r.sent()).ok)return[3,3];return[4,a.json()];case 2:return e.apply(void 0,[r.sent()]),[3,5];case 3:return[4,a.json()];case 4:n.apply(void 0,[r.sent()]),r.label=5;case 5:return[2]}})})).apply(this,arguments)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.