From 169db266ae062f55c72ddc95e6301262b5303410 Mon Sep 17 00:00:00 2001 From: SealyBoi Date: Wed, 22 Nov 2023 18:27:17 -0600 Subject: [PATCH] Updates --- ...{index-258f1987.css => index-09701bff.css} | 2 +- assets/index-5a2ef8c7.js | 105 ++++++++++++++++++ assets/index-60cb8cea.js | 100 ----------------- index.html | 4 +- 4 files changed, 108 insertions(+), 103 deletions(-) rename assets/{index-258f1987.css => index-09701bff.css} (86%) create mode 100644 assets/index-5a2ef8c7.js delete mode 100644 assets/index-60cb8cea.js diff --git a/assets/index-258f1987.css b/assets/index-09701bff.css similarity index 86% rename from assets/index-258f1987.css rename to assets/index-09701bff.css index cf318b1..a1cf2f1 100644 --- a/assets/index-258f1987.css +++ b/assets/index-09701bff.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_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}/*! +@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);overflow-x:hidden}.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 50px 150px}.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-title{font-size:20px;width:800px;color:#fff;text-decoration:underline}.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-5a2ef8c7.js b/assets/index-5a2ef8c7.js new file mode 100644 index 0000000..25743ed --- /dev/null +++ b/assets/index-5a2ef8c7.js @@ -0,0 +1,105 @@ +function kh(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pc={exports:{}},yo={},mc={exports:{}},M={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Kr=Symbol.for("react.element"),Eh=Symbol.for("react.portal"),xh=Symbol.for("react.fragment"),Ch=Symbol.for("react.strict_mode"),_h=Symbol.for("react.profiler"),Nh=Symbol.for("react.provider"),Th=Symbol.for("react.context"),Ph=Symbol.for("react.forward_ref"),Rh=Symbol.for("react.suspense"),jh=Symbol.for("react.memo"),Ih=Symbol.for("react.lazy"),Oa=Symbol.iterator;function Oh(e){return e===null||typeof e!="object"?null:(e=Oa&&e[Oa]||e["@@iterator"],typeof e=="function"?e:null)}var vc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gc=Object.assign,yc={};function er(e,t,n){this.props=e,this.context=t,this.refs=yc,this.updater=n||vc}er.prototype.isReactComponent={};er.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wc(){}wc.prototype=er.prototype;function Ns(e,t,n){this.props=e,this.context=t,this.refs=yc,this.updater=n||vc}var Ts=Ns.prototype=new wc;Ts.constructor=Ns;gc(Ts,er.prototype);Ts.isPureReactComponent=!0;var ba=Array.isArray,Sc=Object.prototype.hasOwnProperty,Ps={current:null},kc={key:!0,ref:!0,__self:!0,__source:!0};function Ec(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Sc.call(t,r)&&!kc.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,ee=R[B];if(0>>1;Bi(ct,L))Cei(_e,ct)?(R[B]=_e,R[Ce]=L,B=Ce):(R[B]=ct,R[ve]=L,B=ve);else if(Cei(_e,L))R[B]=_e,R[Ce]=L,B=Ce;else break e}}return b}function i(R,b){var L=R.sortIndex-b.sortIndex;return L!==0?L:R.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],v=1,m=null,h=3,y=!1,k=!1,S=!1,N=typeof setTimeout=="function"?setTimeout:null,f=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 d(R){for(var b=n(u);b!==null;){if(b.callback===null)r(u);else if(b.startTime<=R)r(u),b.sortIndex=b.expirationTime,t(a,b);else break;b=n(u)}}function w(R){if(S=!1,d(R),!k)if(n(a)!==null)k=!0,me(g);else{var b=n(u);b!==null&&U(w,b.startTime-R)}}function g(R,b){k=!1,S&&(S=!1,f(C),C=-1),y=!0;var L=h;try{for(d(b),m=n(a);m!==null&&(!(m.expirationTime>b)||R&&!D());){var B=m.callback;if(typeof B=="function"){m.callback=null,h=m.priorityLevel;var ee=B(m.expirationTime<=b);b=e.unstable_now(),typeof ee=="function"?m.callback=ee:m===n(a)&&r(a),d(b)}else r(a);m=n(a)}if(m!==null)var tt=!0;else{var ve=n(u);ve!==null&&U(w,ve.startTime-b),tt=!1}return tt}finally{m=null,h=L,y=!1}}var p=!1,E=null,C=-1,O=5,j=-1;function D(){return!(e.unstable_now()-jR||125B?(R.sortIndex=L,t(u,R),n(a)===null&&R===n(u)&&(S?(f(C),C=-1):S=!0,U(w,L-B))):(R.sortIndex=ee,t(a,R),k||y||(k=!0,me(g))),R},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(R){var b=h;return function(){var L=h;h=b;try{return R.apply(this,arguments)}finally{h=L}}}})(Nc);_c.exports=Nc;var Wh=_c.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Tc=_,We=Wh;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sl=Object.prototype.hasOwnProperty,Vh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Da={},Ha={};function Yh(e){return Sl.call(Ha,e)?!0:Sl.call(Da,e)?!1:Vh.test(e)?Ha[e]=!0:(Da[e]=!0,!1)}function Qh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gh(e,t,n,r){if(t===null||typeof t>"u"||Qh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var js=/[\-:]([a-z])/g;function Is(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(js,Is);xe[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(js,Is);xe[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(js,Is);xe[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Os(e,t,n,r){var i=xe.hasOwnProperty(t)?xe[t]:null;(i!==null?i.type!==0:r||!(2s||i[l]!==o[s]){var a=` +`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Bo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mr(e):""}function Kh(e){switch(e.tag){case 5:return mr(e.type);case 16:return mr("Lazy");case 13:return mr("Suspense");case 19:return mr("SuspenseList");case 0:case 2:case 15:return e=Fo(e.type,!1),e;case 11:return e=Fo(e.type.render,!1),e;case 1:return e=Fo(e.type,!0),e;default:return""}}function Cl(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 Cn:return"Fragment";case xn:return"Portal";case kl:return"Profiler";case bs:return"StrictMode";case El:return"Suspense";case xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jc:return(e.displayName||"Context")+".Consumer";case Rc:return(e._context.displayName||"Context")+".Provider";case Ls:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ds:return t=e.displayName||null,t!==null?t:Cl(e.type)||"Memo";case bt:t=e._payload,e=e._init;try{return Cl(e(t))}catch{}}return null}function Xh(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 Cl(t);case 8:return t===bs?"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 Oc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qh(e){var t=Oc(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){e._valueTracker||(e._valueTracker=qh(e))}function bc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Oc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ai(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 _l(e,t){var n=t.checked;return oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $a(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 Lc(e,t){t=t.checked,t!=null&&Os(e,"checked",t,!1)}function Nl(e,t){Lc(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")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ma(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 Tl(e,t,n){(t!=="number"||Ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vr=Array.isArray;function Hn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sr={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},Jh=["Webkit","ms","Moz","O"];Object.keys(Sr).forEach(function(e){Jh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sr[t]=Sr[e]})});function $c(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sr.hasOwnProperty(e)&&Sr[e]?(""+t).trim():t+"px"}function Mc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=$c(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Zh=oe({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 jl(e,t){if(t){if(Zh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Il(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 Ol=null;function Hs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,zn=null,$n=null;function Ba(e){if(e=Jr(e)){if(typeof bl!="function")throw Error(T(280));var t=e.stateNode;t&&(t=xo(t),bl(e.stateNode,e.type,t))}}function Ac(e){zn?$n?$n.push(e):$n=[e]:zn=e}function Uc(){if(zn){var e=zn,t=$n;if($n=zn=null,Ba(e),t)for(e=0;e>>=0,e===0?32:31-(cp(e)/dp|0)|0}var ai=64,ui=4194304;function gr(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 Wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=gr(s):(o&=l,o!==0&&(r=gr(o)))}else l=n&~i,l!==0?r=gr(l):o!==0&&(r=gr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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-lt(t),e[t]=n}function mp(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=Er),qa=String.fromCharCode(32),Ja=!1;function sd(e,t){switch(e){case"keyup":return Fp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function Vp(e,t){switch(e){case"compositionend":return ad(t);case"keypress":return t.which!==32?null:(Ja=!0,qa);case"textInput":return e=t.data,e===qa&&Ja?null:e;default:return null}}function Yp(e,t){if(_n)return e==="compositionend"||!Ws&&sd(e,t)?(e=od(),Ti=Us=zt=null,_n=!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=nu(n)}}function fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(){for(var e=window,t=Ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ai(e.document)}return t}function Vs(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 tm(e){var t=hd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fd(n.ownerDocument.documentElement,n)){if(r!==null&&Vs(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ru(n,o);var l=ru(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Ml=null,Cr=null,Al=!1;function iu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Al||Nn==null||Nn!==Ai(r)||(r=Nn,"selectionStart"in r&&Vs(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}),Cr&&zr(Cr,r)||(Cr=r,r=Qi(Ml,"onSelect"),0Rn||(e.current=Yl[Rn],Yl[Rn]=null,Rn--)}function G(e,t){Rn++,Yl[Rn]=e.current,e.current=t}var Xt={},je=Jt(Xt),$e=Jt(!1),dn=Xt;function Fn(e,t){var n=e.type.contextTypes;if(!n)return Xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Me(e){return e=e.childContextTypes,e!=null}function Ki(){J($e),J(je)}function du(e,t,n){if(je.current!==Xt)throw Error(T(168));G(je,t),G($e,n)}function Ed(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,Xh(e)||"Unknown",i));return oe({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xt,dn=je.current,G(je,e),G($e,$e.current),!0}function fu(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Ed(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,J($e),J(je),G(je,e)):J($e),G($e,n)}var St=null,Co=!1,rl=!1;function xd(e){St===null?St=[e]:St.push(e)}function hm(e){Co=!0,xd(e)}function Zt(){if(!rl&&St!==null){rl=!0;var e=0,t=W;try{var n=St;for(W=1;e>=l,i-=l,kt=1<<32-lt(t)+i|n<C?(O=E,E=null):O=E.sibling;var j=h(f,E,d[C],w);if(j===null){E===null&&(E=O);break}e&&E&&j.alternate===null&&t(f,E),c=o(j,c,C),p===null?g=j:p.sibling=j,p=j,E=O}if(C===d.length)return n(f,E),te&&en(f,C),g;if(E===null){for(;CC?(O=E,E=null):O=E.sibling;var D=h(f,E,j.value,w);if(D===null){E===null&&(E=O);break}e&&E&&D.alternate===null&&t(f,E),c=o(D,c,C),p===null?g=D:p.sibling=D,p=D,E=O}if(j.done)return n(f,E),te&&en(f,C),g;if(E===null){for(;!j.done;C++,j=d.next())j=m(f,j.value,w),j!==null&&(c=o(j,c,C),p===null?g=j:p.sibling=j,p=j);return te&&en(f,C),g}for(E=r(f,E);!j.done;C++,j=d.next())j=y(E,f,C,j.value,w),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?C:j.key),c=o(j,c,C),p===null?g=j:p.sibling=j,p=j);return e&&E.forEach(function(z){return t(f,z)}),te&&en(f,C),g}function N(f,c,d,w){if(typeof d=="object"&&d!==null&&d.type===Cn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case oi:e:{for(var g=d.key,p=c;p!==null;){if(p.key===g){if(g=d.type,g===Cn){if(p.tag===7){n(f,p.sibling),c=i(p,d.props.children),c.return=f,f=c;break e}}else if(p.elementType===g||typeof g=="object"&&g!==null&&g.$$typeof===bt&&wu(g)===p.type){n(f,p.sibling),c=i(p,d.props),c.ref=dr(f,p,d),c.return=f,f=c;break e}n(f,p);break}else t(f,p);p=p.sibling}d.type===Cn?(c=an(d.props.children,f.mode,w,d.key),c.return=f,f=c):(w=Di(d.type,d.key,d.props,null,f.mode,w),w.ref=dr(f,c,d),w.return=f,f=w)}return l(f);case xn:e:{for(p=d.key;c!==null;){if(c.key===p)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=i(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=dl(d,f.mode,w),c.return=f,f=c}return l(f);case bt:return p=d._init,N(f,c,p(d._payload),w)}if(vr(d))return k(f,c,d,w);if(lr(d))return S(f,c,d,w);vi(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=i(c,d),c.return=f,f=c):(n(f,c),c=cl(d,f.mode,w),c.return=f,f=c),l(f)):n(f,c)}return N}var Vn=Id(!0),Od=Id(!1),Zr={},gt=Jt(Zr),Ur=Jt(Zr),Br=Jt(Zr);function on(e){if(e===Zr)throw Error(T(174));return e}function ea(e,t){switch(G(Br,t),G(Ur,e),G(gt,Zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rl(t,e)}J(gt),G(gt,t)}function Yn(){J(gt),J(Ur),J(Br)}function bd(e){on(Br.current);var t=on(gt.current),n=Rl(t,e.type);t!==n&&(G(Ur,e),G(gt,n))}function ta(e){Ur.current===e&&(J(gt),J(Ur))}var re=Jt(0);function no(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 il=[];function na(){for(var e=0;en?n:4,e(!0);var r=ol.transition;ol.transition={};try{e(!1),t()}finally{W=n,ol.transition=r}}function Kd(){return Ze().memoizedState}function gm(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xd(e))qd(t,n);else if(n=Td(e,t,n,r),n!==null){var i=Oe();st(n,e,r,i),Jd(n,t,r)}}function ym(e,t,n){var r=Yt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xd(e))qd(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,ut(s,l)){var a=t.interleaved;a===null?(i.next=i,Js(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Td(e,t,i,r),n!==null&&(i=Oe(),st(n,e,r,i),Jd(n,t,r))}}function Xd(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function qd(e,t){_r=ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$s(e,n)}}var io={readContext:Je,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},wm={readContext:Je,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:ku,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ii(4194308,4,Wd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ii(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ii(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();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=gm.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:Su,useDebugValue:sa,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=Su(!1),t=e[0];return e=vm.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ie,i=ht();if(te){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),we===null)throw Error(T(349));hn&30||Hd(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ku($d.bind(null,r,o,e),[e]),r.flags|=2048,Vr(9,zd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ht(),t=we.identifierPrefix;if(te){var n=Et,r=kt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[mt]=t,e[Ar]=r,af(e,t,!1,!1),t.stateNode=e;e:{switch(l=Il(n,r),n){case"dialog":X("cancel",e),X("close",e),i=r;break;case"iframe":case"object":case"embed":X("load",e),i=r;break;case"video":case"audio":for(i=0;iGn&&(t.flags|=128,r=!0,fr(o,!1),t.lanes=4194304)}else{if(!r)if(e=no(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!te)return Te(t),null}else 2*se()-o.renderingStartTime>Gn&&n!==1073741824&&(t.flags|=128,r=!0,fr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=se(),t.sibling=null,n=re.current,G(re,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return ha(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ue&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Tm(e,t){switch(Qs(t),t.tag){case 1:return Me(t.type)&&Ki(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(),J($e),J(je),na(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ta(t),null;case 13:if(J(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(re),null;case 4:return Yn(),null;case 10:return qs(t.type._context),null;case 22:case 23:return ha(),null;case 24:return null;default:return null}}var yi=!1,Re=!1,Pm=typeof WeakSet=="function"?WeakSet:Set,I=null;function bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function is(e,t,n){try{n()}catch(r){le(e,t,r)}}var ju=!1;function Rm(e,t){if(Ul=Vi,e=hd(),Vs(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,v=0,m=e,h=null;t:for(;;){for(var y;m!==n||i!==0&&m.nodeType!==3||(s=l+i),m!==o||r!==0&&m.nodeType!==3||(a=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(y=m.firstChild)!==null;)h=m,m=y;for(;;){if(m===e)break t;if(h===n&&++u===i&&(s=l),h===o&&++v===r&&(a=l),(y=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bl={focusedElem:e,selectionRange:n},Vi=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;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 S=k.memoizedProps,N=k.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:rt(t.type,S),N);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(w){le(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return k=ju,ju=!1,k}function Nr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&is(t,n,o)}i=i.next}while(i!==r)}}function To(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 os(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 df(e){var t=e.alternate;t!==null&&(e.alternate=null,df(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[Ar],delete t[Vl],delete t[dm],delete t[fm])),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 ff(e){return e.tag===5||e.tag===3||e.tag===4}function Iu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ff(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 ls(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=Gi));else if(r!==4&&(e=e.child,e!==null))for(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}function ss(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(ss(e,t,n),e=e.sibling;e!==null;)ss(e,t,n),e=e.sibling}var ke=null,it=!1;function Rt(e,t,n){for(n=n.child;n!==null;)hf(e,t,n),n=n.sibling}function hf(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(wo,n)}catch{}switch(n.tag){case 5:Re||bn(n,t);case 6:var r=ke,i=it;ke=null,Rt(e,t,n),ke=r,it=i,ke!==null&&(it?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(it?(e=ke,n=n.stateNode,e.nodeType===8?nl(e.parentNode,n):e.nodeType===1&&nl(e,n),Dr(e)):nl(ke,n.stateNode));break;case 4:r=ke,i=it,ke=n.stateNode.containerInfo,it=!0,Rt(e,t,n),ke=r,it=i;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&is(n,t,l),i=i.next}while(i!==r)}Rt(e,t,n);break;case 1:if(!Re&&(bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){le(n,t,s)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,Rt(e,t,n),Re=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function Ou(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pm),t.forEach(function(r){var i=$m.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Im(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,so=0,A&6)throw Error(T(331));var i=A;for(A|=4,I=e.current;I!==null;){var o=I,l=o.child;if(I.flags&16){var s=o.deletions;if(s!==null){for(var a=0;ase()-da?sn(e,0):ca|=n),Ae(e,t)}function kf(e,t){t===0&&(e.mode&1?(t=ui,ui<<=1,!(ui&130023424)&&(ui=4194304)):t=1);var n=Oe();e=Nt(e,t),e!==null&&(Xr(e,t,n),Ae(e,n))}function zm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kf(e,n)}function $m(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),kf(e,n)}var Ef;Ef=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,_m(e,t,n);He=!!(e.flags&131072)}else He=!1,te&&t.flags&1048576&&Cd(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var i=Fn(t,je.current);An(t,n),i=ia(null,t,r,e,i,n);var o=oa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(o=!0,Xi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zs(t),i.updater=_o,t.stateNode=i,i._reactInternals=t,ql(t,r,e,n),t=es(null,t,r,!0,o,n)):(t.tag=0,te&&o&&Ys(t),Ie(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Am(r),e=rt(r,e),i){case 0:t=Zl(null,t,r,e,n);break e;case 1:t=Tu(null,t,r,e,n);break e;case 11:t=_u(null,t,r,e,n);break e;case 14:t=Nu(null,t,r,rt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Zl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Tu(e,t,r,i,n);case 3:e:{if(of(t),e===null)throw Error(T(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Pd(e,t),to(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Qn(Error(T(423)),t),t=Pu(e,t,r,n,i);break e}else if(r!==i){i=Qn(Error(T(424)),t),t=Pu(e,t,r,n,i);break e}else for(Be=Ft(t.stateNode.containerInfo.firstChild),Fe=t,te=!0,ot=null,n=Od(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===i){t=Tt(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return bd(t),e===null&&Gl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Fl(r,i)?l=null:o!==null&&Fl(r,o)&&(t.flags|=32),rf(e,t),Ie(e,t,l,n),t.child;case 6:return e===null&&Gl(t),null;case 13:return lf(e,t,n);case 4:return ea(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vn(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),_u(e,t,r,i,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,G(Zi,r._currentValue),r._currentValue=l,o!==null)if(ut(o.value,l)){if(o.children===i.children&&!$e.current){t=Tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=xt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var v=u.pending;v===null?a.next=a:(a.next=v.next,v.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Kl(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(T(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Kl(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ie(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,An(t,n),i=Je(i),r=r(i),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),Nu(e,t,r,i,n);case 15:return tf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Oi(e,t),t.tag=1,Me(r)?(e=!0,Xi(t)):e=!1,An(t,n),jd(t,r,i),ql(t,r,i,n),es(null,t,r,!0,e,n);case 19:return sf(e,t,n);case 22:return nf(e,t,n)}throw Error(T(156,t.tag))};function xf(e,t){return Gc(e,t)}function Mm(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 Xe(e,t,n,r){return new Mm(e,t,n,r)}function ma(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Am(e){if(typeof e=="function")return ma(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ls)return 11;if(e===Ds)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=Xe(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 Di(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")ma(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Cn:return an(n.children,i,o,t);case bs:l=8,i|=8;break;case kl:return e=Xe(12,n,t,i|2),e.elementType=kl,e.lanes=o,e;case El:return e=Xe(13,n,t,i),e.elementType=El,e.lanes=o,e;case xl:return e=Xe(19,n,t,i),e.elementType=xl,e.lanes=o,e;case Ic:return Ro(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rc:l=10;break e;case jc:l=9;break e;case Ls:l=11;break e;case Ds:l=14;break e;case bt:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=Xe(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function an(e,t,n,r){return e=Xe(7,e,r,t),e.lanes=n,e}function Ro(e,t,n,r){return e=Xe(22,e,r,t),e.elementType=Ic,e.lanes=n,e.stateNode={isHidden:!1},e}function cl(e,t,n){return e=Xe(6,e,null,t),e.lanes=n,e}function dl(e,t,n){return t=Xe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Um(e,t,n,r,i){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=Vo(0),this.expirationTimes=Vo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function va(e,t,n,r,i,o,l,s,a){return e=new Um(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Xe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zs(o),e}function Bm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tf)}catch(e){console.error(e)}}Tf(),Cc.exports=Ve;var Qm=Cc.exports,Au=Qm;wl.createRoot=Au.createRoot,wl.hydrateRoot=Au.hydrateRoot;/** + * @remix-run/router v1.9.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * 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 Sa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Km(){return Math.random().toString(36).substr(2,8)}function Bu(e,t){return{usr:e.state,key:e.key,idx:t}}function fs(e,t,n,r){return n===void 0&&(n=null),Qr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rr(t):t,{state:n,key:t&&t.key||r||Km()})}function co(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 rr(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 Xm(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,s=Mt.Pop,a=null,u=v();u==null&&(u=0,l.replaceState(Qr({},l.state,{idx:u}),""));function v(){return(l.state||{idx:null}).idx}function m(){s=Mt.Pop;let N=v(),f=N==null?null:N-u;u=N,a&&a({action:s,location:S.location,delta:f})}function h(N,f){s=Mt.Push;let c=fs(S.location,N,f);n&&n(c,N),u=v()+1;let d=Bu(c,u),w=S.createHref(c);try{l.pushState(d,"",w)}catch(g){if(g instanceof DOMException&&g.name==="DataCloneError")throw g;i.location.assign(w)}o&&a&&a({action:s,location:S.location,delta:1})}function y(N,f){s=Mt.Replace;let c=fs(S.location,N,f);n&&n(c,N),u=v();let d=Bu(c,u),w=S.createHref(c);l.replaceState(d,"",w),o&&a&&a({action:s,location:S.location,delta:0})}function k(N){let f=i.location.origin!=="null"?i.location.origin:i.location.href,c=typeof N=="string"?N:co(N);return de(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let S={get action(){return s},get location(){return e(i,l)},listen(N){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Uu,m),a=N,()=>{i.removeEventListener(Uu,m),a=null}},createHref(N){return t(i,N)},createURL:k,encodeLocation(N){let f=k(N);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:y,go(N){return l.go(N)}};return S}var Fu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fu||(Fu={}));function qm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?rr(t):t,i=ka(r.pathname||"/",n);if(i==null)return null;let o=Pf(e);Jm(o);let l=null;for(let s=0;l==null&&s{let a={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};a.relativePath.startsWith("/")&&(de(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]),v=n.concat(a);o.children&&o.children.length>0&&(de(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Pf(o.children,t,v,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:ov(u,o.index),routesMeta:v})};return e.forEach((o,l)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,l);else for(let a of Rf(o.path))i(o,l,a)}),t}function Rf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Rf(r.join("/")),s=[];return s.push(...l.map(a=>a===""?o:[o,a].join("/"))),i&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Jm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Zm=/^:\w+$/,ev=3,tv=2,nv=1,rv=10,iv=-2,Wu=e=>e==="*";function ov(e,t){let n=e.split("/"),r=n.length;return n.some(Wu)&&(r+=iv),t&&(r+=tv),n.filter(i=>!Wu(i)).reduce((i,o)=>i+(Zm.test(o)?ev:o===""?nv:rv),r)}function lv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function sv(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{if(v==="*"){let h=s[m]||"";l=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}return u[v]=dv(s[m]||"",v),u},{}),pathname:o,pathnameBase:l,pattern:e}}function uv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sa(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function cv(e){try{return decodeURI(e)}catch(t){return Sa(!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 dv(e,t){try{return decodeURIComponent(e)}catch(n){return Sa(!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 ka(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 fv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?rr(e):e;return{pathname:n?n.startsWith("/")?n:hv(n,t):t,search:mv(r),hash:vv(i)}}function hv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function fl(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 jf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function If(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=rr(e):(i=Qr({},e),de(!i.pathname||!i.pathname.includes("?"),fl("?","pathname","search",i)),de(!i.pathname||!i.pathname.includes("#"),fl("#","pathname","hash",i)),de(!i.search||!i.search.includes("#"),fl("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,s;if(r||l==null)s=n;else{let m=t.length-1;if(l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),m-=1;i.pathname=h.join("/")}s=m>=0?t[m]:"/"}let a=fv(i,s),u=l&&l!=="/"&&l.endsWith("/"),v=(o||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||v)&&(a.pathname+="/"),a}const Gt=e=>e.join("/").replace(/\/\/+/g,"/"),pv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Of=["post","put","patch","delete"];new Set(Of);const yv=["get",...Of];new Set(yv);/** + * React Router v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),l=_.useRef(!1);return Df(()=>{l.current=!0}),_.useCallback(function(a,u){if(u===void 0&&(u={}),!l.current)return;if(typeof a=="number"){n.go(a);return}let v=If(a,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Gt([t,v.pathname])),(u.replace?n.replace:n.push)(v,u.state,u)},[t,n,o,i,e])}function xa(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=_.useContext(wn),{pathname:i}=ti(),o=JSON.stringify(jf(r).map(l=>l.pathnameBase));return _.useMemo(()=>If(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function kv(e,t){return Ev(e,t)}function Ev(e,t,n){ei()||de(!1);let{navigator:r}=_.useContext(yn),{matches:i}=_.useContext(wn),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let a=ti(),u;if(t){var v;let S=typeof t=="string"?rr(t):t;s==="/"||(v=S.pathname)!=null&&v.startsWith(s)||de(!1),u=S}else u=a;let m=u.pathname||"/",h=s==="/"?m:m.slice(s.length)||"/",y=qm(e,{pathname:h}),k=Tv(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:Gt([s,r.encodeLocation?r.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:Gt([s,r.encodeLocation?r.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n);return t&&k?_.createElement(Lo.Provider,{value:{location:fo({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Mt.Pop}},k):k}function xv(){let e=Iv(),t=gv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,o)}const Cv=_.createElement(xv,null);class _v extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?_.createElement(wn.Provider,{value:this.props.routeContext},_.createElement(Lf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nv(e){let{routeContext:t,match:n,children:r}=e,i=_.useContext(Ea);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(wn.Provider,{value:t},r)}function Tv(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let s=o.findIndex(a=>a.route.id&&(l==null?void 0:l[a.route.id]));s>=0||de(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,a,u)=>{let v=a.route.id?l==null?void 0:l[a.route.id]:null,m=null;n&&(m=a.route.errorElement||Cv);let h=t.concat(o.slice(0,u+1)),y=()=>{let k;return v?k=m:a.route.Component?k=_.createElement(a.route.Component,null):a.route.element?k=a.route.element:k=s,_.createElement(Nv,{match:a,routeContext:{outlet:s,matches:h,isDataRoute:n!=null},children:k})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?_.createElement(_v,{location:n.location,revalidation:n.revalidation,component:m,error:v,children:y(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):y()},null)}var zf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zf||{}),ho=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ho||{});function Pv(e){let t=_.useContext(Ea);return t||de(!1),t}function Rv(e){let t=_.useContext(bf);return t||de(!1),t}function jv(e){let t=_.useContext(wn);return t||de(!1),t}function $f(e){let t=jv(),n=t.matches[t.matches.length-1];return n.route.id||de(!1),n.route.id}function Iv(){var e;let t=_.useContext(Lf),n=Rv(ho.UseRouteError),r=$f(ho.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Ov(){let{router:e}=Pv(zf.UseNavigateStable),t=$f(ho.UseNavigateStable),n=_.useRef(!1);return Df(()=>{n.current=!0}),_.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,fo({fromRouteId:t},o)))},[e,t])}function It(e){de(!1)}function bv(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Mt.Pop,navigator:o,static:l=!1}=e;ei()&&de(!1);let s=t.replace(/^\/*/,"/"),a=_.useMemo(()=>({basename:s,navigator:o,static:l}),[s,o,l]);typeof r=="string"&&(r=rr(r));let{pathname:u="/",search:v="",hash:m="",state:h=null,key:y="default"}=r,k=_.useMemo(()=>{let S=ka(u,s);return S==null?null:{location:{pathname:S,search:v,hash:m,state:h,key:y},navigationType:i}},[s,u,v,m,h,y,i]);return k==null?null:_.createElement(yn.Provider,{value:a},_.createElement(Lo.Provider,{children:n,value:k}))}function Lv(e){let{children:t,location:n}=e;return kv(hs(t),n)}new Promise(()=>{});function hs(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let o=[...t,i];if(r.type===_.Fragment){n.push.apply(n,hs(r.props.children,o));return}r.type!==It&&de(!1),!r.props.index||!r.props.children||de(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=hs(r.props.children,o)),n.push(l)}),n}/** + * React Router DOM v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Dv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Hv(e,t){return e.button===0&&(!t||t==="_self")&&!Dv(e)}const zv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],$v=["aria-current","caseSensitive","className","end","style","to","children"],Mv="startTransition",Vu=zh[Mv];function Av(e){let{basename:t,children:n,future:r,window:i}=e,o=_.useRef();o.current==null&&(o.current=Gm({window:i,v5Compat:!0}));let l=o.current,[s,a]=_.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},v=_.useCallback(m=>{u&&Vu?Vu(()=>a(m)):a(m)},[a,u]);return _.useLayoutEffect(()=>l.listen(v),[l,v]),_.createElement(bv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l})}const Uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fv=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:s,target:a,to:u,preventScrollReset:v}=t,m=Mf(t,zv),{basename:h}=_.useContext(yn),y,k=!1;if(typeof u=="string"&&Bv.test(u)&&(y=u,Uv))try{let c=new URL(window.location.href),d=u.startsWith("//")?new URL(c.protocol+u):new URL(u),w=ka(d.pathname,h);d.origin===c.origin&&w!=null?u=w+d.search+d.hash:k=!0}catch{}let S=wv(u,{relative:i}),N=Vv(u,{replace:l,state:s,target:a,preventScrollReset:v,relative:i});function f(c){r&&r(c),c.defaultPrevented||N(c)}return _.createElement("a",po({},m,{href:y||S,onClick:k||o?r:f,ref:n,target:a}))}),Wv=_.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:l=!1,style:s,to:a,children:u}=t,v=Mf(t,$v),m=xa(a,{relative:v.relative}),h=ti(),y=_.useContext(bf),{navigator:k}=_.useContext(yn),S=k.encodeLocation?k.encodeLocation(m).pathname:m.pathname,N=h.pathname,f=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(N=N.toLowerCase(),f=f?f.toLowerCase():null,S=S.toLowerCase());let c=N===S||!l&&N.startsWith(S)&&N.charAt(S.length)==="/",d=f!=null&&(f===S||!l&&f.startsWith(S)&&f.charAt(S.length)==="/"),w=c?r:void 0,g;typeof o=="function"?g=o({isActive:c,isPending:d}):g=[o,c?"active":null,d?"pending":null].filter(Boolean).join(" ");let p=typeof s=="function"?s({isActive:c,isPending:d}):s;return _.createElement(Fv,po({},v,{"aria-current":w,className:g,ref:n,style:p,to:a}),typeof u=="function"?u({isActive:c,isPending:d}):u)});var Yu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Yu||(Yu={}));var Qu;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qu||(Qu={}));function Vv(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l}=t===void 0?{}:t,s=Hf(),a=ti(),u=xa(e,{relative:l});return _.useCallback(v=>{if(Hv(v,n)){v.preventDefault();let m=r!==void 0?r:co(a)===co(u);s(e,{replace:m,state:i,preventScrollReset:o,relative:l})}},[a,s,u,r,i,n,e,o,l])}const Af="/blackjack_probability/",Uf="/blackjack_probability/about-us",Bf="/blackjack_probability/charts",Ff="/blackjack_probability/terms",Ca="/blackjack_probability/game",Wf="/blackjack_probability/customize",Yv="*",Qv=()=>{const e=Hf(),t=()=>{e(Ca)},n=()=>{e(Wf)};return x.jsx("div",{className:"background",children:x.jsxs("div",{className:"titleHolder",children:[x.jsx("h1",{className:"title",children:"Blackjack Probability"}),x.jsx("p",{className:"info",children:"Ever wanted to learn how to become a true professional at Blackjack? Well click 'Play' below to get started!"}),x.jsxs("div",{className:"row",children:[x.jsx("button",{className:"btn-hover",onClick:t,children:"Play the Game"}),x.jsx("button",{className:"btn-hover",onClick:n,children:"Customize Table"})]})]})})};const Gv="/blackjack_probability/assets/HomePage1-5cae91d8.png",Kv="/blackjack_probability/assets/HomePage2-91b77c51.png",Xv="/blackjack_probability/assets/HomePage3-a31c86df.png",qv="/blackjack_probability/assets/HomePage4-10ab7789.png";var ps={exports:{}},Vf={exports:{}},Jv="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Zv=Jv,eg=Zv;function Yf(){}function Qf(){}Qf.resetWarningCache=Yf;var tg=function(){function e(r,i,o,l,s,a){if(a!==eg){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qf,resetWarningCache:Yf};return n.PropTypes=n,n};Vf.exports=tg();var Gf=Vf.exports,ms={exports:{}},vs={exports:{}},_a={};(function(e){function t(c){try{return S.insertRule(c,S.cssRules.length)}catch{console.warn("react-reveal - animation failed")}}function n(c,d,w,g,p){var E=Math.log(g),C=Math.log(p),O=(C-E)/(w-d);return Math.exp(E+O*(c-d))}function r(c){if(!S)return"";var d="@keyframes "+(N+y)+"{"+c+"}",w=k[c];return w?""+N+w:(S.insertRule(d,S.cssRules.length),k[c]=y,""+N+y++)}function i(){m||(e.globalHide=m=!0,window.removeEventListener("scroll",i,!0),t("."+l+" { opacity: 0; }"),window.removeEventListener("orientationchange",i,!0),window.document.removeEventListener("visibilitychange",i))}function o(c){var d=c.ssrFadeout;e.fadeOutEnabled=d}Object.defineProperty(e,"__esModule",{value:!0}),e.insertRule=t,e.cascade=n,e.animation=r,e.hideAll=i,e.default=o;var l=e.namespace="react-reveal";e.defaults={duration:1e3,delay:0,count:1};var s=e.ssr=!0,a=e.observerMode=!1,u=e.raf=function(c){return window.setTimeout(c,66)},v=e.disableSsr=function(){return e.ssr=s=!1};e.fadeOutEnabled=!1,e.ssrFadeout=function(){var c=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return e.fadeOutEnabled=c};var m=e.globalHide=!1;e.ie10=!1;var h=e.collapseend=void 0,y=1,k={},S=!1,N=l+"-"+Math.floor(1e15*Math.random())+"-";if(typeof window<"u"&&window.name!=="nodejs"&&window.document&&typeof navigator<"u"){e.observerMode=a="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&/\{\s*\[native code\]\s*\}/.test(""+IntersectionObserver),e.raf=u=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||u,e.ssr=s=window.document.querySelectorAll("div[data-reactroot]").length>0,navigator.appVersion.indexOf("MSIE 10")!==-1&&(e.ie10=!0),s&&"performance"in window&&"timing"in window.performance&&"domContentLoadedEventEnd"in window.performance.timing&&window.performance.timing.domLoading&&Date.now()-window.performance.timing.domLoading<300&&(e.ssr=s=!1),s&&window.setTimeout(v,1500),a||(e.collapseend=h=document.createEvent("Event"),h.initEvent("collapseend",!0,!0));var f=document.createElement("style");document.head.appendChild(f),f.sheet&&f.sheet.cssRules&&f.sheet.insertRule&&(S=f.sheet,window.addEventListener("scroll",i,!0),window.addEventListener("orientationchange",i,!0),window.document.addEventListener("visibilitychange",i))}})(_a);(function(e,t){function n(w){return w&&w.__esModule?w:{default:w}}function r(w,g,p){return g in w?Object.defineProperty(w,g,{value:p,enumerable:!0,configurable:!0,writable:!0}):w[g]=p,w}function i(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}function o(w,g){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?w:g}function l(w,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(w,g):w.__proto__=g)}Object.defineProperty(t,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},a=function(){function w(g,p){var E=[],C=!0,O=!1,j=void 0;try{for(var D,z=g[Symbol.iterator]();!(C=(D=z.next()).done)&&(E.push(D.value),!p||E.length!==p);C=!0);}catch(V){O=!0,j=V}finally{try{!C&&z.return&&z.return()}finally{if(O)throw j}}return E}return function(g,p){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return w(g,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=Object.assign||function(w){for(var g=1;g>2,K=V>>1;D=V,z=C.delay+(this.isOn?0:O-V-K),p.style.animationDuration=O-V+(this.isOn?K:-K)+"ms",p.style.animationDelay=C.delay+(this.isOn?V-K:0)+"ms"}return p.collapse={height:j,transition:"height "+D+"ms ease "+z+"ms",overflow:E.collapseOnly?"hidden":void 0},p}},{key:"animate",value:function(p){if(this&&this.el&&(this.unlisten(),this.isShown!==this.isOn)){this.isShown=this.isOn;var E=!this.isOn&&p.outEffect,C=p[E?"outEffect":"inEffect"],O="style"in C&&C.style.animationName||void 0,j=void 0;p.collapseOnly?j={hasAppeared:!0,hasExited:!1,style:{opacity:1}}:((p.outEffect||this.isOn)&&C.make&&(O=C.make),j={hasAppeared:!0,hasExited:!1,collapse:void 0,style:u({},C.style,{animationDuration:C.duration+"ms",animationDelay:C.delay+"ms",animationIterationCount:C.forever?"infinite":C.count,opacity:1,animationName:O}),className:C.className}),this.setState(p.collapse?this.collapse(j,p,C):j),E?(this.savedChild=h.default.cloneElement(this.getChild()),this.animationEnd(this.invisible,p.cascade,C)):this.savedChild=!1,this.onReveal(p)}}},{key:"onReveal",value:function(p){p.onReveal&&this.isOn&&(this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),p.wait?this.onRevealTimeout=window.setTimeout(p.onReveal,p.wait):p.onReveal())}},{key:"componentWillUnmount",value:function(){this.unlisten(),k.ssr&&(0,k.disableSsr)()}},{key:"handleObserve",value:function(p,E){a(p,1)[0].intersectionRatio>0&&(E.disconnect(),this.observer=null,this.reveal(this.props,!0))}},{key:"observe",value:function(p){var E=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(this.el&&k.observerMode){if(this.observer){if(!E)return;this.observer.disconnect()}else if(E)return;this.observer=new IntersectionObserver(this.handleObserve,{threshold:p.fraction}),this.observer.observe(this.el)}}},{key:"reveal",value:function(p){var E=this,C=arguments.length>1&&arguments[1]!==void 0&&arguments[1];k.globalHide||(0,k.hideAll)(),this&&this.el&&(p||(p=this.props),k.ssr&&(0,k.disableSsr)(),this.isOn&&this.isShown&&p.spy!==void 0?(this.isShown=!1,this.setState({style:{}}),window.setTimeout(function(){return E.reveal(p)},200)):C||this.inViewport(p)||p.force?this.animate(p):k.observerMode?this.observe(p):this.listen())}},{key:"componentDidMount",value:function(){var p=this;if(this.el&&!this.props.disabled){this.props.collapseOnly||("make"in this.props.inEffect&&this.props.inEffect.make(!1,this.props),this.props.when!==void 0&&this.props.outEffect&&"make"in this.props.outEffect&&this.props.outEffect.make(!0,this.props));var E=this.context.transitionGroup,C=E&&!E.isMounting?!("enter"in this.props&&this.props.enter===!1):this.props.appear;return this.isOn&&((this.props.when!==void 0||this.props.spy!==void 0)&&!C||k.ssr&&!k.fadeOutEnabled&&!this.props.ssrFadeout&&this.props.outEffect&&!this.props.ssrReveal&&g.getTop(this.el)O-window.innerHeight&&C=0||Object.prototype.hasOwnProperty.call(h,S)&&(k[S]=h[S]);return k}function i(h,y){var k=y.left,S=y.right,N=y.up,f=y.down,c=y.top,d=y.bottom,w=y.big,g=y.mirror,p=y.opposite,E=(k?1:0)|(S?2:0)|(c||f?4:0)|(d||N?8:0)|(g?16:0)|(p?32:0)|(h?64:0)|(w?128:0);if(m.hasOwnProperty(E))return m[E];var C=k||S||N||f||c||d,O=void 0,j=void 0;if(C){if(!g!=!(h&&p)){var D=[S,k,d,c,f,N];k=D[0],S=D[1],c=D[2],d=D[3],N=D[4],f=D[5]}var z=w?"2000px":"100%";O=k?"-"+z:S?z:"0",j=f||c?"-"+z:N||d?z:"0"}return m[E]=(0,u.animation)((h?"to":"from")+" {"+(C?" transform: translate3d("+O+", "+j+", 0);":"")+`} + `+(h?"from":"to")+" {transform: none;} "),m[E]}function o(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.defaults,y=h.children,k=(h.out,h.forever),S=h.timeout,N=h.duration,f=N===void 0?u.defaults.duration:N,c=h.delay,d=c===void 0?u.defaults.delay:c,w=h.count,g=w===void 0?u.defaults.count:w,p=r(h,["children","out","forever","timeout","duration","delay","count"]),E={make:i,duration:S===void 0?f:S,delay:d,forever:k,count:g,style:{animationFillMode:"both"},reverse:p.left};return(0,a.default)(p,E,E,y)}Object.defineProperty(t,"__esModule",{value:!0});var l=Gf,s=rg,a=n(s),u=_a,v={out:l.bool,left:l.bool,right:l.bool,top:l.bool,bottom:l.bool,big:l.bool,mirror:l.bool,opposite:l.bool,duration:l.number,timeout:l.number,delay:l.number,count:l.number,forever:l.bool},m={};o.propTypes=v,t.default=o,e.exports=t.default})(ps,ps.exports);var ig=ps.exports;const jt=hc(ig),og=()=>x.jsxs("div",{className:"container",children:[x.jsxs("div",{className:"subContainer",children:[x.jsx(jt,{left:!0,children:x.jsx("p",{className:"titleText",children:"Play Blackjack in a risk free environment!"})}),x.jsx(jt,{right:!0,children:x.jsx("img",{className:"image",src:Gv})})]}),x.jsxs("div",{className:"subContainer",children:[x.jsx(jt,{left:!0,children:x.jsx("img",{className:"image",src:Kv})}),x.jsx(jt,{right:!0,children:x.jsx("p",{className:"titleText",children:"Learn basic strategy with our Dealer AI!"})})]}),x.jsxs("div",{className:"subContainer",children:[x.jsx(jt,{left:!0,children:x.jsx("p",{className:"titleText",children:"Map out strategies with the charts and learn basic Blackjack terms!"})}),x.jsx(jt,{right:!0,children:x.jsx("img",{className:"image",src:Xv})})]}),x.jsxs("div",{className:"subContainer",children:[x.jsx(jt,{left:!0,children:x.jsx("img",{className:"image",src:qv})}),x.jsx(jt,{right:!0,children:x.jsx("p",{className:"titleText",children:"Customize your playing area to your own liking!"})})]})]}),lg=()=>x.jsxs("div",{children:[x.jsx(Qv,{}),x.jsx(og,{})]});var ze=function(){return ze=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?ye(ir,--et):0,Xn--,ue===10&&(Xn=1,Ho--),ue}function at(){return ue=et2||ys(ue)>3?"":" "}function gg(e,t){for(;--t&&at()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return $o(e,zi()+(t<6&&un()==32&&at()==32))}function ws(e){for(;at();)switch(ue){case e:return et;case 34:case 39:e!==34&&e!==39&&ws(ue);break;case 40:e===41&&ws(e);break;case 92:at();break}return et}function yg(e,t){for(;at()&&e+ue!==47+10;)if(e+ue===42+42&&un()===47)break;return"/*"+$o(t,et-1)+"*"+Ta(e===47?e:at())}function wg(e){for(;!ys(un());)at();return $o(e,et)}function Sg(e){return mg($i("",null,null,null,[""],e=pg(e),0,[0],e))}function $i(e,t,n,r,i,o,l,s,a){for(var u=0,v=0,m=l,h=0,y=0,k=0,S=1,N=1,f=1,c=0,d="",w=i,g=o,p=r,E=d;N;)switch(k=c,c=at()){case 40:if(k!=108&&ye(E,m-1)==58){Hi(E+=H(hl(c),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:E+=hl(c);break;case 9:case 10:case 13:case 32:E+=vg(k);break;case 92:E+=gg(zi()-1,7);continue;case 47:switch(un()){case 42:case 47:wr(kg(yg(at(),zi()),t,n,a),a);break;default:E+="/"}break;case 123*S:s[u++]=pt(E)*f;case 125*S:case 59:case 0:switch(c){case 0:case 125:N=0;case 59+v:f==-1&&(E=H(E,/\f/g,"")),y>0&&pt(E)-m&&wr(y>32?Xu(E+";",r,n,m-1,a):Xu(H(E," ","")+";",r,n,m-2,a),a);break;case 59:E+=";";default:if(wr(p=Ku(E,t,n,u,v,i,s,d,w=[],g=[],m,o),o),c===123)if(v===0)$i(E,t,p,p,w,o,m,s,g);else switch(h===99&&ye(E,3)===110?100:h){case 100:case 108:case 109:case 115:$i(e,p,p,r&&wr(Ku(e,p,p,0,0,i,s,d,i,w=[],m,g),g),i,g,m,s,r?w:g);break;default:$i(E,p,p,p,[""],g,0,s,g)}}u=v=y=0,S=f=1,d=E="",m=l;break;case 58:m=1+pt(E),y=k;default:if(S<1){if(c==123)--S;else if(c==125&&S++==0&&hg()==125)continue}switch(E+=Ta(c),c*S){case 38:f=v>0?1:(E+="\f",-1);break;case 44:s[u++]=(pt(E)-1)*f,f=1;break;case 64:un()===45&&(E+=hl(at())),h=un(),v=m=pt(d=E+=wg(zi())),c++;break;case 45:k===45&&pt(E)==2&&(S=0)}}return o}function Ku(e,t,n,r,i,o,l,s,a,u,v,m){for(var h=i-1,y=i===0?o:[""],k=Jf(y),S=0,N=0,f=0;S0?y[c]+" "+d:H(d,/&\f/g,y[c])))&&(a[f++]=w);return zo(e,t,n,i===0?Do:s,a,u,v,m)}function kg(e,t,n,r){return zo(e,t,n,Kf,Ta(fg()),Kn(e,2,-2),0,r)}function Xu(e,t,n,r,i){return zo(e,t,n,Na,Kn(e,0,r),Kn(e,r+1,-1),r,i)}function eh(e,t,n){switch(cg(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 Rr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+Rr+e+q+e+e;case 5936:switch(ye(e,t+11)){case 114:return F+e+q+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+q+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+q+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+q+e+e;case 6165:return F+e+q+"flex-"+e+e;case 5187:return F+e+H(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return F+e+q+"flex-item-"+H(e,/flex-|-self/g,"")+(wt(e,/flex-|baseline/)?"":q+"grid-row-"+H(e,/flex-|-self/g,""))+e;case 4675:return F+e+q+"flex-line-pack"+H(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+q+H(e,"shrink","negative")+e;case 5292:return F+e+q+H(e,"basis","preferred-size")+e;case 6060:return F+"box-"+H(e,"-grow","")+F+e+q+H(e,"grow","positive")+e;case 4554:return F+H(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4200:if(!wt(e,/flex-|baseline/))return q+"grid-column-align"+Kn(e,t)+e;break;case 2592:case 3360:return q+H(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,wt(r.props,/grid-\w+-end/)})?~Hi(e+(n=n[t].value),"span")?e:q+H(e,"-start","")+e+q+"grid-row-span:"+(~Hi(n,"span")?wt(n,/\d+/):+wt(n,/\d+/)-+wt(e,/\d+/))+";":q+H(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return wt(r.props,/grid-\w+-start/)})?e:q+H(H(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return H(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(pt(e)-1-t>6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+Rr+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hi(e,"stretch")?eh(H(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return H(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,l,s,a,u){return q+i+":"+o+u+(l?q+i+"-span:"+(s?a:+a-+o)+u:"")+e});case 4949:if(ye(e,t+6)===121)return H(e,":",":"+F)+e;break;case 6444:switch(ye(e,ye(e,14)===45?18:11)){case 120:return H(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(ye(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+q+"$2box$3")+e;case 100:return H(e,":",":"+q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return H(e,"scroll-","scroll-snap-")+e}return e}function vo(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Na:e.return=eh(e.value,e.length,n);return;case Xf:return vo([Ot(e,{value:H(e.value,"@","@"+F)})],r);case Do:if(e.length)return dg(n=e.props,function(i){switch(wt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":En(Ot(e,{props:[H(i,/:(read-\w+)/,":"+Rr+"$1")]})),En(Ot(e,{props:[i]})),gs(e,{props:Gu(n,r)});break;case"::placeholder":En(Ot(e,{props:[H(i,/:(plac\w+)/,":"+F+"input-$1")]})),En(Ot(e,{props:[H(i,/:(plac\w+)/,":"+Rr+"$1")]})),En(Ot(e,{props:[H(i,/:(plac\w+)/,q+"input-$1")]})),En(Ot(e,{props:[i]})),gs(e,{props:Gu(n,r)});break}return""})}}var Ng={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},qn=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Pa=typeof window<"u"&&"HTMLElement"in window,Tg=!!(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),Mo=Object.freeze([]),Jn=Object.freeze({});function Pg(e,t,n){return n===void 0&&(n=Jn),e.theme!==n.theme&&e.theme||t||n.theme}var th=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"]),Rg=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,jg=/(^-|-$)/g;function qu(e){return e.replace(Rg,"-").replace(jg,"")}var Ig=/(a)(d)/gi,Ju=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ss(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ju(t%52)+n;return(Ju(t%52)+n).replace(Ig,"$1-$2")}var pl,Dn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},nh=function(e){return Dn(5381,e)};function Og(e){return Ss(nh(e)>>>0)}function bg(e){return e.displayName||e.name||"Component"}function ml(e){return typeof e=="string"&&!0}var rh=typeof Symbol=="function"&&Symbol.for,ih=rh?Symbol.for("react.memo"):60115,Lg=rh?Symbol.for("react.forward_ref"):60112,Dg={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Hg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zg=((pl={})[Lg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pl[ih]=oh,pl);function Zu(e){return("type"in(t=e)&&t.type.$$typeof)===ih?oh:"$$typeof"in e?zg[e.$$typeof]:Dg;var t}var $g=Object.defineProperty,Mg=Object.getOwnPropertyNames,ec=Object.getOwnPropertySymbols,Ag=Object.getOwnPropertyDescriptor,Ug=Object.getPrototypeOf,tc=Object.prototype;function lh(e,t,n){if(typeof t!="string"){if(tc){var r=Ug(t);r&&r!==tc&&lh(e,r,n)}var i=Mg(t);ec&&(i=i.concat(ec(t)));for(var o=Zu(e),l=Zu(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var Bg=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,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw ni(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var l=i;l=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,l=i;l=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&&(N+="".concat(f,","))}),a+="".concat(k).concat(S,'{content:"').concat(N,'"}').concat(`/*!sc*/ +`)},v=0;v0?".".concat(t):h},v=a.slice();v.push(function(h){h.type===Do&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Zg,n).replace(r,u))}),l.prefix&&v.push(_g),v.push(Eg);var m=function(h,y,k,S){y===void 0&&(y=""),k===void 0&&(k=""),S===void 0&&(S="&"),t=S,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var N=h.replace(ey,""),f=Sg(k||y?"".concat(k," ").concat(y," { ").concat(N," }"):N);l.namespace&&(f=uh(f,l.namespace));var c=[];return vo(f,xg(v.concat(Cg(function(d){return c.push(d)})))),c};return m.hash=a.length?a.reduce(function(h,y){return y.name||ni(15),Dn(h,y.name)},5381).toString():"",m}var ny=new ah,Es=ty(),ch=fe.createContext({shouldForwardProp:void 0,styleSheet:ny,stylis:Es});ch.Consumer;fe.createContext(void 0);function ic(){return _.useContext(ch)}var ry=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Es);var l=r.name+o.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,o(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ja(this,function(){throw ni(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Es),this.name+t.hash},e}(),iy=function(e){return e>="A"&&e<="Z"};function oc(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,l)){var s=r(o,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,s)}i=ln(i,l),this.staticRulesId=l}else{for(var a=Dn(this.baseHash,r.hash),u="",v=0;v>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),i=ln(i,y)}}return i},e}(),hh=fe.createContext(void 0);hh.Consumer;var gl={};function ay(e,t,n){var r=Ra(e),i=e,o=!ml(e),l=t.attrs,s=l===void 0?Mo:l,a=t.componentId,u=a===void 0?function(d,w){var g=typeof d!="string"?"sc":qu(d);gl[g]=(gl[g]||0)+1;var p="".concat(g,"-").concat(Og("6.0.8"+g+gl[g]));return w?"".concat(w,"-").concat(p):p}(t.displayName,t.parentComponentId):a,v=t.displayName;v===void 0&&function(d){return ml(d)?"styled.".concat(d):"Styled(".concat(bg(d),")")}(e);var m=t.displayName&&t.componentId?"".concat(qu(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var k=i.shouldForwardProp;if(t.shouldForwardProp){var S=t.shouldForwardProp;y=function(d,w){return k(d,w)&&S(d,w)}}else y=k}var N=new sy(n,m,r?i.componentStyle:void 0);function f(d,w){return function(g,p,E){var C=g.attrs,O=g.componentStyle,j=g.defaultProps,D=g.foldedComponentIds,z=g.styledComponentId,V=g.target,K=fe.useContext(hh),Z=ic(),me=g.shouldForwardProp||Z.shouldForwardProp,U=function(tt,ve,ct){for(var Ce,_e=ze(ze({},ve),{className:void 0,theme:ct}),or=0;orx.jsx(x.Fragment,{children:x.jsxs(cy,{children:[x.jsx(fy,{children:"The Gamblers Inc."}),x.jsxs(dy,{children:[x.jsx(pr,{to:Af,end:!0,children:"Home"}),x.jsx(pr,{to:Ca,children:"Play the Game"}),x.jsx(pr,{to:Uf,children:"About Us"}),x.jsx(pr,{to:Bf,children:"Charts"}),x.jsx(pr,{to:Ff,children:"Terms"})]})]})}),py="/blackjack_probability/assets/AboutUs1-fd477dc8.png",my="/blackjack_probability/assets/AboutUs2-9f0e362a.png";const vy=()=>x.jsx("div",{className:"container",children:x.jsxs("div",{className:"column",children:[x.jsxs("div",{className:"about-row",children:[x.jsx("div",{className:"column",children:x.jsxs("div",{className:"text-holder",children:[x.jsx("h1",{className:"about-header",children:"Who are we?"}),x.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."})]})}),x.jsx("img",{src:py})]}),x.jsxs("div",{className:"about-row",children:[x.jsx("img",{src:my}),x.jsx("div",{className:"column",children:x.jsxs("div",{className:"text-holder",children:[x.jsx("h1",{className:"about-header",children:"What is the purpose of this website?"}),x.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 gy="/blackjack_probability/assets/404Error-54fb3a76.png",yy=()=>x.jsx("div",{className:"errorContainer",children:x.jsx("img",{src:gy,className:"error-img"})});const wy={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"]}]},Sy=["2","3","4","5","6","7","8","9","10","A"],ac={chart1:wy,dealerRow:Sy},ky=()=>{const e=JSON.parse(JSON.stringify(ac.chart1)),t=JSON.parse(JSON.stringify(ac.dealerRow)),n=r=>{switch(r){case"H":return"green";case"S":return"red"}};return x.jsxs("div",{className:"table-container",children:[x.jsxs("table",{className:"chart-table",children:[x.jsxs("tr",{children:[x.jsx("th",{children:`Dealer's Card +Your Hand`}),t.map((r,i)=>x.jsx("th",{children:r},i))]}),e.data.map((r,i)=>x.jsxs("tr",{children:[x.jsx("th",{children:r.label}),r.value.map(o=>x.jsx("td",{style:{backgroundColor:n(o)},children:o}))]},i))]}),x.jsxs("table",{className:"chart-table",children:[x.jsxs("tr",{children:[x.jsx("th",{children:"Your Hand\\Dealer's Card"}),t.map((r,i)=>x.jsx("th",{children:r},i))]}),e.data2.map((r,i)=>x.jsxs("tr",{children:[x.jsx("th",{children:r.label}),r.value.map(o=>x.jsx("td",{style:{backgroundColor:n(o)},children:o}))]},i))]})]})};const Ey=()=>{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 x.jsx("div",{className:"term-container",children:e.map((t,n)=>x.jsxs("div",{className:"term-row",children:[x.jsxs("h1",{className:"term-title",children:[t.term,":"]}),x.jsx("p",{className:"term-text",children:t.definition})]},n))})},xy="_statusContainer_k74mu_1",Cy="_status_k74mu_1",_y="_value_k74mu_35",Ei={statusContainer:xy,status:Cy,value:_y},Ny="_controlsContainer_wdpsv_1",Ty="_toggleContainer_wdpsv_13",Py="_toggleText_wdpsv_25",Ry="_row_wdpsv_33",jy="_column_wdpsv_45",Iy="_button_wdpsv_57",Oy="_betContainer_wdpsv_117",Qe={controlsContainer:Ny,toggleContainer:Ty,toggleText:Py,row:Ry,column:jy,button:Iy,betContainer:Oy};function Cs(){return Cs=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,i=n.disabled,o=n.className,l=n.offColor,s=n.onColor,a=n.offHandleColor,u=n.onHandleColor,v=n.checkedIcon,m=n.uncheckedIcon,h=n.checkedHandleIcon,y=n.uncheckedHandleIcon,k=n.boxShadow,S=n.activeBoxShadow,N=n.height,f=n.width,c=n.borderRadius,d=function(Z,me){var U={};for(var R in Z)Object.prototype.hasOwnProperty.call(Z,R)&&me.indexOf(R)===-1&&(U[R]=Z[R]);return U}(n,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),w=this.state,g=w.h,p=w.N,E=w.j,C={position:"relative",display:"inline-block",textAlign:"left",opacity:i?.5:1,direction:"ltr",borderRadius:N/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"},O={height:N,width:f,margin:Math.max(0,(this.t-N)/2),position:"relative",background:cc(g,this.i,this.o,l,s),borderRadius:typeof c=="number"?c:N/2,cursor:i?"default":"pointer",WebkitTransition:p?null:"background 0.25s",MozTransition:p?null:"background 0.25s",transition:p?null:"background 0.25s"},j={height:N,width:Math.min(1.5*N,f-(this.t+N)/2+1),position:"relative",opacity:(g-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:p?null:"opacity 0.25s",MozTransition:p?null:"opacity 0.25s",transition:p?null:"opacity 0.25s"},D={height:N,width:Math.min(1.5*N,f-(this.t+N)/2+1),position:"absolute",opacity:1-(g-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:p?null:"opacity 0.25s",MozTransition:p?null:"opacity 0.25s",transition:p?null:"opacity 0.25s"},z={height:this.t,width:this.t,background:cc(g,this.i,this.o,a,u),display:"inline-block",cursor:i?"default":"pointer",borderRadius:typeof c=="number"?c-1:"50%",position:"absolute",transform:"translateX("+g+"px)",top:Math.max(0,(N-this.t)/2),outline:0,boxShadow:E?S:k,border:0,WebkitTransition:p?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:p?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:p?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},V={height:this.t,width:this.t,opacity:Math.max(2*(1-(g-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:p?null:"opacity 0.25s",MozTransition:p?null:"opacity 0.25s",transition:p?null:"opacity 0.25s"},K={height:this.t,width:this.t,opacity:Math.max(2*((g-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:p?null:"opacity 0.25s",MozTransition:p?null:"opacity 0.25s",transition:p?null:"opacity 0.25s"};return fe.createElement("div",{className:o,style:C},fe.createElement("div",{className:"react-switch-bg",style:O,onClick:i?null:this.T,onMouseDown:function(Z){return Z.preventDefault()}},v&&fe.createElement("div",{style:j},v),m&&fe.createElement("div",{style:D},m)),fe.createElement("div",{className:"react-switch-handle",style:z,onClick:function(Z){return Z.preventDefault()},onMouseDown:i?null:this.p,onTouchStart:i?null:this.k,onTouchMove:i?null:this.m,onTouchEnd:i?null:this.M,onTouchCancel:i?null:this.O},y&&fe.createElement("div",{style:V},y),h&&fe.createElement("div",{style:K},h)),fe.createElement("input",Cs({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:i,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},d,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(_.Component);_s.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:by,checkedIcon:Ly,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56};const Dy=(e,t,n=null)=>{const r=_.useRef(t);_.useLayoutEffect(()=>{r.current=t});const i=_.useCallback(o=>{e.some(l=>o.key===l)&&r.current(o)},[e]);_.useEffect(()=>{const o=n??document;return o&&o.addEventListener("keydown",i),()=>o&&o.removeEventListener("keydown",i)},[i,n])},Hy=({gameState:e,buttonState:t,playEvent:n,hitEvent:r,standEvent:i,resetEvent:o,displayTotal:l,dealerHelp:s,toggleDisplayTotal:a,toggleDealerHelp:u})=>{const v=()=>{n()},m=S=>{a(S)},h=S=>{u(S)};Dy(["a","s","d","w","e"],S=>{S.key==="a"&&!t.hitDisabled?r():S.key==="s"&&!t.standDisabled?i():S.key==="d"&&!t.resetDisabled?o():S.key==="w"?m(!l):S.key==="e"&&h(!s)});const k=()=>e===0?x.jsx("div",{className:Qe.controlsContainer,children:x.jsx("button",{onClick:()=>v(),className:Qe.button,children:"Play"})}):x.jsx("div",{className:Qe.controlsContainer,children:x.jsxs("div",{className:Qe.column,children:[x.jsxs("div",{className:Qe.toggleContainer,children:[x.jsx("h2",{className:Qe.toggleText,children:"Toggle Total (W)"}),x.jsx(_s,{checked:l,onChange:m})]}),x.jsxs("div",{className:Qe.toggleContainer,children:[x.jsx("h2",{className:Qe.toggleText,children:"Toggle Help (E)"}),x.jsx(_s,{checked:s,onChange:h})]}),x.jsxs("div",{className:Qe.row,children:[x.jsx("button",{onClick:()=>r(),disabled:t.hitDisabled,className:Qe.button,children:"Hit (A)"}),x.jsx("button",{onClick:()=>i(),disabled:t.standDisabled,className:Qe.button,children:"Stand (S)"}),x.jsx("button",{onClick:()=>o(),disabled:t.resetDisabled,className:Qe.button,children:"New Hand (D)"})]})]})});return x.jsx(x.Fragment,{children:k()})},zy="_statusContainer_1r0kp_1",$y="_status_1r0kp_1",My="_balance_1r0kp_35",Ay="_value_1r0kp_63",xi={statusContainer:zy,status:$y,balance:My,value:Ay},Uy=({message:e})=>x.jsx("div",{className:xi.statusContainer,children:x.jsx("div",{className:xi.status,children:x.jsxs("div",{children:[x.jsx("h1",{className:xi.value,children:"Dealer says:"}),x.jsx("h3",{className:xi.value,children:e})]})})}),By=({message:e,choice:t,gameState:n,buttonState:r,playGame:i,hit:o,stand:l,resetGame:s,displayTotal:a,dealerHelp:u,dealerMessage:v,toggleDisplayTotal:m,toggleDealerHelp:h})=>x.jsxs("div",{className:Ei.statusContainer,children:[u&&x.jsx(Uy,{message:v}),x.jsxs("div",{className:Ei.status,children:[x.jsxs("div",{children:[x.jsx("h1",{className:Ei.value,children:e}),x.jsx("h1",{className:Ei.value,children:t})]}),x.jsx(Hy,{gameState:n,buttonState:r,playEvent:i,hitEvent:o,standEvent:l,resetEvent:s,displayTotal:a,dealerHelp:u,toggleDisplayTotal:m,toggleDealerHelp:h})]})]}),Fy="_handContainer_1ev8b_1",Wy="_cardContainer_1ev8b_19",Vy="_title_1ev8b_39",yl={handContainer:Fy,cardContainer:Wy,title:Vy},Yy="_card_1k8kb_1",Qy="_baseStyleRed_1k8kb_23",Gy="_baseStyleBlue_1k8kb_67",Ky="_baseStyleGreen_1k8kb_111",Xy="_baseStyleUnique_1k8kb_155",qy="_baseStyleUniqueAnimation_1k8kb_1",Jy="_gradientStyleRed_1k8kb_223",Zy="_gradientStyleBlue_1k8kb_249",e0="_gradientStyleGreen_1k8kb_275",t0="_gradientStyleUnique_1k8kb_301",n0="_gradientStyleUniqueAnimation_1k8kb_1",r0="_black_1k8kb_391",i0="_red_1k8kb_399",o0="_value_1k8kb_407",l0="_suit_1k8kb_417",s0="_hiddenCard_1k8kb_441",Pe={card:Yy,baseStyleRed:Qy,baseStyleBlue:Gy,baseStyleGreen:Ky,baseStyleUnique:Xy,baseStyleUniqueAnimation:qy,gradientStyleRed:Jy,gradientStyleBlue:Zy,gradientStyleGreen:e0,gradientStyleUnique:t0,gradientStyleUniqueAnimation:n0,black:r0,red:i0,value:o0,suit:l0,hiddenCard:s0};var Q=(e=>(e[e.RED=0]="RED",e[e.BLUE=1]="BLUE",e[e.GREEN=2]="GREEN",e[e.UNIQUE=3]="UNIQUE",e))(Q||{}),ae=(e=>(e[e.BASE=0]="BASE",e[e.GRADIENT=1]="GRADIENT",e))(ae||{});const mh=_.createContext({cardColor:0,setCardColor:()=>{},cardStyle:0,setCardStyle:()=>{}}),vh=()=>_.useContext(mh),gh=({value:e,suit:t,hidden:n})=>{const{cardColor:r,cardStyle:i}=vh(),o=()=>t==="♠"||t==="♣"?Pe.black:Pe.red,l=()=>{switch(i){case ae.BASE:switch(r){case Q.RED:return Pe.baseStyleRed;case Q.BLUE:return Pe.baseStyleBlue;case Q.GREEN:return Pe.baseStyleGreen;case Q.UNIQUE:return Pe.baseStyleUnique;default:return Pe.baseStyleRed}case ae.GRADIENT:switch(r){case Q.RED:return Pe.gradientStyleRed;case Q.BLUE:return Pe.gradientStyleBlue;case Q.GREEN:return Pe.gradientStyleGreen;case Q.UNIQUE:return Pe.gradientStyleUnique;default:return Pe.gradientStyleRed}default:return Pe.baseStyleRed}},s=()=>n?x.jsx("div",{className:l()}):x.jsx("div",{className:Pe.card,children:x.jsxs("div",{className:o(),children:[x.jsx("h1",{className:Pe.value,children:e}),x.jsx("h1",{className:Pe.suit,children:t})]})});return x.jsx(x.Fragment,{children:s()})},dc=({title:e,cards:t})=>{const n=()=>{if(t.length>0)return x.jsx("h1",{className:yl.title,children:e})};return x.jsxs("div",{className:yl.handContainer,children:[n(),x.jsx("div",{className:t.length>0?yl.cardContainer:"",children:t.map((r,i)=>x.jsx(gh,{value:r.value,suit:r.suit,hidden:r.hidden},i))})]})},a0=[{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"}],u0={cards:a0},c0="_gameBackground_19aqy_1",d0="_handSection_19aqy_17",fc={gameBackground:c0,handSection:d0},f0=()=>{let e;(P=>{P[P.bet=0]="bet",P[P.init=1]="init",P[P.userTurn=2]="userTurn",P[P.dealerTurn=3]="dealerTurn"})(e||(e={}));let t;(P=>{P[P.user=0]="user",P[P.dealer=1]="dealer",P[P.hidden=2]="hidden"})(t||(t={}));let n;(P=>{P.bet="Press Play to Start!",P.hitStand="Hit or Stand?",P.bust="Bust!",P.blackjack="Blackjack!",P.userWin="You Win!",P.dealerWin="Dealer Wins!",P.tie="Tie!"})(n||(n={}));let r;(P=>{P.noChoice="",P.underElevenHit="That was the correct choice! In this scenario, you cannot bust so it is better to hit!",P.underElevenStand="That was the wrong choice. In this scenario, you cannot bust so it is better to hit!",P.aceUnderSixHit="That was the correct choice! In this scenario, you cannot bust and have better chances of hitting 21 so it is better to hit!",P.aceUnderSixStand="That was the wrong choice. In this scenario, you cannot bust and have better chances of hitting 21 so it is better to hit!",P.aceAboveNineHit="That was the wrong choice. In this scenario, it is better to stand because the only way the dealer can beat you is if they hit 21; so your chances of winning are very high!",P.aceAboveNineStand="That was the correct choice! In this scenario, it is better to stand because the only way the dealer can beat you is if they hit 21; so your chances of winning are very high!",P.aboveSeventeenHit="That was the wrong choice. In this scenario, it is better to stand because your chances of busting are higher!",P.aboveSeventeenStand="That was the correct choice! In this scenario, it is better to stand because your chances of busting are higher!",P.aceSevenSCHit="That was the wrong choice. In this scenario, it is better to stand because the chances of the dealer having to stay at a hand lower than yours or busting are higher!",P.aceSevenSCStand="That was the correct choice! In this scenario, it is better to stand because the chances of the dealer having to stay at a hand lower than yours or busting are higher!",P.aceSevenHCHit="That was the correct choice! In this scenario, it is better to hit because the dealer will have a higher chance of having a higher hand or having to hit again so it is better to hit and take your chances!",P.aceSevenHCStand="That was the wrong choice. In this scenario, it is better to hit because the dealer will have a higher chance of having a higher hand or having to hit again so it is better to hit and take your chances!",P.aceEightSCHit="That was the wrong choice. In this scenario, it is better to stand because there are only two hands that the dealer could have to beat yours, which means they will most likely bust.",P.aceEightSCStand="That was the correct choice! In this scenario, it is better to stand because there are only two hands that the dealer could have to beat yours, which means they will most likely bust.",P.aceEightHCHit="That was the correct choice! In this scenario, it is better to hit because there are no risk in hitting and the dealer will most likely bust!",P.aceEightHCStand="That was the wrong choice. In this scenario, it is better to hit because there are no risk in hitting and the dealer will most likely bust!",P.specialTwelveSCHit="That was the wrong choice. In this scenario, it is better to stand because the dealer's chances of busting are high.",P.specialTwelveSCStand="That was the correct choice! In this scenario, it is better to stand because the dealer's chances of busting are high.",P.specialTwelveHCHit="That was the correct choice! In this scenario, it is better to hit because the dealer's chances of busting are extremely low so it is better to hit and take your chances!",P.specialTwelveHCStand="That was the wrong choice. In this scenario, it is better to hit because the dealer's chances of busting are extremely low so it is better to hit and take your chances!",P.specialTeensSCHit="That was the wrong choice. In this scenario, it is better to stand because the dealer's chances of busting are extremely high.",P.specialTeensSCStand="That was the correct choice! In this scenario, it is better to stand because the dealer's chances of busting are extremely high.",P.specialTeensHCHit="That was the correct choice! In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances.",P.specialTeensHCStand="That was the wrong choice. In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances."})(r||(r={}));let i;(P=>{P.hit="hit",P.stand="stand",P.ignore="ignore"})(i||(i={}));let o;(P=>{P.noMessage="I have no advice.",P.hitMessage="I suggest you hit.",P.standMessage="I suggest you stand."})(o||(o={}));const l=JSON.parse(JSON.stringify(u0.cards)),[s,a]=_.useState(l),[u,v]=_.useState([]),[m,h]=_.useState(0),[y,k]=_.useState(0),[S,N]=_.useState(!1),[f,c]=_.useState(!1),[d,w]=_.useState([]),[g,p]=_.useState(0),[E,C]=_.useState(0),[O,j]=_.useState(0),[D,z]=_.useState("Press Play to Start!"),[V,K]=_.useState(""),[Z,me]=_.useState("I have no advice."),[U,R]=_.useState({hitDisabled:!1,standDisabled:!1,resetDisabled:!0});_.useEffect(()=>{O===1&&(B(0),B(2),B(0),B(1),j(2),z("Hit or Stand?"),K(""))},[O]),_.useEffect(()=>{Ce(u,h),k(y+1)},[u]),_.useEffect(()=>{Ce(d,p),C(E+1)},[d]),_.useEffect(()=>{O===2&&(m===21?u.length===2?yh():(U.hitDisabled=!0,R({...U})):m>21&&dt())},[y]),_.useEffect(()=>{O===3&&(g>=17?wh():B(1))},[E]),_.useEffect(()=>{m<=21?_e("ignore"):me("I have no advice.")},[m]);const b=()=>{j(1)},L=()=>{console.clear(),a(l),v([]),h(0),k(0),w([]),p(0),C(0),j(1),z("Press Play to Start!"),K(""),R({hitDisabled:!1,standDisabled:!1,resetDisabled:!0})},B=P=>{if(s.length>0){const ne=Math.floor(Math.random()*s.length),$=s[ne];switch(s.splice(ne,1),a([...s]),console.log("Remaining Cards:",s.length),$.suit){case"spades":ve(P,$.value,"♠");break;case"diamonds":ve(P,$.value,"♦");break;case"clubs":ve(P,$.value,"♣");break;case"hearts":ve(P,$.value,"♥");break}}else alert("All cards have been drawn")},ee=P=>{N(P)},tt=P=>{c(P)},ve=(P,ne,$)=>{switch(P){case 0:u.push({value:ne,suit:$,hidden:!1}),v([...u]);break;case 1:d.push({value:ne,suit:$,hidden:!1}),w([...d]);break;case 2:d.push({value:ne,suit:$,hidden:!0}),w([...d]);break}},ct=()=>{d.filter(P=>(P.hidden===!0&&(P.hidden=!1),P)),w([...d])},Ce=(P,ne)=>{let $=0;P.forEach(Y=>{if(Y.hidden===!1&&Y.value!=="A")switch(Y.value){case"K":$+=10;break;case"Q":$+=10;break;case"J":$+=10;break;default:$+=Number(Y.value);break}});const Se=P.filter(Y=>Y.value==="A");Se.forEach(Y=>{Y.hidden===!1&&($+11>21||$+11===21&&Se.length>1?$+=1:$+=11)}),ne($)},_e=P=>{const ne=($,Se,Y)=>{P==="hit"?K($):P==="stand"?K(Se):P=="ignore"&&me(Y)};if(m<=11)ne("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($=>$.value==="A").length>=1){const $=u.filter(Y=>Y.value==="A"),Se=u.filter(Y=>Y.value!="A");if($.length>=1){let Y=0;Se.forEach(Ia=>{Ia.value=="K"?Y+=10:Y+=parseInt(Ia.value)}),$.length>=2&&(Y-=1,$.forEach(()=>{Y+=1})),Y<=6?ne("That was the correct choice! In this scenario, you cannot bust and have better chances of hitting 21 so it is better to hit!","That was the wrong choice. In this scenario, you cannot bust and have better chances of hitting 21 so it is better to hit!","I suggest you hit."):Y>=9&&Y<=10&&P=="hit"&&ne("That was the wrong choice. In this scenario, it is better to stand because the only way the dealer can beat you is if they hit 21; so your chances of winning are very high!","That was the correct choice! In this scenario, it is better to stand because the only way the dealer can beat you is if they hit 21; so your chances of winning are very high!","I suggest you stand.")}}else if(m>=17)ne("That was the wrong choice. In this scenario, it is better to stand because your chances of busting are higher!","That was the correct choice! In this scenario, it is better to stand because your chances of busting are higher!","I suggest you stand.");else if(u.filter(Se=>Se.value==="A").length>=1){let Se=0;u.forEach(Y=>{Y.value!="A"&&(Y.value==="K"?Se+=10:Se+=parseInt(Y.value))}),Se===7?g==7||g===8?ne("That was the wrong choice. In this scenario, it is better to stand because the chances of the dealer having to stay at a hand lower than yours or busting are higher!","That was the correct choice! In this scenario, it is better to stand because the chances of the dealer having to stay at a hand lower than yours or busting are higher!","I suggest you stand."):ne("That was the correct choice! In this scenario, it is better to hit because the dealer will have a higher chance of having a higher hand or having to hit again so it is better to hit and take your chances!","That was the wrong choice. In this scenario, it is better to hit because the dealer will have a higher chance of having a higher hand or having to hit again so it is better to hit and take your chances!","I suggest you hit."):Se===8&&(g==2||g===3||g===4||g===5||g===7||g===8||g===9||g===10||g===11?ne("That was the wrong choice. In this scenario, it is better to stand because there are only two hands that the dealer could have to beat yours, which means they will most likely bust.","That was the correct choice! In this scenario, it is better to stand because there are only two hands that the dealer could have to beat yours, which means they will most likely bust.","I suggest you stand."):ne("That was the correct choice! In this scenario, it is better to hit because there are no risk in hitting and the dealer will most likely bust!","That was the wrong choice. In this scenario, it is better to hit because there are no risk in hitting and the dealer will most likely bust!","I suggest you hit."))}else m===12?g===4||g===5||g===6?ne("That was the wrong choice. In this scenario, it is better to stand because the dealer's chances of busting are high.","That was the correct choice! In this scenario, it is better to stand because the dealer's chances of busting are high.","I suggest you stand."):ne("That was the correct choice! In this scenario, it is better to hit because the dealer's chances of busting are extremely low so it is better to hit and take your chances!","That was the wrong choice. In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances.","I suggest you hit."):(m===13||m===14||m===15||m===16)&&(g===2||g===3||g===4||g===5||g===6?ne("That was the wrong choice. In this scenario, it is better to stand because the dealer's chances of busting are extremely high.","That was the correct choice! In this scenario, it is better to stand because the dealer's chances of busting are extremely high.","I suggest you stand."):ne("That was the correct choice! In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances.","That was the wrong choice. In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances.","I suggest you hit."))},or=()=>{_e("hit"),B(0)},Sn=()=>{_e("stand"),U.hitDisabled=!0,U.standDisabled=!0,U.resetDisabled=!1,R({...U}),j(3),ct()},dt=()=>{U.hitDisabled=!0,U.standDisabled=!0,U.resetDisabled=!1,R({...U}),z("Bust!")},yh=()=>{U.hitDisabled=!0,U.standDisabled=!0,U.resetDisabled=!1,R({...U}),z("Blackjack!")},wh=()=>{m>g||g>21?z("You Win!"):g>m?z("Dealer Wins!"):z("Tie!")},Sh=(P,ne)=>{if(P.filter($=>$.value==="A").length>=1&&ne!=21){let $=0;if(P.map(Se=>{Se.value=="A"?$+=11:Se.value=="K"?$+=10:$+=parseInt(Se.value)}),$<=21)return`${m}/${m-10}`}return`${m}`};return x.jsxs("div",{className:fc.gameBackground,children:[x.jsx(By,{message:D,choice:V,gameState:O,buttonState:U,playGame:b,hit:or,stand:Sn,resetGame:L,displayTotal:S,dealerHelp:f,dealerMessage:Z,toggleDisplayTotal:ee,toggleDealerHelp:tt}),x.jsxs("div",{className:fc.handSection,children:[x.jsx(dc,{title:`Dealer's Hand ${S?`(${g})`:""}`,cards:d}),x.jsx(dc,{title:`Your Hand ${S?`(${Sh(u,m)})`:""}`,cards:u})]})]})};const h0=()=>{const{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r}=vh(),i=(l,s)=>e.valueOf()===l.valueOf()&&n.valueOf()===s.valueOf()?"buttonSelected":"button",o=(l,s)=>{t(l),r(s)};return x.jsxs("div",{className:"pageContainer",children:[x.jsx(gh,{value:"A",suit:"spade",hidden:!0}),x.jsxs("div",{className:"buttonsContainer",children:[x.jsxs("div",{className:"buttonGroup",children:[x.jsx("h1",{className:"buttonLabel",children:"Base"}),x.jsx("button",{className:i(Q.RED,ae.BASE),onClick:()=>o(Q.RED,ae.BASE),children:"Red"}),x.jsx("button",{className:i(Q.BLUE,ae.BASE),onClick:()=>o(Q.BLUE,ae.BASE),children:"Blue"}),x.jsx("button",{className:i(Q.GREEN,ae.BASE),onClick:()=>o(Q.GREEN,ae.BASE),children:"Green"}),x.jsx("button",{className:i(Q.UNIQUE,ae.BASE),onClick:()=>o(Q.UNIQUE,ae.BASE),children:"Unique"})]}),x.jsxs("div",{className:"buttonGroup",children:[x.jsx("h1",{className:"buttonLabel",children:"Gradient"}),x.jsx("button",{className:i(Q.RED,ae.GRADIENT),onClick:()=>o(Q.RED,ae.GRADIENT),children:"Red"}),x.jsx("button",{className:i(Q.BLUE,ae.GRADIENT),onClick:()=>o(Q.BLUE,ae.GRADIENT),children:"Blue"}),x.jsx("button",{className:i(Q.GREEN,ae.GRADIENT),onClick:()=>o(Q.GREEN,ae.GRADIENT),children:"Green"}),x.jsx("button",{className:i(Q.UNIQUE,ae.GRADIENT),onClick:()=>o(Q.UNIQUE,ae.GRADIENT),children:"Unique"})]})]})]})};const p0=()=>x.jsx("div",{className:"warningContainer",children:x.jsx("h1",{className:"text",children:"Have a gambling problem? Call here for help: 1-800-GAMBLER"})}),m0=()=>{const[e,t]=_.useState(Q.RED),[n,r]=_.useState(ae.BASE);return x.jsx("div",{className:"background-color",children:x.jsxs(mh.Provider,{value:{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r},children:[x.jsx(p0,{}),x.jsx(hy,{}),x.jsxs(Lv,{children:[x.jsx(It,{path:Af,element:x.jsx(lg,{})}),x.jsx(It,{path:Uf,element:x.jsx(vy,{})}),x.jsx(It,{path:Bf,element:x.jsx(ky,{})}),x.jsx(It,{path:Ff,element:x.jsx(Ey,{})}),x.jsx(It,{path:Ca,element:x.jsx(f0,{})}),x.jsx(It,{path:Wf,element:x.jsx(h0,{})}),x.jsx(It,{path:Yv,element:x.jsx(yy,{})})]})]})})};wl.createRoot(document.getElementById("root")).render(x.jsx(fe.StrictMode,{children:x.jsx(Av,{children:x.jsx(m0,{})})})); diff --git a/assets/index-60cb8cea.js b/assets/index-60cb8cea.js deleted file mode 100644 index 4224248..0000000 --- a/assets/index-60cb8cea.js +++ /dev/null @@ -1,100 +0,0 @@ -function dh(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function fh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ac={exports:{}},vo={},uc={exports:{}},$={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gr=Symbol.for("react.element"),hh=Symbol.for("react.portal"),ph=Symbol.for("react.fragment"),mh=Symbol.for("react.strict_mode"),gh=Symbol.for("react.profiler"),vh=Symbol.for("react.provider"),yh=Symbol.for("react.context"),wh=Symbol.for("react.forward_ref"),Sh=Symbol.for("react.suspense"),kh=Symbol.for("react.memo"),xh=Symbol.for("react.lazy"),Pa=Symbol.iterator;function Eh(e){return e===null||typeof e!="object"?null:(e=Pa&&e[Pa]||e["@@iterator"],typeof e=="function"?e:null)}var cc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dc=Object.assign,fc={};function qn(e,t,n){this.props=e,this.context=t,this.refs=fc,this.updater=n||cc}qn.prototype.isReactComponent={};qn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hc(){}hc.prototype=qn.prototype;function xs(e,t,n){this.props=e,this.context=t,this.refs=fc,this.updater=n||cc}var Es=xs.prototype=new hc;Es.constructor=xs;dc(Es,qn.prototype);Es.isPureReactComponent=!0;var Ta=Array.isArray,pc=Object.prototype.hasOwnProperty,Cs={current:null},mc={key:!0,ref:!0,__self:!0,__source:!0};function gc(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)pc.call(t,r)&&!mc.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,K=T[U];if(0>>1;Ui(ct,L))Sei(ke,ct)?(T[U]=ke,T[Se]=L,U=Se):(T[U]=ct,T[ce]=L,U=ce);else if(Sei(ke,L))T[U]=ke,T[Se]=L,U=Se;else break e}}return I}function i(T,I){var L=T.sortIndex-I.sortIndex;return L!==0?L:T.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],p=1,h=null,m=3,y=!1,k=!1,v=!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(T){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=T)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function w(T){if(v=!1,f(T),!k)if(n(a)!==null)k=!0,We(S);else{var I=n(u);I!==null&&M(w,I.startTime-T)}}function S(T,I){k=!1,v&&(v=!1,d(R),R=-1),y=!0;var L=m;try{for(f(I),h=n(a);h!==null&&(!(h.expirationTime>I)||T&&!pe());){var U=h.callback;if(typeof U=="function"){h.callback=null,m=h.priorityLevel;var K=U(h.expirationTime<=I);I=e.unstable_now(),typeof K=="function"?h.callback=K:h===n(a)&&r(a),f(I)}else r(a);h=n(a)}if(h!==null)var tt=!0;else{var ce=n(u);ce!==null&&M(w,ce.startTime-I),tt=!1}return tt}finally{h=null,m=L,y=!1}}var x=!1,C=null,R=-1,A=5,z=-1;function pe(){return!(e.unstable_now()-zT||125U?(T.sortIndex=L,t(u,T),n(a)===null&&T===n(u)&&(v?(d(R),R=-1):v=!0,M(w,L-U))):(T.sortIndex=K,t(a,T),k||y||(k=!0,We(S))),T},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(T){var I=m;return function(){var L=m;m=I;try{return T.apply(this,arguments)}finally{m=L}}}})(Sc);wc.exports=Sc;var Dh=wc.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var kc=E,Be=Dh;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wl=Object.prototype.hasOwnProperty,$h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ra={},Ia={};function Hh(e){return wl.call(Ia,e)?!0:wl.call(Ra,e)?!1:$h.test(e)?Ia[e]=!0:(Ra[e]=!0,!1)}function Ah(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Mh(e,t,n,r){if(t===null||typeof t>"u"||Ah(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Re(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new Re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new Re(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new Re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new Re(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){we[e]=new Re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new Re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new Re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new Re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new Re(e,5,!1,e.toLowerCase(),null,!1,!1)});var _s=/[\-:]([a-z])/g;function Ps(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_s,Ps);we[t]=new Re(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_s,Ps);we[t]=new Re(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_s,Ps);we[t]=new Re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new Re(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new Re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new Re(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ts(e,t,n,r){var i=we.hasOwnProperty(t)?we[t]:null;(i!==null?i.type!==0:r||!(2s||i[l]!==o[s]){var a=` -`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Bo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pr(e):""}function Uh(e){switch(e.tag){case 5:return pr(e.type);case 16:return pr("Lazy");case 13:return pr("Suspense");case 19:return pr("SuspenseList");case 0:case 2:case 15:return e=bo(e.type,!1),e;case 11:return e=bo(e.type.render,!1),e;case 1:return e=bo(e.type,!0),e;default:return""}}function El(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 Sl:return"Profiler";case js:return"StrictMode";case kl:return"Suspense";case xl: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 Rs: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:El(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return El(e(t))}catch{}}return null}function Bh(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 El(t);case 8:return t===js?"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 Gt(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 bh(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oi(e){e._valueTracker||(e._valueTracker=bh(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 Mi(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 Cl(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=Gt(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 Tc(e,t){t=t.checked,t!=null&&Ts(e,"checked",t,!1)}function Nl(e,t){Tc(e,t);var n=Gt(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")?_l(e,t.type,n):t.hasOwnProperty("defaultValue")&&_l(e,t.type,Gt(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 _l(e,t,n){(t!=="number"||Mi(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 i=0;i"+t.valueOf().toString()+"",t=li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rr(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},Fh=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){Fh.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,i=Lc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Wh=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 jl(e,t){if(t){if(Wh[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 Rl(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 Il=null;function Ls(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,$n=null,Hn=null;function Ha(e){if(e=Jr(e)){if(typeof Ll!="function")throw Error(N(280));var t=e.stateNode;t&&(t=xo(t),Ll(e.stateNode,e.type,t))}}function Oc(e){$n?Hn?Hn.push(e):Hn=[e]:$n=e}function Dc(){if($n){var e=$n,t=Hn;if(Hn=$n=null,Ha(e),t)for(e=0;e>>=0,e===0?32:31-(tp(e)/np|0)|0}var si=64,ai=4194304;function gr(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 Fi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=gr(s):(o&=l,o!==0&&(r=gr(o)))}else l=n&~i,l!==0?r=gr(l):o!==0&&(r=gr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 Kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function lp(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),Ya=String.fromCharCode(32),Qa=!1;function td(e,t){switch(e){case"keyup":return Op.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 $p(e,t){switch(e){case"compositionend":return nd(t);case"keypress":return t.which!==32?null:(Qa=!0,Ya);case"textInput":return e=t.data,e===Ya&&Qa?null:e;default:return null}}function Hp(e,t){if(Cn)return e==="compositionend"||!Us&&td(e,t)?(e=qc(),_i=Hs=$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 ld(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ld(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mi(e.document)}return t}function Bs(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 Yp(e){var t=sd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ld(n.ownerDocument.documentElement,n)){if(r!==null&&Bs(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Za(n,o);var l=Za(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Al=null,Er=null,Ml=!1;function qa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ml||Nn==null||Nn!==Mi(r)||(r=Nn,"selectionStart"in r&&Bs(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=Yi(Al,"onSelect"),0Tn||(e.current=Vl[Tn],Vl[Tn]=null,Tn--)}function V(e,t){Tn++,Vl[Tn]=e.current,e.current=t}var Kt={},_e=Jt(Kt),Oe=Jt(!1),cn=Kt;function bn(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function De(e){return e=e.childContextTypes,e!=null}function Gi(){G(Oe),G(_e)}function lu(e,t,n){if(_e.current!==Kt)throw Error(N(168));V(_e,t),V(Oe,n)}function gd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,Bh(e)||"Unknown",i));return ee({},n,r)}function Ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,cn=_e.current,V(_e,e),V(Oe,Oe.current),!0}function su(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=gd(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,G(Oe),G(_e),V(_e,e)):G(Oe),V(Oe,n)}var St=null,Eo=!1,nl=!1;function vd(e){St===null?St=[e]:St.push(e)}function im(e){Eo=!0,vd(e)}function Zt(){if(!nl&&St!==null){nl=!0;var e=0,t=b;try{var n=St;for(b=1;e>=l,i-=l,kt=1<<32-lt(t)+i|n<R?(A=C,C=null):A=C.sibling;var z=m(d,C,f[R],w);if(z===null){C===null&&(C=A);break}e&&C&&z.alternate===null&&t(d,C),c=o(z,c,R),x===null?S=z:x.sibling=z,x=z,C=A}if(R===f.length)return n(d,C),X&&qt(d,R),S;if(C===null){for(;RR?(A=C,C=null):A=C.sibling;var pe=m(d,C,z.value,w);if(pe===null){C===null&&(C=A);break}e&&C&&pe.alternate===null&&t(d,C),c=o(pe,c,R),x===null?S=pe:x.sibling=pe,x=pe,C=A}if(z.done)return n(d,C),X&&qt(d,R),S;if(C===null){for(;!z.done;R++,z=f.next())z=h(d,z.value,w),z!==null&&(c=o(z,c,R),x===null?S=z:x.sibling=z,x=z);return X&&qt(d,R),S}for(C=r(d,C);!z.done;R++,z=f.next())z=y(C,d,R,z.value,w),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?R:z.key),c=o(z,c,R),x===null?S=z:x.sibling=z,x=z);return e&&C.forEach(function(me){return t(d,me)}),X&&qt(d,R),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 ii: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=i(x,f.props.children),c.return=d,d=c;break e}}else if(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lt&&pu(S)===x.type){n(d,x.sibling),c=i(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=Oi(f.type,f.key,f.props,null,d.mode,w),w.ref=cr(d,c,f),w.return=d,d=w)}return l(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=i(c,f.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=cl(f,d.mode,w),c.return=d,d=c}return l(d);case Lt:return x=f._init,_(d,c,x(f._payload),w)}if(mr(f))return k(d,c,f,w);if(or(f))return v(d,c,f,w);mi(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,c!==null&&c.tag===6?(n(d,c.sibling),c=i(c,f),c.return=d,d=c):(n(d,c),c=ul(f,d.mode,w),c.return=d,d=c),l(d)):n(d,c)}return _}var Wn=Nd(!0),_d=Nd(!1),Zr={},vt=Jt(Zr),Ur=Jt(Zr),Br=Jt(Zr);function rn(e){if(e===Zr)throw Error(N(174));return e}function Xs(e,t){switch(V(Br,t),V(Ur,e),V(vt,Zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tl(t,e)}G(vt),V(vt,t)}function Vn(){G(vt),G(Ur),G(Br)}function Pd(e){rn(Br.current);var t=rn(vt.current),n=Tl(t,e.type);t!==n&&(V(Ur,e),V(vt,n))}function Js(e){Ur.current===e&&(G(vt),G(Ur))}var Z=Jt(0);function to(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 rl=[];function Zs(){for(var e=0;en?n:4,e(!0);var r=il.transition;il.transition={};try{e(!1),t()}finally{b=n,il.transition=r}}function Fd(){return Je().memoizedState}function am(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wd(e))Vd(t,n);else if(n=kd(e,t,n,r),n!==null){var i=Te();st(n,e,r,i),Yd(n,t,r)}}function um(e,t,n){var r=Vt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wd(e))Vd(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,ut(s,l)){var a=t.interleaved;a===null?(i.next=i,Gs(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=kd(e,t,i,r),n!==null&&(i=Te(),st(n,e,r,i),Yd(n,t,r))}}function Wd(e){var t=e.alternate;return e===q||t!==null&&t===q}function Vd(e,t){Cr=no=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Os(e,n)}}var ro={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 ht().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:gu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ri(4194308,4,Ad.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ri(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();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=ht();return e={current:e},t.memoizedState=e},useState:mu,useDebugValue:ra,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=mu(!1),t=e[0];return e=sm.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,i=ht();if(X){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),he===null)throw Error(N(349));fn&30||Rd(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gu(Ld.bind(null,r,o,e),[e]),r.flags|=2048,Wr(9,Id.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ht(),t=he.identifierPrefix;if(X){var n=xt,r=kt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=br++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[mt]=t,e[Mr]=r,tf(e,t,!1,!1),t.stateNode=e;e:{switch(l=Rl(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;iQn&&(t.flags|=128,r=!0,dr(o,!1),t.lanes=4194304)}else{if(!r)if(e=to(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),dr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!X)return Ee(t),null}else 2*ne()-o.renderingStartTime>Qn&&n!==1073741824&&(t.flags|=128,r=!0,dr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ne(),t.sibling=null,n=Z.current,V(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?Ae&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(Fs(t),t.tag){case 1:return De(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(),G(Oe),G(_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(G(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Z),null;case 4:return Vn(),null;case 10:return Qs(t.type._context),null;case 22:case 23:return ua(),null;case 24:return null;default:return null}}var vi=!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(Ul=Wi,e=sd(),Bs(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,p=0,h=e,m=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(s=l+i),h!==o||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(y=h.firstChild)!==null;)m=h,h=y;for(;;){if(h===e)break t;if(m===n&&++u===i&&(s=l),m===o&&++p===r&&(a=l),(y=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bl={focusedElem:e,selectionRange:n},Wi=!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 v=k.memoizedProps,_=k.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:rt(t.type,v),_);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 i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&rs(t,n,o)}i=i.next}while(i!==r)}}function _o(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 is(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 of(e){var t=e.alternate;t!==null&&(e.alternate=null,of(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[Wl],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 lf(e){return e.tag===5||e.tag===3||e.tag===4}function _u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lf(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 os(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=Qi));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}function ls(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(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}var ve=null,it=!1;function jt(e,t,n){for(n=n.child;n!==null;)sf(e,t,n),n=n.sibling}function sf(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(yo,n)}catch{}switch(n.tag){case 5:Ne||Ln(n,t);case 6:var r=ve,i=it;ve=null,jt(e,t,n),ve=r,it=i,ve!==null&&(it?(e=ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ve.removeChild(n.stateNode));break;case 18:ve!==null&&(it?(e=ve,n=n.stateNode,e.nodeType===8?tl(e.parentNode,n):e.nodeType===1&&tl(e,n),Or(e)):tl(ve,n.stateNode));break;case 4:r=ve,i=it,ve=n.stateNode.containerInfo,it=!0,jt(e,t,n),ve=r,it=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&rs(n,t,l),i=i.next}while(i!==r)}jt(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)}jt(e,t,n);break;case 21:jt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,jt(e,t,n),Ne=r):jt(e,t,n);break;default:jt(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 i=jm.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,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,Ht===null)var r=!1;else{if(e=Ht,Ht=null,lo=0,H&6)throw Error(N(331));var i=H;for(H|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var s=o.deletions;if(s!==null){for(var a=0;ane()-sa?ln(e,0):la|=n),$e(e,t)}function mf(e,t){t===0&&(e.mode&1?(t=ai,ai<<=1,!(ai&130023424)&&(ai=4194304)):t=1);var n=Te();e=_t(e,t),e!==null&&(Kr(e,t,n),$e(e,n))}function Tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mf(e,n)}function jm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),mf(e,n)}var gf;gf=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,gm(e,t,n);Le=!!(e.flags&131072)}else Le=!1,X&&t.flags&1048576&&yd(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ii(e,t),e=t.pendingProps;var i=bn(t,_e.current);Mn(t,n),i=ea(null,t,r,e,i,n);var o=ta();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(o=!0,Ki(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ks(t),i.updater=Co,t.stateNode=i,i._reactInternals=t,Xl(t,r,e,n),t=ql(null,t,r,!0,o,n)):(t.tag=0,X&&o&&bs(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Im(r),e=rt(r,e),i){case 0:t=Zl(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,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Zl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),xu(e,t,r,i,n);case 3:e:{if(Zd(t),e===null)throw Error(N(387));r=t.pendingProps,o=t.memoizedState,i=o.element,xd(e,t),eo(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Yn(Error(N(423)),t),t=Eu(e,t,r,n,i);break e}else if(r!==i){i=Yn(Error(N(424)),t),t=Eu(e,t,r,n,i);break e}else for(Me=bt(t.stateNode.containerInfo.firstChild),Ue=t,X=!0,ot=null,n=_d(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fn(),r===i){t=Pt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return Pd(t),e===null&&Ql(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,bl(r,i)?l=null:o!==null&&bl(r,o)&&(t.flags|=32),Jd(e,t),Pe(e,t,l,n),t.child;case 6:return e===null&&Ql(t),null;case 13:return qd(e,t,n);case 4:return Xs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wn(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Su(e,t,r,i,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,i=t.pendingProps,o=t.memoizedProps,l=i.value,V(Zi,r._currentValue),r._currentValue=l,o!==null)if(ut(o.value,l)){if(o.children===i.children&&!Oe.current){t=Pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Et(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gl(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(N(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Gl(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mn(t,n),i=Xe(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),ku(e,t,r,i,n);case 15:return Kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Ii(e,t),t.tag=1,De(r)?(e=!0,Ki(t)):e=!1,Mn(t,n),Cd(t,r,i),Xl(t,r,i,n),ql(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 vf(e,t){return bc(e,t)}function Rm(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 Ge(e,t,n,r){return new Rm(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===Rs)return 11;if(e===Is)return 14}return 2}function Yt(e,t){var n=e.alternate;return n===null?(n=Ge(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 Oi(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")da(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case En:return sn(n.children,i,o,t);case js:l=8,i|=8;break;case Sl:return e=Ge(12,n,t,i|2),e.elementType=Sl,e.lanes=o,e;case kl:return e=Ge(13,n,t,i),e.elementType=kl,e.lanes=o,e;case xl:return e=Ge(19,n,t,i),e.elementType=xl,e.lanes=o,e;case Nc:return To(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ec:l=10;break e;case Cc:l=9;break e;case Rs:l=11;break e;case Is:l=14;break e;case Lt:l=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ge(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function To(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Nc,e.lanes=n,e.stateNode={isHidden:!1},e}function ul(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function cl(e,t,n){return t=Ge(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,i){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=Wo(0),this.expirationTimes=Wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fa(e,t,n,r,i,o,l,s,a){return e=new Lm(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ge(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ks(o),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 Am=yc.exports,Du=Am;yl.createRoot=Du.createRoot,yl.hydrateRoot=Du.hydrateRoot;/** - * @remix-run/router v1.9.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ga(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 Hu(e,t){return{usr:e.state,key:e.key,idx:t}}function ds(e,t,n,r){return n===void 0&&(n=null),Yr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nr(t):t,{state:n,key:t&&t.key||r||Um()})}function uo(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 Bm(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,s=At.Pop,a=null,u=p();u==null&&(u=0,l.replaceState(Yr({},l.state,{idx:u}),""));function p(){return(l.state||{idx:null}).idx}function h(){s=At.Pop;let _=p(),d=_==null?null:_-u;u=_,a&&a({action:s,location:v.location,delta:d})}function m(_,d){s=At.Push;let c=ds(v.location,_,d);n&&n(c,_),u=p()+1;let f=Hu(c,u),w=v.createHref(c);try{l.pushState(f,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(w)}o&&a&&a({action:s,location:v.location,delta:1})}function y(_,d){s=At.Replace;let c=ds(v.location,_,d);n&&n(c,_),u=p();let f=Hu(c,u),w=v.createHref(c);l.replaceState(f,"",w),o&&a&&a({action:s,location:v.location,delta:0})}function k(_){let d=i.location.origin!=="null"?i.location.origin:i.location.href,c=typeof _=="string"?_:uo(_);return le(d,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,d)}let v={get action(){return s},get location(){return e(i,l)},listen(_){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener($u,h),a=_,()=>{i.removeEventListener($u,h),a=null}},createHref(_){return t(i,_)},createURL:k,encodeLocation(_){let d=k(_);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:y,go(_){return l.go(_)}};return v}var Au;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Au||(Au={}));function bm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nr(t):t,i=va(r.pathname||"/",n);if(i==null)return null;let o=xf(e);Fm(o);let l=null;for(let s=0;l==null&&s{let a={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};a.relativePath.startsWith("/")&&(le(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=Qt([r,a.relativePath]),p=n.concat(a);o.children&&o.children.length>0&&(le(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xf(o.children,t,p,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Xm(u,o.index),routesMeta:p})};return e.forEach((o,l)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,l);else for(let a of Ef(o.path))i(o,l,a)}),t}function Ef(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=Ef(r.join("/")),s=[];return s.push(...l.map(a=>a===""?o:[o,a].join("/"))),i&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Fm(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 Wm=/^:\w+$/,Vm=3,Ym=2,Qm=1,Gm=10,Km=-2,Mu=e=>e==="*";function Xm(e,t){let n=e.split("/"),r=n.length;return n.some(Mu)&&(r+=Km),t&&(r+=Ym),n.filter(i=>!Mu(i)).reduce((i,o)=>i+(Wm.test(o)?Vm:o===""?Qm:Gm),r)}function Jm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Zm(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{if(p==="*"){let m=s[h]||"";l=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}return u[p]=ng(s[h]||"",p),u},{}),pathname:o,pathnameBase:l,pattern:e}}function eg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ga(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function tg(e){try{return decodeURI(e)}catch(t){return ga(!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 ng(e,t){try{return decodeURIComponent(e)}catch(n){return ga(!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 va(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 rg(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?nr(e):e;return{pathname:n?n.startsWith("/")?n:ig(n,t):t,search:lg(r),hash:sg(i)}}function ig(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function dl(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 i;typeof e=="string"?i=nr(e):(i=Yr({},e),le(!i.pathname||!i.pathname.includes("?"),dl("?","pathname","search",i)),le(!i.pathname||!i.pathname.includes("#"),dl("#","pathname","hash",i)),le(!i.search||!i.search.includes("#"),dl("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,s;if(r||l==null)s=n;else{let h=t.length-1;if(l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}s=h>=0?t[h]:"/"}let a=rg(i,s),u=l&&l!=="/"&&l.endsWith("/"),p=(o||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||p)&&(a.pathname+="/"),a}const Qt=e=>e.join("/").replace(/\/\/+/g,"/"),og=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ag(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 ug=["get",..._f];new Set(ug);/** - * React Router v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),l=E.useRef(!1);return jf(()=>{l.current=!0}),E.useCallback(function(a,u){if(u===void 0&&(u={}),!l.current)return;if(typeof a=="number"){n.go(a);return}let p=Nf(a,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Qt([t,p.pathname])),(u.replace?n.replace:n.push)(p,u.state,u)},[t,n,o,i,e])}function wa(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=E.useContext(yn),{pathname:i}=ei(),o=JSON.stringify(Cf(r).map(l=>l.pathnameBase));return E.useMemo(()=>Nf(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function fg(e,t){return hg(e,t)}function hg(e,t,n){qr()||le(!1);let{navigator:r}=E.useContext(vn),{matches:i}=E.useContext(yn),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let a=ei(),u;if(t){var p;let v=typeof t=="string"?nr(t):t;s==="/"||(p=v.pathname)!=null&&p.startsWith(s)||le(!1),u=v}else u=a;let h=u.pathname||"/",m=s==="/"?h:h.slice(s.length)||"/",y=bm(e,{pathname:m}),k=yg(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Qt([s,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:Qt([s,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n);return t&&k?E.createElement(zo.Provider,{value:{location:co({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:At.Pop}},k):k}function pg(){let e=xg(),t=ag(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,o)}const mg=E.createElement(pg,null);class gg extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?E.createElement(yn.Provider,{value:this.props.routeContext},E.createElement(Tf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vg(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(ya);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(yn.Provider,{value:t},r)}function yg(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let s=o.findIndex(a=>a.route.id&&(l==null?void 0:l[a.route.id]));s>=0||le(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,a,u)=>{let p=a.route.id?l==null?void 0:l[a.route.id]:null,h=null;n&&(h=a.route.errorElement||mg);let m=t.concat(o.slice(0,u+1)),y=()=>{let k;return p?k=h:a.route.Component?k=E.createElement(a.route.Component,null):a.route.element?k=a.route.element:k=s,E.createElement(vg,{match:a,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:k})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?E.createElement(gg,{location:n.location,revalidation:n.revalidation,component:h,error:p,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var If=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(If||{}),fo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fo||{});function wg(e){let t=E.useContext(ya);return t||le(!1),t}function Sg(e){let t=E.useContext(Pf);return t||le(!1),t}function kg(e){let t=E.useContext(yn);return t||le(!1),t}function Lf(e){let t=kg(),n=t.matches[t.matches.length-1];return n.route.id||le(!1),n.route.id}function xg(){var e;let t=E.useContext(Tf),n=Sg(fo.UseRouteError),r=Lf(fo.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Eg(){let{router:e}=wg(If.UseNavigateStable),t=Lf(fo.UseNavigateStable),n=E.useRef(!1);return jf(()=>{n.current=!0}),E.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,co({fromRouteId:t},o)))},[e,t])}function Rt(e){le(!1)}function Cg(e){let{basename:t="/",children:n=null,location:r,navigationType:i=At.Pop,navigator:o,static:l=!1}=e;qr()&&le(!1);let s=t.replace(/^\/*/,"/"),a=E.useMemo(()=>({basename:s,navigator:o,static:l}),[s,o,l]);typeof r=="string"&&(r=nr(r));let{pathname:u="/",search:p="",hash:h="",state:m=null,key:y="default"}=r,k=E.useMemo(()=>{let v=va(u,s);return v==null?null:{location:{pathname:v,search:p,hash:h,state:m,key:y},navigationType:i}},[s,u,p,h,m,y,i]);return k==null?null:E.createElement(vn.Provider,{value:a},E.createElement(zo.Provider,{children:n,value:k}))}function Ng(e){let{children:t,location:n}=e;return fg(fs(t),n)}new Promise(()=>{});function fs(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let o=[...t,i];if(r.type===E.Fragment){n.push.apply(n,fs(r.props.children,o));return}r.type!==Rt&&le(!1),!r.props.index||!r.props.children||le(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=fs(r.props.children,o)),n.push(l)}),n}/** - * React Router DOM v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function _g(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pg(e,t){return e.button===0&&(!t||t==="_self")&&!_g(e)}const Tg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],jg=["aria-current","caseSensitive","className","end","style","to","children"],Rg="startTransition",Uu=Th[Rg];function Ig(e){let{basename:t,children:n,future:r,window:i}=e,o=E.useRef();o.current==null&&(o.current=Mm({window:i,v5Compat:!0}));let l=o.current,[s,a]=E.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},p=E.useCallback(h=>{u&&Uu?Uu(()=>a(h)):a(h)},[a,u]);return E.useLayoutEffect(()=>l.listen(p),[l,p]),E.createElement(Cg,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l})}const Lg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Og=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:s,target:a,to:u,preventScrollReset:p}=t,h=zf(t,Tg),{basename:m}=E.useContext(vn),y,k=!1;if(typeof u=="string"&&zg.test(u)&&(y=u,Lg))try{let c=new URL(window.location.href),f=u.startsWith("//")?new URL(c.protocol+u):new URL(u),w=va(f.pathname,m);f.origin===c.origin&&w!=null?u=w+f.search+f.hash:k=!0}catch{}let v=cg(u,{relative:i}),_=$g(u,{replace:l,state:s,target:a,preventScrollReset:p,relative:i});function d(c){r&&r(c),c.defaultPrevented||_(c)}return E.createElement("a",ho({},h,{href:y||v,onClick:k||o?r:d,ref:n,target:a}))}),Dg=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:l=!1,style:s,to:a,children:u}=t,p=zf(t,jg),h=wa(a,{relative:p.relative}),m=ei(),y=E.useContext(Pf),{navigator:k}=E.useContext(vn),v=k.encodeLocation?k.encodeLocation(h).pathname:h.pathname,_=m.pathname,d=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(_=_.toLowerCase(),d=d?d.toLowerCase():null,v=v.toLowerCase());let c=_===v||!l&&_.startsWith(v)&&_.charAt(v.length)==="/",f=d!=null&&(d===v||!l&&d.startsWith(v)&&d.charAt(v.length)==="/"),w=c?r:void 0,S;typeof o=="function"?S=o({isActive:c,isPending:f}):S=[o,c?"active":null,f?"pending":null].filter(Boolean).join(" ");let x=typeof s=="function"?s({isActive:c,isPending:f}):s;return E.createElement(Og,ho({},p,{"aria-current":w,className:S,ref:n,style:x,to:a}),typeof u=="function"?u({isActive:c,isPending:f}):u)});var Bu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Bu||(Bu={}));var bu;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bu||(bu={}));function $g(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l}=t===void 0?{}:t,s=Rf(),a=ei(),u=wa(e,{relative:l});return E.useCallback(p=>{if(Pg(p,n)){p.preventDefault();let h=r!==void 0?r:uo(a)===uo(u);s(e,{replace:h,state:i,preventScrollReset:o,relative:l})}},[a,s,u,r,i,n,e,o,l])}const Of="/blackjack_probability",Df="/blackjack_probability/about-us",$f="/blackjack_probability/charts",Hf="/blackjack_probability/terms",Sa="/blackjack_probability/game",Af="/blackjack_probability/customize",Hg="*",Ag=()=>{const e=Rf(),t=()=>{e(Sa)},n=()=>{e(Af)};return g.jsx("div",{className:"background",children:g.jsxs("div",{className:"titleHolder",children:[g.jsx("h1",{className:"title",children:"Blackjack Probability"}),g.jsx("p",{className:"info",children:"Ever wanted to learn how to become a true professional at Blackjack? Well click 'Play' below to get started!"}),g.jsxs("div",{className:"row",children:[g.jsx("button",{className:"btn-hover",onClick:t,children:"Play the Game"}),g.jsx("button",{className:"btn-hover",onClick:n,children:"Customize Table"})]})]})})};const Mg="/blackjack_probability/assets/HomePage1-5cae91d8.png",Ug="/blackjack_probability/assets/HomePage2-91b77c51.png",Bg="/blackjack_probability/assets/HomePage3-a31c86df.png",bg="/blackjack_probability/assets/HomePage4-10ab7789.png",Fg=()=>g.jsxs("div",{className:"container",children:[g.jsxs("div",{className:"subContainer",children:[g.jsx("p",{className:"titleText",children:"Play Blackjack in a risk free environment!"}),g.jsx("img",{className:"image",src:Mg})]}),g.jsxs("div",{className:"subContainer",children:[g.jsx("img",{className:"image",src:Ug}),g.jsx("p",{className:"titleText",children:"Learn basic strategy with our Dealer AI!"})]}),g.jsxs("div",{className:"subContainer",children:[g.jsx("p",{className:"titleText",children:"Map out strategies with the charts and learn basic Blackjack terms!"}),g.jsx("img",{className:"image",src:Bg})]}),g.jsxs("div",{className:"subContainer",children:[g.jsx("img",{className:"image",src:bg}),g.jsx("p",{className:"titleText",children:"Customize your playing area to your own liking!"})]})]}),Wg=()=>g.jsxs("div",{children:[g.jsx(Ag,{}),g.jsx(Fg,{})]});var ze=function(){return ze=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?fe(rr,--Ze):0,Kn--,ie===10&&(Kn=1,Do--),ie}function at(){return ie=Ze2||ps(ie)>3?"":" "}function tv(e,t){for(;--t&&at()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return Ho(e,$i()+(t<6&&an()==32&&at()==32))}function ms(e){for(;at();)switch(ie){case e:return Ze;case 34:case 39:e!==34&&e!==39&&ms(ie);break;case 40:e===41&&ms(e);break;case 92:at();break}return Ze}function nv(e,t){for(;at()&&e+ie!==47+10;)if(e+ie===42+42&&an()===47)break;return"/*"+Ho(t,Ze-1)+"*"+xa(e===47?e:at())}function rv(e){for(;!ps(an());)at();return Ho(e,Ze)}function iv(e){return qg(Hi("",null,null,null,[""],e=Zg(e),0,[0],e))}function Hi(e,t,n,r,i,o,l,s,a){for(var u=0,p=0,h=l,m=0,y=0,k=0,v=1,_=1,d=1,c=0,f="",w=i,S=o,x=r,C=f;_;)switch(k=c,c=at()){case 40:if(k!=108&&fe(C,h-1)==58){Di(C+=O(fl(c),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:C+=fl(c);break;case 9:case 10:case 13:case 32:C+=ev(k);break;case 92:C+=tv($i()-1,7);continue;case 47:switch(an()){case 42:case 47:yr(ov(nv(at(),$i()),t,n,a),a);break;default:C+="/"}break;case 123*v:s[u++]=pt(C)*d;case 125*v:case 59:case 0:switch(c){case 0:case 125:_=0;case 59+p:d==-1&&(C=O(C,/\f/g,"")),y>0&&pt(C)-h&&yr(y>32?Vu(C+";",r,n,h-1,a):Vu(O(C," ","")+";",r,n,h-2,a),a);break;case 59:C+=";";default:if(yr(x=Wu(C,t,n,u,p,i,s,f,w=[],S=[],h,o),o),c===123)if(p===0)Hi(C,t,x,x,w,o,h,s,S);else switch(m===99&&fe(C,3)===110?100:m){case 100:case 108:case 109:case 115:Hi(e,x,x,r&&yr(Wu(e,x,x,0,0,i,s,f,i,w=[],h,S),S),i,S,h,s,r?w:S);break;default:Hi(C,x,x,x,[""],S,0,s,S)}}u=p=y=0,v=d=1,f=C="",h=l;break;case 58:h=1+pt(C),y=k;default:if(v<1){if(c==123)--v;else if(c==125&&v++==0&&Jg()==125)continue}switch(C+=xa(c),c*v){case 38:d=p>0?1:(C+="\f",-1);break;case 44:s[u++]=(pt(C)-1)*d,d=1;break;case 64:an()===45&&(C+=fl(at())),m=an(),p=h=pt(f=C+=rv($i())),c++;break;case 45:k===45&&pt(C)==2&&(v=0)}}return o}function Wu(e,t,n,r,i,o,l,s,a,u,p,h){for(var m=i-1,y=i===0?o:[""],k=bf(y),v=0,_=0,d=0;v0?y[c]+" "+f:O(f,/&\f/g,y[c])))&&(a[d++]=w);return $o(e,t,n,i===0?Oo:s,a,u,p,h)}function ov(e,t,n,r){return $o(e,t,n,Mf,xa(Xg()),Gn(e,2,-2),0,r)}function Vu(e,t,n,r,i){return $o(e,t,n,ka,Gn(e,0,r),Gn(e,r+1,-1),r,i)}function Wf(e,t,n){switch(Gg(e,t)){case 5103:return B+"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 B+e+e;case 4789:return Tr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+Tr+e+Q+e+e;case 5936:switch(fe(e,t+11)){case 114:return B+e+Q+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+Q+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+Q+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return B+e+Q+e+e;case 6165:return B+e+Q+"flex-"+e+e;case 5187:return B+e+O(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return B+e+Q+"flex-item-"+O(e,/flex-|-self/g,"")+(wt(e,/flex-|baseline/)?"":Q+"grid-row-"+O(e,/flex-|-self/g,""))+e;case 4675:return B+e+Q+"flex-line-pack"+O(e,/align-content|flex-|-self/g,"")+e;case 5548:return B+e+Q+O(e,"shrink","negative")+e;case 5292:return B+e+Q+O(e,"basis","preferred-size")+e;case 6060:return B+"box-"+O(e,"-grow","")+B+e+Q+O(e,"grow","positive")+e;case 4554:return B+O(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4200:if(!wt(e,/flex-|baseline/))return Q+"grid-column-align"+Gn(e,t)+e;break;case 2592:case 3360:return Q+O(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,wt(r.props,/grid-\w+-end/)})?~Di(e+(n=n[t].value),"span")?e:Q+O(e,"-start","")+e+Q+"grid-row-span:"+(~Di(n,"span")?wt(n,/\d+/):+wt(n,/\d+/)-+wt(e,/\d+/))+";":Q+O(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return wt(r.props,/grid-\w+-start/)})?e:Q+O(O(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,B+"$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(pt(e)-1-t>6)switch(fe(e,t+1)){case 109:if(fe(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+Tr+(fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Di(e,"stretch")?Wf(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,i,o,l,s,a,u){return Q+i+":"+o+u+(l?Q+i+"-span:"+(s?a:+a-+o)+u:"")+e});case 4949:if(fe(e,t+6)===121)return O(e,":",":"+B)+e;break;case 6444:switch(fe(e,fe(e,14)===45?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+B+(fe(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+Q+"$2box$3")+e;case 100:return O(e,":",":"+Q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,"scroll-","scroll-snap-")+e}return e}function mo(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case ka:e.return=Wf(e.value,e.length,n);return;case Uf:return mo([It(e,{value:O(e.value,"@","@"+B)})],r);case Oo:if(e.length)return Kg(n=e.props,function(i){switch(wt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kn(It(e,{props:[O(i,/:(read-\w+)/,":"+Tr+"$1")]})),kn(It(e,{props:[i]})),hs(e,{props:Fu(n,r)});break;case"::placeholder":kn(It(e,{props:[O(i,/:(plac\w+)/,":"+B+"input-$1")]})),kn(It(e,{props:[O(i,/:(plac\w+)/,":"+Tr+"$1")]})),kn(It(e,{props:[O(i,/:(plac\w+)/,Q+"input-$1")]})),kn(It(e,{props:[i]})),hs(e,{props:Fu(n,r)});break}return""})}}var cv={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,dv=!!(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),Ao=Object.freeze([]),Jn=Object.freeze({});function fv(e,t,n){return n===void 0&&(n=Jn),e.theme!==n.theme&&e.theme||t||n.theme}var Vf=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"]),hv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pv=/(^-|-$)/g;function Yu(e){return e.replace(hv,"-").replace(pv,"")}var mv=/(a)(d)/gi,Qu=function(e){return String.fromCharCode(e+(e>25?39:97))};function gs(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Qu(t%52)+n;return(Qu(t%52)+n).replace(mv,"$1-$2")}var hl,On=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Yf=function(e){return On(5381,e)};function gv(e){return gs(Yf(e)>>>0)}function vv(e){return e.displayName||e.name||"Component"}function pl(e){return typeof e=="string"&&!0}var Qf=typeof Symbol=="function"&&Symbol.for,Gf=Qf?Symbol.for("react.memo"):60115,yv=Qf?Symbol.for("react.forward_ref"):60112,wv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Sv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Kf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kv=((hl={})[yv]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hl[Gf]=Kf,hl);function Gu(e){return("type"in(t=e)&&t.type.$$typeof)===Gf?Kf:"$$typeof"in e?kv[e.$$typeof]:wv;var t}var xv=Object.defineProperty,Ev=Object.getOwnPropertyNames,Ku=Object.getOwnPropertySymbols,Cv=Object.getOwnPropertyDescriptor,Nv=Object.getPrototypeOf,Xu=Object.prototype;function Xf(e,t,n){if(typeof t!="string"){if(Xu){var r=Nv(t);r&&r!==Xu&&Xf(e,r,n)}var i=Ev(t);Ku&&(i=i.concat(Ku(t)));for(var o=Gu(e),l=Gu(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var _v=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,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw ti(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var l=i;l=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,l=i;l=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(v,'{content:"').concat(_,'"}').concat(`/*!sc*/ -`)},p=0;p0?".".concat(t):m},p=a.slice();p.push(function(m){m.type===Oo&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(Hv,n).replace(r,u))}),l.prefix&&p.push(uv),p.push(lv);var h=function(m,y,k,v){y===void 0&&(y=""),k===void 0&&(k=""),v===void 0&&(v="&"),t=v,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var _=m.replace(Av,""),d=iv(k||y?"".concat(k," ").concat(y," { ").concat(_," }"):_);l.namespace&&(d=qf(d,l.namespace));var c=[];return mo(d,sv(p.concat(av(function(f){return c.push(f)})))),c};return h.hash=a.length?a.reduce(function(m,y){return y.name||ti(15),On(m,y.name)},5381).toString():"",h}var Uv=new Zf,ys=Mv(),eh=se.createContext({shouldForwardProp:void 0,styleSheet:Uv,stylis:ys});eh.Consumer;se.createContext(void 0);function qu(){return E.useContext(eh)}var Bv=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=ys);var l=r.name+o.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,o(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Na(this,function(){throw ti(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ys),this.name+t.hash},e}(),bv=function(e){return e>="A"&&e<="Z"};function ec(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,l)){var s=r(o,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,s)}i=on(i,l),this.staticRulesId=l}else{for(var a=On(this.baseHash,r.hash),u="",p=0;p>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),i=on(i,y)}}return i},e}(),rh=se.createContext(void 0);rh.Consumer;var gl={};function Yv(e,t,n){var r=Ca(e),i=e,o=!pl(e),l=t.attrs,s=l===void 0?Ao:l,a=t.componentId,u=a===void 0?function(f,w){var S=typeof f!="string"?"sc":Yu(f);gl[S]=(gl[S]||0)+1;var x="".concat(S,"-").concat(gv("6.0.8"+S+gl[S]));return w?"".concat(w,"-").concat(x):x}(t.displayName,t.parentComponentId):a,p=t.displayName;p===void 0&&function(f){return pl(f)?"styled.".concat(f):"Styled(".concat(vv(f),")")}(e);var h=t.displayName&&t.componentId?"".concat(Yu(t.displayName),"-").concat(t.componentId):t.componentId||u,m=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var k=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;y=function(f,w){return k(f,w)&&v(f,w)}}else y=k}var _=new Vv(n,h,r?i.componentStyle:void 0);function d(f,w){return function(S,x,C){var R=S.attrs,A=S.componentStyle,z=S.defaultProps,pe=S.foldedComponentIds,me=S.styledComponentId,qe=S.target,et=se.useContext(rh),He=qu(),We=S.shouldForwardProp||He.shouldForwardProp,M=function(tt,ce,ct){for(var Se,ke=ze(ze({},ce),{className:void 0,theme:ct}),ir=0;irg.jsx(g.Fragment,{children:g.jsxs(Gv,{children:[g.jsx(Xv,{children:"The Gamblers Inc."}),g.jsxs(Kv,{children:[g.jsx(hr,{to:Of,end:!0,children:"Home"}),g.jsx(hr,{to:Sa,children:"Play the Game"}),g.jsx(hr,{to:Df,children:"About Us"}),g.jsx(hr,{to:$f,children:"Charts"}),g.jsx(hr,{to:Hf,children:"Terms"})]})]})}),Zv="/blackjack_probability/assets/AboutUs1-fd477dc8.png",qv="/blackjack_probability/assets/AboutUs2-9f0e362a.png";const ey=()=>g.jsx("div",{className:"container",children:g.jsxs("div",{className:"column",children:[g.jsxs("div",{className:"about-row",children:[g.jsx("div",{className:"column",children:g.jsxs("div",{className:"text-holder",children:[g.jsx("h1",{className:"about-header",children:"Who are we?"}),g.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."})]})}),g.jsx("img",{src:Zv})]}),g.jsxs("div",{className:"about-row",children:[g.jsx("img",{src:qv}),g.jsx("div",{className:"column",children:g.jsxs("div",{className:"text-holder",children:[g.jsx("h1",{className:"about-header",children:"What is the purpose of this website?"}),g.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=()=>g.jsx("div",{className:"errorContainer",children:g.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"]}]},iy=["2","3","4","5","6","7","8","9","10","A"],rc={chart1:ry,dealerRow:iy},oy=()=>{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 g.jsxs("div",{className:"table-container",children:[g.jsxs("table",{className:"chart-table",children:[g.jsxs("tr",{children:[g.jsx("th",{children:`Dealer's Card -Your Hand`}),t.map((r,i)=>g.jsx("th",{children:r},i))]}),e.data.map((r,i)=>g.jsxs("tr",{children:[g.jsx("th",{children:r.label}),r.value.map(o=>g.jsx("td",{style:{backgroundColor:n(o)},children:o}))]},i))]}),g.jsxs("table",{className:"chart-table",children:[g.jsxs("tr",{children:[g.jsx("th",{children:"Your Hand\\Dealer's Card"}),t.map((r,i)=>g.jsx("th",{children:r},i))]}),e.data2.map((r,i)=>g.jsxs("tr",{children:[g.jsx("th",{children:r.label}),r.value.map(o=>g.jsx("td",{style:{backgroundColor:n(o)},children:o}))]},i))]})]})};const ly=()=>{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 g.jsx("div",{className:"term-container",children:e.map((t,n)=>g.jsxs("div",{className:"term-row",children:[g.jsxs("h1",{className:"term-text",children:[t.term,":"]}),g.jsx("p",{className:"term-text",children:t.definition})]},n))})},sy="_statusContainer_k74mu_1",ay="_status_k74mu_1",uy="_value_k74mu_35",ki={statusContainer:sy,status:ay,value:uy},cy="_controlsContainer_wdpsv_1",dy="_toggleContainer_wdpsv_13",fy="_toggleText_wdpsv_25",hy="_row_wdpsv_33",py="_column_wdpsv_45",my="_button_wdpsv_57",gy="_betContainer_wdpsv_117",Ve={controlsContainer:cy,toggleContainer:dy,toggleText:fy,row:hy,column:py,button:my,betContainer:gy};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,i=n.disabled,o=n.className,l=n.offColor,s=n.onColor,a=n.offHandleColor,u=n.onHandleColor,p=n.checkedIcon,h=n.uncheckedIcon,m=n.checkedHandleIcon,y=n.uncheckedHandleIcon,k=n.boxShadow,v=n.activeBoxShadow,_=n.height,d=n.width,c=n.borderRadius,f=function(He,We){var M={};for(var T in He)Object.prototype.hasOwnProperty.call(He,T)&&We.indexOf(T)===-1&&(M[T]=He[T]);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,R={position:"relative",display:"inline-block",textAlign:"left",opacity:i?.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"},A={height:_,width:d,margin:Math.max(0,(this.t-_)/2),position:"relative",background:oc(S,this.i,this.o,l,s),borderRadius:typeof c=="number"?c:_/2,cursor:i?"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"},pe={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:oc(S,this.i,this.o,a,u),display:"inline-block",cursor:i?"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?v: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:o,style:R},se.createElement("div",{className:"react-switch-bg",style:A,onClick:i?null:this.T,onMouseDown:function(He){return He.preventDefault()}},p&&se.createElement("div",{style:z},p),h&&se.createElement("div",{style:pe},h)),se.createElement("div",{className:"react-switch-handle",style:me,onClick:function(He){return He.preventDefault()},onMouseDown:i?null:this.p,onTouchStart:i?null:this.k,onTouchMove:i?null:this.m,onTouchEnd:i?null:this.M,onTouchCancel:i?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:i,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:vy,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 i=E.useCallback(o=>{e.some(l=>o.key===l)&&r.current(o)},[e]);E.useEffect(()=>{const o=n??document;return o&&o.addEventListener("keydown",i),()=>o&&o.removeEventListener("keydown",i)},[i,n])},Sy=({gameState:e,buttonState:t,playEvent:n,hitEvent:r,standEvent:i,resetEvent:o,displayTotal:l,dealerHelp:s,toggleDisplayTotal:a,toggleDealerHelp:u})=>{const p=()=>{n()},h=v=>{a(v)},m=v=>{u(v)};wy(["a","s","d","w","e"],v=>{v.key==="a"&&!t.hitDisabled?r():v.key==="s"&&!t.standDisabled?i():v.key==="d"&&!t.resetDisabled?o():v.key==="w"?h(!l):v.key==="e"&&m(!s)});const k=()=>e===0?g.jsx("div",{className:Ve.controlsContainer,children:g.jsx("button",{onClick:()=>p(),className:Ve.button,children:"Play"})}):g.jsx("div",{className:Ve.controlsContainer,children:g.jsxs("div",{className:Ve.column,children:[g.jsxs("div",{className:Ve.toggleContainer,children:[g.jsx("h2",{className:Ve.toggleText,children:"Toggle Total (W)"}),g.jsx(ks,{checked:l,onChange:h})]}),g.jsxs("div",{className:Ve.toggleContainer,children:[g.jsx("h2",{className:Ve.toggleText,children:"Toggle Help (E)"}),g.jsx(ks,{checked:s,onChange:m})]}),g.jsxs("div",{className:Ve.row,children:[g.jsx("button",{onClick:()=>r(),disabled:t.hitDisabled,className:Ve.button,children:"Hit (A)"}),g.jsx("button",{onClick:()=>i(),disabled:t.standDisabled,className:Ve.button,children:"Stand (S)"}),g.jsx("button",{onClick:()=>o(),disabled:t.resetDisabled,className:Ve.button,children:"New Hand (D)"})]})]})});return g.jsx(g.Fragment,{children:k()})},ky="_statusContainer_1r0kp_1",xy="_status_1r0kp_1",Ey="_balance_1r0kp_35",Cy="_value_1r0kp_63",xi={statusContainer:ky,status:xy,balance:Ey,value:Cy},Ny=({message:e})=>g.jsx("div",{className:xi.statusContainer,children:g.jsx("div",{className:xi.status,children:g.jsxs("div",{children:[g.jsx("h1",{className:xi.value,children:"Dealer says:"}),g.jsx("h3",{className:xi.value,children:e})]})})}),_y=({message:e,choice:t,gameState:n,buttonState:r,playGame:i,hit:o,stand:l,resetGame:s,displayTotal:a,dealerHelp:u,dealerMessage:p,toggleDisplayTotal:h,toggleDealerHelp:m})=>g.jsxs("div",{className:ki.statusContainer,children:[u&&g.jsx(Ny,{message:p}),g.jsxs("div",{className:ki.status,children:[g.jsxs("div",{children:[g.jsx("h1",{className:ki.value,children:e}),g.jsx("h1",{className:ki.value,children:t})]}),g.jsx(Sy,{gameState:n,buttonState:r,playEvent:i,hitEvent:o,standEvent:l,resetEvent:s,displayTotal:a,dealerHelp:u,toggleDisplayTotal:h,toggleDealerHelp:m})]})]}),Py="_handContainer_1ev8b_1",Ty="_cardContainer_1ev8b_19",jy="_title_1ev8b_39",vl={handContainer:Py,cardContainer:Ty,title:jy},Ry="_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",Hy="_gradientStyleBlue_1k8kb_249",Ay="_gradientStyleGreen_1k8kb_275",My="_gradientStyleUnique_1k8kb_301",Uy="_gradientStyleUniqueAnimation_1k8kb_1",By="_black_1k8kb_391",by="_red_1k8kb_399",Fy="_value_1k8kb_407",Wy="_suit_1k8kb_417",Vy="_hiddenCard_1k8kb_441",Ce={card:Ry,baseStyleRed:Iy,baseStyleBlue:Ly,baseStyleGreen:zy,baseStyleUnique:Oy,baseStyleUniqueAnimation:Dy,gradientStyleRed:$y,gradientStyleBlue:Hy,gradientStyleGreen:Ay,gradientStyleUnique:My,gradientStyleUniqueAnimation:Uy,black:By,red:by,value:Fy,suit:Wy,hiddenCard:Vy};var W=(e=>(e[e.RED=0]="RED",e[e.BLUE=1]="BLUE",e[e.GREEN=2]="GREEN",e[e.UNIQUE=3]="UNIQUE",e))(W||{}),re=(e=>(e[e.BASE=0]="BASE",e[e.GRADIENT=1]="GRADIENT",e))(re||{});const oh=E.createContext({cardColor:0,setCardColor:()=>{},cardStyle:0,setCardStyle:()=>{}}),lh=()=>E.useContext(oh),sh=({value:e,suit:t,hidden:n})=>{const{cardColor:r,cardStyle:i}=lh(),o=()=>t==="♠"||t==="♣"?Ce.black:Ce.red,l=()=>{switch(i){case re.BASE:switch(r){case W.RED:return Ce.baseStyleRed;case W.BLUE:return Ce.baseStyleBlue;case W.GREEN:return Ce.baseStyleGreen;case W.UNIQUE:return Ce.baseStyleUnique;default:return Ce.baseStyleRed}case re.GRADIENT:switch(r){case W.RED:return Ce.gradientStyleRed;case W.BLUE:return Ce.gradientStyleBlue;case W.GREEN:return Ce.gradientStyleGreen;case W.UNIQUE:return Ce.gradientStyleUnique;default:return Ce.gradientStyleRed}default:return Ce.baseStyleRed}},s=()=>n?g.jsx("div",{className:l()}):g.jsx("div",{className:Ce.card,children:g.jsxs("div",{className:o(),children:[g.jsx("h1",{className:Ce.value,children:e}),g.jsx("h1",{className:Ce.suit,children:t})]})});return g.jsx(g.Fragment,{children:s()})},lc=({title:e,cards:t})=>{const n=()=>{if(t.length>0)return g.jsx("h1",{className:vl.title,children:e})};return g.jsxs("div",{className:vl.handContainer,children:[n(),g.jsx("div",{className:t.length>0?vl.cardContainer:"",children:t.map((r,i)=>g.jsx(sh,{value:r.value,suit:r.suit,hidden:r.hidden},i))})]})},Yy=[{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"}],Qy={cards:Yy},Gy="_gameBackground_19aqy_1",Ky="_handSection_19aqy_17",sc={gameBackground:Gy,handSection:Ky},Xy=()=>{let e;(P=>{P[P.bet=0]="bet",P[P.init=1]="init",P[P.userTurn=2]="userTurn",P[P.dealerTurn=3]="dealerTurn"})(e||(e={}));let t;(P=>{P[P.user=0]="user",P[P.dealer=1]="dealer",P[P.hidden=2]="hidden"})(t||(t={}));let n;(P=>{P.bet="Press Play to Start!",P.hitStand="Hit or Stand?",P.bust="Bust!",P.blackjack="Blackjack!",P.userWin="You Win!",P.dealerWin="Dealer Wins!",P.tie="Tie!"})(n||(n={}));let r;(P=>{P.noChoice="",P.underElevenHit="That was the correct choice! In this scenario, you cannot bust so it is better to hit!",P.underElevenStand="That was the wrong choice. In this scenario, you cannot bust so it is better to hit!",P.aceUnderSixHit="That was the correct choice! In this scenario, you cannot bust and have better chances of hitting 21 so it is better to hit!",P.aceUnderSixStand="That was the wrong choice. In this scenario, you cannot bust and have better chances of hitting 21 so it is better to hit!",P.aceAboveNineHit="That was the wrong choice. In this scenario, it is better to stand because the only way the dealer can beat you is if they hit 21; so your chances of winning are very high!",P.aceAboveNineStand="That was the correct choice! In this scenario, it is better to stand because the only way the dealer can beat you is if they hit 21; so your chances of winning are very high!",P.aboveSeventeenHit="That was the wrong choice. In this scenario, it is better to stand because your chances of busting are higher!",P.aboveSeventeenStand="That was the correct choice! In this scenario, it is better to stand because your chances of busting are higher!",P.aceSevenSCHit="That was the wrong choice. In this scenario, it is better to stand because the chances of the dealer having to stay at a hand lower than yours or busting are higher!",P.aceSevenSCStand="That was the correct choice! In this scenario, it is better to stand because the chances of the dealer having to stay at a hand lower than yours or busting are higher!",P.aceSevenHCHit="That was the correct choice! In this scenario, it is better to hit because the dealer will have a higher chance of having a higher hand or having to hit again so it is better to hit and take your chances!",P.aceSevenHCStand="That was the wrong choice. In this scenario, it is better to hit because the dealer will have a higher chance of having a higher hand or having to hit again so it is better to hit and take your chances!",P.aceEightSCHit="That was the wrong choice. In this scenario, it is better to stand because there are only two hands that the dealer could have to beat yours, which means they will most likely bust.",P.aceEightSCStand="That was the correct choice! In this scenario, it is better to stand because there are only two hands that the dealer could have to beat yours, which means they will most likely bust.",P.aceEightHCHit="That was the correct choice! In this scenario, it is better to hit because there are no risk in hitting and the dealer will most likely bust!",P.aceEightHCStand="That was the wrong choice. In this scenario, it is better to hit because there are no risk in hitting and the dealer will most likely bust!",P.specialTwelveSCHit="That was the wrong choice. In this scenario, it is better to stand because the dealer's chances of busting are high.",P.specialTwelveSCStand="That was the correct choice! In this scenario, it is better to stand because the dealer's chances of busting are high.",P.specialTwelveHCHit="That was the correct choice! In this scenario, it is better to hit because the dealer's chances of busting are extremely low so it is better to hit and take your chances!",P.specialTwelveHCStand="That was the wrong choice. In this scenario, it is better to hit because the dealer's chances of busting are extremely low so it is better to hit and take your chances!",P.specialTeensSCHit="That was the wrong choice. In this scenario, it is better to stand because the dealer's chances of busting are extremely high.",P.specialTeensSCStand="That was the correct choice! In this scenario, it is better to stand because the dealer's chances of busting are extremely high.",P.specialTeensHCHit="That was the correct choice! In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances.",P.specialTeensHCStand="That was the wrong choice. In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances."})(r||(r={}));let i;(P=>{P.hit="hit",P.stand="stand",P.ignore="ignore"})(i||(i={}));let o;(P=>{P.noMessage="I have no advice.",P.hitMessage="I suggest you hit.",P.standMessage="I suggest you stand."})(o||(o={}));const l=JSON.parse(JSON.stringify(Qy.cards)),[s,a]=E.useState(l),[u,p]=E.useState([]),[h,m]=E.useState(0),[y,k]=E.useState(0),[v,_]=E.useState(!1),[d,c]=E.useState(!1),[f,w]=E.useState([]),[S,x]=E.useState(0),[C,R]=E.useState(0),[A,z]=E.useState(0),[pe,me]=E.useState("Press Play to Start!"),[qe,et]=E.useState(""),[He,We]=E.useState("I have no advice."),[M,T]=E.useState({hitDisabled:!1,standDisabled:!1,resetDisabled:!0});E.useEffect(()=>{A===1&&(U(0),U(2),U(0),U(1),z(2),me("Hit or Stand?"),et(""))},[A]),E.useEffect(()=>{Se(u,m),k(y+1)},[u]),E.useEffect(()=>{Se(f,x),R(C+1)},[f]),E.useEffect(()=>{A===2&&(h===21?u.length===2?ah():(M.hitDisabled=!0,T({...M})):h>21&&dt())},[y]),E.useEffect(()=>{A===3&&(S>=17?uh():U(1))},[C]),E.useEffect(()=>{h<=21?ke("ignore"):We("I have no advice.")},[h]);const I=()=>{z(1)},L=()=>{console.clear(),a(l),p([]),m(0),k(0),w([]),x(0),R(0),z(1),me("Press Play to Start!"),et(""),T({hitDisabled:!1,standDisabled:!1,resetDisabled:!0})},U=P=>{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(P,D.value,"♠");break;case"diamonds":ce(P,D.value,"♦");break;case"clubs":ce(P,D.value,"♣");break;case"hearts":ce(P,D.value,"♥");break}}else alert("All cards have been drawn")},K=P=>{_(P)},tt=P=>{c(P)},ce=(P,J,D)=>{switch(P){case 0:u.push({value:J,suit:D,hidden:!1}),p([...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(P=>(P.hidden===!0&&(P.hidden=!1),P)),w([...f])},Se=(P,J)=>{let D=0;P.forEach(F=>{if(F.hidden===!1&&F.value!=="A")switch(F.value){case"K":D+=10;break;case"Q":D+=10;break;case"J":D+=10;break;default:D+=Number(F.value);break}});const ge=P.filter(F=>F.value==="A");ge.forEach(F=>{F.hidden===!1&&(D+11>21||D+11===21&&ge.length>1?D+=1:D+=11)}),J(D)},ke=P=>{const J=(D,ge,F)=>{P==="hit"?et(D):P==="stand"?et(ge):P=="ignore"&&We(F)};if(h<=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(F=>F.value==="A"),ge=u.filter(F=>F.value!="A");if(D.length>=1){let F=0;ge.forEach(_a=>{_a.value=="K"?F+=10:F+=parseInt(_a.value)}),D.length>=2&&(F-=1,D.forEach(()=>{F+=1})),F<=6?J("That was the correct choice! In this scenario, you cannot bust and have better chances of hitting 21 so it is better to hit!","That was the wrong choice. In this scenario, you cannot bust and have better chances of hitting 21 so it is better to hit!","I suggest you hit."):F>=9&&F<=10&&P=="hit"&&J("That was the wrong choice. In this scenario, it is better to stand because the only way the dealer can beat you is if they hit 21; so your chances of winning are very high!","That was the correct choice! In this scenario, it is better to stand because the only way the dealer can beat you is if they hit 21; so your chances of winning are very high!","I suggest you stand.")}}else if(h>=17)J("That was the wrong choice. In this scenario, it is better to stand because your chances of busting are higher!","That was the correct choice! In this scenario, it is better to stand because your chances of busting are higher!","I suggest you stand.");else if(u.filter(ge=>ge.value==="A").length>=1){let ge=0;u.forEach(F=>{F.value!="A"&&(F.value==="K"?ge+=10:ge+=parseInt(F.value))}),ge===7?S==7||S===8?J("That was the wrong choice. In this scenario, it is better to stand because the chances of the dealer having to stay at a hand lower than yours or busting are higher!","That was the correct choice! In this scenario, it is better to stand because the chances of the dealer having to stay at a hand lower than yours or busting are higher!","I suggest you stand."):J("That was the correct choice! In this scenario, it is better to hit because the dealer will have a higher chance of having a higher hand or having to hit again so it is better to hit and take your chances!","That was the wrong choice. In this scenario, it is better to hit because the dealer will have a higher chance of having a higher hand or having to hit again so it is better to hit and take your chances!","I suggest you hit."):ge===8&&(S==2||S===3||S===4||S===5||S===7||S===8||S===9||S===10||S===11?J("That was the wrong choice. In this scenario, it is better to stand because there are only two hands that the dealer could have to beat yours, which means they will most likely bust.","That was the correct choice! In this scenario, it is better to stand because there are only two hands that the dealer could have to beat yours, which means they will most likely bust.","I suggest you stand."):J("That was the correct choice! In this scenario, it is better to hit because there are no risk in hitting and the dealer will most likely bust!","That was the wrong choice. In this scenario, it is better to hit because there are no risk in hitting and the dealer will most likely bust!","I suggest you hit."))}else h===12?S===4||S===5||S===6?J("That was the wrong choice. In this scenario, it is better to stand because the dealer's chances of busting are high.","That was the correct choice! In this scenario, it is better to stand because the dealer's chances of busting are high.","I suggest you stand."):J("That was the correct choice! In this scenario, it is better to hit because the dealer's chances of busting are extremely low so it is better to hit and take your chances!","That was the wrong choice. In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances.","I suggest you hit."):(h===13||h===14||h===15||h===16)&&(S===2||S===3||S===4||S===5||S===6?J("That was the wrong choice. In this scenario, it is better to stand because the dealer's chances of busting are extremely high.","That was the correct choice! In this scenario, it is better to stand because the dealer's chances of busting are extremely high.","I suggest you stand."):J("That was the correct choice! In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances.","That was the wrong choice. In this scenario, it is better to hit because the dealer's chances of winning are high so it is better to hit and take your chances.","I suggest you hit."))},ir=()=>{ke("hit"),U(0)},wn=()=>{ke("stand"),M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,T({...M}),z(3),ct()},dt=()=>{M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,T({...M}),me("Bust!")},ah=()=>{M.hitDisabled=!0,M.standDisabled=!0,M.resetDisabled=!1,T({...M}),me("Blackjack!")},uh=()=>{h>S||S>21?me("You Win!"):S>h?me("Dealer Wins!"):me("Tie!")},ch=(P,J)=>{if(P.filter(D=>D.value==="A").length>=1&&J!=21){let D=0;if(P.map(ge=>{ge.value=="A"?D+=11:ge.value=="K"?D+=10:D+=parseInt(ge.value)}),D<=21)return`${h}/${h-10}`}return`${h}`};return g.jsxs("div",{className:sc.gameBackground,children:[g.jsx(_y,{message:pe,choice:qe,gameState:A,buttonState:M,playGame:I,hit:ir,stand:wn,resetGame:L,displayTotal:v,dealerHelp:d,dealerMessage:He,toggleDisplayTotal:K,toggleDealerHelp:tt}),g.jsxs("div",{className:sc.handSection,children:[g.jsx(lc,{title:`Dealer's Hand ${v?`(${S})`:""}`,cards:f}),g.jsx(lc,{title:`Your Hand ${v?`(${ch(u,h)})`:""}`,cards:u})]})]})};const Jy=()=>{const{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r}=lh(),i=(l,s)=>e.valueOf()===l.valueOf()&&n.valueOf()===s.valueOf()?"buttonSelected":"button",o=(l,s)=>{t(l),r(s)};return g.jsxs("div",{className:"pageContainer",children:[g.jsx(sh,{value:"A",suit:"spade",hidden:!0}),g.jsxs("div",{className:"buttonsContainer",children:[g.jsxs("div",{className:"buttonGroup",children:[g.jsx("h1",{className:"buttonLabel",children:"Base"}),g.jsx("button",{className:i(W.RED,re.BASE),onClick:()=>o(W.RED,re.BASE),children:"Red"}),g.jsx("button",{className:i(W.BLUE,re.BASE),onClick:()=>o(W.BLUE,re.BASE),children:"Blue"}),g.jsx("button",{className:i(W.GREEN,re.BASE),onClick:()=>o(W.GREEN,re.BASE),children:"Green"}),g.jsx("button",{className:i(W.UNIQUE,re.BASE),onClick:()=>o(W.UNIQUE,re.BASE),children:"Unique"})]}),g.jsxs("div",{className:"buttonGroup",children:[g.jsx("h1",{className:"buttonLabel",children:"Gradient"}),g.jsx("button",{className:i(W.RED,re.GRADIENT),onClick:()=>o(W.RED,re.GRADIENT),children:"Red"}),g.jsx("button",{className:i(W.BLUE,re.GRADIENT),onClick:()=>o(W.BLUE,re.GRADIENT),children:"Blue"}),g.jsx("button",{className:i(W.GREEN,re.GRADIENT),onClick:()=>o(W.GREEN,re.GRADIENT),children:"Green"}),g.jsx("button",{className:i(W.UNIQUE,re.GRADIENT),onClick:()=>o(W.UNIQUE,re.GRADIENT),children:"Unique"})]})]})]})};const Zy=()=>g.jsx("div",{className:"warningContainer",children:g.jsx("h1",{className:"text",children:"Have a gambling problem? Call here for help: 1-800-GAMBLER"})}),qy=()=>{const[e,t]=E.useState(W.RED),[n,r]=E.useState(re.BASE);return g.jsx("div",{className:"background-color",children:g.jsxs(oh.Provider,{value:{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r},children:[g.jsx(Zy,{}),g.jsx(Jv,{}),g.jsxs(Ng,{children:[g.jsx(Rt,{path:Of,element:g.jsx(Wg,{})}),g.jsx(Rt,{path:Df,element:g.jsx(ey,{})}),g.jsx(Rt,{path:$f,element:g.jsx(oy,{})}),g.jsx(Rt,{path:Hf,element:g.jsx(ly,{})}),g.jsx(Rt,{path:Sa,element:g.jsx(Xy,{})}),g.jsx(Rt,{path:Af,element:g.jsx(Jy,{})}),g.jsx(Rt,{path:Hg,element:g.jsx(ny,{})})]})]})})};yl.createRoot(document.getElementById("root")).render(g.jsx(se.StrictMode,{children:g.jsx(Ig,{children:g.jsx(qy,{})})})); diff --git a/index.html b/index.html index f8c5e0e..64b7876 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Blackjack Probability - - + +