From 8ac072d84ba679c70ca7ef0a1b44a9b91c7d7177 Mon Sep 17 00:00:00 2001 From: Mike McGhen Date: Sun, 9 Jun 2024 13:57:09 -0400 Subject: [PATCH] Adds Spin button to page --- Twitch Chat Randomizer.py | 2 ++ client/build/asset-manifest.json | 6 +++--- client/build/index.html | 2 +- client/build/static/css/main.e6c13ad2.css.map | 2 +- .../js/{main.f0e38a7d.js => main.ab5d588b.js} | 6 +++--- ...CENSE.txt => main.ab5d588b.js.LICENSE.txt} | 0 ...n.f0e38a7d.js.map => main.ab5d588b.js.map} | 2 +- client/src/App.js | 2 +- client/src/WheelComponent.js | 9 +++++++-- server.js | 20 +++++++++++++++++++ 10 files changed, 39 insertions(+), 12 deletions(-) rename client/build/static/js/{main.f0e38a7d.js => main.ab5d588b.js} (99%) rename client/build/static/js/{main.f0e38a7d.js.LICENSE.txt => main.ab5d588b.js.LICENSE.txt} (100%) rename client/build/static/js/{main.f0e38a7d.js.map => main.ab5d588b.js.map} (54%) diff --git a/Twitch Chat Randomizer.py b/Twitch Chat Randomizer.py index eb8b52a..63902ad 100644 --- a/Twitch Chat Randomizer.py +++ b/Twitch Chat Randomizer.py @@ -1,3 +1,5 @@ +##Twitch Chat Randomizer + import os import asyncio import websockets diff --git a/client/build/asset-manifest.json b/client/build/asset-manifest.json index 46d1ecc..8408654 100644 --- a/client/build/asset-manifest.json +++ b/client/build/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { "main.css": "/static/css/main.e6c13ad2.css", - "main.js": "/static/js/main.f0e38a7d.js", + "main.js": "/static/js/main.ab5d588b.js", "static/js/453.419a5d54.chunk.js": "/static/js/453.419a5d54.chunk.js", "index.html": "/index.html", "main.e6c13ad2.css.map": "/static/css/main.e6c13ad2.css.map", - "main.f0e38a7d.js.map": "/static/js/main.f0e38a7d.js.map", + "main.ab5d588b.js.map": "/static/js/main.ab5d588b.js.map", "453.419a5d54.chunk.js.map": "/static/js/453.419a5d54.chunk.js.map" }, "entrypoints": [ "static/css/main.e6c13ad2.css", - "static/js/main.f0e38a7d.js" + "static/js/main.ab5d588b.js" ] } \ No newline at end of file diff --git a/client/build/index.html b/client/build/index.html index 4289ff6..3e3ad1d 100644 --- a/client/build/index.html +++ b/client/build/index.html @@ -1 +1 @@ -React App
\ No newline at end of file +React App
\ No newline at end of file diff --git a/client/build/static/css/main.e6c13ad2.css.map b/client/build/static/css/main.e6c13ad2.css.map index 5c4dfb9..ec9c0a6 100644 --- a/client/build/static/css/main.e6c13ad2.css.map +++ b/client/build/static/css/main.e6c13ad2.css.map @@ -1 +1 @@ -{"version":3,"file":"static/css/main.e6c13ad2.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF","sources":["index.css"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/css/main.e6c13ad2.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF","sources":["index.css"],"sourcesContent":["body {\r\n margin: 0;\r\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\r\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\r\n sans-serif;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\ncode {\r\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\r\n monospace;\r\n}\r\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/client/build/static/js/main.f0e38a7d.js b/client/build/static/js/main.ab5d588b.js similarity index 99% rename from client/build/static/js/main.f0e38a7d.js rename to client/build/static/js/main.ab5d588b.js index f8708ec..e1635cb 100644 --- a/client/build/static/js/main.f0e38a7d.js +++ b/client/build/static/js/main.ab5d588b.js @@ -1,3 +1,3 @@ -/*! For license information please see main.f0e38a7d.js.LICENSE.txt */ -(()=>{var e={373:(e,t,n)=>{var r,a,o,l,i,u,s=n(166).default;window,e.exports=(u=n(43),function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t){e.exports=u},function(e,t,n){"use strict";(function(e){var r=n(2),a=n(0),o=n.n(a),l=n(6),i=n.n(l),u=n(7),s=n(8),c=n(4),f=n(3),d=n.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,o=r;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(k))return r}}(n),o=void 0!==a?a.nextSibling:null;r.setAttribute(k,"active"),r.setAttribute("data-styled-version","5.2.1");var l=I();return l&&r.setAttribute("nonce",l),n.insertBefore(r,o),r},F=function(){function e(e){var t=this.element=j(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(s+=e+",")})),r+=""+i+u+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),$=/(a)(d)/gi,V=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=V(t%52)+n;return(V(t%52)+n).replace($,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},q=function(e){return K(5381,e)};function G(e){for(var t=0;t>>0);if(!t.hasNameForId(r,l)){var i=n(o,"."+l,void 0,r);t.insertRules(r,l,i)}a.push(l),this.staticRulesId=l}else{for(var u=this.rules.length,s=K(this.baseHash,n.hash),c="",f=0;f>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}a.push(m)}}return a.join(" ")},e}(),J=/^\s*\/\/.*$/gm,Z=[":","[",".","#"];function ee(e){var t,n,r,a,o=void 0===e?v:e,l=o.options,i=void 0===l?v:l,s=o.plugins,c=void 0===s?g:s,f=new u.a(i),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,o,l,i,u,s,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(a[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,o){return 0===r&&Z.includes(o[n.length])||o.match(a)?e:"."+t};function m(e,o,l,i){void 0===i&&(i="&");var u=e.replace(J,""),s=o&&l?l+" "+o+" { "+u+" }":u;return t=i,n=o,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),f(l||!o?"":o,s)}return f.use([].concat(c,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||C(15),K(e,t.name)}),5381).toString():"",m}var te=o.a.createContext(),ne=(te.Consumer,o.a.createContext()),re=(ne.Consumer,new H),ae=ee();function oe(){return Object(a.useContext)(te)||re}function le(){return Object(a.useContext)(ne)||ae}function ie(e){var t=Object(a.useState)(e.stylisPlugins),n=t[0],r=t[1],l=oe(),u=Object(a.useMemo)((function(){var t=l;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=Object(a.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(a.useEffect)((function(){i()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(te.Provider,{value:u},o.a.createElement(ne.Provider,{value:s},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ae);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ae),this.name+e.hash},e}(),se=/([A-Z])/,ce=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function pe(e){return se.test(e)?e.replace(ce,de).replace(fe,"-ms-"):e}var he=function(e){return null==e||!1===e||""===e};function me(e,t,n,r){if(Array.isArray(e)){for(var a,o=[],l=0,i=e.length;l1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function we(e){return e.replace(ye,"-").replace(be,"")}var ke=function(e){return Q(q(e)>>>0)};function Se(e){return"string"==typeof e&&!0}var xe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ee(e,t,n){var r=e[n];xe(t)&&xe(r)?Pe(r,t):e[n]=t}function Pe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(a[n]=e[n]);return a}(t,["componentId"]),o=r&&r+"-"+(Se(e)?e:we(b(e)));return Ne(e,p({},a,{attrs:S,componentId:o}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Pe({},e.defaultProps,t):t}}),C.toString=function(){return"."+C.styledComponentId},l&&d()(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var Oe=function(e){return function e(t,n,a){if(void 0===a&&(a=v),!Object(r.isValidElementType)(n))return C(1,String(n));var o=function(){return t(n,a,ge.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,p({},a,{},r))},o.attrs=function(r){return e(t,n,p({},a,{attrs:Array.prototype.concat(a.attrs,r).filter(Boolean)}))},o}(Ne,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Oe[e]=Oe(e)})),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=G(e),H.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var a=r(me(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=I();return""},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return C(2);var n=((t={})[k]="",t["data-styled-version"]="5.2.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=I();return r&&(n.nonce=r),[o.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?C(2):o.a.createElement(ie,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)}}(),t.a=Oe}).call(this,n(9))},function(e,t,n){"use strict";e.exports=n(10)},function(e,t,n){"use strict";var r=n(2),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function u(e){return r.isMemo(e)?l:i[e.$$typeof]||a}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=l;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var l=c(n);f&&(l=l.concat(f(n)));for(var i=u(t),m=u(n),g=0;g=t.f?a():e.fonts.load(function(e){return E(e)+" "+e.f+"00 300px "+x(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(o,25)}),(function(){a()}))}()})),a=null,o=new Promise((function(e,n){a=setTimeout(n,t.f)}));Promise.race([o,r]).then((function(){a&&(clearTimeout(a),a=null),t.g(t.a)}),(function(){t.j(t.a)}))};var I={D:"serif",C:"sans-serif"},j=null;function F(){if(null===j){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);j=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return j}function D(e,t,n){for(var r in I)if(I.hasOwnProperty(r)&&t===e.f[I[r]]&&n===e.f[I[r]])return!0;return!1}function W(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=F()&&D(e,n,r)),t?i()-e.A>=e.w?F()&&D(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?U(e,e.v):U(e,e.B):function(e){setTimeout(l((function(){W(this)}),e),50)}(e):U(e,e.v)}function U(e,t){setTimeout(l((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)}),e),0)}function B(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=i(),W(this)};var H=null;function $(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),N(e,"active")):T(e.a))}function V(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function Q(e,t,n,r,a){var o=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=a||null,i=r||{};if(0===n.length&&o)T(t.a);else{t.f+=n.length,o&&(t.j=o);var u,s=[];for(u=0;ur&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:l=l.replace(u,"-webkit-"+u)+";"+l;break;case 207:case 102:l=l.replace(u,"-webkit-"+(102i.charCodeAt(0)&&(i=i.trim()),i=[i],0p)&&(D=(B=B.replace(" ",":")).length),01)for(var n=1;nt/2?-360+l:l},v=function(e,t,n){return Math.min(Math.max(e,+n),t)},y=function(e){return!!e&&!m.includes(e.toLowerCase())},b=function(e){return e.slice(-1)[0].slice(-1)[0]+1},w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";const k=new Image;k.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAAENCAMAAADwnMpiAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACZUExURUdwTP+OROJKK+JKK/6PReJKK/+QQ+JKK+JKK+JKK+JKK/2MQ/+LRv2LQeNLK+JKK/BrNuRNLPyJQeNLK/d+PfFvN/iFQONLK/BtOPV3OvmCPfFxOPR4PeNMLO5oNexiNPmBPud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Q+QE2ftJgkYx81zWkxc1aoq6S93H2Mur41rZXmK9RWBLRVMBz7qG1EW4mXKdS3p63CXYQL5LSUOcW4REo7ufsBLvEd0ErufIWLDGglNz/4uMiINkrLmYPL7GmhtJwpXCinfdxyrHChX5fWcfOZwqViTdu4856Di02FlnH3Kx+X29Ey4WmAa+S0SuAtY1zFo03SYRbhKr+aFnHzscJ1YqE1JNysfFzpndZIk3OMqy1pCzMfK1xvTjtob1f4uIGENpAwH0e4hW9NC6TDz8LHTTgBWy/wTisHN7Ji2wXm+K5wMyO2m5i8H+OGNmwzcctF4eOWSraXmPJcOLgtw7aSMM8KBzf2G7CddLjvRz5uLhK2kKTJz0HhHsZsHRGTLwYO7uOTLSNpeJpGPu5lzjYRMfl5pXBHQ7aHpN52Gvm4p++UbaHNcTFwcGd+wFYQU+4OEe5vIGw+Sb3tNPbxCFM2nehwPyocPMiOzabDdTZx8DhzNpgOj4uJwkN5bCodrhcrhQf71mwi0eE6myg83m/AxpHU22QDB09RsFlETLLtFw6eZcwGEW3yz3H0hidasinE9TbZROHJjmwC0ebjcxw5eD6PzyZikl1/oNAMLp9JxPW+sp7y0RTfwmcRSb39YhY5aJJf4TOIuN5XNoscNE3Mh5PAJKfsEDlooh4fSrT5+OmvlI+mGvFRRFzvazGOHTTajg8gos3HbrpSPhrvg/clos3Hz+gQOWgHw7sR0ebjp9+LHLQI70IkNeuffi9y0Da8MQnScL1dzCaOj1ZKeSuivfnfzEHLubye6GT+965ghSOvITqZ/72rb9jjFPASIql3/JspWGcasibRZr7pT3zYKTpqVhXoZL6bxr+w2mci/F9Eu+UxO6hvdED0Z4T/kWgv/5sOftEhh7+Q/050Wh4XM/WL7ln9DTX/SXSYn/oT/xud9dv/y8MgkCAdzj/H0S9evtVk1hv433h5eXl5ebna/wE/LWKN4f9AUgAAAABJRU5ErkJggg==";var S=n(1);const x=S.a.img(r||(r=s(["\n -webkit-user-drag: none;\n -khtml-user-drag: none;\n -moz-user-drag: none;\n -o-user-drag: none;\n user-drag: none;\n"]))),C=S.a.div(a||(a=s(["\n position: relative;\n width: 80vw;\n max-width: 445px;\n height: 80vw;\n max-height: 445px;\n object-fit: contain;\n flex-shrink: 0;\n z-index: 5;\n pointer-events: none;\n"]))),E=S.a.div(o||(o=s(["\n position: absolute;\n width: 100%;\n left: 0px;\n right: 0px;\n top: 0px;\n bottom: 0px;\n display: flex;\n justify-content: center;\n align-items: center;\n transform: rotate(","deg);\n\n &.started-spinning {\n animation: spin-"," ","s cubic-bezier(\n 0.71,\n ",",\n 0.96,\n 0.9\n ) 0s 1 normal forwards running,\n continueSpin-"," ","s linear ","s 1 normal forwards running,\n stopSpin-"," ","s cubic-bezier(0, 0, 0.35, 1.02) ","s 1 normal forwards\n running;\n }\n\n @keyframes spin-"," {\n from {\n transform: rotate(","deg);\n }\n to {\n transform: rotate(","deg);\n }\n }\n @keyframes continueSpin-"," {\n from {\n transform: rotate(","deg);\n }\n to {\n transform: rotate(","deg);\n }\n }\n @keyframes stopSpin-"," {\n from {\n transform: rotate(","deg);\n }\n to {\n transform: rotate(","deg);\n }\n }\n"])),(e=>e.startRotationDegrees),(e=>{let{classKey:t}=e;return t}),(e=>{let{startSpinningTime:t}=e;return t/1e3}),(e=>e.disableInitialAnimation?0:-.29),(e=>{let{classKey:t}=e;return t}),(e=>{let{continueSpinningTime:t}=e;return t/1e3}),(e=>{let{startSpinningTime:t}=e;return t/1e3}),(e=>{let{classKey:t}=e;return t}),(e=>{let{stopSpinningTime:t}=e;return t/1e3}),(e=>{let{startSpinningTime:t,continueSpinningTime:n}=e;return(t+n)/1e3}),(e=>{let{classKey:t}=e;return t}),(e=>e.startRotationDegrees),(e=>e.startRotationDegrees+360),(e=>{let{classKey:t}=e;return t}),(e=>e.startRotationDegrees),(e=>e.startRotationDegrees+360),(e=>{let{classKey:t}=e;return t}),(e=>e.startRotationDegrees),(e=>1440+e.finalRotationDegrees)),P=Object(S.a)(x)(l||(l=s(["\n position: absolute;\n z-index: 5;\n width: 17%;\n right: 6px;\n top: 15px;\n"]))),_=S.a.canvas(i||(i=s(["\n width: 98%;\n height: 98%;\n"])));var T=function(e,t,n,r,a,o){e.beginPath(),e.moveTo(t+(r+1)*Math.cos(o),n+(r+1)*Math.sin(o)),e.lineTo(t+(a-1)*Math.cos(o),n+(a-1)*Math.sin(o)),e.closePath(),e.stroke()},N=function(e){var t=e.width,n=e.height,r=e.data,a=e.outerBorderColor,o=e.outerBorderWidth,l=e.innerRadius,i=e.innerBorderColor,s=e.innerBorderWidth,f=e.radiusLineColor,d=e.radiusLineWidth,p=e.fontFamily,h=e.fontWeight,m=e.fontSize,g=e.fontStyle,y=e.perpendicularText,w=e.prizeMap,k=e.rouletteUpdater,S=e.textDistance,x=Object(u.createRef)(),C={outerBorderColor:a,outerBorderWidth:o,innerRadius:l,innerBorderColor:i,innerBorderWidth:s,radiusLineColor:f,radiusLineWidth:d,fontFamily:p,fontWeight:h,fontSize:m,fontStyle:g,perpendicularText:y,prizeMap:w,rouletteUpdater:k,textDistance:S};return Object(u.useEffect)((function(){!function(e,t,n){var r,a,o,l,i,u=n.outerBorderColor,s=n.outerBorderWidth,c=n.innerRadius,f=n.innerBorderColor,d=n.innerBorderWidth,p=n.radiusLineColor,h=n.radiusLineWidth,m=n.fontFamily,g=n.fontWeight,y=n.fontSize,w=n.fontStyle,k=n.perpendicularText,S=n.prizeMap,x=n.textDistance,C=b(S);s*=2,d*=2,h*=2;var E=e.current;if(null==E?void 0:E.getContext("2d")){var P=E.getContext("2d");P.clearRect(0,0,500,500),P.strokeStyle="transparent",P.lineWidth=0;for(var _=0,N=E.width/2-10,O=N*v(0,100,x)/100,z=N*v(0,100,c)/100,L=E.width/2,A=E.height/2,R=0;R0)try{d.a.load({google:{families:Array.from(new Set(k.filter((function(e){return!!e}))))},timeout:1e3,fontactive:function(){Ae(!Le)},active:function(){Be(!0),Ae(!Le)}})}catch(e){console.log("Error loading webfonts:",e)}else Be(!0);se(z([],w,!0)),de(v),Ye(ne,v),Oe(!0)}),[r,i,f]),Object(u.useEffect)((function(){var e;if(t&&!Pe){_e(!0),Xe();var r=fe[n][Math.floor(Math.random()*(null===(e=fe[n])||void 0===e?void 0:e.length))],a=g(r,b(fe));ye(a)}}),[t]),Object(u.useEffect)((function(){xe&&(_e(!1),me(ve))}),[xe]);var Xe=function(){ke(!0),Ce(!1),He.current=!0,setTimeout((function(){He.current&&(He.current=!1,ke(!1),Ce(!0),o())}),Ge)},Ye=function(e,t){var n;if(ne>=0){var r=Math.floor(e)%(null==t?void 0:t.length),a=t[r][Math.floor((null===(n=t[r])||void 0===n?void 0:n.length)/2)];me(g(a,b(t),!1))}};return Ne?c.a.createElement(C,{style:!Ue||Fe>0&&Me!==Fe?{visibility:"hidden"}:{}},c.a.createElement(E,{className:we?"started-spinning":"",classKey:$e,startSpinningTime:Qe,continueSpinningTime:Ke,stopSpinningTime:qe,startRotationDegrees:he,finalRotationDegrees:ve,disableInitialAnimation:le},c.a.createElement(N,{width:"900",height:"900",data:ue,outerBorderColor:S,outerBorderWidth:_,innerRadius:L,innerBorderColor:R,innerBorderWidth:I,radiusLineColor:F,radiusLineWidth:W,fontFamily:B,fontWeight:Q,fontStyle:q,fontSize:$,perpendicularText:X,prizeMap:fe,rouletteUpdater:Le,textDistance:J})),c.a.createElement(P,{style:null==ae?void 0:ae.style,src:(null==ae?void 0:ae.src)||k.src,alt:"roulette-static"})):null}}]))},730:(e,t,n)=>{"use strict";var r=n(43),a=n(853);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n