From a4b3168d75cbe579ce54465701c4566d3e05bc57 Mon Sep 17 00:00:00 2001 From: SealyBoi Date: Sun, 19 Nov 2023 18:30:21 -0600 Subject: [PATCH] Updates --- ...{index-74dcc731.css => index-258f1987.css} | 2 +- .../{index-e562f502.js => index-4b59cb57.js} | 27 ++++++++++--------- index.html | 4 +-- 3 files changed, 17 insertions(+), 16 deletions(-) rename assets/{index-74dcc731.css => index-258f1987.css} (94%) rename assets/{index-e562f502.js => index-4b59cb57.js} (93%) diff --git a/assets/index-74dcc731.css b/assets/index-258f1987.css similarity index 94% rename from assets/index-74dcc731.css rename to assets/index-258f1987.css index 3cf8c57..cf318b1 100644 --- a/assets/index-74dcc731.css +++ b/assets/index-258f1987.css @@ -1,4 +1,4 @@ -@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@1,700&family=Source+Sans+3:wght@300&display=swap";.background-color{background:radial-gradient(rgb(51,48,48),#000000)}.backgroundImageHolder{background-image:url(../assets/image/poker-cards.png);background-repeat:no-repeat;background-position:center}.background{background-image:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),url(/blackjack_probability/assets/blackjack-table-660d8671.jpg);background-position:center;background-repeat:no-repeat;background-color:#fff;background-size:cover;height:95vh}.row{display:flex;flex-direction:row;align-items:center}.info{font-size:30px;text-wrap:wrap;width:550px;padding:20px;color:#fff;text-align:center;-webkit-text-stroke:1;-webkit-text-stroke-width:.5px;-webkit-text-stroke-color:black}.btn-hover{width:200px;font-size:16px;font-weight:600;color:#fff;cursor:pointer;margin:20px;height:55px;text-align:center;border:none;background-size:300% 100%;border-radius:50px;moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out;background-image:linear-gradient(to right,#29323c,#485563,#2b5876,#4e4376);box-shadow:0 4px 15px #2d3641bf}.btn-hover:hover{background-position:100% 0;moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out}.btn-hover:focus{outline:none}.titleHolder{flex-direction:column;display:flex;justify-content:center;align-items:center;height:83vh}.title{font-size:100px!important;margin:0;font-family:Lobster Two,cursive,"Sans Serif",sans-serif;background:linear-gradient(to right,hsl(57,92%,50%,.714) 0,hsl(0,0%,100%) 10%,hsla(57,92%,50%,.714) 20%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:shine 3s infinite linear;text-wrap:wrap}@keyframes shine{0%{background-position:-100px}60%{background-position:400px}60%{background-position:500px}to{background-position:750px}}.container{display:flex;flex-direction:column;background:radial-gradient(rgb(51,48,48),#000000)}.subContainer{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;padding:50px}.image{height:300px;width:400px}.titleText{width:50vw;font-size:40px;color:#fff;text-align:center}.container{background:radial-gradient(rgb(51,48,48),#000000)}img{height:350px;width:350px}.about-row{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;margin-bottom:10px}.column{display:flex;flex-direction:column}.about-header{font-size:36px}.about-p{font-size:20px}.text-holder{width:400px;text-align:center;color:#fff}.errorContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px;height:100vh}.error-img{height:500px;width:500px}.table-container{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;padding:50px;background:radial-gradient(rgb(51,48,48),#000000)}.chart-table{height:600px;width:500px;border:2px solid white;margin:20px;background-color:#fff}th,td{align-items:center;height:50px;width:50px;text-align:center;background-color:#000;color:#fff}.floating-key{top:25vh;left:5vw;background-color:#fff;position:fixed}.term-text{font-size:20px;width:800px;color:#fff}.term-row{display:flex;flex-direction:column;align-items:center;padding-top:25px;padding-bottom:25px}.term-container{display:flex;flex-direction:column;justify-content:center;align-items:center;background:radial-gradient(rgb(51,48,48),#000000)}._status_k74mu_1{width:20vw;display:flex;flex-direction:column;justify-content:space-between;margin:.5em .5em .5em 100px;padding:1em;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._value_k74mu_35{color:#fff;text-align:center}@media screen and (max-width: 992px){._value_k74mu_35{font-size:150%}}@media screen and (max-width: 600px){._value_k74mu_35{font-size:115%}}._controlsContainer_wdpsv_1{display:flex;justify-content:center;margin:.5em 1em 1em}._toggleContainer_wdpsv_13{display:flex;justify-content:space-evenly;align-items:center}._toggleText_wdpsv_25{color:#fff}._row_wdpsv_33{display:flex;justify-content:center;flex-direction:row}._column_wdpsv_45{display:flex;justify-content:center;flex-direction:column}._button_wdpsv_57{color:#fff;font-weight:700;margin:0 .5em;padding:1em;width:30%;background:black;outline:none;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;text-align:center;cursor:pointer}@media (hover: hover){._button_wdpsv_57:hover{color:#000;background:white;border:5px solid black}}._button_wdpsv_57:disabled{color:gray;background:rgb(60,60,60);border:5px solid gray}@media screen and (max-width: 992px){._betContainer_wdpsv_117{width:50%}}@media screen and (max-width: 600px){._betContainer_wdpsv_117{width:70%}._betContainer_wdpsv_117 h4{font-size:75%}._betContainer_wdpsv_117 input{font-size:125%}}._status_1r0kp_1{width:20vw;display:flex;flex-direction:column;justify-content:space-between;margin:.5em .5em .5em 100px;padding:1em;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._balance_1r0kp_35{display:flex;align-items:center;justify-content:center;margin:.5em 1em .5em .5em;padding:1em;width:20%;height:50px;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._value_1r0kp_63{color:#fff;text-align:center}@media screen and (max-width: 992px){._value_1r0kp_63{font-size:150%}}@media screen and (max-width: 600px){._value_1r0kp_63{font-size:115%}}._handContainer_1ev8b_1{color:#000;display:flex;align-items:center;flex-direction:column;margin:.5em;min-height:0}._cardContainer_1ev8b_19{display:flex;justify-content:center;flex-wrap:wrap;background-color:#000;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._title_1ev8b_39{text-align:center;margin-bottom:5px;margin-top:5px;color:#fff}@media screen and (max-width: 600px){._title_1ev8b_39{font-size:150%}}._card_1x2tl_1{width:130px;height:250px;margin:20px;padding:.5em 1.5em;background:rgb(230,230,230);border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleRed_1x2tl_25{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#ff0000 8.33%,#ff0000 50%,#ffffff 50%,#ffffff 58.33%,#ff0000 58.33%,#ff0000 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleBlue_1x2tl_69{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#002aff 8.33%,#002aff 50%,#ffffff 50%,#ffffff 58.33%,#002aff 58.33%,#002aff 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleGreen_1x2tl_113{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#06fb06 8.33%,#06fb06 50%,#ffffff 50%,#ffffff 58.33%,#06fb06 58.33%,#06fb06 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleUnique_1x2tl_157{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#3cc;animation:_baseStyleUniqueAnimation_1x2tl_1 9s infinite;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}@keyframes _baseStyleUniqueAnimation_1x2tl_1{0%{background:#33cccc}20%{background:#33cc36}40%{background:#b8cc33}60%{background:#fcca00}80%{background:#33cc36}to{background:#33cccc}}._gradientStyleRed_1x2tl_225{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#fc8e8e;background-image:linear-gradient(62deg,#fc8e8e 0%,#fcc3c3 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleBlue_1x2tl_251{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#8ec5fc;background-image:linear-gradient(62deg,#8ec5fc 0%,#e0c3fc 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleGreen_1x2tl_277{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#8efc99;background-image:linear-gradient(62deg,#8efc99 0%,#c3fcda 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleUnique_1x2tl_303{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(to left,rgb(255,196,0),#ff357f 25%,#ff357f 75%,rgb(255,196,0) 100%);background-size:300% 300%;-webkit-animation:_gradientStyleUniqueAnimation_1x2tl_1 5s ease infinite;animation:_gradientStyleUniqueAnimation_1x2tl_1 5s ease infinite;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}@-webkit-keyframes _gradientStyleUniqueAnimation_1x2tl_1{0%{background-position:0% 50%}40%{background-position:100% 50%}60%{background-position:150% 100%}to{background-position:150% 150%}}@keyframes _gradientStyleUniqueAnimation_1x2tl_1{0%{background-position:0% 50%}25%{background-position:100% 50%}75%{background-position:150% 100%}to{background-position:150% 150%}}._black_1x2tl_393{color:#000}._red_1x2tl_401{color:red}._value_1x2tl_409{font-size:300%;margin-top:2px}._suit_1x2tl_419{font-size:450%;margin:0;text-align:center}@media screen and (max-width: 992px){._card_1x2tl_1{width:70px;height:180px}._hiddenCard_1x2tl_443{width:60px;height:170px}._value_1x2tl_409{font-size:300%}._suit_1x2tl_419{font-size:500%}}@media screen and (max-width: 600px){._card_1x2tl_1{width:45px;height:100px;padding:5px 10px}._hiddenCard_1x2tl_443{width:41px;height:96px;padding:5px 10px;border:2px solid white}._value_1x2tl_409{font-size:150%}._suit_1x2tl_419{font-size:250%}}._gameBackground_19aqy_1{background:radial-gradient(rgb(1,131,1),rgb(1,70,1))!important;display:flex;flex-direction:row;justify-content:space-between;align-items:center}._handSection_19aqy_17{display:flex;flex-direction:column;justify-content:center;align-items:center;width:80vw;min-height:100vh}.pageContainer{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;min-height:80vh;min-width:100vw}.buttonLabel{color:#fff}.buttonsContainer{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;min-width:80vw}.buttonGroup{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.button{transition-duration:.4s;width:150px;height:50px;background-color:#fff;color:#000;margin:10px}.button:hover{background-color:#000;color:#fff}.buttonSelected{transition-duration:.4s;width:150px;height:50px;background-color:#000;color:#fff;margin:10px}button{border-radius:10px;border:10px;box-shadow:10px}html,body{padding:0;margin:0;background-color:#000}/*! +@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@1,700&family=Source+Sans+3:wght@300&display=swap";.background-color{background:radial-gradient(rgb(51,48,48),#000000)}.backgroundImageHolder{background-image:url(../assets/image/poker-cards.png);background-repeat:no-repeat;background-position:center}.background{background-image:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),url(/blackjack_probability/assets/blackjack-table-660d8671.jpg);background-position:center;background-repeat:no-repeat;background-color:#fff;background-size:cover;height:95vh}.row{display:flex;flex-direction:row;align-items:center}.info{font-size:30px;text-wrap:wrap;width:550px;padding:20px;color:#fff;text-align:center;-webkit-text-stroke:1;-webkit-text-stroke-width:.5px;-webkit-text-stroke-color:black}.btn-hover{width:200px;font-size:16px;font-weight:600;color:#fff;cursor:pointer;margin:20px;height:55px;text-align:center;border:none;background-size:300% 100%;border-radius:50px;moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out;background-image:linear-gradient(to right,#29323c,#485563,#2b5876,#4e4376);box-shadow:0 4px 15px #2d3641bf}.btn-hover:hover{background-position:100% 0;moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out}.btn-hover:focus{outline:none}.titleHolder{flex-direction:column;display:flex;justify-content:center;align-items:center;height:83vh}.title{font-size:100px!important;margin:0;font-family:Lobster Two,cursive,"Sans Serif",sans-serif;background:linear-gradient(to right,hsl(57,92%,50%,.714) 0,hsl(0,0%,100%) 10%,hsla(57,92%,50%,.714) 20%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:shine 3s infinite linear;text-wrap:wrap}@keyframes shine{0%{background-position:-100px}60%{background-position:400px}60%{background-position:500px}to{background-position:750px}}.container{display:flex;flex-direction:column;background:radial-gradient(rgb(51,48,48),#000000)}.subContainer{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;padding:50px}.image{height:300px;width:400px}.titleText{width:50vw;font-size:40px;color:#fff;text-align:center}.container{background:radial-gradient(rgb(51,48,48),#000000)}img{height:350px;width:350px}.about-row{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;margin-bottom:10px}.column{display:flex;flex-direction:column}.about-header{font-size:36px}.about-p{font-size:20px}.text-holder{width:400px;text-align:center;color:#fff}.errorContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px;height:100vh}.error-img{height:500px;width:500px}.table-container{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;padding:50px;background:radial-gradient(rgb(51,48,48),#000000)}.chart-table{height:600px;width:500px;border:2px solid white;margin:20px;background-color:#fff}th,td{align-items:center;height:50px;width:50px;text-align:center;background-color:#000;color:#fff}.floating-key{top:25vh;left:5vw;background-color:#fff;position:fixed}.term-text{font-size:20px;width:800px;color:#fff}.term-row{display:flex;flex-direction:column;align-items:center;padding-top:25px;padding-bottom:25px}.term-container{display:flex;flex-direction:column;justify-content:center;align-items:center;background:radial-gradient(rgb(51,48,48),#000000)}._status_k74mu_1{width:20vw;display:flex;flex-direction:column;justify-content:space-between;margin:.5em .5em .5em 100px;padding:1em;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._value_k74mu_35{color:#fff;text-align:center}@media screen and (max-width: 992px){._value_k74mu_35{font-size:150%}}@media screen and (max-width: 600px){._value_k74mu_35{font-size:115%}}._controlsContainer_wdpsv_1{display:flex;justify-content:center;margin:.5em 1em 1em}._toggleContainer_wdpsv_13{display:flex;justify-content:space-evenly;align-items:center}._toggleText_wdpsv_25{color:#fff}._row_wdpsv_33{display:flex;justify-content:center;flex-direction:row}._column_wdpsv_45{display:flex;justify-content:center;flex-direction:column}._button_wdpsv_57{color:#fff;font-weight:700;margin:0 .5em;padding:1em;width:30%;background:black;outline:none;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;text-align:center;cursor:pointer}@media (hover: hover){._button_wdpsv_57:hover{color:#000;background:white;border:5px solid black}}._button_wdpsv_57:disabled{color:gray;background:rgb(60,60,60);border:5px solid gray}@media screen and (max-width: 992px){._betContainer_wdpsv_117{width:50%}}@media screen and (max-width: 600px){._betContainer_wdpsv_117{width:70%}._betContainer_wdpsv_117 h4{font-size:75%}._betContainer_wdpsv_117 input{font-size:125%}}._status_1r0kp_1{width:20vw;display:flex;flex-direction:column;justify-content:space-between;margin:.5em .5em .5em 100px;padding:1em;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._balance_1r0kp_35{display:flex;align-items:center;justify-content:center;margin:.5em 1em .5em .5em;padding:1em;width:20%;height:50px;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._value_1r0kp_63{color:#fff;text-align:center}@media screen and (max-width: 992px){._value_1r0kp_63{font-size:150%}}@media screen and (max-width: 600px){._value_1r0kp_63{font-size:115%}}._handContainer_1ev8b_1{color:#000;display:flex;align-items:center;flex-direction:column;margin:.5em;min-height:0}._cardContainer_1ev8b_19{display:flex;justify-content:center;flex-wrap:wrap;background-color:#000;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._title_1ev8b_39{text-align:center;margin-bottom:5px;margin-top:5px;color:#fff}@media screen and (max-width: 600px){._title_1ev8b_39{font-size:150%}}._card_1k8kb_1{width:90px;height:210px;margin:20px;padding:.5em 1.5em;background:rgb(230,230,230);border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleRed_1k8kb_23{width:85px;height:200px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#ff0000 8.33%,#ff0000 50%,#ffffff 50%,#ffffff 58.33%,#ff0000 58.33%,#ff0000 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleBlue_1k8kb_67{width:85px;height:200px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#002aff 8.33%,#002aff 50%,#ffffff 50%,#ffffff 58.33%,#002aff 58.33%,#002aff 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleGreen_1k8kb_111{width:85px;height:200px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#06fb06 8.33%,#06fb06 50%,#ffffff 50%,#ffffff 58.33%,#06fb06 58.33%,#06fb06 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleUnique_1k8kb_155{width:85px;height:200px;margin:20px;padding:.5em 1.5em;background-color:#3cc;animation:_baseStyleUniqueAnimation_1k8kb_1 9s infinite;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}@keyframes _baseStyleUniqueAnimation_1k8kb_1{0%{background:#33cccc}20%{background:#33cc36}40%{background:#b8cc33}60%{background:#fcca00}80%{background:#33cc36}to{background:#33cccc}}._gradientStyleRed_1k8kb_223{width:85px;height:200px;margin:20px;padding:.5em 1.5em;background-color:#fc8e8e;background-image:linear-gradient(62deg,#fc8e8e 0%,#fcc3c3 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleBlue_1k8kb_249{width:85px;height:200px;margin:20px;padding:.5em 1.5em;background-color:#8ec5fc;background-image:linear-gradient(62deg,#8ec5fc 0%,#e0c3fc 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleGreen_1k8kb_275{width:85px;height:200px;margin:20px;padding:.5em 1.5em;background-color:#8efc99;background-image:linear-gradient(62deg,#8efc99 0%,#c3fcda 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleUnique_1k8kb_301{width:85px;height:200px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(to left,rgb(255,196,0),#ff357f 25%,#ff357f 75%,rgb(255,196,0) 100%);background-size:300% 300%;-webkit-animation:_gradientStyleUniqueAnimation_1k8kb_1 5s ease infinite;animation:_gradientStyleUniqueAnimation_1k8kb_1 5s ease infinite;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}@-webkit-keyframes _gradientStyleUniqueAnimation_1k8kb_1{0%{background-position:0% 50%}40%{background-position:100% 50%}60%{background-position:150% 100%}to{background-position:150% 150%}}@keyframes _gradientStyleUniqueAnimation_1k8kb_1{0%{background-position:0% 50%}25%{background-position:100% 50%}75%{background-position:150% 100%}to{background-position:150% 150%}}._black_1k8kb_391{color:#000}._red_1k8kb_399{color:red}._value_1k8kb_407{font-size:300%;margin-top:2px}._suit_1k8kb_417{font-size:450%;margin:0;text-align:center}@media screen and (max-width: 992px){._card_1k8kb_1{width:70px;height:180px}._hiddenCard_1k8kb_441{width:60px;height:170px}._value_1k8kb_407{font-size:300%}._suit_1k8kb_417{font-size:500%}}@media screen and (max-width: 600px){._card_1k8kb_1{width:45px;height:100px;padding:5px 10px}._hiddenCard_1k8kb_441{width:41px;height:96px;padding:5px 10px;border:2px solid white}._value_1k8kb_407{font-size:150%}._suit_1k8kb_417{font-size:250%}}._gameBackground_19aqy_1{background:radial-gradient(rgb(1,131,1),rgb(1,70,1))!important;display:flex;flex-direction:row;justify-content:space-between;align-items:center}._handSection_19aqy_17{display:flex;flex-direction:column;justify-content:center;align-items:center;width:80vw;min-height:100vh}.pageContainer{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;min-height:80vh;min-width:100vw}.buttonLabel{color:#fff}.buttonsContainer{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;min-width:80vw}.buttonGroup{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.button{transition-duration:.4s;width:150px;height:50px;background-color:#fff;color:#000;margin:10px}.button:hover{background-color:#000;color:#fff}.buttonSelected{transition-duration:.4s;width:150px;height:50px;background-color:#000;color:#fff;margin:10px}button{border-radius:10px;border:10px;box-shadow:10px}.warningContainer{display:flex;background:yellow;justify-content:center;align-items:center}.text{font-size:20px}html,body{padding:0;margin:0;background-color:#000}/*! * animate.css - https://animate.style/ * Version - 4.1.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT diff --git a/assets/index-e562f502.js b/assets/index-4b59cb57.js similarity index 93% rename from assets/index-e562f502.js rename to assets/index-4b59cb57.js index 7ee836c..e5875b4 100644 --- a/assets/index-e562f502.js +++ b/assets/index-4b59cb57.js @@ -22,7 +22,7 @@ function dp(e,t){for(var n=0;n>>1,X=P[U];if(0>>1;Ul(ct,L))Sel(ke,ct)?(P[U]=ke,P[Se]=L,U=Se):(P[U]=ct,P[ce]=L,U=ce);else if(Sel(ke,L))P[U]=ke,P[Se]=L,U=Se;else break e}}return I}function l(P,I){var L=P.sortIndex-I.sortIndex;return L!==0?L:P.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],h=1,p=null,m=3,y=!1,k=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(P){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=P)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function w(P){if(g=!1,f(P),!k)if(n(a)!==null)k=!0,Ve(S);else{var I=n(u);I!==null&&M(w,I.startTime-P)}}function S(P,I){k=!1,g&&(g=!1,d(T),T=-1),y=!0;var L=m;try{for(f(I),p=n(a);p!==null&&(!(p.expirationTime>I)||P&&!he());){var U=p.callback;if(typeof U=="function"){p.callback=null,m=p.priorityLevel;var X=U(p.expirationTime<=I);I=e.unstable_now(),typeof X=="function"?p.callback=X:p===n(a)&&r(a),f(I)}else r(a);p=n(a)}if(p!==null)var tt=!0;else{var ce=n(u);ce!==null&&M(w,ce.startTime-I),tt=!1}return tt}finally{p=null,m=L,y=!1}}var x=!1,C=null,T=-1,H=5,z=-1;function he(){return!(e.unstable_now()-zP||125U?(P.sortIndex=L,t(u,P),n(a)===null&&P===n(u)&&(g?(d(T),T=-1):g=!0,M(w,L-U))):(P.sortIndex=X,t(a,P),k||y||(k=!0,Ve(S))),P},e.unstable_shouldYield=he,e.unstable_wrapCallback=function(P){var I=m;return function(){var L=m;m=I;try{return P.apply(this,arguments)}finally{m=L}}}})(Sc);wc.exports=Sc;var Dp=wc.exports;/** + */(function(e){function t(P,I){var L=P.length;P.push(I);e:for(;0>>1,b=P[U];if(0>>1;Ul(ct,L))Sel(ke,ct)?(P[U]=ke,P[Se]=L,U=Se):(P[U]=ct,P[ce]=L,U=ce);else if(Sel(ke,L))P[U]=ke,P[Se]=L,U=Se;else break e}}return I}function l(P,I){var L=P.sortIndex-I.sortIndex;return L!==0?L:P.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],h=1,p=null,m=3,y=!1,k=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(P){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=P)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function w(P){if(g=!1,f(P),!k)if(n(a)!==null)k=!0,Ve(S);else{var I=n(u);I!==null&&M(w,I.startTime-P)}}function S(P,I){k=!1,g&&(g=!1,d(T),T=-1),y=!0;var L=m;try{for(f(I),p=n(a);p!==null&&(!(p.expirationTime>I)||P&&!he());){var U=p.callback;if(typeof U=="function"){p.callback=null,m=p.priorityLevel;var b=U(p.expirationTime<=I);I=e.unstable_now(),typeof b=="function"?p.callback=b:p===n(a)&&r(a),f(I)}else r(a);p=n(a)}if(p!==null)var tt=!0;else{var ce=n(u);ce!==null&&M(w,ce.startTime-I),tt=!1}return tt}finally{p=null,m=L,y=!1}}var x=!1,C=null,T=-1,H=5,z=-1;function he(){return!(e.unstable_now()-zP||125U?(P.sortIndex=L,t(u,P),n(a)===null&&P===n(u)&&(g?(d(T),T=-1):g=!0,M(w,L-U))):(P.sortIndex=b,t(a,P),k||y||(k=!0,Ve(S))),P},e.unstable_shouldYield=he,e.unstable_wrapCallback=function(P){var I=m;return function(){var L=m;m=I;try{return P.apply(this,arguments)}finally{m=L}}}})(Sc);wc.exports=Sc;var Dp=wc.exports;/** * @license React * react-dom.production.min.js * @@ -34,10 +34,10 @@ function dp(e,t){for(var n=0;ns||l[o]!==i[s]){var a=` -`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Ui=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hr(e):""}function Up(e){switch(e.tag){case 5:return hr(e.type);case 16:return hr("Lazy");case 13:return hr("Suspense");case 19:return hr("SuspenseList");case 0:case 2:case 15:return e=Fi(e.type,!1),e;case 11:return e=Fi(e.type.render,!1),e;case 1:return e=Fi(e.type,!0),e;default:return""}}function Eo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case En:return"Fragment";case xn:return"Portal";case So:return"Profiler";case Rs:return"StrictMode";case ko:return"Suspense";case xo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Cc:return(e.displayName||"Context")+".Consumer";case Ec:return(e._context.displayName||"Context")+".Provider";case Ts:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Is:return t=e.displayName||null,t!==null?t:Eo(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return Eo(e(t))}catch{}}return null}function Fp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Eo(t);case 8:return t===Rs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bp(e){var t=_c(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function il(e){e._valueTracker||(e._valueTracker=Bp(e))}function Pc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_c(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Co(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function za(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jc(e,t){t=t.checked,t!=null&&js(e,"checked",t,!1)}function No(e,t){jc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_o(e,t.type,n):t.hasOwnProperty("defaultValue")&&_o(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _o(e,t,n){(t!=="number"||Ml(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mr=Array.isArray;function Dn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ol.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wp=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Lc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Lc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Vp=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ro(e,t){if(t){if(Vp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function To(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Io=null;function Ls(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lo=null,$n=null,An=null;function Aa(e){if(e=Jr(e)){if(typeof Lo!="function")throw Error(N(280));var t=e.stateNode;t&&(t=ki(t),Lo(e.stateNode,e.type,t))}}function Oc(e){$n?An?An.push(e):An=[e]:$n=e}function Dc(){if($n){var e=$n,t=An;if(An=$n=null,Aa(e),t)for(e=0;e>>=0,e===0?32:31-(th(e)/nh|0)|0}var sl=64,al=4194304;function vr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=vr(s):(i&=o,i!==0&&(r=vr(i)))}else o=n&~l,o!==0?r=vr(o):i!==0&&(r=vr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Xr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function oh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=kr),Qa=String.fromCharCode(32),Ga=!1;function td(e,t){switch(e){case"keyup":return Oh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function $h(e,t){switch(e){case"compositionend":return nd(t);case"keypress":return t.which!==32?null:(Ga=!0,Qa);case"textInput":return e=t.data,e===Qa&&Ga?null:e;default:return null}}function Ah(e,t){if(Cn)return e==="compositionend"||!Us&&td(e,t)?(e=qc(),_l=As=$t=null,Cn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ja(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=Ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ml(e.document)}return t}function Fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Qh(e){var t=sd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&od(n.ownerDocument.documentElement,n)){if(r!==null&&Fs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Za(n,i);var o=Za(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nn=null,Ho=null,Er=null,Mo=!1;function qa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mo||Nn==null||Nn!==Ml(r)||(r=Nn,"selectionStart"in r&&Fs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&$r(Er,r)||(Er=r,r=Ql(Ho,"onSelect"),0jn||(e.current=Yo[jn],Yo[jn]=null,jn--)}function Y(e,t){jn++,Yo[jn]=e.current,e.current=t}var Xt={},_e=Jt(Xt),Oe=Jt(!1),cn=Xt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return Xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function De(e){return e=e.childContextTypes,e!=null}function Kl(){K(Oe),K(_e)}function ou(e,t,n){if(_e.current!==Xt)throw Error(N(168));Y(_e,t),Y(Oe,n)}function vd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(N(108,Fp(e)||"Unknown",l));return ee({},n,r)}function Xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xt,cn=_e.current,Y(_e,e),Y(Oe,Oe.current),!0}function su(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=vd(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,K(Oe),K(_e),Y(_e,e)):K(Oe),Y(Oe,n)}var St=null,xi=!1,to=!1;function gd(e){St===null?St=[e]:St.push(e)}function lm(e){xi=!0,gd(e)}function Zt(){if(!to&&St!==null){to=!0;var e=0,t=B;try{var n=St;for(B=1;e>=o,l-=o,kt=1<<32-ot(t)+l|n<T?(H=C,C=null):H=C.sibling;var z=m(d,C,f[T],w);if(z===null){C===null&&(C=H);break}e&&C&&z.alternate===null&&t(d,C),c=i(z,c,T),x===null?S=z:x.sibling=z,x=z,C=H}if(T===f.length)return n(d,C),b&&qt(d,T),S;if(C===null){for(;TT?(H=C,C=null):H=C.sibling;var he=m(d,C,z.value,w);if(he===null){C===null&&(C=H);break}e&&C&&he.alternate===null&&t(d,C),c=i(he,c,T),x===null?S=he:x.sibling=he,x=he,C=H}if(z.done)return n(d,C),b&&qt(d,T),S;if(C===null){for(;!z.done;T++,z=f.next())z=p(d,z.value,w),z!==null&&(c=i(z,c,T),x===null?S=z:x.sibling=z,x=z);return b&&qt(d,T),S}for(C=r(d,C);!z.done;T++,z=f.next())z=y(C,d,T,z.value,w),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?T:z.key),c=i(z,c,T),x===null?S=z:x.sibling=z,x=z);return e&&C.forEach(function(me){return t(d,me)}),b&&qt(d,T),S}function _(d,c,f,w){if(typeof f=="object"&&f!==null&&f.type===En&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case ll:e:{for(var S=f.key,x=c;x!==null;){if(x.key===S){if(S=f.type,S===En){if(x.tag===7){n(d,x.sibling),c=l(x,f.props.children),c.return=d,d=c;break e}}else if(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lt&&hu(S)===x.type){n(d,x.sibling),c=l(x,f.props),c.ref=cr(d,x,f),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}f.type===En?(c=sn(f.props.children,d.mode,w,f.key),c.return=d,d=c):(w=Ol(f.type,f.key,f.props,null,d.mode,w),w.ref=cr(d,c,f),w.return=d,d=w)}return o(d);case xn:e:{for(x=f.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(d,c.sibling),c=l(c,f.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=uo(f,d.mode,w),c.return=d,d=c}return o(d);case Lt:return x=f._init,_(d,c,x(f._payload),w)}if(mr(f))return k(d,c,f,w);if(ir(f))return g(d,c,f,w);ml(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,f),c.return=d,d=c):(n(d,c),c=ao(f,d.mode,w),c.return=d,d=c),o(d)):n(d,c)}return _}var Vn=Nd(!0),_d=Nd(!1),Zr={},gt=Jt(Zr),Ur=Jt(Zr),Fr=Jt(Zr);function rn(e){if(e===Zr)throw Error(N(174));return e}function bs(e,t){switch(Y(Fr,t),Y(Ur,e),Y(gt,Zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jo(t,e)}K(gt),Y(gt,t)}function Yn(){K(gt),K(Ur),K(Fr)}function Pd(e){rn(Fr.current);var t=rn(gt.current),n=jo(t,e.type);t!==n&&(Y(Ur,e),Y(gt,n))}function Js(e){Ur.current===e&&(K(gt),K(Ur))}var Z=Jt(0);function ti(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var no=[];function Zs(){for(var e=0;en?n:4,e(!0);var r=ro.transition;ro.transition={};try{e(!1),t()}finally{B=n,ro.transition=r}}function Wd(){return Je().memoizedState}function am(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Vd(e))Yd(t,n);else if(n=kd(e,t,n,r),n!==null){var l=je();st(n,e,r,l),Qd(n,t,r)}}function um(e,t,n){var r=Yt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vd(e))Yd(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,ut(s,o)){var a=t.interleaved;a===null?(l.next=l,Ks(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=kd(e,t,l,r),n!==null&&(l=je(),st(n,e,r,l),Qd(n,t,r))}}function Vd(e){var t=e.alternate;return e===q||t!==null&&t===q}function Yd(e,t){Cr=ni=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Os(e,n)}}var ri={readContext:be,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},cm={readContext:be,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:vu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4194308,4,Hd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tl(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=am.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:mu,useDebugValue:ra,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=mu(!1),t=e[0];return e=sm.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,l=pt();if(b){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),pe===null)throw Error(N(349));fn&30||Td(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,vu(Ld.bind(null,r,i,e),[e]),r.flags|=2048,Vr(9,Id.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pt(),t=pe.identifierPrefix;if(b){var n=xt,r=kt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Br++,0")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Ui=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hr(e):""}function Up(e){switch(e.tag){case 5:return hr(e.type);case 16:return hr("Lazy");case 13:return hr("Suspense");case 19:return hr("SuspenseList");case 0:case 2:case 15:return e=Fi(e.type,!1),e;case 11:return e=Fi(e.type.render,!1),e;case 1:return e=Fi(e.type,!0),e;default:return""}}function Eo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case En:return"Fragment";case xn:return"Portal";case So:return"Profiler";case Rs:return"StrictMode";case ko:return"Suspense";case xo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Cc:return(e.displayName||"Context")+".Consumer";case Ec:return(e._context.displayName||"Context")+".Provider";case Ts:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Is:return t=e.displayName||null,t!==null?t:Eo(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return Eo(e(t))}catch{}}return null}function Fp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Eo(t);case 8:return t===Rs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bp(e){var t=_c(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function il(e){e._valueTracker||(e._valueTracker=Bp(e))}function Pc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_c(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Co(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function za(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jc(e,t){t=t.checked,t!=null&&js(e,"checked",t,!1)}function No(e,t){jc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_o(e,t.type,n):t.hasOwnProperty("defaultValue")&&_o(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _o(e,t,n){(t!=="number"||Ml(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mr=Array.isArray;function Dn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ol.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wp=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Lc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Lc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Vp=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ro(e,t){if(t){if(Vp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function To(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Io=null;function Ls(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lo=null,$n=null,An=null;function Aa(e){if(e=Jr(e)){if(typeof Lo!="function")throw Error(N(280));var t=e.stateNode;t&&(t=ki(t),Lo(e.stateNode,e.type,t))}}function Oc(e){$n?An?An.push(e):An=[e]:$n=e}function Dc(){if($n){var e=$n,t=An;if(An=$n=null,Aa(e),t)for(e=0;e>>=0,e===0?32:31-(th(e)/nh|0)|0}var sl=64,al=4194304;function vr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=vr(s):(i&=o,i!==0&&(r=vr(i)))}else o=n&~l,o!==0?r=vr(o):i!==0&&(r=vr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function br(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function oh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=kr),Qa=String.fromCharCode(32),Ga=!1;function td(e,t){switch(e){case"keyup":return Oh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function $h(e,t){switch(e){case"compositionend":return nd(t);case"keypress":return t.which!==32?null:(Ga=!0,Qa);case"textInput":return e=t.data,e===Qa&&Ga?null:e;default:return null}}function Ah(e,t){if(Cn)return e==="compositionend"||!Us&&td(e,t)?(e=qc(),_l=As=$t=null,Cn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ja(n)}}function od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=Ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ml(e.document)}return t}function Fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Qh(e){var t=sd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&od(n.ownerDocument.documentElement,n)){if(r!==null&&Fs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Za(n,i);var o=Za(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nn=null,Ho=null,Er=null,Mo=!1;function qa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mo||Nn==null||Nn!==Ml(r)||(r=Nn,"selectionStart"in r&&Fs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&$r(Er,r)||(Er=r,r=Ql(Ho,"onSelect"),0jn||(e.current=Yo[jn],Yo[jn]=null,jn--)}function Y(e,t){jn++,Yo[jn]=e.current,e.current=t}var bt={},_e=Jt(bt),Oe=Jt(!1),cn=bt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function De(e){return e=e.childContextTypes,e!=null}function Kl(){K(Oe),K(_e)}function ou(e,t,n){if(_e.current!==bt)throw Error(N(168));Y(_e,t),Y(Oe,n)}function vd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(N(108,Fp(e)||"Unknown",l));return ee({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,cn=_e.current,Y(_e,e),Y(Oe,Oe.current),!0}function su(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=vd(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,K(Oe),K(_e),Y(_e,e)):K(Oe),Y(Oe,n)}var St=null,xi=!1,to=!1;function gd(e){St===null?St=[e]:St.push(e)}function lm(e){xi=!0,gd(e)}function Zt(){if(!to&&St!==null){to=!0;var e=0,t=B;try{var n=St;for(B=1;e>=o,l-=o,kt=1<<32-ot(t)+l|n<T?(H=C,C=null):H=C.sibling;var z=m(d,C,f[T],w);if(z===null){C===null&&(C=H);break}e&&C&&z.alternate===null&&t(d,C),c=i(z,c,T),x===null?S=z:x.sibling=z,x=z,C=H}if(T===f.length)return n(d,C),X&&qt(d,T),S;if(C===null){for(;TT?(H=C,C=null):H=C.sibling;var he=m(d,C,z.value,w);if(he===null){C===null&&(C=H);break}e&&C&&he.alternate===null&&t(d,C),c=i(he,c,T),x===null?S=he:x.sibling=he,x=he,C=H}if(z.done)return n(d,C),X&&qt(d,T),S;if(C===null){for(;!z.done;T++,z=f.next())z=p(d,z.value,w),z!==null&&(c=i(z,c,T),x===null?S=z:x.sibling=z,x=z);return X&&qt(d,T),S}for(C=r(d,C);!z.done;T++,z=f.next())z=y(C,d,T,z.value,w),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?T:z.key),c=i(z,c,T),x===null?S=z:x.sibling=z,x=z);return e&&C.forEach(function(me){return t(d,me)}),X&&qt(d,T),S}function _(d,c,f,w){if(typeof f=="object"&&f!==null&&f.type===En&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case ll:e:{for(var S=f.key,x=c;x!==null;){if(x.key===S){if(S=f.type,S===En){if(x.tag===7){n(d,x.sibling),c=l(x,f.props.children),c.return=d,d=c;break e}}else if(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lt&&hu(S)===x.type){n(d,x.sibling),c=l(x,f.props),c.ref=cr(d,x,f),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}f.type===En?(c=sn(f.props.children,d.mode,w,f.key),c.return=d,d=c):(w=Ol(f.type,f.key,f.props,null,d.mode,w),w.ref=cr(d,c,f),w.return=d,d=w)}return o(d);case xn:e:{for(x=f.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(d,c.sibling),c=l(c,f.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=uo(f,d.mode,w),c.return=d,d=c}return o(d);case Lt:return x=f._init,_(d,c,x(f._payload),w)}if(mr(f))return k(d,c,f,w);if(ir(f))return g(d,c,f,w);ml(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,f),c.return=d,d=c):(n(d,c),c=ao(f,d.mode,w),c.return=d,d=c),o(d)):n(d,c)}return _}var Vn=Nd(!0),_d=Nd(!1),Zr={},gt=Jt(Zr),Ur=Jt(Zr),Fr=Jt(Zr);function rn(e){if(e===Zr)throw Error(N(174));return e}function Xs(e,t){switch(Y(Fr,t),Y(Ur,e),Y(gt,Zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jo(t,e)}K(gt),Y(gt,t)}function Yn(){K(gt),K(Ur),K(Fr)}function Pd(e){rn(Fr.current);var t=rn(gt.current),n=jo(t,e.type);t!==n&&(Y(Ur,e),Y(gt,n))}function Js(e){Ur.current===e&&(K(gt),K(Ur))}var Z=Jt(0);function ti(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var no=[];function Zs(){for(var e=0;en?n:4,e(!0);var r=ro.transition;ro.transition={};try{e(!1),t()}finally{B=n,ro.transition=r}}function Wd(){return Je().memoizedState}function am(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Vd(e))Yd(t,n);else if(n=kd(e,t,n,r),n!==null){var l=je();st(n,e,r,l),Qd(n,t,r)}}function um(e,t,n){var r=Yt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vd(e))Yd(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,ut(s,o)){var a=t.interleaved;a===null?(l.next=l,Ks(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=kd(e,t,l,r),n!==null&&(l=je(),st(n,e,r,l),Qd(n,t,r))}}function Vd(e){var t=e.alternate;return e===q||t!==null&&t===q}function Yd(e,t){Cr=ni=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Os(e,n)}}var ri={readContext:Xe,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},cm={readContext:Xe,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:vu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4194308,4,Hd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tl(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=am.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:mu,useDebugValue:ra,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=mu(!1),t=e[0];return e=sm.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,l=pt();if(X){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),pe===null)throw Error(N(349));fn&30||Td(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,vu(Ld.bind(null,r,i,e),[e]),r.flags|=2048,Vr(9,Id.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pt(),t=pe.identifierPrefix;if(X){var n=xt,r=kt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Br++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[mt]=t,e[Mr]=r,tf(e,t,!1,!1),t.stateNode=e;e:{switch(o=To(n,r),n){case"dialog":Q("cancel",e),Q("close",e),l=r;break;case"iframe":case"object":case"embed":Q("load",e),l=r;break;case"video":case"audio":for(l=0;lGn&&(t.flags|=128,r=!0,dr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ti(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),dr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!b)return Ee(t),null}else 2*ne()-i.renderingStartTime>Gn&&n!==1073741824&&(t.flags|=128,r=!0,dr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=Z.current,Y(Z,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return ua(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function ym(e,t){switch(Ws(t),t.tag){case 1:return De(t.type)&&Kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(),K(Oe),K(_e),Zs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Js(t),null;case 13:if(K(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Z),null;case 4:return Yn(),null;case 10:return Gs(t.type._context),null;case 22:case 23:return ua(),null;case 24:return null;default:return null}}var gl=!1,Ne=!1,wm=typeof WeakSet=="function"?WeakSet:Set,j=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function rs(e,t,n){try{n()}catch(r){te(e,t,r)}}var Nu=!1;function Sm(e,t){if(Uo=Vl,e=sd(),Fs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,h=0,p=e,m=null;t:for(;;){for(var y;p!==n||l!==0&&p.nodeType!==3||(s=o+l),p!==i||r!==0&&p.nodeType!==3||(a=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++u===l&&(s=o),m===i&&++h===r&&(a=o),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},Vl=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var g=k.memoizedProps,_=k.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?g:rt(t.type,g),_);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(w){te(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return k=Nu,Nu=!1,k}function Nr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&rs(t,n,i)}l=l.next}while(l!==r)}}function Ni(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lf(e){var t=e.alternate;t!==null&&(e.alternate=null,lf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[Mr],delete t[Vo],delete t[nm],delete t[rm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function of(e){return e.tag===5||e.tag===3||e.tag===4}function _u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||of(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function is(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gl));else if(r!==4&&(e=e.child,e!==null))for(is(e,t,n),e=e.sibling;e!==null;)is(e,t,n),e=e.sibling}function os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}var ge=null,lt=!1;function Rt(e,t,n){for(n=n.child;n!==null;)sf(e,t,n),n=n.sibling}function sf(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(gi,n)}catch{}switch(n.tag){case 5:Ne||Ln(n,t);case 6:var r=ge,l=lt;ge=null,Rt(e,t,n),ge=r,lt=l,ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?eo(e.parentNode,n):e.nodeType===1&&eo(e,n),Or(e)):eo(ge,n.stateNode));break;case 4:r=ge,l=lt,ge=n.stateNode.containerInfo,lt=!0,Rt(e,t,n),ge=r,lt=l;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&rs(n,t,o),l=l.next}while(l!==r)}Rt(e,t,n);break;case 1:if(!Ne&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){te(n,t,s)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,Rt(e,t,n),Ne=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function Pu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wm),t.forEach(function(r){var l=Rm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xm(r/1960))-r,10e?16:e,At===null)var r=!1;else{if(e=At,At=null,oi=0,A&6)throw Error(N(331));var l=A;for(A|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ane()-sa?on(e,0):oa|=n),$e(e,t)}function mf(e,t){t===0&&(e.mode&1?(t=al,al<<=1,!(al&130023424)&&(al=4194304)):t=1);var n=je();e=_t(e,t),e!==null&&(Xr(e,t,n),$e(e,n))}function jm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mf(e,n)}function Rm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),mf(e,n)}var vf;vf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,vm(e,t,n);Le=!!(e.flags&131072)}else Le=!1,b&&t.flags&1048576&&yd(t,Jl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Il(e,t),e=t.pendingProps;var l=Bn(t,_e.current);Mn(t,n),l=ea(null,t,r,e,l,n);var i=ta();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(i=!0,Xl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Xs(t),l.updater=Ei,t.stateNode=l,l._reactInternals=t,bo(t,r,e,n),t=qo(null,t,r,!0,i,n)):(t.tag=0,b&&i&&Bs(t),Pe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Il(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Im(r),e=rt(r,e),l){case 0:t=Zo(null,t,r,e,n);break e;case 1:t=xu(null,t,r,e,n);break e;case 11:t=Su(null,t,r,e,n);break e;case 14:t=ku(null,t,r,rt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Zo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),xu(e,t,r,l,n);case 3:e:{if(Zd(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,l=i.element,xd(e,t),ei(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Qn(Error(N(423)),t),t=Eu(e,t,r,n,l);break e}else if(r!==l){l=Qn(Error(N(424)),t),t=Eu(e,t,r,n,l);break e}else for(Me=Bt(t.stateNode.containerInfo.firstChild),Ue=t,b=!0,it=null,n=_d(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===l){t=Pt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return Pd(t),e===null&&Go(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Bo(r,l)?o=null:i!==null&&Bo(r,i)&&(t.flags|=32),Jd(e,t),Pe(e,t,o,n),t.child;case 6:return e===null&&Go(t),null;case 13:return qd(e,t,n);case 4:return bs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vn(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Su(e,t,r,l,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Y(Zl,r._currentValue),r._currentValue=o,i!==null)if(ut(i.value,o)){if(i.children===l.children&&!Oe.current){t=Pt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Et(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?a.next=a:(a.next=h.next,h.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ko(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ko(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Pe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Mn(t,n),l=be(l),r=r(l),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,l=rt(r,t.pendingProps),l=rt(r.type,l),ku(e,t,r,l,n);case 15:return Xd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Il(e,t),t.tag=1,De(r)?(e=!0,Xl(t)):e=!1,Mn(t,n),Cd(t,r,l),bo(t,r,l,n),qo(null,t,r,!0,e,n);case 19:return ef(e,t,n);case 22:return bd(e,t,n)}throw Error(N(156,t.tag))};function gf(e,t){return Bc(e,t)}function Tm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new Tm(e,t,n,r)}function da(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Im(e){if(typeof e=="function")return da(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ts)return 11;if(e===Is)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=Ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ol(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")da(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case En:return sn(n.children,l,i,t);case Rs:o=8,l|=8;break;case So:return e=Ke(12,n,t,l|2),e.elementType=So,e.lanes=i,e;case ko:return e=Ke(13,n,t,l),e.elementType=ko,e.lanes=i,e;case xo:return e=Ke(19,n,t,l),e.elementType=xo,e.lanes=i,e;case Nc:return Pi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ec:o=10;break e;case Cc:o=9;break e;case Ts:o=11;break e;case Is:o=14;break e;case Lt:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ke(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function sn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function Pi(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=Nc,e.lanes=n,e.stateNode={isHidden:!1},e}function ao(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function uo(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wi(0),this.expirationTimes=Wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function fa(e,t,n,r,l,i,o,s,a){return e=new Lm(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ke(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xs(i),e}function zm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kf)}catch(e){console.error(e)}}kf(),yc.exports=Be;var Hm=yc.exports,Du=Hm;yo.createRoot=Du.createRoot,yo.hydrateRoot=Du.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:l,digest:null}}function oo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Jo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pm=typeof WeakMap=="function"?WeakMap:Map;function Gd(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ii||(ii=!0,ss=r),Jo(e,t)},n}function Kd(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Jo(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Jo(e,t),typeof r!="function"&&(Vt===null?Vt=new Set([this]):Vt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pm;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Pm.bind(null,e,t,n),t.then(e,e))}function yu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function wu(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,Wt(n,t,1))),n.lanes|=1),e)}var hm=jt.ReactCurrentOwner,Le=!1;function Pe(e,t,n,r){t.child=e===null?_d(t,null,n,r):Vn(t,e.child,n,r)}function Su(e,t,n,r,l){n=n.render;var i=t.ref;return Mn(t,l),r=ea(e,t,n,r,i,l),n=ta(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Pt(e,t,l)):(X&&n&&Bs(t),t.flags|=1,Pe(e,t,r,l),t.child)}function ku(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!da(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bd(e,t,i,r,l)):(e=Ol(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:$r,n(o,r)&&e.ref===t.ref)return Pt(e,t,l)}return t.flags|=1,e=Qt(i,r),e.ref=t.ref,e.return=t,t.child=e}function bd(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if($r(i,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,Pt(e,t,l)}return Zo(e,t,n,r,l)}function Xd(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,He),He|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,He),He|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Y(zn,He),He|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Y(zn,He),He|=r;return Pe(e,t,l,n),t.child}function Jd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zo(e,t,n,r,l){var i=De(n)?cn:_e.current;return i=Bn(t,i),Mn(t,l),n=ea(e,t,n,r,i,l),r=ta(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Pt(e,t,l)):(X&&r&&Bs(t),t.flags|=1,Pe(e,t,n,l),t.child)}function xu(e,t,n,r,l){if(De(n)){var i=!0;bl(t)}else i=!1;if(Mn(t,l),t.stateNode===null)Il(e,t),Cd(t,n,r),Xo(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Xe(u):(u=De(n)?cn:_e.current,u=Bn(t,u));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==u)&&pu(t,o,r,u),zt=!1;var m=t.memoizedState;o.state=m,ei(t,r,o,l),a=t.memoizedState,s!==r||m!==a||Oe.current||zt?(typeof h=="function"&&(bo(t,n,h,r),a=t.memoizedState),(s=zt||fu(t,n,s,r,m,a,u))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,xd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:rt(t.type,s),o.props=u,p=t.pendingProps,m=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Xe(a):(a=De(n)?cn:_e.current,a=Bn(t,a));var y=n.getDerivedStateFromProps;(h=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==p||m!==a)&&pu(t,o,r,a),zt=!1,m=t.memoizedState,o.state=m,ei(t,r,o,l);var k=t.memoizedState;s!==p||m!==k||Oe.current||zt?(typeof y=="function"&&(bo(t,n,y,r),k=t.memoizedState),(u=zt||fu(t,n,u,r,m,k,a)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,k,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,k,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),o.props=r,o.state=k,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return qo(e,t,n,r,i,l)}function qo(e,t,n,r,l,i){Jd(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&su(t,n,!1),Pt(e,t,i);r=t.stateNode,hm.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Vn(t,e.child,null,i),t.child=Vn(t,null,s,i)):Pe(e,t,s,i),t.memoizedState=r.state,l&&su(t,n,!0),t.child}function Zd(e){var t=e.stateNode;t.pendingContext?ou(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ou(e,t.context,!1),Xs(e,t.containerInfo)}function Eu(e,t,n,r,l){return Wn(),Vs(l),t.flags|=256,Pe(e,t,n,r),t.child}var es={dehydrated:null,treeContext:null,retryLane:0};function ts(e){return{baseLanes:e,cachePool:null,transitions:null}}function qd(e,t,n){var r=t.pendingProps,l=Z.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Y(Z,l&1),e===null)return Go(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Pi(o,r,0,null),e=sn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ts(n),t.memoizedState=es,e):la(t,o));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return mm(e,t,o,r,s,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,s=l.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Qt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?i=Qt(s,i):(i=sn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?ts(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=es,r}return i=e.child,e=i.sibling,r=Qt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function la(e,t){return t=Pi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vl(e,t,n,r){return r!==null&&Vs(r),Vn(t,e.child,null,n),e=la(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mm(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=oo(Error(N(422))),vl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Pi({mode:"visible",children:r.children},l,0,null),i=sn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Vn(t,e.child,null,o),t.child.memoizedState=ts(o),t.memoizedState=es,i);if(!(t.mode&1))return vl(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(N(419)),r=oo(i,r,void 0),vl(e,t,o,r)}if(s=(o&e.childLanes)!==0,Le||s){if(r=pe,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,_t(e,l),st(r,e,l,-1))}return ca(),r=oo(Error(N(421))),vl(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=jm.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,Me=Bt(l.nextSibling),Ue=t,X=!0,it=null,e!==null&&(Qe[Ge++]=kt,Qe[Ge++]=xt,Qe[Ge++]=dn,kt=e.id,xt=e.overflow,dn=t),t=la(t,r.children),t.flags|=4096,t)}function Cu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ko(e.return,t,n)}function so(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function ef(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Pe(e,t,r.children,n),r=Z.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cu(e,n,t);else if(e.tag===19)Cu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Y(Z,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&ti(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),so(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ti(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}so(t,!0,n,null,i);break;case"together":so(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Il(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Qt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vm(e,t,n){switch(t.tag){case 3:Zd(t),Wn();break;case 5:Pd(t);break;case 1:De(t.type)&&bl(t);break;case 4:Xs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Y(Zl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Y(Z,Z.current&1),t.flags|=128,null):n&t.child.childLanes?qd(e,t,n):(Y(Z,Z.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);Y(Z,Z.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ef(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Y(Z,Z.current),r)break;return null;case 22:case 23:return t.lanes=0,Xd(e,t,n)}return Pt(e,t,n)}var tf,ns,nf,rf;tf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ns=function(){};nf=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,rn(gt.current);var i=null;switch(n){case"input":l=Co(e,l),r=Co(e,r),i=[];break;case"select":l=ee({},l,{value:void 0}),r=ee({},r,{value:void 0}),i=[];break;case"textarea":l=Po(e,l),r=Po(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gl)}Ro(n,r);var o;n=null;for(u in l)if(!r.hasOwnProperty(u)&&l.hasOwnProperty(u)&&l[u]!=null)if(u==="style"){var s=l[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Rr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=l!=null?l[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Rr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Q("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};rf=function(e,t,n,r){n!==r&&(t.flags|=4)};function dr(e,t){if(!X)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ee(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gm(e,t,n){var r=t.pendingProps;switch(Ws(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(t),null;case 1:return De(t.type)&&Kl(),Ee(t),null;case 3:return r=t.stateNode,Yn(),K(Oe),K(_e),Zs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,it!==null&&(cs(it),it=null))),ns(e,t),Ee(t),null;case 5:Js(t);var l=rn(Fr.current);if(n=t.type,e!==null&&t.stateNode!=null)nf(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return Ee(t),null}if(e=rn(gt.current),hl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mt]=t,r[Mr]=i,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[mt]=t,e[Mr]=r,tf(e,t,!1,!1),t.stateNode=e;e:{switch(o=To(n,r),n){case"dialog":Q("cancel",e),Q("close",e),l=r;break;case"iframe":case"object":case"embed":Q("load",e),l=r;break;case"video":case"audio":for(l=0;lGn&&(t.flags|=128,r=!0,dr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ti(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),dr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!X)return Ee(t),null}else 2*ne()-i.renderingStartTime>Gn&&n!==1073741824&&(t.flags|=128,r=!0,dr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=Z.current,Y(Z,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return ua(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function ym(e,t){switch(Ws(t),t.tag){case 1:return De(t.type)&&Kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(),K(Oe),K(_e),Zs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Js(t),null;case 13:if(K(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Z),null;case 4:return Yn(),null;case 10:return Gs(t.type._context),null;case 22:case 23:return ua(),null;case 24:return null;default:return null}}var gl=!1,Ne=!1,wm=typeof WeakSet=="function"?WeakSet:Set,j=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function rs(e,t,n){try{n()}catch(r){te(e,t,r)}}var Nu=!1;function Sm(e,t){if(Uo=Vl,e=sd(),Fs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,h=0,p=e,m=null;t:for(;;){for(var y;p!==n||l!==0&&p.nodeType!==3||(s=o+l),p!==i||r!==0&&p.nodeType!==3||(a=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++u===l&&(s=o),m===i&&++h===r&&(a=o),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},Vl=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var g=k.memoizedProps,_=k.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?g:rt(t.type,g),_);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(w){te(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return k=Nu,Nu=!1,k}function Nr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&rs(t,n,i)}l=l.next}while(l!==r)}}function Ni(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lf(e){var t=e.alternate;t!==null&&(e.alternate=null,lf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[Mr],delete t[Vo],delete t[nm],delete t[rm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function of(e){return e.tag===5||e.tag===3||e.tag===4}function _u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||of(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function is(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gl));else if(r!==4&&(e=e.child,e!==null))for(is(e,t,n),e=e.sibling;e!==null;)is(e,t,n),e=e.sibling}function os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}var ge=null,lt=!1;function Rt(e,t,n){for(n=n.child;n!==null;)sf(e,t,n),n=n.sibling}function sf(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(gi,n)}catch{}switch(n.tag){case 5:Ne||Ln(n,t);case 6:var r=ge,l=lt;ge=null,Rt(e,t,n),ge=r,lt=l,ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?eo(e.parentNode,n):e.nodeType===1&&eo(e,n),Or(e)):eo(ge,n.stateNode));break;case 4:r=ge,l=lt,ge=n.stateNode.containerInfo,lt=!0,Rt(e,t,n),ge=r,lt=l;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&rs(n,t,o),l=l.next}while(l!==r)}Rt(e,t,n);break;case 1:if(!Ne&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){te(n,t,s)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,Rt(e,t,n),Ne=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function Pu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wm),t.forEach(function(r){var l=Rm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xm(r/1960))-r,10e?16:e,At===null)var r=!1;else{if(e=At,At=null,oi=0,A&6)throw Error(N(331));var l=A;for(A|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ane()-sa?on(e,0):oa|=n),$e(e,t)}function mf(e,t){t===0&&(e.mode&1?(t=al,al<<=1,!(al&130023424)&&(al=4194304)):t=1);var n=je();e=_t(e,t),e!==null&&(br(e,t,n),$e(e,n))}function jm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mf(e,n)}function Rm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),mf(e,n)}var vf;vf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,vm(e,t,n);Le=!!(e.flags&131072)}else Le=!1,X&&t.flags&1048576&&yd(t,Jl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Il(e,t),e=t.pendingProps;var l=Bn(t,_e.current);Mn(t,n),l=ea(null,t,r,e,l,n);var i=ta();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(i=!0,bl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bs(t),l.updater=Ei,t.stateNode=l,l._reactInternals=t,Xo(t,r,e,n),t=qo(null,t,r,!0,i,n)):(t.tag=0,X&&i&&Bs(t),Pe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Il(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Im(r),e=rt(r,e),l){case 0:t=Zo(null,t,r,e,n);break e;case 1:t=xu(null,t,r,e,n);break e;case 11:t=Su(null,t,r,e,n);break e;case 14:t=ku(null,t,r,rt(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Zo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),xu(e,t,r,l,n);case 3:e:{if(Zd(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,l=i.element,xd(e,t),ei(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Qn(Error(N(423)),t),t=Eu(e,t,r,n,l);break e}else if(r!==l){l=Qn(Error(N(424)),t),t=Eu(e,t,r,n,l);break e}else for(Me=Bt(t.stateNode.containerInfo.firstChild),Ue=t,X=!0,it=null,n=_d(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===l){t=Pt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return Pd(t),e===null&&Go(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Bo(r,l)?o=null:i!==null&&Bo(r,i)&&(t.flags|=32),Jd(e,t),Pe(e,t,o,n),t.child;case 6:return e===null&&Go(t),null;case 13:return qd(e,t,n);case 4:return Xs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vn(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Su(e,t,r,l,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Y(Zl,r._currentValue),r._currentValue=o,i!==null)if(ut(i.value,o)){if(i.children===l.children&&!Oe.current){t=Pt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Et(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?a.next=a:(a.next=h.next,h.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ko(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ko(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Pe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Mn(t,n),l=Xe(l),r=r(l),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,l=rt(r,t.pendingProps),l=rt(r.type,l),ku(e,t,r,l,n);case 15:return bd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Il(e,t),t.tag=1,De(r)?(e=!0,bl(t)):e=!1,Mn(t,n),Cd(t,r,l),Xo(t,r,l,n),qo(null,t,r,!0,e,n);case 19:return ef(e,t,n);case 22:return Xd(e,t,n)}throw Error(N(156,t.tag))};function gf(e,t){return Bc(e,t)}function Tm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new Tm(e,t,n,r)}function da(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Im(e){if(typeof e=="function")return da(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ts)return 11;if(e===Is)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=Ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ol(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")da(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case En:return sn(n.children,l,i,t);case Rs:o=8,l|=8;break;case So:return e=Ke(12,n,t,l|2),e.elementType=So,e.lanes=i,e;case ko:return e=Ke(13,n,t,l),e.elementType=ko,e.lanes=i,e;case xo:return e=Ke(19,n,t,l),e.elementType=xo,e.lanes=i,e;case Nc:return Pi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ec:o=10;break e;case Cc:o=9;break e;case Ts:o=11;break e;case Is:o=14;break e;case Lt:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ke(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function sn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function Pi(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=Nc,e.lanes=n,e.stateNode={isHidden:!1},e}function ao(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function uo(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wi(0),this.expirationTimes=Wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function fa(e,t,n,r,l,i,o,s,a){return e=new Lm(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ke(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bs(i),e}function zm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kf)}catch(e){console.error(e)}}kf(),yc.exports=Be;var Hm=yc.exports,Du=Hm;yo.createRoot=Du.createRoot,yo.hydrateRoot=Du.hydrateRoot;/** * @remix-run/router v1.9.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function va(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Um(){return Math.random().toString(36).substr(2,8)}function Au(e,t){return{usr:e.state,key:e.key,idx:t}}function ds(e,t,n,r){return n===void 0&&(n=null),Qr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nr(t):t,{state:n,key:t&&t.key||r||Um()})}function ui(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Fm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,s=Ht.Pop,a=null,u=h();u==null&&(u=0,o.replaceState(Qr({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function p(){s=Ht.Pop;let _=h(),d=_==null?null:_-u;u=_,a&&a({action:s,location:g.location,delta:d})}function m(_,d){s=Ht.Push;let c=ds(g.location,_,d);n&&n(c,_),u=h()+1;let f=Au(c,u),w=g.createHref(c);try{o.pushState(f,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(w)}i&&a&&a({action:s,location:g.location,delta:1})}function y(_,d){s=Ht.Replace;let c=ds(g.location,_,d);n&&n(c,_),u=h();let f=Au(c,u),w=g.createHref(c);o.replaceState(f,"",w),i&&a&&a({action:s,location:g.location,delta:0})}function k(_){let d=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof _=="string"?_:ui(_);return oe(d,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,d)}let g={get action(){return s},get location(){return e(l,o)},listen(_){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener($u,p),a=_,()=>{l.removeEventListener($u,p),a=null}},createHref(_){return t(l,_)},createURL:k,encodeLocation(_){let d=k(_);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:y,go(_){return o.go(_)}};return g}var Hu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Hu||(Hu={}));function Bm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nr(t):t,l=ga(r.pathname||"/",n);if(l==null)return null;let i=xf(e);Wm(i);let o=null;for(let s=0;o==null&&s{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(oe(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Gt([r,a.relativePath]),h=n.concat(a);i.children&&i.children.length>0&&(oe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xf(i.children,t,h,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:bm(u,i.index),routesMeta:h})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let a of Ef(i.path))l(i,o,a)}),t}function Ef(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Ef(r.join("/")),s=[];return s.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Wm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Jm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Vm=/^:\w+$/,Ym=3,Qm=2,Gm=1,Km=10,Xm=-2,Mu=e=>e==="*";function bm(e,t){let n=e.split("/"),r=n.length;return n.some(Mu)&&(r+=Xm),t&&(r+=Qm),n.filter(l=>!Mu(l)).reduce((l,i)=>l+(Vm.test(i)?Ym:i===""?Gm:Km),r)}function Jm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Zm(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{if(h==="*"){let m=s[p]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return u[h]=nv(s[p]||"",h),u},{}),pathname:i,pathnameBase:o,pattern:e}}function ev(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),va(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function tv(e){try{return decodeURI(e)}catch(t){return va(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function nv(e,t){try{return decodeURIComponent(e)}catch(n){return va(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ga(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function rv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?nr(e):e;return{pathname:n?n.startsWith("/")?n:lv(n,t):t,search:ov(r),hash:sv(l)}}function lv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function co(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Cf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nf(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=nr(e):(l=Qr({},e),oe(!l.pathname||!l.pathname.includes("?"),co("?","pathname","search",l)),oe(!l.pathname||!l.pathname.includes("#"),co("#","pathname","hash",l)),oe(!l.search||!l.search.includes("#"),co("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,s;if(r||o==null)s=n;else{let p=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}s=p>=0?t[p]:"/"}let a=rv(l,s),u=o&&o!=="/"&&o.endsWith("/"),h=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||h)&&(a.pathname+="/"),a}const Gt=e=>e.join("/").replace(/\/\/+/g,"/"),iv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ov=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function av(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _f=["post","put","patch","delete"];new Set(_f);const uv=["get",..._f];new Set(uv);/** + */function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function va(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Um(){return Math.random().toString(36).substr(2,8)}function Au(e,t){return{usr:e.state,key:e.key,idx:t}}function ds(e,t,n,r){return n===void 0&&(n=null),Qr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nr(t):t,{state:n,key:t&&t.key||r||Um()})}function ui(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Fm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,s=Ht.Pop,a=null,u=h();u==null&&(u=0,o.replaceState(Qr({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function p(){s=Ht.Pop;let _=h(),d=_==null?null:_-u;u=_,a&&a({action:s,location:g.location,delta:d})}function m(_,d){s=Ht.Push;let c=ds(g.location,_,d);n&&n(c,_),u=h()+1;let f=Au(c,u),w=g.createHref(c);try{o.pushState(f,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(w)}i&&a&&a({action:s,location:g.location,delta:1})}function y(_,d){s=Ht.Replace;let c=ds(g.location,_,d);n&&n(c,_),u=h();let f=Au(c,u),w=g.createHref(c);o.replaceState(f,"",w),i&&a&&a({action:s,location:g.location,delta:0})}function k(_){let d=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof _=="string"?_:ui(_);return oe(d,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,d)}let g={get action(){return s},get location(){return e(l,o)},listen(_){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener($u,p),a=_,()=>{l.removeEventListener($u,p),a=null}},createHref(_){return t(l,_)},createURL:k,encodeLocation(_){let d=k(_);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:y,go(_){return o.go(_)}};return g}var Hu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Hu||(Hu={}));function Bm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nr(t):t,l=ga(r.pathname||"/",n);if(l==null)return null;let i=xf(e);Wm(i);let o=null;for(let s=0;o==null&&s{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(oe(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Gt([r,a.relativePath]),h=n.concat(a);i.children&&i.children.length>0&&(oe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xf(i.children,t,h,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Xm(u,i.index),routesMeta:h})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let a of Ef(i.path))l(i,o,a)}),t}function Ef(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Ef(r.join("/")),s=[];return s.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Wm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Jm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Vm=/^:\w+$/,Ym=3,Qm=2,Gm=1,Km=10,bm=-2,Mu=e=>e==="*";function Xm(e,t){let n=e.split("/"),r=n.length;return n.some(Mu)&&(r+=bm),t&&(r+=Qm),n.filter(l=>!Mu(l)).reduce((l,i)=>l+(Vm.test(i)?Ym:i===""?Gm:Km),r)}function Jm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Zm(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{if(h==="*"){let m=s[p]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return u[h]=nv(s[p]||"",h),u},{}),pathname:i,pathnameBase:o,pattern:e}}function ev(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),va(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function tv(e){try{return decodeURI(e)}catch(t){return va(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function nv(e,t){try{return decodeURIComponent(e)}catch(n){return va(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ga(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function rv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?nr(e):e;return{pathname:n?n.startsWith("/")?n:lv(n,t):t,search:ov(r),hash:sv(l)}}function lv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function co(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Cf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nf(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=nr(e):(l=Qr({},e),oe(!l.pathname||!l.pathname.includes("?"),co("?","pathname","search",l)),oe(!l.pathname||!l.pathname.includes("#"),co("#","pathname","hash",l)),oe(!l.search||!l.search.includes("#"),co("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,s;if(r||o==null)s=n;else{let p=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}s=p>=0?t[p]:"/"}let a=rv(l,s),u=o&&o!=="/"&&o.endsWith("/"),h=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||h)&&(a.pathname+="/"),a}const Gt=e=>e.join("/").replace(/\/\/+/g,"/"),iv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ov=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function av(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _f=["post","put","patch","delete"];new Set(_f);const uv=["get",..._f];new Set(uv);/** * React Router v6.16.0 * * Copyright (c) Remix Software Inc. @@ -64,10 +64,10 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function _v(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pv(e,t){return e.button===0&&(!t||t==="_self")&&!_v(e)}const jv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Rv=["aria-current","caseSensitive","className","end","style","to","children"],Tv="startTransition",Uu=jp[Tv];function Iv(e){let{basename:t,children:n,future:r,window:l}=e,i=E.useRef();i.current==null&&(i.current=Mm({window:l,v5Compat:!0}));let o=i.current,[s,a]=E.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},h=E.useCallback(p=>{u&&Uu?Uu(()=>a(p)):a(p)},[a,u]);return E.useLayoutEffect(()=>o.listen(h),[o,h]),E.createElement(Cv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const Lv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ov=E.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:s,target:a,to:u,preventScrollReset:h}=t,p=zf(t,jv),{basename:m}=E.useContext(gn),y,k=!1;if(typeof u=="string"&&zv.test(u)&&(y=u,Lv))try{let c=new URL(window.location.href),f=u.startsWith("//")?new URL(c.protocol+u):new URL(u),w=ga(f.pathname,m);f.origin===c.origin&&w!=null?u=w+f.search+f.hash:k=!0}catch{}let g=cv(u,{relative:l}),_=$v(u,{replace:o,state:s,target:a,preventScrollReset:h,relative:l});function d(c){r&&r(c),c.defaultPrevented||_(c)}return E.createElement("a",fi({},p,{href:y||g,onClick:k||i?r:d,ref:n,target:a}))}),Dv=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:s,to:a,children:u}=t,h=zf(t,Rv),p=wa(a,{relative:h.relative}),m=el(),y=E.useContext(Pf),{navigator:k}=E.useContext(gn),g=k.encodeLocation?k.encodeLocation(p).pathname:p.pathname,_=m.pathname,d=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;l||(_=_.toLowerCase(),d=d?d.toLowerCase():null,g=g.toLowerCase());let c=_===g||!o&&_.startsWith(g)&&_.charAt(g.length)==="/",f=d!=null&&(d===g||!o&&d.startsWith(g)&&d.charAt(g.length)==="/"),w=c?r:void 0,S;typeof i=="function"?S=i({isActive:c,isPending:f}):S=[i,c?"active":null,f?"pending":null].filter(Boolean).join(" ");let x=typeof s=="function"?s({isActive:c,isPending:f}):s;return E.createElement(Ov,fi({},h,{"aria-current":w,className:S,ref:n,style:x,to:a}),typeof u=="function"?u({isActive:c,isPending:f}):u)});var Fu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Fu||(Fu={}));var Bu;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bu||(Bu={}));function $v(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o}=t===void 0?{}:t,s=Tf(),a=el(),u=wa(e,{relative:o});return E.useCallback(h=>{if(Pv(h,n)){h.preventDefault();let p=r!==void 0?r:ui(a)===ui(u);s(e,{replace:p,state:l,preventScrollReset:i,relative:o})}},[a,s,u,r,l,n,e,i,o])}const Of="/blackjack_probability",Df="/blackjack_probability/about-us",$f="/blackjack_probability/charts",Af="/blackjack_probability/terms",Sa="/blackjack_probability/game",Hf="/blackjack_probability/customize",Av="*",Hv=()=>{const e=Tf(),t=()=>{e(Sa)},n=()=>{e(Hf)};return v.jsx("div",{className:"background",children:v.jsxs("div",{className:"titleHolder",children:[v.jsx("h1",{className:"title",children:"Blackjack Probability"}),v.jsx("p",{className:"info",children:"Ever wanted to learn how to become a true professional at Blackjack? Well click 'Play' below to get started!"}),v.jsxs("div",{className:"row",children:[v.jsx("button",{className:"btn-hover",onClick:t,children:"Play the Game"}),v.jsx("button",{className:"btn-hover",onClick:n,children:"Customize Table"})]})]})})};const Mv="/blackjack_probability/assets/HomePage1-5cae91d8.png",Uv="/blackjack_probability/assets/HomePage2-91b77c51.png",Fv="/blackjack_probability/assets/HomePage3-a31c86df.png",Bv="/blackjack_probability/assets/HomePage4-10ab7789.png",Wv=()=>v.jsxs("div",{className:"container",children:[v.jsxs("div",{className:"subContainer",children:[v.jsx("p",{className:"titleText",children:"Play Blackjack in a risk free environment!"}),v.jsx("img",{className:"image",src:Mv})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("img",{className:"image",src:Uv}),v.jsx("p",{className:"titleText",children:"Learn basic strategy with our Dealer AI!"})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("p",{className:"titleText",children:"Map out strategies with the charts and learn basic Blackjack terms!"}),v.jsx("img",{className:"image",src:Fv})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("img",{className:"image",src:Bv}),v.jsx("p",{className:"titleText",children:"Customize your playing area to your own liking!"})]})]}),Vv=()=>v.jsxs("div",{children:[v.jsx(Hv,{}),v.jsx(Wv,{})]});var ze=function(){return ze=Object.assign||function(t){for(var n,r=1,l=arguments.length;r0?fe(rr,--Ze):0,Xn--,le===10&&(Xn=1,Oi--),le}function at(){return le=Ze2||hs(le)>3?"":" "}function tg(e,t){for(;--t&&at()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return $i(e,$l()+(t<6&&an()==32&&at()==32))}function ms(e){for(;at();)switch(le){case e:return Ze;case 34:case 39:e!==34&&e!==39&&ms(le);break;case 40:e===41&&ms(e);break;case 92:at();break}return Ze}function ng(e,t){for(;at()&&e+le!==47+10;)if(e+le===42+42&&an()===47)break;return"/*"+$i(t,Ze-1)+"*"+xa(e===47?e:at())}function rg(e){for(;!hs(an());)at();return $i(e,Ze)}function lg(e){return qv(Al("",null,null,null,[""],e=Zv(e),0,[0],e))}function Al(e,t,n,r,l,i,o,s,a){for(var u=0,h=0,p=o,m=0,y=0,k=0,g=1,_=1,d=1,c=0,f="",w=l,S=i,x=r,C=f;_;)switch(k=c,c=at()){case 40:if(k!=108&&fe(C,p-1)==58){Dl(C+=O(fo(c),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:C+=fo(c);break;case 9:case 10:case 13:case 32:C+=eg(k);break;case 92:C+=tg($l()-1,7);continue;case 47:switch(an()){case 42:case 47:yr(ig(ng(at(),$l()),t,n,a),a);break;default:C+="/"}break;case 123*g:s[u++]=ht(C)*d;case 125*g:case 59:case 0:switch(c){case 0:case 125:_=0;case 59+h:d==-1&&(C=O(C,/\f/g,"")),y>0&&ht(C)-p&&yr(y>32?Yu(C+";",r,n,p-1,a):Yu(O(C," ","")+";",r,n,p-2,a),a);break;case 59:C+=";";default:if(yr(x=Vu(C,t,n,u,h,l,s,f,w=[],S=[],p,i),i),c===123)if(h===0)Al(C,t,x,x,w,i,p,s,S);else switch(m===99&&fe(C,3)===110?100:m){case 100:case 108:case 109:case 115:Al(e,x,x,r&&yr(Vu(e,x,x,0,0,l,s,f,l,w=[],p,S),S),l,S,p,s,r?w:S);break;default:Al(C,x,x,x,[""],S,0,s,S)}}u=h=y=0,g=d=1,f=C="",p=o;break;case 58:p=1+ht(C),y=k;default:if(g<1){if(c==123)--g;else if(c==125&&g++==0&&Jv()==125)continue}switch(C+=xa(c),c*g){case 38:d=h>0?1:(C+="\f",-1);break;case 44:s[u++]=(ht(C)-1)*d,d=1;break;case 64:an()===45&&(C+=fo(at())),m=an(),h=p=ht(f=C+=rg($l())),c++;break;case 45:k===45&&ht(C)==2&&(g=0)}}return i}function Vu(e,t,n,r,l,i,o,s,a,u,h,p){for(var m=l-1,y=l===0?i:[""],k=Bf(y),g=0,_=0,d=0;g0?y[c]+" "+f:O(f,/&\f/g,y[c])))&&(a[d++]=w);return Di(e,t,n,l===0?zi:s,a,u,h,p)}function ig(e,t,n,r){return Di(e,t,n,Mf,xa(bv()),Kn(e,2,-2),0,r)}function Yu(e,t,n,r,l){return Di(e,t,n,ka,Kn(e,0,r),Kn(e,r+1,-1),r,l)}function Vf(e,t,n){switch(Kv(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 4789:return jr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+jr+e+G+e+e;case 5936:switch(fe(e,t+11)){case 114:return F+e+G+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+G+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+G+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+G+e+e;case 6165:return F+e+G+"flex-"+e+e;case 5187:return F+e+O(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+G+"flex-$1$2")+e;case 5443:return F+e+G+"flex-item-"+O(e,/flex-|-self/g,"")+(wt(e,/flex-|baseline/)?"":G+"grid-row-"+O(e,/flex-|-self/g,""))+e;case 4675:return F+e+G+"flex-line-pack"+O(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+G+O(e,"shrink","negative")+e;case 5292:return F+e+G+O(e,"basis","preferred-size")+e;case 6060:return F+"box-"+O(e,"-grow","")+F+e+G+O(e,"grow","positive")+e;case 4554:return F+O(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4200:if(!wt(e,/flex-|baseline/))return G+"grid-column-align"+Kn(e,t)+e;break;case 2592:case 3360:return G+O(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,l){return t=l,wt(r.props,/grid-\w+-end/)})?~Dl(e+(n=n[t].value),"span")?e:G+O(e,"-start","")+e+G+"grid-row-span:"+(~Dl(n,"span")?wt(n,/\d+/):+wt(n,/\d+/)-+wt(e,/\d+/))+";":G+O(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return wt(r.props,/grid-\w+-start/)})?e:G+O(O(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ht(e)-1-t>6)switch(fe(e,t+1)){case 109:if(fe(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+jr+(fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dl(e,"stretch")?Vf(O(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return O(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,l,i,o,s,a,u){return G+l+":"+i+u+(o?G+l+"-span:"+(s?a:+a-+i)+u:"")+e});case 4949:if(fe(e,t+6)===121)return O(e,":",":"+F)+e;break;case 6444:switch(fe(e,fe(e,14)===45?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(fe(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+G+"$2box$3")+e;case 100:return O(e,":",":"+G)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,"scroll-","scroll-snap-")+e}return e}function hi(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case ka:e.return=Vf(e.value,e.length,n);return;case Uf:return hi([It(e,{value:O(e.value,"@","@"+F)})],r);case zi:if(e.length)return Xv(n=e.props,function(l){switch(wt(l,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kn(It(e,{props:[O(l,/:(read-\w+)/,":"+jr+"$1")]})),kn(It(e,{props:[l]})),ps(e,{props:Wu(n,r)});break;case"::placeholder":kn(It(e,{props:[O(l,/:(plac\w+)/,":"+F+"input-$1")]})),kn(It(e,{props:[O(l,/:(plac\w+)/,":"+jr+"$1")]})),kn(It(e,{props:[O(l,/:(plac\w+)/,G+"input-$1")]})),kn(It(e,{props:[l]})),ps(e,{props:Wu(n,r)});break}return""})}}var cg={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bn=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Ea=typeof window<"u"&&"HTMLElement"in window,dg=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Ai=Object.freeze([]),Jn=Object.freeze({});function fg(e,t,n){return n===void 0&&(n=Jn),e.theme!==n.theme&&e.theme||t||n.theme}var Yf=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),pg=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hg=/(^-|-$)/g;function Qu(e){return e.replace(pg,"-").replace(hg,"")}var mg=/(a)(d)/gi,Gu=function(e){return String.fromCharCode(e+(e>25?39:97))};function vs(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Gu(t%52)+n;return(Gu(t%52)+n).replace(mg,"$1-$2")}var po,On=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Qf=function(e){return On(5381,e)};function vg(e){return vs(Qf(e)>>>0)}function gg(e){return e.displayName||e.name||"Component"}function ho(e){return typeof e=="string"&&!0}var Gf=typeof Symbol=="function"&&Symbol.for,Kf=Gf?Symbol.for("react.memo"):60115,yg=Gf?Symbol.for("react.forward_ref"):60112,wg={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Sg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kg=((po={})[yg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},po[Kf]=Xf,po);function Ku(e){return("type"in(t=e)&&t.type.$$typeof)===Kf?Xf:"$$typeof"in e?kg[e.$$typeof]:wg;var t}var xg=Object.defineProperty,Eg=Object.getOwnPropertyNames,Xu=Object.getOwnPropertySymbols,Cg=Object.getOwnPropertyDescriptor,Ng=Object.getPrototypeOf,bu=Object.prototype;function bf(e,t,n){if(typeof t!="string"){if(bu){var r=Ng(t);r&&r!==bu&&bf(e,r,n)}var l=Eg(t);Xu&&(l=l.concat(Xu(t)));for(var i=Ku(e),o=Ku(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var _g=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,l=r.length,i=l;t>=i;)if((i<<=1)<0)throw tl(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=l;o=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],l=this.indexOfGroup(t),i=l+r,o=l;o=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(_+="".concat(d,","))}),a+="".concat(k).concat(g,'{content:"').concat(_,'"}').concat(`/*!sc*/ -`)},h=0;h0?".".concat(t):m},h=a.slice();h.push(function(m){m.type===zi&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(Ag,n).replace(r,u))}),o.prefix&&h.push(ug),h.push(og);var p=function(m,y,k,g){y===void 0&&(y=""),k===void 0&&(k=""),g===void 0&&(g="&"),t=g,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var _=m.replace(Hg,""),d=lg(k||y?"".concat(k," ").concat(y," { ").concat(_," }"):_);o.namespace&&(d=qf(d,o.namespace));var c=[];return hi(d,sg(h.concat(ag(function(f){return c.push(f)})))),c};return p.hash=a.length?a.reduce(function(m,y){return y.name||tl(15),On(m,y.name)},5381).toString():"",p}var Ug=new Zf,ys=Mg(),ep=se.createContext({shouldForwardProp:void 0,styleSheet:Ug,stylis:ys});ep.Consumer;se.createContext(void 0);function qu(){return E.useContext(ep)}var Fg=function(){function e(t,n){var r=this;this.inject=function(l,i){i===void 0&&(i=ys);var o=r.name+i.hash;l.hasNameForId(r.id,o)||l.insertRules(r.id,o,i(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Na(this,function(){throw tl(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ys),this.name+t.hash},e}(),Bg=function(e){return e>="A"&&e<="Z"};function ec(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var s=r(i,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,s)}l=ln(l,o),this.staticRulesId=o}else{for(var a=On(this.baseHash,r.hash),u="",h=0;h>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),l=ln(l,y)}}return l},e}(),rp=se.createContext(void 0);rp.Consumer;var vo={};function Qg(e,t,n){var r=Ca(e),l=e,i=!ho(e),o=t.attrs,s=o===void 0?Ai:o,a=t.componentId,u=a===void 0?function(f,w){var S=typeof f!="string"?"sc":Qu(f);vo[S]=(vo[S]||0)+1;var x="".concat(S,"-").concat(vg("6.0.8"+S+vo[S]));return w?"".concat(w,"-").concat(x):x}(t.displayName,t.parentComponentId):a,h=t.displayName;h===void 0&&function(f){return ho(f)?"styled.".concat(f):"Styled(".concat(gg(f),")")}(e);var p=t.displayName&&t.componentId?"".concat(Qu(t.displayName),"-").concat(t.componentId):t.componentId||u,m=r&&l.attrs?l.attrs.concat(s).filter(Boolean):s,y=t.shouldForwardProp;if(r&&l.shouldForwardProp){var k=l.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;y=function(f,w){return k(f,w)&&g(f,w)}}else y=k}var _=new Yg(n,p,r?l.componentStyle:void 0);function d(f,w){return function(S,x,C){var T=S.attrs,H=S.componentStyle,z=S.defaultProps,he=S.foldedComponentIds,me=S.styledComponentId,qe=S.target,et=se.useContext(rp),Ae=qu(),Ve=S.shouldForwardProp||Ae.shouldForwardProp,M=function(tt,ce,ct){for(var Se,ke=ze(ze({},ce),{className:void 0,theme:ct}),lr=0;lr=0)&&(n[l]=e[l]);return n}function _v(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pv(e,t){return e.button===0&&(!t||t==="_self")&&!_v(e)}const jv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Rv=["aria-current","caseSensitive","className","end","style","to","children"],Tv="startTransition",Uu=jp[Tv];function Iv(e){let{basename:t,children:n,future:r,window:l}=e,i=E.useRef();i.current==null&&(i.current=Mm({window:l,v5Compat:!0}));let o=i.current,[s,a]=E.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},h=E.useCallback(p=>{u&&Uu?Uu(()=>a(p)):a(p)},[a,u]);return E.useLayoutEffect(()=>o.listen(h),[o,h]),E.createElement(Cv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const Lv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ov=E.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:s,target:a,to:u,preventScrollReset:h}=t,p=zf(t,jv),{basename:m}=E.useContext(gn),y,k=!1;if(typeof u=="string"&&zv.test(u)&&(y=u,Lv))try{let c=new URL(window.location.href),f=u.startsWith("//")?new URL(c.protocol+u):new URL(u),w=ga(f.pathname,m);f.origin===c.origin&&w!=null?u=w+f.search+f.hash:k=!0}catch{}let g=cv(u,{relative:l}),_=$v(u,{replace:o,state:s,target:a,preventScrollReset:h,relative:l});function d(c){r&&r(c),c.defaultPrevented||_(c)}return E.createElement("a",fi({},p,{href:y||g,onClick:k||i?r:d,ref:n,target:a}))}),Dv=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:s,to:a,children:u}=t,h=zf(t,Rv),p=wa(a,{relative:h.relative}),m=el(),y=E.useContext(Pf),{navigator:k}=E.useContext(gn),g=k.encodeLocation?k.encodeLocation(p).pathname:p.pathname,_=m.pathname,d=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;l||(_=_.toLowerCase(),d=d?d.toLowerCase():null,g=g.toLowerCase());let c=_===g||!o&&_.startsWith(g)&&_.charAt(g.length)==="/",f=d!=null&&(d===g||!o&&d.startsWith(g)&&d.charAt(g.length)==="/"),w=c?r:void 0,S;typeof i=="function"?S=i({isActive:c,isPending:f}):S=[i,c?"active":null,f?"pending":null].filter(Boolean).join(" ");let x=typeof s=="function"?s({isActive:c,isPending:f}):s;return E.createElement(Ov,fi({},h,{"aria-current":w,className:S,ref:n,style:x,to:a}),typeof u=="function"?u({isActive:c,isPending:f}):u)});var Fu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Fu||(Fu={}));var Bu;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bu||(Bu={}));function $v(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o}=t===void 0?{}:t,s=Tf(),a=el(),u=wa(e,{relative:o});return E.useCallback(h=>{if(Pv(h,n)){h.preventDefault();let p=r!==void 0?r:ui(a)===ui(u);s(e,{replace:p,state:l,preventScrollReset:i,relative:o})}},[a,s,u,r,l,n,e,i,o])}const Of="/blackjack_probability",Df="/blackjack_probability/about-us",$f="/blackjack_probability/charts",Af="/blackjack_probability/terms",Sa="/blackjack_probability/game",Hf="/blackjack_probability/customize",Av="*",Hv=()=>{const e=Tf(),t=()=>{e(Sa)},n=()=>{e(Hf)};return v.jsx("div",{className:"background",children:v.jsxs("div",{className:"titleHolder",children:[v.jsx("h1",{className:"title",children:"Blackjack Probability"}),v.jsx("p",{className:"info",children:"Ever wanted to learn how to become a true professional at Blackjack? Well click 'Play' below to get started!"}),v.jsxs("div",{className:"row",children:[v.jsx("button",{className:"btn-hover",onClick:t,children:"Play the Game"}),v.jsx("button",{className:"btn-hover",onClick:n,children:"Customize Table"})]})]})})};const Mv="/blackjack_probability/assets/HomePage1-5cae91d8.png",Uv="/blackjack_probability/assets/HomePage2-91b77c51.png",Fv="/blackjack_probability/assets/HomePage3-a31c86df.png",Bv="/blackjack_probability/assets/HomePage4-10ab7789.png",Wv=()=>v.jsxs("div",{className:"container",children:[v.jsxs("div",{className:"subContainer",children:[v.jsx("p",{className:"titleText",children:"Play Blackjack in a risk free environment!"}),v.jsx("img",{className:"image",src:Mv})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("img",{className:"image",src:Uv}),v.jsx("p",{className:"titleText",children:"Learn basic strategy with our Dealer AI!"})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("p",{className:"titleText",children:"Map out strategies with the charts and learn basic Blackjack terms!"}),v.jsx("img",{className:"image",src:Fv})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("img",{className:"image",src:Bv}),v.jsx("p",{className:"titleText",children:"Customize your playing area to your own liking!"})]})]}),Vv=()=>v.jsxs("div",{children:[v.jsx(Hv,{}),v.jsx(Wv,{})]});var ze=function(){return ze=Object.assign||function(t){for(var n,r=1,l=arguments.length;r0?fe(rr,--Ze):0,bn--,le===10&&(bn=1,Oi--),le}function at(){return le=Ze2||hs(le)>3?"":" "}function tg(e,t){for(;--t&&at()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return $i(e,$l()+(t<6&&an()==32&&at()==32))}function ms(e){for(;at();)switch(le){case e:return Ze;case 34:case 39:e!==34&&e!==39&&ms(le);break;case 40:e===41&&ms(e);break;case 92:at();break}return Ze}function ng(e,t){for(;at()&&e+le!==47+10;)if(e+le===42+42&&an()===47)break;return"/*"+$i(t,Ze-1)+"*"+xa(e===47?e:at())}function rg(e){for(;!hs(an());)at();return $i(e,Ze)}function lg(e){return qv(Al("",null,null,null,[""],e=Zv(e),0,[0],e))}function Al(e,t,n,r,l,i,o,s,a){for(var u=0,h=0,p=o,m=0,y=0,k=0,g=1,_=1,d=1,c=0,f="",w=l,S=i,x=r,C=f;_;)switch(k=c,c=at()){case 40:if(k!=108&&fe(C,p-1)==58){Dl(C+=O(fo(c),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:C+=fo(c);break;case 9:case 10:case 13:case 32:C+=eg(k);break;case 92:C+=tg($l()-1,7);continue;case 47:switch(an()){case 42:case 47:yr(ig(ng(at(),$l()),t,n,a),a);break;default:C+="/"}break;case 123*g:s[u++]=ht(C)*d;case 125*g:case 59:case 0:switch(c){case 0:case 125:_=0;case 59+h:d==-1&&(C=O(C,/\f/g,"")),y>0&&ht(C)-p&&yr(y>32?Yu(C+";",r,n,p-1,a):Yu(O(C," ","")+";",r,n,p-2,a),a);break;case 59:C+=";";default:if(yr(x=Vu(C,t,n,u,h,l,s,f,w=[],S=[],p,i),i),c===123)if(h===0)Al(C,t,x,x,w,i,p,s,S);else switch(m===99&&fe(C,3)===110?100:m){case 100:case 108:case 109:case 115:Al(e,x,x,r&&yr(Vu(e,x,x,0,0,l,s,f,l,w=[],p,S),S),l,S,p,s,r?w:S);break;default:Al(C,x,x,x,[""],S,0,s,S)}}u=h=y=0,g=d=1,f=C="",p=o;break;case 58:p=1+ht(C),y=k;default:if(g<1){if(c==123)--g;else if(c==125&&g++==0&&Jv()==125)continue}switch(C+=xa(c),c*g){case 38:d=h>0?1:(C+="\f",-1);break;case 44:s[u++]=(ht(C)-1)*d,d=1;break;case 64:an()===45&&(C+=fo(at())),m=an(),h=p=ht(f=C+=rg($l())),c++;break;case 45:k===45&&ht(C)==2&&(g=0)}}return i}function Vu(e,t,n,r,l,i,o,s,a,u,h,p){for(var m=l-1,y=l===0?i:[""],k=Bf(y),g=0,_=0,d=0;g0?y[c]+" "+f:O(f,/&\f/g,y[c])))&&(a[d++]=w);return Di(e,t,n,l===0?zi:s,a,u,h,p)}function ig(e,t,n,r){return Di(e,t,n,Mf,xa(Xv()),Kn(e,2,-2),0,r)}function Yu(e,t,n,r,l){return Di(e,t,n,ka,Kn(e,0,r),Kn(e,r+1,-1),r,l)}function Vf(e,t,n){switch(Kv(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 4789:return jr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+jr+e+G+e+e;case 5936:switch(fe(e,t+11)){case 114:return F+e+G+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+G+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+G+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+G+e+e;case 6165:return F+e+G+"flex-"+e+e;case 5187:return F+e+O(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+G+"flex-$1$2")+e;case 5443:return F+e+G+"flex-item-"+O(e,/flex-|-self/g,"")+(wt(e,/flex-|baseline/)?"":G+"grid-row-"+O(e,/flex-|-self/g,""))+e;case 4675:return F+e+G+"flex-line-pack"+O(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+G+O(e,"shrink","negative")+e;case 5292:return F+e+G+O(e,"basis","preferred-size")+e;case 6060:return F+"box-"+O(e,"-grow","")+F+e+G+O(e,"grow","positive")+e;case 4554:return F+O(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4200:if(!wt(e,/flex-|baseline/))return G+"grid-column-align"+Kn(e,t)+e;break;case 2592:case 3360:return G+O(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,l){return t=l,wt(r.props,/grid-\w+-end/)})?~Dl(e+(n=n[t].value),"span")?e:G+O(e,"-start","")+e+G+"grid-row-span:"+(~Dl(n,"span")?wt(n,/\d+/):+wt(n,/\d+/)-+wt(e,/\d+/))+";":G+O(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return wt(r.props,/grid-\w+-start/)})?e:G+O(O(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ht(e)-1-t>6)switch(fe(e,t+1)){case 109:if(fe(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+jr+(fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dl(e,"stretch")?Vf(O(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return O(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,l,i,o,s,a,u){return G+l+":"+i+u+(o?G+l+"-span:"+(s?a:+a-+i)+u:"")+e});case 4949:if(fe(e,t+6)===121)return O(e,":",":"+F)+e;break;case 6444:switch(fe(e,fe(e,14)===45?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(fe(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+G+"$2box$3")+e;case 100:return O(e,":",":"+G)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,"scroll-","scroll-snap-")+e}return e}function hi(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case ka:e.return=Vf(e.value,e.length,n);return;case Uf:return hi([It(e,{value:O(e.value,"@","@"+F)})],r);case zi:if(e.length)return bv(n=e.props,function(l){switch(wt(l,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kn(It(e,{props:[O(l,/:(read-\w+)/,":"+jr+"$1")]})),kn(It(e,{props:[l]})),ps(e,{props:Wu(n,r)});break;case"::placeholder":kn(It(e,{props:[O(l,/:(plac\w+)/,":"+F+"input-$1")]})),kn(It(e,{props:[O(l,/:(plac\w+)/,":"+jr+"$1")]})),kn(It(e,{props:[O(l,/:(plac\w+)/,G+"input-$1")]})),kn(It(e,{props:[l]})),ps(e,{props:Wu(n,r)});break}return""})}}var cg={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xn=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Ea=typeof window<"u"&&"HTMLElement"in window,dg=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Ai=Object.freeze([]),Jn=Object.freeze({});function fg(e,t,n){return n===void 0&&(n=Jn),e.theme!==n.theme&&e.theme||t||n.theme}var Yf=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),pg=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hg=/(^-|-$)/g;function Qu(e){return e.replace(pg,"-").replace(hg,"")}var mg=/(a)(d)/gi,Gu=function(e){return String.fromCharCode(e+(e>25?39:97))};function vs(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Gu(t%52)+n;return(Gu(t%52)+n).replace(mg,"$1-$2")}var po,On=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Qf=function(e){return On(5381,e)};function vg(e){return vs(Qf(e)>>>0)}function gg(e){return e.displayName||e.name||"Component"}function ho(e){return typeof e=="string"&&!0}var Gf=typeof Symbol=="function"&&Symbol.for,Kf=Gf?Symbol.for("react.memo"):60115,yg=Gf?Symbol.for("react.forward_ref"):60112,wg={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Sg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kg=((po={})[yg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},po[Kf]=bf,po);function Ku(e){return("type"in(t=e)&&t.type.$$typeof)===Kf?bf:"$$typeof"in e?kg[e.$$typeof]:wg;var t}var xg=Object.defineProperty,Eg=Object.getOwnPropertyNames,bu=Object.getOwnPropertySymbols,Cg=Object.getOwnPropertyDescriptor,Ng=Object.getPrototypeOf,Xu=Object.prototype;function Xf(e,t,n){if(typeof t!="string"){if(Xu){var r=Ng(t);r&&r!==Xu&&Xf(e,r,n)}var l=Eg(t);bu&&(l=l.concat(bu(t)));for(var i=Ku(e),o=Ku(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var _g=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,l=r.length,i=l;t>=i;)if((i<<=1)<0)throw tl(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=l;o=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],l=this.indexOfGroup(t),i=l+r,o=l;o=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(_+="".concat(d,","))}),a+="".concat(k).concat(g,'{content:"').concat(_,'"}').concat(`/*!sc*/ +`)},h=0;h0?".".concat(t):m},h=a.slice();h.push(function(m){m.type===zi&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(Ag,n).replace(r,u))}),o.prefix&&h.push(ug),h.push(og);var p=function(m,y,k,g){y===void 0&&(y=""),k===void 0&&(k=""),g===void 0&&(g="&"),t=g,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var _=m.replace(Hg,""),d=lg(k||y?"".concat(k," ").concat(y," { ").concat(_," }"):_);o.namespace&&(d=qf(d,o.namespace));var c=[];return hi(d,sg(h.concat(ag(function(f){return c.push(f)})))),c};return p.hash=a.length?a.reduce(function(m,y){return y.name||tl(15),On(m,y.name)},5381).toString():"",p}var Ug=new Zf,ys=Mg(),ep=se.createContext({shouldForwardProp:void 0,styleSheet:Ug,stylis:ys});ep.Consumer;se.createContext(void 0);function qu(){return E.useContext(ep)}var Fg=function(){function e(t,n){var r=this;this.inject=function(l,i){i===void 0&&(i=ys);var o=r.name+i.hash;l.hasNameForId(r.id,o)||l.insertRules(r.id,o,i(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Na(this,function(){throw tl(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ys),this.name+t.hash},e}(),Bg=function(e){return e>="A"&&e<="Z"};function ec(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var s=r(i,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,s)}l=ln(l,o),this.staticRulesId=o}else{for(var a=On(this.baseHash,r.hash),u="",h=0;h>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),l=ln(l,y)}}return l},e}(),rp=se.createContext(void 0);rp.Consumer;var vo={};function Qg(e,t,n){var r=Ca(e),l=e,i=!ho(e),o=t.attrs,s=o===void 0?Ai:o,a=t.componentId,u=a===void 0?function(f,w){var S=typeof f!="string"?"sc":Qu(f);vo[S]=(vo[S]||0)+1;var x="".concat(S,"-").concat(vg("6.0.8"+S+vo[S]));return w?"".concat(w,"-").concat(x):x}(t.displayName,t.parentComponentId):a,h=t.displayName;h===void 0&&function(f){return ho(f)?"styled.".concat(f):"Styled(".concat(gg(f),")")}(e);var p=t.displayName&&t.componentId?"".concat(Qu(t.displayName),"-").concat(t.componentId):t.componentId||u,m=r&&l.attrs?l.attrs.concat(s).filter(Boolean):s,y=t.shouldForwardProp;if(r&&l.shouldForwardProp){var k=l.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;y=function(f,w){return k(f,w)&&g(f,w)}}else y=k}var _=new Yg(n,p,r?l.componentStyle:void 0);function d(f,w){return function(S,x,C){var T=S.attrs,H=S.componentStyle,z=S.defaultProps,he=S.foldedComponentIds,me=S.styledComponentId,qe=S.target,et=se.useContext(rp),Ae=qu(),Ve=S.shouldForwardProp||Ae.shouldForwardProp,M=function(tt,ce,ct){for(var Se,ke=ze(ze({},ce),{className:void 0,theme:ct}),lr=0;lrv.jsx(v.Fragment,{children:v.jsxs(Kg,{children:[v.jsx(bg,{children:"The Gamblers Inc."}),v.jsxs(Xg,{children:[v.jsx(pr,{to:Of,end:!0,children:"Home"}),v.jsx(pr,{to:Sa,children:"Play the Game"}),v.jsx(pr,{to:Df,children:"About Us"}),v.jsx(pr,{to:$f,children:"Charts"}),v.jsx(pr,{to:Af,children:"Terms"})]})]})}),Zg="/blackjack_probability/assets/AboutUs1-fd477dc8.png",qg="/blackjack_probability/assets/AboutUs2-9f0e362a.png";const ey=()=>v.jsx("div",{className:"container",children:v.jsxs("div",{className:"column",children:[v.jsxs("div",{className:"about-row",children:[v.jsx("div",{className:"column",children:v.jsxs("div",{className:"text-holder",children:[v.jsx("h1",{className:"about-header",children:"Who are we?"}),v.jsx("p",{className:"about-p",children:"We are a group of college students currently completing a course called Interface Design. We are a small group of four hoping to create an easy to use application for those wanting to delve deeper into the game of Blackjack."})]})}),v.jsx("img",{src:Zg})]}),v.jsxs("div",{className:"about-row",children:[v.jsx("img",{src:qg}),v.jsx("div",{className:"column",children:v.jsxs("div",{className:"text-holder",children:[v.jsx("h1",{className:"about-header",children:"What is the purpose of this website?"}),v.jsx("p",{className:"about-p",children:"We believe there aren't many applications on the web suited for learning how to count cards easily. Most of the methods used today are charts that you must memorize for different true counts. We want to create a user-friendly website that allows people to learn these deviations without memorizing a set of tables."})]})})]})]})});const ty="/blackjack_probability/assets/404Error-54fb3a76.png",ny=()=>v.jsx("div",{className:"errorContainer",children:v.jsx("img",{src:ty,className:"error-img"})});const ry={data:[{label:"8",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"9",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"10",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"11",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"12",value:["H","H","S","S","S","H","H","H","H","H"]},{label:"13",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"14",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"15",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"16",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"17",value:["S","S","S","S","S","S","S","S","S","S"]}],data2:[{label:"A/2",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/3",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/4",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/5",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/6",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/7",value:["H","H","H","H","H","S","S","H","H","H"]},{label:"A/8",value:["S","S","S","S","H","S","S","S","S","S"]},{label:"A/9",value:["S","S","S","S","S","S","S","S","S","S"]}],data3:[{label:"A/A",value:["Y","Y","Y","Y","Y","Y","Y","Y","Y","Y"]},{label:"T/T",value:["N","N","N","N","N","N","N","N","N","N"]},{label:"9/9",value:["Y","Y","Y","Y","Y","N","Y","Y","N","N"]},{label:"8/8",value:["Y","Y","Y","Y","Y","Y","Y","Y","Y","Y"]},{label:"7/7",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]},{label:"6/6",value:["Y","Y","Y","Y","Y","N","N","N","N","N"]},{label:"5/5",value:["N","N","N","N","N","N","N","N","N","N"]},{label:"4/4",value:["N","N","N","Y","Y","N","N","N","N","N"]},{label:"3/3",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]},{label:"2/2",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]}]},ly=["2","3","4","5","6","7","8","9","10","A"],rc={chart1:ry,dealerRow:ly},iy=()=>{const e=JSON.parse(JSON.stringify(rc.chart1)),t=JSON.parse(JSON.stringify(rc.dealerRow)),n=r=>{switch(r){case"H":return"green";case"S":return"red"}};return v.jsxs("div",{className:"table-container",children:[v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:`Dealer's Card -Your Hand`}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(i=>v.jsx("td",{style:{backgroundColor:n(i)},children:i}))]},l))]}),v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:"Your Hand\\Dealer's Card"}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data2.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(i=>v.jsx("td",{style:{backgroundColor:n(i)},children:i}))]},l))]})]})};const oy=()=>{const e=[{term:"Anchorman",definition:"When seated at the blackjack table, the last player to act before the dealer is called the Anchorman."},{term:"Bankroll",definition:"The money you have available to gamble with is called your bankroll. It would help if you did not confuse this with your total available cash - only count the portion you are willing to risk in a casino."},{term:"Blackjack",definition:"Blackjack is the name of the game, but also the perfect hand to receive - one ace and one ten or a picture card, making 21."},{term:"Burn Card",definition:"Before the dealer commences dealing, he places the first card to one side, face down. This is the burn card, designed to make it impossible for the first player to know what the first card is going to be (which would affect how he bets)."},{term:"Bust",definition:"Bust is a word you never wish to be applied to you. Bust means you have run out of money (it is not the end of the world if you lose your bankroll, so long as you did separate it from your day-to-day living funds)."},{term:"Cold Deck",definition:"If the shoe, the name applied to the box holding the cards, is spewing out awful cards and causing the players to lose too much, it is known as a cold deck, as opposed to the players running hot."},{term:"Color Up",definition:"If a player has lots of low denomination chips, he might ask the dealer to color up some of them, changing many small-value chips for higher-value ones."},{term:"Cut Card",definition:"When a new shoe, complete with shuffled cards, is introduced, the dealer asks one player to cut the deck with a cut card. The cut card then signals when action with that shoe finishes, and a new one is required."},{term:"Discards",definition:"All cards that have already been dealt are discards, which then sit idly to one side until a new shoe is needed, and they get reshuffled and re-used."},{term:"Double Down",definition:"If luck is on your side, you have a promising starting hand, and the dealer looks weak—time to double down and double your initial wager. If your hand holds up, you win twice as much as you would have done. However, if it loses… well, let’s not go there."},{term:"House Edge",definition:"The house edge is the expected advantage the house or casino has in a particular game. In blackjack, against players with a basic knowledge of blackjack strategy, the house edge is little over 1%. This means that on average, for every $100 you gamble, you’ll lose $1."},{term:"Flat Betting",definition:"When a player bets the same amount consistently, hand after hand, he is considered to be flat betting. It’s perfectly okay to flat bet, but just not very adventurous."},{term:"Hit",definition:"When you wish the dealer to give you another card, you hit."},{term:"Surrender/Late Surrender",definition:"In some variations of blackjack, you can surrender your hand without making any further decisions. You will receive only half of your stake back, but if your hand looks a dud, you potentially save some money."},{term:"Multi Deck",definition:"Most blackjack games in a casino have multi decks, rather than using one deck of cards. Many games will use six to eight decks at a time."},{term:"Pit",definition:"The table area you sit at for your blackjack game is called the pit, overseen by an often stern-looking casino employee called a pit boss."},{term:"Split",definition:"If you receive two cards of the same value, you have the option to split, matching your initial wager. Now you play two separate hands."},{term:"Stand",definition:"If you like your first two cards or have hit and taken another, you can choose to stand at any time, meaning you won’t take another."},{term:"Toke",definition:"Toke is a casino term for a tip. In bricks and mortar casino games, you don’t have to tip the staff, but they don’t get paid massive amounts, and it’s nice to show your appreciation once in a while."},{term:"Up Card",definition:"You only get to see one face-up card for the dealer while you are playing your hands. This is the up card, while his other card remains face down."}];return v.jsx("div",{className:"term-container",children:e.map((t,n)=>v.jsxs("div",{className:"term-row",children:[v.jsxs("h1",{className:"term-text",children:[t.term,":"]}),v.jsx("p",{className:"term-text",children:t.definition})]},n))})},sy="_statusContainer_k74mu_1",ay="_status_k74mu_1",uy="_value_k74mu_35",kl={statusContainer:sy,status:ay,value:uy},cy="_controlsContainer_wdpsv_1",dy="_toggleContainer_wdpsv_13",fy="_toggleText_wdpsv_25",py="_row_wdpsv_33",hy="_column_wdpsv_45",my="_button_wdpsv_57",vy="_betContainer_wdpsv_117",Ye={controlsContainer:cy,toggleContainer:dy,toggleText:fy,row:py,column:hy,button:my,betContainer:vy};function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a)&&this.A(n),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(n){n.preventDefault(),typeof n.button=="number"&&n.button!==0||(this.I(n.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(n){n.preventDefault(),this.L(n.clientX)},t.prototype.g=function(n){this.U(n),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(n){this.X=null,this.I(n.touches[0].clientX)},t.prototype.m=function(n){this.L(n.touches[0].clientX)},t.prototype.M=function(n){n.preventDefault(),this.U(n)},t.prototype.$=function(n){Date.now()-this.l>50&&(this.A(n),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(n){this.H=n},t.prototype.T=function(n){n.preventDefault(),this.H.focus(),this.A(n),this.W&&this.setState({j:!1})},t.prototype.A=function(n){var r=this.props;(0,r.onChange)(!r.checked,n,r.id)},t.prototype.render=function(){var n=this.props,r=n.checked,l=n.disabled,i=n.className,o=n.offColor,s=n.onColor,a=n.offHandleColor,u=n.onHandleColor,h=n.checkedIcon,p=n.uncheckedIcon,m=n.checkedHandleIcon,y=n.uncheckedHandleIcon,k=n.boxShadow,g=n.activeBoxShadow,_=n.height,d=n.width,c=n.borderRadius,f=function(Ae,Ve){var M={};for(var P in Ae)Object.prototype.hasOwnProperty.call(Ae,P)&&Ve.indexOf(P)===-1&&(M[P]=Ae[P]);return M}(n,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),w=this.state,S=w.h,x=w.N,C=w.j,T={position:"relative",display:"inline-block",textAlign:"left",opacity:l?.5:1,direction:"ltr",borderRadius:_/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},H={height:_,width:d,margin:Math.max(0,(this.t-_)/2),position:"relative",background:ic(S,this.i,this.o,o,s),borderRadius:typeof c=="number"?c:_/2,cursor:l?"default":"pointer",WebkitTransition:x?null:"background 0.25s",MozTransition:x?null:"background 0.25s",transition:x?null:"background 0.25s"},z={height:_,width:Math.min(1.5*_,d-(this.t+_)/2+1),position:"relative",opacity:(S-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},he={height:_,width:Math.min(1.5*_,d-(this.t+_)/2+1),position:"absolute",opacity:1-(S-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},me={height:this.t,width:this.t,background:ic(S,this.i,this.o,a,u),display:"inline-block",cursor:l?"default":"pointer",borderRadius:typeof c=="number"?c-1:"50%",position:"absolute",transform:"translateX("+S+"px)",top:Math.max(0,(_-this.t)/2),outline:0,boxShadow:C?g:k,border:0,WebkitTransition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},qe={height:this.t,width:this.t,opacity:Math.max(2*(1-(S-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},et={height:this.t,width:this.t,opacity:Math.max(2*((S-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"};return se.createElement("div",{className:i,style:T},se.createElement("div",{className:"react-switch-bg",style:H,onClick:l?null:this.T,onMouseDown:function(Ae){return Ae.preventDefault()}},h&&se.createElement("div",{style:z},h),p&&se.createElement("div",{style:he},p)),se.createElement("div",{className:"react-switch-handle",style:me,onClick:function(Ae){return Ae.preventDefault()},onMouseDown:l?null:this.p,onTouchStart:l?null:this.k,onTouchMove:l?null:this.m,onTouchEnd:l?null:this.M,onTouchCancel:l?null:this.O},y&&se.createElement("div",{style:qe},y),m&&se.createElement("div",{style:et},m)),se.createElement("input",Ss({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:l,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},f,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(E.Component);ks.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:gy,checkedIcon:yy,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56};const wy=(e,t,n=null)=>{const r=E.useRef(t);E.useLayoutEffect(()=>{r.current=t});const l=E.useCallback(i=>{e.some(o=>i.key===o)&&r.current(i)},[e]);E.useEffect(()=>{const i=n??document;return i&&i.addEventListener("keydown",l),()=>i&&i.removeEventListener("keydown",l)},[l,n])},Sy=({gameState:e,buttonState:t,playEvent:n,hitEvent:r,standEvent:l,resetEvent:i,displayTotal:o,dealerHelp:s,toggleDisplayTotal:a,toggleDealerHelp:u})=>{const h=()=>{n()},p=g=>{a(g)},m=g=>{u(g)};wy(["a","s","d","w","e"],g=>{g.key==="a"&&!t.hitDisabled?r():g.key==="s"&&!t.standDisabled?l():g.key==="d"&&!t.resetDisabled?i():g.key==="w"?p(!o):g.key==="e"&&m(!s)});const k=()=>e===0?v.jsx("div",{className:Ye.controlsContainer,children:v.jsx("button",{onClick:()=>h(),className:Ye.button,children:"Play"})}):v.jsx("div",{className:Ye.controlsContainer,children:v.jsxs("div",{className:Ye.column,children:[v.jsxs("div",{className:Ye.toggleContainer,children:[v.jsx("h2",{className:Ye.toggleText,children:"Toggle Total (W)"}),v.jsx(ks,{checked:o,onChange:p})]}),v.jsxs("div",{className:Ye.toggleContainer,children:[v.jsx("h2",{className:Ye.toggleText,children:"Toggle Help (E)"}),v.jsx(ks,{checked:s,onChange:m})]}),v.jsxs("div",{className:Ye.row,children:[v.jsx("button",{onClick:()=>r(),disabled:t.hitDisabled,className:Ye.button,children:"Hit (A)"}),v.jsx("button",{onClick:()=>l(),disabled:t.standDisabled,className:Ye.button,children:"Stand (S)"}),v.jsx("button",{onClick:()=>i(),disabled:t.resetDisabled,className:Ye.button,children:"New Hand (D)"})]})]})});return v.jsx(v.Fragment,{children:k()})},ky="_statusContainer_1r0kp_1",xy="_status_1r0kp_1",Ey="_balance_1r0kp_35",Cy="_value_1r0kp_63",xl={statusContainer:ky,status:xy,balance:Ey,value:Cy},Ny=({message:e})=>v.jsx("div",{className:xl.statusContainer,children:v.jsx("div",{className:xl.status,children:v.jsxs("div",{children:[v.jsx("h1",{className:xl.value,children:"Dealer says:"}),v.jsx("h3",{className:xl.value,children:e})]})})}),_y=({message:e,choice:t,gameState:n,buttonState:r,playGame:l,hit:i,stand:o,resetGame:s,displayTotal:a,dealerHelp:u,dealerMessage:h,toggleDisplayTotal:p,toggleDealerHelp:m})=>v.jsxs("div",{className:kl.statusContainer,children:[u&&v.jsx(Ny,{message:h}),v.jsxs("div",{className:kl.status,children:[v.jsxs("div",{children:[v.jsx("h1",{className:kl.value,children:e}),v.jsx("h1",{className:kl.value,children:t})]}),v.jsx(Sy,{gameState:n,buttonState:r,playEvent:l,hitEvent:i,standEvent:o,resetEvent:s,displayTotal:a,dealerHelp:u,toggleDisplayTotal:p,toggleDealerHelp:m})]})]}),Py="_handContainer_1ev8b_1",jy="_cardContainer_1ev8b_19",Ry="_title_1ev8b_39",go={handContainer:Py,cardContainer:jy,title:Ry},Ty="_card_1x2tl_1",Iy="_baseStyleRed_1x2tl_25",Ly="_baseStyleBlue_1x2tl_69",zy="_baseStyleGreen_1x2tl_113",Oy="_baseStyleUnique_1x2tl_157",Dy="_baseStyleUniqueAnimation_1x2tl_1",$y="_gradientStyleRed_1x2tl_225",Ay="_gradientStyleBlue_1x2tl_251",Hy="_gradientStyleGreen_1x2tl_277",My="_gradientStyleUnique_1x2tl_303",Uy="_gradientStyleUniqueAnimation_1x2tl_1",Fy="_black_1x2tl_393",By="_red_1x2tl_401",Wy="_value_1x2tl_409",Vy="_suit_1x2tl_419",Yy="_hiddenCard_1x2tl_443",Ce={card:Ty,baseStyleRed:Iy,baseStyleBlue:Ly,baseStyleGreen:zy,baseStyleUnique:Oy,baseStyleUniqueAnimation:Dy,gradientStyleRed:$y,gradientStyleBlue:Ay,gradientStyleGreen:Hy,gradientStyleUnique:My,gradientStyleUniqueAnimation:Uy,black:Fy,red:By,value:Wy,suit:Vy,hiddenCard:Yy};var V=(e=>(e[e.RED=0]="RED",e[e.BLUE=1]="BLUE",e[e.GREEN=2]="GREEN",e[e.UNIQUE=3]="UNIQUE",e))(V||{}),re=(e=>(e[e.BASE=0]="BASE",e[e.GRADIENT=1]="GRADIENT",e))(re||{});const ip=E.createContext({cardColor:0,setCardColor:()=>{},cardStyle:0,setCardStyle:()=>{}}),op=()=>E.useContext(ip),sp=({value:e,suit:t,hidden:n})=>{const{cardColor:r,cardStyle:l}=op(),i=()=>t==="♠"||t==="♣"?Ce.black:Ce.red,o=()=>{switch(l){case re.BASE:switch(r){case V.RED:return Ce.baseStyleRed;case V.BLUE:return Ce.baseStyleBlue;case V.GREEN:return Ce.baseStyleGreen;case V.UNIQUE:return Ce.baseStyleUnique;default:return Ce.baseStyleRed}case re.GRADIENT:switch(r){case V.RED:return Ce.gradientStyleRed;case V.BLUE:return Ce.gradientStyleBlue;case V.GREEN:return Ce.gradientStyleGreen;case V.UNIQUE:return Ce.gradientStyleUnique;default:return Ce.gradientStyleRed}default:return Ce.baseStyleRed}},s=()=>n?v.jsx("div",{className:o()}):v.jsx("div",{className:Ce.card,children:v.jsxs("div",{className:i(),children:[v.jsx("h1",{className:Ce.value,children:e}),v.jsx("h1",{className:Ce.suit,children:t})]})});return v.jsx(v.Fragment,{children:s()})},oc=({title:e,cards:t})=>{const n=()=>{if(t.length>0)return v.jsx("h1",{className:go.title,children:e})};return v.jsxs("div",{className:go.handContainer,children:[n(),v.jsx("div",{className:t.length>0?go.cardContainer:"",children:t.map((r,l)=>v.jsx(sp,{value:r.value,suit:r.suit,hidden:r.hidden},l))})]})},Qy=[{value:"A",suit:"spades"},{value:"A",suit:"diamonds"},{value:"A",suit:"clubs"},{value:"A",suit:"hearts"},{value:"2",suit:"spades"},{value:"2",suit:"diamonds"},{value:"2",suit:"clubs"},{value:"2",suit:"hearts"},{value:"3",suit:"spades"},{value:"3",suit:"diamonds"},{value:"3",suit:"clubs"},{value:"3",suit:"hearts"},{value:"4",suit:"spades"},{value:"4",suit:"diamonds"},{value:"4",suit:"clubs"},{value:"4",suit:"hearts"},{value:"5",suit:"spades"},{value:"5",suit:"diamonds"},{value:"5",suit:"clubs"},{value:"5",suit:"hearts"},{value:"6",suit:"spades"},{value:"6",suit:"diamonds"},{value:"6",suit:"clubs"},{value:"6",suit:"hearts"},{value:"7",suit:"spades"},{value:"7",suit:"diamonds"},{value:"7",suit:"clubs"},{value:"7",suit:"hearts"},{value:"8",suit:"spades"},{value:"8",suit:"diamonds"},{value:"8",suit:"clubs"},{value:"8",suit:"hearts"},{value:"9",suit:"spades"},{value:"9",suit:"diamonds"},{value:"9",suit:"clubs"},{value:"9",suit:"hearts"},{value:"10",suit:"spades"},{value:"10",suit:"diamonds"},{value:"10",suit:"clubs"},{value:"10",suit:"hearts"},{value:"J",suit:"spades"},{value:"J",suit:"diamonds"},{value:"J",suit:"clubs"},{value:"J",suit:"hearts"},{value:"Q",suit:"spades"},{value:"Q",suit:"diamonds"},{value:"Q",suit:"clubs"},{value:"Q",suit:"hearts"},{value:"K",suit:"spades"},{value:"K",suit:"diamonds"},{value:"K",suit:"clubs"},{value:"K",suit:"hearts"}],Gy={cards:Qy},Ky="_gameBackground_19aqy_1",Xy="_handSection_19aqy_17",sc={gameBackground:Ky,handSection:Xy},by=()=>{let e;(R=>{R[R.bet=0]="bet",R[R.init=1]="init",R[R.userTurn=2]="userTurn",R[R.dealerTurn=3]="dealerTurn"})(e||(e={}));let t;(R=>{R[R.user=0]="user",R[R.dealer=1]="dealer",R[R.hidden=2]="hidden"})(t||(t={}));let n;(R=>{R.bet="Press Play to Start!",R.hitStand="Hit or Stand?",R.bust="Bust!",R.blackjack="Blackjack!",R.userWin="You Win!",R.dealerWin="Dealer Wins!",R.tie="Tie!"})(n||(n={}));let r;(R=>{R.noChoice="",R.underElevenHit="That was the correct choice! In this scenario, you cannot bust so it is better to hit!",R.underElevenStand="That was the wrong choice. In this scenario, you cannot bust so it is better to hit!",R.rightChoice="Filler",R.wrongChoice="Filler2"})(r||(r={}));let l;(R=>{R.hit="hit",R.stand="stand",R.total="total",R.ignore="ignore"})(l||(l={}));let i;(R=>{R.noMessage="I have no advice.",R.hitMessage="I suggest you hit.",R.standMessage="I suggest you stand."})(i||(i={}));const o=JSON.parse(JSON.stringify(Gy.cards)),[s,a]=E.useState(o),[u,h]=E.useState([]),[p,m]=E.useState(0),[y,k]=E.useState(0),[g,_]=E.useState(!1),[d,c]=E.useState(!1),[f,w]=E.useState([]),[S,x]=E.useState(0),[C,T]=E.useState(0),[H,z]=E.useState(0),[he,me]=E.useState("Press Play to Start!"),[qe,et]=E.useState(""),[Ae,Ve]=E.useState("I have no advice."),[M,P]=E.useState({hitDisabled:!1,standDisabled:!1,resetDisabled:!0});E.useEffect(()=>{H===1&&(U(0),U(2),U(0),U(1),z(2),me("Hit or Stand?"),et(""))},[H]),E.useEffect(()=>{Se(u,m),k(y+1)},[u]),E.useEffect(()=>{Se(f,x),T(C+1)},[f]),E.useEffect(()=>{H===2&&(p===21?u.length===2?ap():(M.hitDisabled=!0,P({...M})):p>21&&dt())},[y]),E.useEffect(()=>{H===3&&(S>=17?up():U(1))},[C]),E.useEffect(()=>{p<=21?ke("ignore"):Ve("I have no advice.")},[p]);const I=()=>{z(1)},L=()=>{console.clear(),a(o),h([]),m(0),k(0),w([]),x(0),T(0),z(1),me("Press Play to Start!"),et(""),P({hitDisabled:!1,standDisabled:!1,resetDisabled:!0})},U=R=>{if(s.length>0){const J=Math.floor(Math.random()*s.length),D=s[J];switch(s.splice(J,1),a([...s]),console.log("Remaining Cards:",s.length),D.suit){case"spades":ce(R,D.value,"♠");break;case"diamonds":ce(R,D.value,"♦");break;case"clubs":ce(R,D.value,"♣");break;case"hearts":ce(R,D.value,"♥");break}}else alert("All cards have been drawn")},X=R=>{_(R)},tt=R=>{c(R)},ce=(R,J,D)=>{switch(R){case 0:u.push({value:J,suit:D,hidden:!1}),h([...u]);break;case 1:f.push({value:J,suit:D,hidden:!1}),w([...f]);break;case 2:f.push({value:J,suit:D,hidden:!0}),w([...f]);break}},ct=()=>{f.filter(R=>(R.hidden===!0&&(R.hidden=!1),R)),w([...f])},Se=(R,J)=>{let D=0;R.forEach(W=>{if(W.hidden===!1&&W.value!=="A")switch(W.value){case"K":D+=10;break;case"Q":D+=10;break;case"J":D+=10;break;default:D+=Number(W.value);break}});const ve=R.filter(W=>W.value==="A");ve.forEach(W=>{W.hidden===!1&&(D+11>21||D+11===21&&ve.length>1?D+=1:D+=11)}),J(D)},ke=R=>{const J=(D,ve,W)=>{R==="hit"?et(D):R==="stand"?et(ve):R=="ignore"&&Ve(W)};if(p<=11)J("That was the correct choice! In this scenario, you cannot bust so it is better to hit!","That was the wrong choice. In this scenario, you cannot bust so it is better to hit!","I suggest you hit.");else if(u.length<=2&&u.filter(D=>D.value==="A").length>=1){const D=u.filter(W=>W.value==="A"),ve=u.filter(W=>W.value!="A");if(D.length>=1){let W=0;ve.forEach(_a=>{_a.value=="K"?W+=10:W+=parseInt(_a.value)}),D.length>=2&&(W-=1,D.forEach(()=>{W+=1})),W<=6?J("Filler","Filler2","I suggest you hit."):W>=9&&W<=10&&R=="hit"&&J("Filler","Filler2","I suggest you stand.")}}else if(p>=17)J("Filler","Filler2","I suggest you stand.");else if(u.filter(ve=>ve.value==="A").length>=1){let ve=0;u.forEach(W=>{W.value!="A"&&(W.value==="K"?ve+=10:ve+=parseInt(W.value))}),ve===7?S==7||S===8?J("Filler","Filler2","I suggest you stand."):J("Filler","Filler2","I suggest you hit."):ve===8&&(S==2||S===3||S===4||S===5||S===7||S===8||S===9||S===10||S===11?J("Filler","Filler2","I suggest you stand."):J("Filler","Filler2","I suggest you hit."))}else p===12?S===4||S===5||S===6?J("Filler","Filler2","I suggest you stand."):J("Filler","Filler2","I suggest you hit."):(p===13||p===14||p===15||p===16)&&(S===2||S===3||S===4||S===5||S===6?J("Filler","Filler2","I suggest you stand."):J("Filler","Filler2","I suggest you hit."))},lr=()=>{ke("hit"),U(0)},wn=()=>{ke("stand"),M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,P({...M}),z(3),ct()},dt=()=>{M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,P({...M}),me("Bust!")},ap=()=>{M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,P({...M}),me("Blackjack!")},up=()=>{p>S||S>21?me("You Win!"):S>p?me("Dealer Wins!"):me("Tie!")},cp=(R,J)=>{if(R.filter(D=>D.value==="A").length>=1&&J!=21){let D=0;if(R.map(ve=>{ve.value=="A"?D+=11:ve.value=="K"?D+=10:D+=parseInt(ve.value)}),D<=21)return`${p}/${p-10}`}return`${p}`};return v.jsxs("div",{className:sc.gameBackground,children:[v.jsx(_y,{message:he,choice:qe,gameState:H,buttonState:M,playGame:I,hit:lr,stand:wn,resetGame:L,displayTotal:g,dealerHelp:d,dealerMessage:Ae,toggleDisplayTotal:X,toggleDealerHelp:tt}),v.jsxs("div",{className:sc.handSection,children:[v.jsx(oc,{title:`Dealer's Hand ${g?`(${S})`:""}`,cards:f}),v.jsx(oc,{title:`Your Hand ${g?`(${cp(u,p)})`:""}`,cards:u})]})]})};const Jy=()=>{const{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r}=op(),l=(o,s)=>e.valueOf()===o.valueOf()&&n.valueOf()===s.valueOf()?"buttonSelected":"button",i=(o,s)=>{t(o),r(s)};return v.jsxs("div",{className:"pageContainer",children:[v.jsx(sp,{value:"A",suit:"spade",hidden:!0}),v.jsxs("div",{className:"buttonsContainer",children:[v.jsxs("div",{className:"buttonGroup",children:[v.jsx("h1",{className:"buttonLabel",children:"Base"}),v.jsx("button",{className:l(V.RED,re.BASE),onClick:()=>i(V.RED,re.BASE),children:"Red"}),v.jsx("button",{className:l(V.BLUE,re.BASE),onClick:()=>i(V.BLUE,re.BASE),children:"Blue"}),v.jsx("button",{className:l(V.GREEN,re.BASE),onClick:()=>i(V.GREEN,re.BASE),children:"Green"}),v.jsx("button",{className:l(V.UNIQUE,re.BASE),onClick:()=>i(V.UNIQUE,re.BASE),children:"Unique"})]}),v.jsxs("div",{className:"buttonGroup",children:[v.jsx("h1",{className:"buttonLabel",children:"Gradient"}),v.jsx("button",{className:l(V.RED,re.GRADIENT),onClick:()=>i(V.RED,re.GRADIENT),children:"Red"}),v.jsx("button",{className:l(V.BLUE,re.GRADIENT),onClick:()=>i(V.BLUE,re.GRADIENT),children:"Blue"}),v.jsx("button",{className:l(V.GREEN,re.GRADIENT),onClick:()=>i(V.GREEN,re.GRADIENT),children:"Green"}),v.jsx("button",{className:l(V.UNIQUE,re.GRADIENT),onClick:()=>i(V.UNIQUE,re.GRADIENT),children:"Unique"})]})]})]})},Zy=()=>{const[e,t]=E.useState(V.RED),[n,r]=E.useState(re.BASE);return v.jsx("div",{className:"background-color",children:v.jsxs(ip.Provider,{value:{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r},children:[v.jsx(Jg,{}),v.jsxs(Nv,{children:[v.jsx(Tt,{path:Of,element:v.jsx(Vv,{})}),v.jsx(Tt,{path:Df,element:v.jsx(ey,{})}),v.jsx(Tt,{path:$f,element:v.jsx(iy,{})}),v.jsx(Tt,{path:Af,element:v.jsx(oy,{})}),v.jsx(Tt,{path:Sa,element:v.jsx(by,{})}),v.jsx(Tt,{path:Hf,element:v.jsx(Jy,{})}),v.jsx(Tt,{path:Av,element:v.jsx(ny,{})})]})]})})};yo.createRoot(document.getElementById("root")).render(v.jsx(se.StrictMode,{children:v.jsx(Iv,{children:v.jsx(Zy,{})})})); +`,Jg=()=>v.jsx(v.Fragment,{children:v.jsxs(Kg,{children:[v.jsx(Xg,{children:"The Gamblers Inc."}),v.jsxs(bg,{children:[v.jsx(pr,{to:Of,end:!0,children:"Home"}),v.jsx(pr,{to:Sa,children:"Play the Game"}),v.jsx(pr,{to:Df,children:"About Us"}),v.jsx(pr,{to:$f,children:"Charts"}),v.jsx(pr,{to:Af,children:"Terms"})]})]})}),Zg="/blackjack_probability/assets/AboutUs1-fd477dc8.png",qg="/blackjack_probability/assets/AboutUs2-9f0e362a.png";const ey=()=>v.jsx("div",{className:"container",children:v.jsxs("div",{className:"column",children:[v.jsxs("div",{className:"about-row",children:[v.jsx("div",{className:"column",children:v.jsxs("div",{className:"text-holder",children:[v.jsx("h1",{className:"about-header",children:"Who are we?"}),v.jsx("p",{className:"about-p",children:"We are a group of college students currently completing a course called Interface Design. We are a small group of four hoping to create an easy to use application for those wanting to delve deeper into the game of Blackjack."})]})}),v.jsx("img",{src:Zg})]}),v.jsxs("div",{className:"about-row",children:[v.jsx("img",{src:qg}),v.jsx("div",{className:"column",children:v.jsxs("div",{className:"text-holder",children:[v.jsx("h1",{className:"about-header",children:"What is the purpose of this website?"}),v.jsx("p",{className:"about-p",children:"We believe there aren't many applications on the web suited for learning blackjack. Most of the methods used today are games that are more focused on gameplay than teaching. We want to create a user-friendly website that allows people to learn how to play without risking their hard-earned money."})]})})]})]})});const ty="/blackjack_probability/assets/404Error-54fb3a76.png",ny=()=>v.jsx("div",{className:"errorContainer",children:v.jsx("img",{src:ty,className:"error-img"})});const ry={data:[{label:"8",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"9",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"10",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"11",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"12",value:["H","H","S","S","S","H","H","H","H","H"]},{label:"13",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"14",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"15",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"16",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"17",value:["S","S","S","S","S","S","S","S","S","S"]}],data2:[{label:"A/2",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/3",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/4",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/5",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/6",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"A/7",value:["H","H","H","H","H","S","S","H","H","H"]},{label:"A/8",value:["S","S","S","S","H","S","S","S","S","S"]},{label:"A/9",value:["S","S","S","S","S","S","S","S","S","S"]}],data3:[{label:"A/A",value:["Y","Y","Y","Y","Y","Y","Y","Y","Y","Y"]},{label:"T/T",value:["N","N","N","N","N","N","N","N","N","N"]},{label:"9/9",value:["Y","Y","Y","Y","Y","N","Y","Y","N","N"]},{label:"8/8",value:["Y","Y","Y","Y","Y","Y","Y","Y","Y","Y"]},{label:"7/7",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]},{label:"6/6",value:["Y","Y","Y","Y","Y","N","N","N","N","N"]},{label:"5/5",value:["N","N","N","N","N","N","N","N","N","N"]},{label:"4/4",value:["N","N","N","Y","Y","N","N","N","N","N"]},{label:"3/3",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]},{label:"2/2",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]}]},ly=["2","3","4","5","6","7","8","9","10","A"],rc={chart1:ry,dealerRow:ly},iy=()=>{const e=JSON.parse(JSON.stringify(rc.chart1)),t=JSON.parse(JSON.stringify(rc.dealerRow)),n=r=>{switch(r){case"H":return"green";case"S":return"red"}};return v.jsxs("div",{className:"table-container",children:[v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:`Dealer's Card +Your Hand`}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(i=>v.jsx("td",{style:{backgroundColor:n(i)},children:i}))]},l))]}),v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:"Your Hand\\Dealer's Card"}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data2.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(i=>v.jsx("td",{style:{backgroundColor:n(i)},children:i}))]},l))]})]})};const oy=()=>{const e=[{term:"Anchorman",definition:"When seated at the blackjack table, the last player to act before the dealer is called the Anchorman."},{term:"Bankroll",definition:"The money you have available to gamble with is called your bankroll. It would help if you did not confuse this with your total available cash - only count the portion you are willing to risk in a casino."},{term:"Blackjack",definition:"Blackjack is the name of the game, but also the perfect hand to receive - one ace and one ten or a picture card, making 21."},{term:"Burn Card",definition:"Before the dealer commences dealing, he places the first card to one side, face down. This is the burn card, designed to make it impossible for the first player to know what the first card is going to be (which would affect how he bets)."},{term:"Bust",definition:"Bust is a word you never wish to be applied to you. Bust means you have run out of money (it is not the end of the world if you lose your bankroll, so long as you did separate it from your day-to-day living funds)."},{term:"Cold Deck",definition:"If the shoe, the name applied to the box holding the cards, is spewing out awful cards and causing the players to lose too much, it is known as a cold deck, as opposed to the players running hot."},{term:"Color Up",definition:"If a player has lots of low denomination chips, he might ask the dealer to color up some of them, changing many small-value chips for higher-value ones."},{term:"Cut Card",definition:"When a new shoe, complete with shuffled cards, is introduced, the dealer asks one player to cut the deck with a cut card. The cut card then signals when action with that shoe finishes, and a new one is required."},{term:"Discards",definition:"All cards that have already been dealt are discards, which then sit idly to one side until a new shoe is needed, and they get reshuffled and re-used."},{term:"Double Down",definition:"If luck is on your side, you have a promising starting hand, and the dealer looks weak—time to double down and double your initial wager. If your hand holds up, you win twice as much as you would have done. However, if it loses… well, let’s not go there."},{term:"House Edge",definition:"The house edge is the expected advantage the house or casino has in a particular game. In blackjack, against players with a basic knowledge of blackjack strategy, the house edge is little over 1%. This means that on average, for every $100 you gamble, you’ll lose $1."},{term:"Flat Betting",definition:"When a player bets the same amount consistently, hand after hand, he is considered to be flat betting. It’s perfectly okay to flat bet, but just not very adventurous."},{term:"Hit",definition:"When you wish the dealer to give you another card, you hit."},{term:"Surrender/Late Surrender",definition:"In some variations of blackjack, you can surrender your hand without making any further decisions. You will receive only half of your stake back, but if your hand looks a dud, you potentially save some money."},{term:"Multi Deck",definition:"Most blackjack games in a casino have multi decks, rather than using one deck of cards. Many games will use six to eight decks at a time."},{term:"Pit",definition:"The table area you sit at for your blackjack game is called the pit, overseen by an often stern-looking casino employee called a pit boss."},{term:"Split",definition:"If you receive two cards of the same value, you have the option to split, matching your initial wager. Now you play two separate hands."},{term:"Stand",definition:"If you like your first two cards or have hit and taken another, you can choose to stand at any time, meaning you won’t take another."},{term:"Toke",definition:"Toke is a casino term for a tip. In bricks and mortar casino games, you don’t have to tip the staff, but they don’t get paid massive amounts, and it’s nice to show your appreciation once in a while."},{term:"Up Card",definition:"You only get to see one face-up card for the dealer while you are playing your hands. This is the up card, while his other card remains face down."}];return v.jsx("div",{className:"term-container",children:e.map((t,n)=>v.jsxs("div",{className:"term-row",children:[v.jsxs("h1",{className:"term-text",children:[t.term,":"]}),v.jsx("p",{className:"term-text",children:t.definition})]},n))})},sy="_statusContainer_k74mu_1",ay="_status_k74mu_1",uy="_value_k74mu_35",kl={statusContainer:sy,status:ay,value:uy},cy="_controlsContainer_wdpsv_1",dy="_toggleContainer_wdpsv_13",fy="_toggleText_wdpsv_25",py="_row_wdpsv_33",hy="_column_wdpsv_45",my="_button_wdpsv_57",vy="_betContainer_wdpsv_117",Ye={controlsContainer:cy,toggleContainer:dy,toggleText:fy,row:py,column:hy,button:my,betContainer:vy};function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a)&&this.A(n),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(n){n.preventDefault(),typeof n.button=="number"&&n.button!==0||(this.I(n.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(n){n.preventDefault(),this.L(n.clientX)},t.prototype.g=function(n){this.U(n),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(n){this.X=null,this.I(n.touches[0].clientX)},t.prototype.m=function(n){this.L(n.touches[0].clientX)},t.prototype.M=function(n){n.preventDefault(),this.U(n)},t.prototype.$=function(n){Date.now()-this.l>50&&(this.A(n),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(n){this.H=n},t.prototype.T=function(n){n.preventDefault(),this.H.focus(),this.A(n),this.W&&this.setState({j:!1})},t.prototype.A=function(n){var r=this.props;(0,r.onChange)(!r.checked,n,r.id)},t.prototype.render=function(){var n=this.props,r=n.checked,l=n.disabled,i=n.className,o=n.offColor,s=n.onColor,a=n.offHandleColor,u=n.onHandleColor,h=n.checkedIcon,p=n.uncheckedIcon,m=n.checkedHandleIcon,y=n.uncheckedHandleIcon,k=n.boxShadow,g=n.activeBoxShadow,_=n.height,d=n.width,c=n.borderRadius,f=function(Ae,Ve){var M={};for(var P in Ae)Object.prototype.hasOwnProperty.call(Ae,P)&&Ve.indexOf(P)===-1&&(M[P]=Ae[P]);return M}(n,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),w=this.state,S=w.h,x=w.N,C=w.j,T={position:"relative",display:"inline-block",textAlign:"left",opacity:l?.5:1,direction:"ltr",borderRadius:_/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},H={height:_,width:d,margin:Math.max(0,(this.t-_)/2),position:"relative",background:ic(S,this.i,this.o,o,s),borderRadius:typeof c=="number"?c:_/2,cursor:l?"default":"pointer",WebkitTransition:x?null:"background 0.25s",MozTransition:x?null:"background 0.25s",transition:x?null:"background 0.25s"},z={height:_,width:Math.min(1.5*_,d-(this.t+_)/2+1),position:"relative",opacity:(S-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},he={height:_,width:Math.min(1.5*_,d-(this.t+_)/2+1),position:"absolute",opacity:1-(S-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},me={height:this.t,width:this.t,background:ic(S,this.i,this.o,a,u),display:"inline-block",cursor:l?"default":"pointer",borderRadius:typeof c=="number"?c-1:"50%",position:"absolute",transform:"translateX("+S+"px)",top:Math.max(0,(_-this.t)/2),outline:0,boxShadow:C?g:k,border:0,WebkitTransition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},qe={height:this.t,width:this.t,opacity:Math.max(2*(1-(S-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},et={height:this.t,width:this.t,opacity:Math.max(2*((S-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"};return se.createElement("div",{className:i,style:T},se.createElement("div",{className:"react-switch-bg",style:H,onClick:l?null:this.T,onMouseDown:function(Ae){return Ae.preventDefault()}},h&&se.createElement("div",{style:z},h),p&&se.createElement("div",{style:he},p)),se.createElement("div",{className:"react-switch-handle",style:me,onClick:function(Ae){return Ae.preventDefault()},onMouseDown:l?null:this.p,onTouchStart:l?null:this.k,onTouchMove:l?null:this.m,onTouchEnd:l?null:this.M,onTouchCancel:l?null:this.O},y&&se.createElement("div",{style:qe},y),m&&se.createElement("div",{style:et},m)),se.createElement("input",Ss({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:l,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},f,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(E.Component);ks.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:gy,checkedIcon:yy,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56};const wy=(e,t,n=null)=>{const r=E.useRef(t);E.useLayoutEffect(()=>{r.current=t});const l=E.useCallback(i=>{e.some(o=>i.key===o)&&r.current(i)},[e]);E.useEffect(()=>{const i=n??document;return i&&i.addEventListener("keydown",l),()=>i&&i.removeEventListener("keydown",l)},[l,n])},Sy=({gameState:e,buttonState:t,playEvent:n,hitEvent:r,standEvent:l,resetEvent:i,displayTotal:o,dealerHelp:s,toggleDisplayTotal:a,toggleDealerHelp:u})=>{const h=()=>{n()},p=g=>{a(g)},m=g=>{u(g)};wy(["a","s","d","w","e"],g=>{g.key==="a"&&!t.hitDisabled?r():g.key==="s"&&!t.standDisabled?l():g.key==="d"&&!t.resetDisabled?i():g.key==="w"?p(!o):g.key==="e"&&m(!s)});const k=()=>e===0?v.jsx("div",{className:Ye.controlsContainer,children:v.jsx("button",{onClick:()=>h(),className:Ye.button,children:"Play"})}):v.jsx("div",{className:Ye.controlsContainer,children:v.jsxs("div",{className:Ye.column,children:[v.jsxs("div",{className:Ye.toggleContainer,children:[v.jsx("h2",{className:Ye.toggleText,children:"Toggle Total (W)"}),v.jsx(ks,{checked:o,onChange:p})]}),v.jsxs("div",{className:Ye.toggleContainer,children:[v.jsx("h2",{className:Ye.toggleText,children:"Toggle Help (E)"}),v.jsx(ks,{checked:s,onChange:m})]}),v.jsxs("div",{className:Ye.row,children:[v.jsx("button",{onClick:()=>r(),disabled:t.hitDisabled,className:Ye.button,children:"Hit (A)"}),v.jsx("button",{onClick:()=>l(),disabled:t.standDisabled,className:Ye.button,children:"Stand (S)"}),v.jsx("button",{onClick:()=>i(),disabled:t.resetDisabled,className:Ye.button,children:"New Hand (D)"})]})]})});return v.jsx(v.Fragment,{children:k()})},ky="_statusContainer_1r0kp_1",xy="_status_1r0kp_1",Ey="_balance_1r0kp_35",Cy="_value_1r0kp_63",xl={statusContainer:ky,status:xy,balance:Ey,value:Cy},Ny=({message:e})=>v.jsx("div",{className:xl.statusContainer,children:v.jsx("div",{className:xl.status,children:v.jsxs("div",{children:[v.jsx("h1",{className:xl.value,children:"Dealer says:"}),v.jsx("h3",{className:xl.value,children:e})]})})}),_y=({message:e,choice:t,gameState:n,buttonState:r,playGame:l,hit:i,stand:o,resetGame:s,displayTotal:a,dealerHelp:u,dealerMessage:h,toggleDisplayTotal:p,toggleDealerHelp:m})=>v.jsxs("div",{className:kl.statusContainer,children:[u&&v.jsx(Ny,{message:h}),v.jsxs("div",{className:kl.status,children:[v.jsxs("div",{children:[v.jsx("h1",{className:kl.value,children:e}),v.jsx("h1",{className:kl.value,children:t})]}),v.jsx(Sy,{gameState:n,buttonState:r,playEvent:l,hitEvent:i,standEvent:o,resetEvent:s,displayTotal:a,dealerHelp:u,toggleDisplayTotal:p,toggleDealerHelp:m})]})]}),Py="_handContainer_1ev8b_1",jy="_cardContainer_1ev8b_19",Ry="_title_1ev8b_39",go={handContainer:Py,cardContainer:jy,title:Ry},Ty="_card_1k8kb_1",Iy="_baseStyleRed_1k8kb_23",Ly="_baseStyleBlue_1k8kb_67",zy="_baseStyleGreen_1k8kb_111",Oy="_baseStyleUnique_1k8kb_155",Dy="_baseStyleUniqueAnimation_1k8kb_1",$y="_gradientStyleRed_1k8kb_223",Ay="_gradientStyleBlue_1k8kb_249",Hy="_gradientStyleGreen_1k8kb_275",My="_gradientStyleUnique_1k8kb_301",Uy="_gradientStyleUniqueAnimation_1k8kb_1",Fy="_black_1k8kb_391",By="_red_1k8kb_399",Wy="_value_1k8kb_407",Vy="_suit_1k8kb_417",Yy="_hiddenCard_1k8kb_441",Ce={card:Ty,baseStyleRed:Iy,baseStyleBlue:Ly,baseStyleGreen:zy,baseStyleUnique:Oy,baseStyleUniqueAnimation:Dy,gradientStyleRed:$y,gradientStyleBlue:Ay,gradientStyleGreen:Hy,gradientStyleUnique:My,gradientStyleUniqueAnimation:Uy,black:Fy,red:By,value:Wy,suit:Vy,hiddenCard:Yy};var V=(e=>(e[e.RED=0]="RED",e[e.BLUE=1]="BLUE",e[e.GREEN=2]="GREEN",e[e.UNIQUE=3]="UNIQUE",e))(V||{}),re=(e=>(e[e.BASE=0]="BASE",e[e.GRADIENT=1]="GRADIENT",e))(re||{});const ip=E.createContext({cardColor:0,setCardColor:()=>{},cardStyle:0,setCardStyle:()=>{}}),op=()=>E.useContext(ip),sp=({value:e,suit:t,hidden:n})=>{const{cardColor:r,cardStyle:l}=op(),i=()=>t==="♠"||t==="♣"?Ce.black:Ce.red,o=()=>{switch(l){case re.BASE:switch(r){case V.RED:return Ce.baseStyleRed;case V.BLUE:return Ce.baseStyleBlue;case V.GREEN:return Ce.baseStyleGreen;case V.UNIQUE:return Ce.baseStyleUnique;default:return Ce.baseStyleRed}case re.GRADIENT:switch(r){case V.RED:return Ce.gradientStyleRed;case V.BLUE:return Ce.gradientStyleBlue;case V.GREEN:return Ce.gradientStyleGreen;case V.UNIQUE:return Ce.gradientStyleUnique;default:return Ce.gradientStyleRed}default:return Ce.baseStyleRed}},s=()=>n?v.jsx("div",{className:o()}):v.jsx("div",{className:Ce.card,children:v.jsxs("div",{className:i(),children:[v.jsx("h1",{className:Ce.value,children:e}),v.jsx("h1",{className:Ce.suit,children:t})]})});return v.jsx(v.Fragment,{children:s()})},oc=({title:e,cards:t})=>{const n=()=>{if(t.length>0)return v.jsx("h1",{className:go.title,children:e})};return v.jsxs("div",{className:go.handContainer,children:[n(),v.jsx("div",{className:t.length>0?go.cardContainer:"",children:t.map((r,l)=>v.jsx(sp,{value:r.value,suit:r.suit,hidden:r.hidden},l))})]})},Qy=[{value:"A",suit:"spades"},{value:"A",suit:"diamonds"},{value:"A",suit:"clubs"},{value:"A",suit:"hearts"},{value:"2",suit:"spades"},{value:"2",suit:"diamonds"},{value:"2",suit:"clubs"},{value:"2",suit:"hearts"},{value:"3",suit:"spades"},{value:"3",suit:"diamonds"},{value:"3",suit:"clubs"},{value:"3",suit:"hearts"},{value:"4",suit:"spades"},{value:"4",suit:"diamonds"},{value:"4",suit:"clubs"},{value:"4",suit:"hearts"},{value:"5",suit:"spades"},{value:"5",suit:"diamonds"},{value:"5",suit:"clubs"},{value:"5",suit:"hearts"},{value:"6",suit:"spades"},{value:"6",suit:"diamonds"},{value:"6",suit:"clubs"},{value:"6",suit:"hearts"},{value:"7",suit:"spades"},{value:"7",suit:"diamonds"},{value:"7",suit:"clubs"},{value:"7",suit:"hearts"},{value:"8",suit:"spades"},{value:"8",suit:"diamonds"},{value:"8",suit:"clubs"},{value:"8",suit:"hearts"},{value:"9",suit:"spades"},{value:"9",suit:"diamonds"},{value:"9",suit:"clubs"},{value:"9",suit:"hearts"},{value:"10",suit:"spades"},{value:"10",suit:"diamonds"},{value:"10",suit:"clubs"},{value:"10",suit:"hearts"},{value:"J",suit:"spades"},{value:"J",suit:"diamonds"},{value:"J",suit:"clubs"},{value:"J",suit:"hearts"},{value:"Q",suit:"spades"},{value:"Q",suit:"diamonds"},{value:"Q",suit:"clubs"},{value:"Q",suit:"hearts"},{value:"K",suit:"spades"},{value:"K",suit:"diamonds"},{value:"K",suit:"clubs"},{value:"K",suit:"hearts"}],Gy={cards:Qy},Ky="_gameBackground_19aqy_1",by="_handSection_19aqy_17",sc={gameBackground:Ky,handSection:by},Xy=()=>{let e;(R=>{R[R.bet=0]="bet",R[R.init=1]="init",R[R.userTurn=2]="userTurn",R[R.dealerTurn=3]="dealerTurn"})(e||(e={}));let t;(R=>{R[R.user=0]="user",R[R.dealer=1]="dealer",R[R.hidden=2]="hidden"})(t||(t={}));let n;(R=>{R.bet="Press Play to Start!",R.hitStand="Hit or Stand?",R.bust="Bust!",R.blackjack="Blackjack!",R.userWin="You Win!",R.dealerWin="Dealer Wins!",R.tie="Tie!"})(n||(n={}));let r;(R=>{R.noChoice="",R.underElevenHit="That was the correct choice! In this scenario, you cannot bust so it is better to hit!",R.underElevenStand="That was the wrong choice. In this scenario, you cannot bust so it is better to hit!",R.rightChoice="Filler",R.wrongChoice="Filler2"})(r||(r={}));let l;(R=>{R.hit="hit",R.stand="stand",R.total="total",R.ignore="ignore"})(l||(l={}));let i;(R=>{R.noMessage="I have no advice.",R.hitMessage="I suggest you hit.",R.standMessage="I suggest you stand."})(i||(i={}));const o=JSON.parse(JSON.stringify(Gy.cards)),[s,a]=E.useState(o),[u,h]=E.useState([]),[p,m]=E.useState(0),[y,k]=E.useState(0),[g,_]=E.useState(!1),[d,c]=E.useState(!1),[f,w]=E.useState([]),[S,x]=E.useState(0),[C,T]=E.useState(0),[H,z]=E.useState(0),[he,me]=E.useState("Press Play to Start!"),[qe,et]=E.useState(""),[Ae,Ve]=E.useState("I have no advice."),[M,P]=E.useState({hitDisabled:!1,standDisabled:!1,resetDisabled:!0});E.useEffect(()=>{H===1&&(U(0),U(2),U(0),U(1),z(2),me("Hit or Stand?"),et(""))},[H]),E.useEffect(()=>{Se(u,m),k(y+1)},[u]),E.useEffect(()=>{Se(f,x),T(C+1)},[f]),E.useEffect(()=>{H===2&&(p===21?u.length===2?ap():(M.hitDisabled=!0,P({...M})):p>21&&dt())},[y]),E.useEffect(()=>{H===3&&(S>=17?up():U(1))},[C]),E.useEffect(()=>{p<=21?ke("ignore"):Ve("I have no advice.")},[p]);const I=()=>{z(1)},L=()=>{console.clear(),a(o),h([]),m(0),k(0),w([]),x(0),T(0),z(1),me("Press Play to Start!"),et(""),P({hitDisabled:!1,standDisabled:!1,resetDisabled:!0})},U=R=>{if(s.length>0){const J=Math.floor(Math.random()*s.length),D=s[J];switch(s.splice(J,1),a([...s]),console.log("Remaining Cards:",s.length),D.suit){case"spades":ce(R,D.value,"♠");break;case"diamonds":ce(R,D.value,"♦");break;case"clubs":ce(R,D.value,"♣");break;case"hearts":ce(R,D.value,"♥");break}}else alert("All cards have been drawn")},b=R=>{_(R)},tt=R=>{c(R)},ce=(R,J,D)=>{switch(R){case 0:u.push({value:J,suit:D,hidden:!1}),h([...u]);break;case 1:f.push({value:J,suit:D,hidden:!1}),w([...f]);break;case 2:f.push({value:J,suit:D,hidden:!0}),w([...f]);break}},ct=()=>{f.filter(R=>(R.hidden===!0&&(R.hidden=!1),R)),w([...f])},Se=(R,J)=>{let D=0;R.forEach(W=>{if(W.hidden===!1&&W.value!=="A")switch(W.value){case"K":D+=10;break;case"Q":D+=10;break;case"J":D+=10;break;default:D+=Number(W.value);break}});const ve=R.filter(W=>W.value==="A");ve.forEach(W=>{W.hidden===!1&&(D+11>21||D+11===21&&ve.length>1?D+=1:D+=11)}),J(D)},ke=R=>{const J=(D,ve,W)=>{R==="hit"?et(D):R==="stand"?et(ve):R=="ignore"&&Ve(W)};if(p<=11)J("That was the correct choice! In this scenario, you cannot bust so it is better to hit!","That was the wrong choice. In this scenario, you cannot bust so it is better to hit!","I suggest you hit.");else if(u.length<=2&&u.filter(D=>D.value==="A").length>=1){const D=u.filter(W=>W.value==="A"),ve=u.filter(W=>W.value!="A");if(D.length>=1){let W=0;ve.forEach(_a=>{_a.value=="K"?W+=10:W+=parseInt(_a.value)}),D.length>=2&&(W-=1,D.forEach(()=>{W+=1})),W<=6?J("Filler","Filler2","I suggest you hit."):W>=9&&W<=10&&R=="hit"&&J("Filler","Filler2","I suggest you stand.")}}else if(p>=17)J("Filler","Filler2","I suggest you stand.");else if(u.filter(ve=>ve.value==="A").length>=1){let ve=0;u.forEach(W=>{W.value!="A"&&(W.value==="K"?ve+=10:ve+=parseInt(W.value))}),ve===7?S==7||S===8?J("Filler","Filler2","I suggest you stand."):J("Filler","Filler2","I suggest you hit."):ve===8&&(S==2||S===3||S===4||S===5||S===7||S===8||S===9||S===10||S===11?J("Filler","Filler2","I suggest you stand."):J("Filler","Filler2","I suggest you hit."))}else p===12?S===4||S===5||S===6?J("Filler","Filler2","I suggest you stand."):J("Filler","Filler2","I suggest you hit."):(p===13||p===14||p===15||p===16)&&(S===2||S===3||S===4||S===5||S===6?J("Filler","Filler2","I suggest you stand."):J("Filler","Filler2","I suggest you hit."))},lr=()=>{ke("hit"),U(0)},wn=()=>{ke("stand"),M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,P({...M}),z(3),ct()},dt=()=>{M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,P({...M}),me("Bust!")},ap=()=>{M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,P({...M}),me("Blackjack!")},up=()=>{p>S||S>21?me("You Win!"):S>p?me("Dealer Wins!"):me("Tie!")},cp=(R,J)=>{if(R.filter(D=>D.value==="A").length>=1&&J!=21){let D=0;if(R.map(ve=>{ve.value=="A"?D+=11:ve.value=="K"?D+=10:D+=parseInt(ve.value)}),D<=21)return`${p}/${p-10}`}return`${p}`};return v.jsxs("div",{className:sc.gameBackground,children:[v.jsx(_y,{message:he,choice:qe,gameState:H,buttonState:M,playGame:I,hit:lr,stand:wn,resetGame:L,displayTotal:g,dealerHelp:d,dealerMessage:Ae,toggleDisplayTotal:b,toggleDealerHelp:tt}),v.jsxs("div",{className:sc.handSection,children:[v.jsx(oc,{title:`Dealer's Hand ${g?`(${S})`:""}`,cards:f}),v.jsx(oc,{title:`Your Hand ${g?`(${cp(u,p)})`:""}`,cards:u})]})]})};const Jy=()=>{const{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r}=op(),l=(o,s)=>e.valueOf()===o.valueOf()&&n.valueOf()===s.valueOf()?"buttonSelected":"button",i=(o,s)=>{t(o),r(s)};return v.jsxs("div",{className:"pageContainer",children:[v.jsx(sp,{value:"A",suit:"spade",hidden:!0}),v.jsxs("div",{className:"buttonsContainer",children:[v.jsxs("div",{className:"buttonGroup",children:[v.jsx("h1",{className:"buttonLabel",children:"Base"}),v.jsx("button",{className:l(V.RED,re.BASE),onClick:()=>i(V.RED,re.BASE),children:"Red"}),v.jsx("button",{className:l(V.BLUE,re.BASE),onClick:()=>i(V.BLUE,re.BASE),children:"Blue"}),v.jsx("button",{className:l(V.GREEN,re.BASE),onClick:()=>i(V.GREEN,re.BASE),children:"Green"}),v.jsx("button",{className:l(V.UNIQUE,re.BASE),onClick:()=>i(V.UNIQUE,re.BASE),children:"Unique"})]}),v.jsxs("div",{className:"buttonGroup",children:[v.jsx("h1",{className:"buttonLabel",children:"Gradient"}),v.jsx("button",{className:l(V.RED,re.GRADIENT),onClick:()=>i(V.RED,re.GRADIENT),children:"Red"}),v.jsx("button",{className:l(V.BLUE,re.GRADIENT),onClick:()=>i(V.BLUE,re.GRADIENT),children:"Blue"}),v.jsx("button",{className:l(V.GREEN,re.GRADIENT),onClick:()=>i(V.GREEN,re.GRADIENT),children:"Green"}),v.jsx("button",{className:l(V.UNIQUE,re.GRADIENT),onClick:()=>i(V.UNIQUE,re.GRADIENT),children:"Unique"})]})]})]})};const Zy=()=>v.jsx("div",{className:"warningContainer",children:v.jsx("h1",{className:"text",children:"Have a gambling problem? Call here for help: 1-800-GAMBLER"})}),qy=()=>{const[e,t]=E.useState(V.RED),[n,r]=E.useState(re.BASE);return v.jsx("div",{className:"background-color",children:v.jsxs(ip.Provider,{value:{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r},children:[v.jsx(Zy,{}),v.jsx(Jg,{}),v.jsxs(Nv,{children:[v.jsx(Tt,{path:Of,element:v.jsx(Vv,{})}),v.jsx(Tt,{path:Df,element:v.jsx(ey,{})}),v.jsx(Tt,{path:$f,element:v.jsx(iy,{})}),v.jsx(Tt,{path:Af,element:v.jsx(oy,{})}),v.jsx(Tt,{path:Sa,element:v.jsx(Xy,{})}),v.jsx(Tt,{path:Hf,element:v.jsx(Jy,{})}),v.jsx(Tt,{path:Av,element:v.jsx(ny,{})})]})]})})};yo.createRoot(document.getElementById("root")).render(v.jsx(se.StrictMode,{children:v.jsx(Iv,{children:v.jsx(qy,{})})})); diff --git a/index.html b/index.html index 53bf7ae..c7d1167 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Blackjack Probability - - + +