diff --git a/backend/device.go b/backend/device.go index 1d7a06c4..b75fd65b 100644 --- a/backend/device.go +++ b/backend/device.go @@ -149,27 +149,29 @@ func (Bookmark) TableName() string { func GetKoboMetadata(detectedPaths []string) []Kobo { var kobos []Kobo - log.Debug().Int("path_count", len(detectedPaths)).Msg("Found the location of possible Kobo(s)") for _, path := range detectedPaths { _, _, deviceId, err := kobo.ParseKoboVersion(path) if err != nil { - log.Error().Err(err).Msg("Failed to parse Kobo version") + log.Error().Msg(fmt.Sprintf("Failed to parse version for Kobo at %s", path)) } - log.Debug().Str("device_id", deviceId).Msg("Found Kobo") + log.Debug().Msg(fmt.Sprintf("Found device with ID %s", deviceId)) device, found := kobo.DeviceByID(deviceId) if !found { + log.Warn().Msg("Found a device that isn't officially supported but may still work anyway") // We can handle unsupported Kobos in future but at present, there are none - log.Debug().Str("device_id", deviceId).Msg("Found an unrecognised Kobo") - continue + kobos = append(kobos, Kobo{ + MntPath: path, + DbPath: fmt.Sprintf("%s/.kobo/KoboReader.sqlite", path), + }) + } else { + kobos = append(kobos, Kobo{ + Name: device.Name(), + Storage: device.StorageGB(), + DisplayPPI: device.DisplayPPI(), + MntPath: path, + DbPath: fmt.Sprintf("%s/.kobo/KoboReader.sqlite", path), + }) } - log.Info().Str("device_name", device.Name()).Msg("Identified Kobo") - kobos = append(kobos, Kobo{ - Name: device.Name(), - Storage: device.StorageGB(), - DisplayPPI: device.DisplayPPI(), - MntPath: path, - DbPath: fmt.Sprintf("%s/.kobo/KoboReader.sqlite", path), - }) } return kobos } diff --git a/backend/device_test.go b/backend/device_test.go index 85a8dd60..4038034b 100644 --- a/backend/device_test.go +++ b/backend/device_test.go @@ -38,15 +38,6 @@ func TestGetKoboMetadata_HandleNoDevices(t *testing.T) { assert.Equal(t, expected, actual) } -// If you were to disconnect a device at the precise time between getting the connected paths -// and checking the version at those paths, it would look the same as trying to access a file -// that doesn't exist -func TestGetKoboMetadata_HandleDisconnectedDevice(t *testing.T) { - var expected []Kobo - actual := GetKoboMetadata([]string{os.TempDir()}) - assert.Equal(t, expected, actual) -} - func TestGetKoboMetadata_HandleConnectedDevices(t *testing.T) { libraTempDir := t.TempDir() fakeLibraVolume := setupTmpKobo(libraTempDir, libraTwoDeviceId) diff --git a/frontend/dist/assets/index.0b1a9ab5.css b/frontend/dist/assets/index.0b1a9ab5.css deleted file mode 100644 index bd05e4ea..00000000 --- a/frontend/dist/assets/index.0b1a9ab5.css +++ /dev/null @@ -1 +0,0 @@ -:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error)}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index) px);position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:1em;left:1em}.Toastify__toast-container--top-center{top:1em;left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:1em;right:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:0;margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:0;transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:0;transform:translate(0)}.Toastify__toast-container--rtl{right:0;left:initial}}.Toastify__toast{position:relative;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:4px;box-shadow:0 1px 10px #0000001a,0 2px 15px #0000000d;display:flex;justify-content:space-between;max-height:var(--toastify-toast-max-height);overflow:hidden;font-family:var(--toastify-font-family);cursor:pointer;direction:ltr}.Toastify__toast--rtl{direction:rtl}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.7s;animation-duration:.7s}.Toastify--animate-icon{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.f{--y: calc(var(--len) - var(--nth));position:absolute;bottom:0;right:0;width:100%;transform:translate3d(0,calc(var(--y) * -40%),0) scale(calc(1 - .05 * var(--y)));transition:all .3s;min-height:80px}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@-webkit-keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{-webkit-animation:Toastify__trackProgress linear 1 forwards;animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);-webkit-animation:Toastify__spin .65s linear infinite;animation:Toastify__spin .65s linear infinite}@-webkit-keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@-webkit-keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@-webkit-keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@-webkit-keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{-webkit-animation-name:Toastify__bounceInLeft;animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{-webkit-animation-name:Toastify__bounceInRight;animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{-webkit-animation-name:Toastify__bounceInDown;animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{-webkit-animation-name:Toastify__bounceInUp;animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{-webkit-animation-name:Toastify__bounceOutLeft;animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{-webkit-animation-name:Toastify__bounceOutRight;animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{-webkit-animation-name:Toastify__bounceOutUp;animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{-webkit-animation-name:Toastify__bounceOutDown;animation-name:Toastify__bounceOutDown}@-webkit-keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@-webkit-keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{-webkit-animation-name:Toastify__zoomIn;animation-name:Toastify__zoomIn}.Toastify__zoom-exit{-webkit-animation-name:Toastify__zoomOut;animation-name:Toastify__zoomOut}@-webkit-keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@-webkit-keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{-webkit-animation-name:Toastify__flipIn;animation-name:Toastify__flipIn}.Toastify__flip-exit{-webkit-animation-name:Toastify__flipOut;animation-name:Toastify__flipOut}@-webkit-keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@-webkit-keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@-webkit-keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@-webkit-keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{-webkit-animation-name:Toastify__slideInLeft;animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{-webkit-animation-name:Toastify__slideInRight;animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{-webkit-animation-name:Toastify__slideInDown;animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{-webkit-animation-name:Toastify__slideInUp;animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{-webkit-animation-name:Toastify__slideOutLeft;animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{-webkit-animation-name:Toastify__slideOutRight;animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{-webkit-animation-name:Toastify__slideOutUp;animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{-webkit-animation-name:Toastify__slideOutDown;animation-name:Toastify__slideOutDown}@-webkit-keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mt-0{margin-top:0}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.ml-3{margin-left:.75rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-5{height:1.25rem}.h-36{height:9rem}.h-4{height:1rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-5{width:1.25rem}.w-screen{width:100vw}.w-full{width:100%}.w-auto{width:auto}.w-4{width:1rem}.max-w-xl{max-width:36rem}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-14{gap:3.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded{border-radius:.25rem}.border{border-width:1px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(233 213 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.p-1\.5{padding:.375rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-3{padding:.75rem}.px-24{padding-left:6rem;padding-right:6rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-base{font-size:1rem;line-height:1.5rem}.font-extrabold{font-weight:800}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-6{line-height:1.5rem}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.logo-animation{-webkit-animation:floatAnimation 5s linear infinite;animation:floatAnimation 5s linear infinite}@-webkit-keyframes floatAnimation{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes floatAnimation{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.hover\:bg-purple-300:hover{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(34 197 94 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (prefers-color-scheme: dark){.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:ml-3{margin-left:.75rem}.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:max-w-xs{max-width:20rem}.sm\:items-center{align-items:center}.sm\:rounded-lg{border-radius:.5rem}.sm\:rounded-md{border-radius:.375rem}.sm\:p-6{padding:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}} diff --git a/frontend/dist/assets/index.9fa72c53.js b/frontend/dist/assets/index.9fa72c53.js new file mode 100644 index 00000000..8adeeb7f --- /dev/null +++ b/frontend/dist/assets/index.9fa72c53.js @@ -0,0 +1,234 @@ +const hf=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}};hf();var k={exports:{}},j={};/** + * @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 fr=Symbol.for("react.element"),vf=Symbol.for("react.portal"),gf=Symbol.for("react.fragment"),yf=Symbol.for("react.strict_mode"),wf=Symbol.for("react.profiler"),Sf=Symbol.for("react.provider"),kf=Symbol.for("react.context"),xf=Symbol.for("react.forward_ref"),Ef=Symbol.for("react.suspense"),_f=Symbol.for("react.memo"),Cf=Symbol.for("react.lazy"),mu=Symbol.iterator;function Pf(e){return e===null||typeof e!="object"?null:(e=mu&&e[mu]||e["@@iterator"],typeof e=="function"?e:null)}var La={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ja=Object.assign,Da={};function Sn(e,t,n){this.props=e,this.context=t,this.refs=Da,this.updater=n||La}Sn.prototype.isReactComponent={};Sn.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")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ma(){}Ma.prototype=Sn.prototype;function vi(e,t,n){this.props=e,this.context=t,this.refs=Da,this.updater=n||La}var gi=vi.prototype=new Ma;gi.constructor=vi;ja(gi,Sn.prototype);gi.isPureReactComponent=!0;var hu=Array.isArray,Ia=Object.prototype.hasOwnProperty,yi={current:null},$a={key:!0,ref:!0,__self:!0,__source:!0};function Fa(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Ia.call(t,r)&&!$a.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,te=C[X];if(0>>1;Xl(Gl,L))Ltl(Sr,Gl)?(C[X]=Sr,C[Lt]=L,X=Lt):(C[X]=Gl,C[Rt]=L,X=Rt);else if(Ltl(Sr,L))C[X]=Sr,C[Lt]=L,X=Lt;else break e}}return R}function l(C,R){var L=C.sortIndex-R.sortIndex;return L!==0?L:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var a=[],s=[],m=1,h=null,d=3,v=!1,y=!1,E=!1,D=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(C){for(var R=n(s);R!==null;){if(R.callback===null)r(s);else if(R.startTime<=C)r(s),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(s)}}function g(C){if(E=!1,p(C),!y)if(n(a)!==null)y=!0,yr(x);else{var R=n(s);R!==null&&Yl(g,R.startTime-C)}}function x(C,R){y=!1,E&&(E=!1,f(w),w=-1),v=!0;var L=d;try{for(p(R),h=n(a);h!==null&&(!(h.expirationTime>R)||C&&!A());){var X=h.callback;if(typeof X=="function"){h.callback=null,d=h.priorityLevel;var te=X(h.expirationTime<=R);R=e.unstable_now(),typeof te=="function"?h.callback=te:h===n(a)&&r(a),p(R)}else r(a);h=n(a)}if(h!==null)var wr=!0;else{var Rt=n(s);Rt!==null&&Yl(g,Rt.startTime-R),wr=!1}return wr}finally{h=null,d=L,v=!1}}var P=!1,T=null,w=-1,z=5,O=-1;function A(){return!(e.unstable_now()-OC||125X?(C.sortIndex=L,t(s,C),n(a)===null&&C===n(s)&&(E?(f(w),w=-1):E=!0,Yl(g,L-X))):(C.sortIndex=te,t(a,C),y||v||(y=!0,yr(x))),C},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(C){var R=d;return function(){var L=d;d=R;try{return C.apply(this,arguments)}finally{d=L}}}})(Ba);Aa.exports=Ba;/** + * @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 Va=k.exports,Pe=Aa.exports;function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function ge(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new ge(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){ie[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Si=/[\-:]([a-z])/g;function ki(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(Si,ki);ie[t]=new ge(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(Si,ki);ie[t]=new ge(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(Si,ki);ie[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function xi(e,t,n,r){var l=ie.hasOwnProperty(t)?ie[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var a=` +`+l[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=u);break}}}finally{Jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dn(e):""}function If(e){switch(e.tag){case 5:return Dn(e.type);case 16:return Dn("Lazy");case 13:return Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 2:case 15:return e=ql(e.type,!1),e;case 11:return e=ql(e.type.render,!1),e;case 1:return e=ql(e.type,!0),e;default:return""}}function Po(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 Zt:return"Fragment";case Xt:return"Portal";case Eo:return"Profiler";case Ei:return"StrictMode";case _o:return"Suspense";case Co:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qa:return(e.displayName||"Context")+".Consumer";case Wa:return(e._context.displayName||"Context")+".Provider";case _i:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ci:return t=e.displayName||null,t!==null?t:Po(e.type)||"Memo";case st:t=e._payload,e=e._init;try{return Po(e(t))}catch{}}return null}function $f(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 Po(t);case 8:return t===Ei?"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 Et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ya(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ff(e){var t=Ya(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Er(e){e._valueTracker||(e._valueTracker=Ff(e))}function Ga(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ya(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function tl(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function No(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Su(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Et(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 Xa(e,t){t=t.checked,t!=null&&xi(e,"checked",t,!1)}function To(e,t){Xa(e,t);var n=Et(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")?Oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oo(e,t.type,Et(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ku(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 Oo(e,t,n){(t!=="number"||tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mn=Array.isArray;function an(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=_r.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fn={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},Uf=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){Uf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function ba(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function es(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ba(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Af=K({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 Lo(e,t){if(t){if(Af[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function jo(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 Do=null;function Pi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mo=null,sn=null,cn=null;function _u(e){if(e=mr(e)){if(typeof Mo!="function")throw Error(S(280));var t=e.stateNode;t&&(t=jl(t),Mo(e.stateNode,e.type,t))}}function ts(e){sn?cn?cn.push(e):cn=[e]:sn=e}function ns(){if(sn){var e=sn,t=cn;if(cn=sn=null,_u(e),t)for(e=0;e>>=0,e===0?32:31-(Jf(e)/qf|0)|0}var Cr=64,Pr=4194304;function In(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 ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=In(u):(o&=i,o!==0&&(r=In(o)))}else i=n&~l,i!==0?r=In(i):o!==0&&(r=In(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function dr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Be(t),e[t]=n}function nd(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=An),ju=String.fromCharCode(32),Du=!1;function xs(e,t){switch(e){case"keyup":return zd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Es(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jt=!1;function Ld(e,t){switch(e){case"compositionend":return Es(t);case"keypress":return t.which!==32?null:(Du=!0,ju);case"textInput":return e=t.data,e===ju&&Du?null:e;default:return null}}function jd(e,t){if(Jt)return e==="compositionend"||!Di&&xs(e,t)?(e=Ss(),Hr=Ri=mt=null,Jt=!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=Fu(n)}}function Ns(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ns(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ts(){for(var e=window,t=tl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tl(e.document)}return t}function Mi(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 Vd(e){var t=Ts(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ns(n.ownerDocument.documentElement,n)){if(r!==null&&Mi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Uu(n,o);var i=Uu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,qt=null,Bo=null,Vn=null,Vo=!1;function Au(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||qt==null||qt!==tl(r)||(r=qt,"selectionStart"in r&&Mi(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}),Vn&&tr(Vn,r)||(Vn=r,r=al(Bo,"onSelect"),0tn||(e.current=Go[tn],Go[tn]=null,tn--)}function U(e,t){tn++,Go[tn]=e.current,e.current=t}var _t={},ce=Tt(_t),ke=Tt(!1),Bt=_t;function hn(e,t){var n=e.type.contextTypes;if(!n)return _t;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function xe(e){return e=e.childContextTypes,e!=null}function cl(){V(ke),V(ce)}function Yu(e,t,n){if(ce.current!==_t)throw Error(S(168));U(ce,t),U(ke,n)}function $s(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,$f(e)||"Unknown",l));return K({},n,r)}function fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_t,Bt=ce.current,U(ce,e),U(ke,ke.current),!0}function Gu(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=$s(e,t,Bt),r.__reactInternalMemoizedMergedChildContext=e,V(ke),V(ce),U(ce,e)):V(ke),U(ke,n)}var Je=null,Dl=!1,po=!1;function Fs(e){Je===null?Je=[e]:Je.push(e)}function ep(e){Dl=!0,Fs(e)}function Ot(){if(!po&&Je!==null){po=!0;var e=0,t=F;try{var n=Je;for(F=1;e>=i,l-=i,be=1<<32-Be(t)+l|n<w?(z=T,T=null):z=T.sibling;var O=d(f,T,p[w],g);if(O===null){T===null&&(T=z);break}e&&T&&O.alternate===null&&t(f,T),c=o(O,c,w),P===null?x=O:P.sibling=O,P=O,T=z}if(w===p.length)return n(f,T),H&&jt(f,w),x;if(T===null){for(;ww?(z=T,T=null):z=T.sibling;var A=d(f,T,O.value,g);if(A===null){T===null&&(T=z);break}e&&T&&A.alternate===null&&t(f,T),c=o(A,c,w),P===null?x=A:P.sibling=A,P=A,T=z}if(O.done)return n(f,T),H&&jt(f,w),x;if(T===null){for(;!O.done;w++,O=p.next())O=h(f,O.value,g),O!==null&&(c=o(O,c,w),P===null?x=O:P.sibling=O,P=O);return H&&jt(f,w),x}for(T=r(f,T);!O.done;w++,O=p.next())O=v(T,f,w,O.value,g),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?w:O.key),c=o(O,c,w),P===null?x=O:P.sibling=O,P=O);return e&&T.forEach(function(de){return t(f,de)}),H&&jt(f,w),x}function D(f,c,p,g){if(typeof p=="object"&&p!==null&&p.type===Zt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case xr:e:{for(var x=p.key,P=c;P!==null;){if(P.key===x){if(x=p.type,x===Zt){if(P.tag===7){n(f,P.sibling),c=l(P,p.props.children),c.return=f,f=c;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===st&&ta(x)===P.type){n(f,P.sibling),c=l(P,p.props),c.ref=zn(f,P,p),c.return=f,f=c;break e}n(f,P);break}else t(f,P);P=P.sibling}p.type===Zt?(c=Ut(p.props.children,f.mode,g,p.key),c.return=f,f=c):(g=Zr(p.type,p.key,p.props,null,f.mode,g),g.ref=zn(f,c,p),g.return=f,f=g)}return i(f);case Xt:e:{for(P=p.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=So(p,f.mode,g),c.return=f,f=c}return i(f);case st:return P=p._init,D(f,c,P(p._payload),g)}if(Mn(p))return y(f,c,p,g);if(_n(p))return E(f,c,p,g);Lr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=wo(p,f.mode,g),c.return=f,f=c),i(f)):n(f,c)}return D}var gn=Ws(!0),Qs=Ws(!1),hr={},Ge=Tt(hr),or=Tt(hr),ir=Tt(hr);function It(e){if(e===hr)throw Error(S(174));return e}function Hi(e,t){switch(U(ir,t),U(or,e),U(Ge,hr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ro(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ro(t,e)}V(Ge),U(Ge,t)}function yn(){V(Ge),V(or),V(ir)}function Ks(e){It(ir.current);var t=It(Ge.current),n=Ro(t,e.type);t!==n&&(U(or,e),U(Ge,n))}function Wi(e){or.current===e&&(V(Ge),V(or))}var W=Tt(0);function gl(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)!==0)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 mo=[];function Qi(){for(var e=0;en?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{F=n,ho.transition=r}}function uc(){return Me().memoizedState}function lp(e,t,n){var r=kt(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e)?sc(t,n):(cc(e,t,n),n=he(),e=je(e,r,n),e!==null&&fc(e,t,r))}function op(e,t,n){var r=kt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ac(e))sc(t,l);else{cc(e,t,l);var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Ve(u,i))return}catch{}finally{}n=he(),e=je(e,r,n),e!==null&&fc(e,t,r)}}function ac(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function sc(e,t){Hn=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cc(e,t,n){Tc(e)?(e=t.interleaved,e===null?(n.next=n,Ae===null?Ae=[t]:Ae.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function fc(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ti(e,n)}}var wl={readContext:De,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},ip={readContext:De,useCallback:function(e,t){return Qe().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:ra,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yr(4194308,4,nc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yr(4,2,e,t)},useMemo:function(e,t){var n=Qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qe();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=lp.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Qe();return e={current:e},t.memoizedState=e},useState:na,useDebugValue:Zi,useDeferredValue:function(e){return Qe().memoizedState=e},useTransition:function(){var e=na(!1),t=e[0];return e=rp.bind(null,e[1]),Qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,l=Qe();if(H){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ee===null)throw Error(S(349));(Ht&30)!==0||Xs(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ra(Js.bind(null,r,o,e),[e]),r.flags|=2048,sr(9,Zs.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qe(),t=ee.identifierPrefix;if(H){var n=et,r=be;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ur++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ke]=t,e[lr]=r,mc(e,t,!1,!1),t.stateNode=e;e:{switch(i=jo(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("load",e),l=r;break;case"video":case"audio":for(l=0;l<$n.length;l++)B($n[l],e);l=r;break;case"source":B("error",e),l=r;break;case"img":case"image":case"link":B("error",e),B("load",e),l=r;break;case"details":B("toggle",e),l=r;break;case"input":Su(e,r),l=No(e,r),B("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=K({},r,{value:void 0}),B("invalid",e);break;case"textarea":xu(e,r),l=zo(e,r),B("invalid",e);break;default:l=r}Lo(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var a=u[o];o==="style"?es(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&qa(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Xn(e,a):typeof a=="number"&&Xn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Gn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&B("scroll",e):a!=null&&xi(e,o,a,i))}switch(n){case"input":Er(e),ku(e,r,!1);break;case"textarea":Er(e),Eu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Et(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?an(e,!!r.multiple,o,!1):r.defaultValue!=null&&an(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=sl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ae(t),null;case 6:if(e&&t.stateNode!=null)vc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=It(ir.current),It(Ge.current),On(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ke]=t,(o=r.nodeValue!==n)&&(e=Ce,e!==null))switch(e.tag){case 3:Rr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Rr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ke]=t,t.stateNode=r}return ae(t),null;case 13:if(V(W),r=t.memoizedState,H&&we!==null&&(t.mode&1)!==0&&(t.flags&128)===0){for(r=we;r;)r=qe(r.nextSibling);return vn(),t.flags|=98560,t}if(r!==null&&r.dehydrated!==null){if(r=On(t),e===null){if(!r)throw Error(S(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(S(317));r[Ke]=t}else vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;return ae(t),null}return Ue!==null&&(di(Ue),Ue=null),(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,n=!1,e===null?On(t):n=e.memoizedState!==null,r!==n&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(W.current&1)!==0?b===0&&(b=3):ru())),t.updateQueue!==null&&(t.flags|=4),ae(t),null);case 4:return yn(),ti(e,t),e===null&&nr(t.stateNode.containerInfo),ae(t),null;case 10:return Fi(t.type._context),ae(t),null;case 17:return xe(t.type)&&cl(),ae(t),null;case 19:if(V(W),o=t.memoizedState,o===null)return ae(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Rn(o,!1);else{if(b!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=gl(e),i!==null){for(t.flags|=128,Rn(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(W,W.current&1|2),t.child}e=e.sibling}o.tail!==null&&Z()>wn&&(t.flags|=128,r=!0,Rn(o,!1),t.lanes=4194304)}else{if(!r)if(e=gl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!H)return ae(t),null}else 2*Z()-o.renderingStartTime>wn&&n!==1073741824&&(t.flags|=128,r=!0,Rn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,n=W.current,U(W,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return nu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(_e&1073741824)!==0&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}var fp=it.ReactCurrentOwner,Se=!1;function me(e,t,n,r){t.child=e===null?Qs(t,null,n,r):gn(t,e.child,n,r)}function ua(e,t,n,r,l){n=n.render;var o=t.ref;return dn(t,l),r=Yi(e,t,n,r,o,l),n=Gi(),e!==null&&!Se?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(H&&n&&Ai(t),t.flags|=1,me(e,t,r,l),t.child)}function aa(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!lu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,gc(e,t,o,r,l)):(e=Zr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&l)===0){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:tr,n(i,r)&&e.ref===t.ref)return lt(e,t,l)}return t.flags|=1,e=Ct(o,r),e.ref=t.ref,e.return=t,t.child=e}function gc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(tr(o,r)&&e.ref===t.ref)if(Se=!1,t.pendingProps=r=o,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Se=!0);else return t.lanes=e.lanes,lt(e,t,l)}return ni(e,t,n,r,l)}function yc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(un,_e),_e|=n;else if((n&1073741824)!==0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(un,_e),_e|=r;else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(un,_e),_e|=e,null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(un,_e),_e|=r;return me(e,t,l,n),t.child}function wc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ni(e,t,n,r,l){var o=xe(n)?Bt:ce.current;return o=hn(t,o),dn(t,l),n=Yi(e,t,n,r,o,l),r=Gi(),e!==null&&!Se?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(H&&r&&Ai(t),t.flags|=1,me(e,t,n,l),t.child)}function sa(e,t,n,r,l){if(xe(n)){var o=!0;fl(t)}else o=!1;if(dn(t,l),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Bs(t,n,r),Jo(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var a=i.context,s=n.contextType;typeof s=="object"&&s!==null?s=De(s):(s=xe(n)?Bt:ce.current,s=hn(t,s));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||a!==s)&&qu(t,i,r,s),ct=!1;var d=t.memoizedState;i.state=d,ml(t,r,i,l),a=t.memoizedState,u!==r||d!==a||ke.current||ct?(typeof m=="function"&&(Zo(t,n,m,r),a=t.memoizedState),(u=ct||Ju(t,n,u,r,d,a,s))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=s,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Us(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:$e(t.type,u),i.props=s,h=t.pendingProps,d=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=De(a):(a=xe(n)?Bt:ce.current,a=hn(t,a));var v=n.getDerivedStateFromProps;(m=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==h||d!==a)&&qu(t,i,r,a),ct=!1,d=t.memoizedState,i.state=d,ml(t,r,i,l);var y=t.memoizedState;u!==h||d!==y||ke.current||ct?(typeof v=="function"&&(Zo(t,n,v,r),y=t.memoizedState),(s=ct||Ju(t,n,s,r,d,y,a)||!1)?(m||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=a,r=s):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ri(e,t,n,r,o,l)}function ri(e,t,n,r,l,o){wc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Gu(t,n,!1),lt(e,t,o);r=t.stateNode,fp.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=gn(t,e.child,null,o),t.child=gn(t,null,u,o)):me(e,t,u,o),t.memoizedState=r.state,l&&Gu(t,n,!0),t.child}function Sc(e){var t=e.stateNode;t.pendingContext?Yu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yu(e,t.context,!1),Hi(e,t.containerInfo)}function ca(e,t,n,r,l){return vn(),Vi(l),t.flags|=256,me(e,t,n,r),t.child}var jr={dehydrated:null,treeContext:null,retryLane:0};function Dr(e){return{baseLanes:e,cachePool:null,transitions:null}}function fa(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function kc(e,t,n){var r=t.pendingProps,l=W.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),U(W,l&1),e===null)return bo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=l):o=_l(l,r,0,null),e=Ut(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Dr(n),t.memoizedState=jr,e):li(t,l));if(l=e.memoizedState,l!==null){if(u=l.dehydrated,u!==null){if(i)return t.flags&256?(t.flags&=-257,Mr(e,t,n,Error(S(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=_l({mode:"visible",children:r.children},l,0,null),o=Ut(o,l,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&gn(t,e.child,null,n),t.child.memoizedState=Dr(n),t.memoizedState=jr,o);if((t.mode&1)===0)t=Mr(e,t,n,null);else if(u.data==="$!")t=Mr(e,t,n,Error(S(419)));else if(r=(n&e.childLanes)!==0,Se||r){if(r=ee,r!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}r=(o&(r.suspendedLanes|n))!==0?0:o,r!==0&&r!==l.retryLane&&(l.retryLane=r,je(e,r,-1))}ru(),t=Mr(e,t,n,Error(S(421)))}else u.data==="$?"?(t.flags|=128,t.child=e.child,t=Ep.bind(null,e),u._reactRetry=t,t=null):(n=l.treeContext,we=qe(u.nextSibling),Ce=t,H=!0,Ue=null,n!==null&&(Oe[ze++]=be,Oe[ze++]=et,Oe[ze++]=Vt,be=n.id,et=n.overflow,Vt=t),t=li(t,t.pendingProps.children),t.flags|=4096);return t}return o?(r=pa(e,t,r.children,r.fallback,n),o=t.child,l=e.child.memoizedState,o.memoizedState=l===null?Dr(n):fa(l,n),o.childLanes=e.childLanes&~n,t.memoizedState=jr,r):(n=da(e,t,r.children,n),t.memoizedState=null,n)}return o?(r=pa(e,t,r.children,r.fallback,n),o=t.child,l=e.child.memoizedState,o.memoizedState=l===null?Dr(n):fa(l,n),o.childLanes=e.childLanes&~n,t.memoizedState=jr,r):(n=da(e,t,r.children,n),t.memoizedState=null,n)}function li(e,t){return t=_l({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function da(e,t,n,r){var l=e.child;return e=l.sibling,n=Ct(l,{mode:"visible",children:n}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function pa(e,t,n,r,l){var o=t.mode;e=e.child;var i=e.sibling,u={mode:"hidden",children:n};return(o&1)===0&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Ct(e,u),n.subtreeFlags=e.subtreeFlags&14680064),i!==null?r=Ct(i,r):(r=Ut(r,o,l,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Mr(e,t,n,r){return r!==null&&Vi(r),gn(t,e.child,null,n),e=li(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ma(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xo(e.return,t,n)}function yo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function xc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(me(e,t,r.children,n),r=W.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ma(e,n,t);else if(e.tag===19)ma(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(W,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&gl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),yo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&gl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}yo(t,!0,n,null,o);break;case"together":yo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wt|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=Ct(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ct(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dp(e,t,n){switch(t.tag){case 3:Sc(t),vn();break;case 5:Ks(t);break;case 1:xe(t.type)&&fl(t);break;case 4:Hi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;U(dl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(W,W.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?kc(e,t,n):(U(W,W.current&1),e=lt(e,t,n),e!==null?e.sibling:null);U(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return xc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),U(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,yc(e,t,n)}return lt(e,t,n)}function pp(e,t){switch(Bi(t),t.tag){case 1:return xe(t.type)&&cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(),V(ke),V(ce),Qi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Wi(t),null;case 13:if(V(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(W),null;case 4:return yn(),null;case 10:return Fi(t.type._context),null;case 22:case 23:return nu(),null;case 24:return null;default:return null}}var Ir=!1,se=!1,mp=typeof WeakSet=="function"?WeakSet:Set,_=null;function on(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function oi(e,t,n){try{n()}catch(r){G(e,t,r)}}var ha=!1;function hp(e,t){if(Ho=il,e=Ts(),Mi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,a=-1,s=0,m=0,h=e,d=null;t:for(;;){for(var v;h!==n||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(a=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(v=h.firstChild)!==null;)d=h,h=v;for(;;){if(h===e)break t;if(d===n&&++s===l&&(u=i),d===o&&++m===r&&(a=i),(v=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=v}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wo={focusedElem:e,selectionRange:n},il=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var E=y.memoizedProps,D=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?E:$e(t.type,E),D);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;if(p.nodeType===1)p.textContent="";else if(p.nodeType===9){var g=p.body;g!=null&&(g.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(x){G(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return y=ha,ha=!1,y}function Wn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&oi(t,n,o)}l=l.next}while(l!==r)}}function $l(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 ii(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 Ec(e){var t=e.alternate;t!==null&&(e.alternate=null,Ec(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ke],delete t[lr],delete t[Yo],delete t[qd],delete t[bd])),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 _c(e){return e.tag===5||e.tag===3||e.tag===4}function va(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_c(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 ui(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=sl));else if(r!==4&&(e=e.child,e!==null))for(ui(e,t,n),e=e.sibling;e!==null;)ui(e,t,n),e=e.sibling}function ai(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(ai(e,t,n),e=e.sibling;e!==null;)ai(e,t,n),e=e.sibling}var le=null,Fe=!1;function at(e,t,n){for(n=n.child;n!==null;)Cc(e,t,n),n=n.sibling}function Cc(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(Ol,n)}catch{}switch(n.tag){case 5:se||on(n,t);case 6:var r=le,l=Fe;le=null,at(e,t,n),le=r,Fe=l,le!==null&&(Fe?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Fe?(e=le,n=n.stateNode,e.nodeType===8?fo(e.parentNode,n):e.nodeType===1&&fo(e,n),bn(e)):fo(le,n.stateNode));break;case 4:r=le,l=Fe,le=n.stateNode.containerInfo,Fe=!0,at(e,t,n),le=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&((o&2)!==0||(o&4)!==0)&&oi(n,t,i),l=l.next}while(l!==r)}at(e,t,n);break;case 1:if(!se&&(on(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){G(n,t,u)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(se=(r=se)||n.memoizedState!==null,at(e,t,n),se=r):at(e,t,n);break;default:at(e,t,n)}}function ga(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mp),t.forEach(function(r){var l=_p.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ie(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gp(r/1960))-r,10e?16:e,ht===null)var r=!1;else{if(e=ht,ht=null,xl=0,(M&6)!==0)throw Error(S(331));var l=M;for(M|=4,_=e.current;_!==null;){var o=_,i=o.child;if((_.flags&16)!==0){var u=o.deletions;if(u!==null){for(var a=0;aZ()-eu?Ft(e,0):bi|=n),Ee(e,t)}function Dc(e,t){t===0&&((e.mode&1)===0?t=1:(t=Pr,Pr<<=1,(Pr&130023424)===0&&(Pr=4194304)));var n=he();e=Ul(e,t),e!==null&&(dr(e,t,n),Ee(e,n))}function Ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dc(e,n)}function _p(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Dc(e,n)}var Mc;Mc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ke.current)Se=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Se=!1,dp(e,t,n);Se=(e.flags&131072)!==0}else Se=!1,H&&(t.flags&1048576)!==0&&Vs(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var l=hn(t,ce.current);dn(t,n),l=Yi(null,t,r,e,l,n);var o=Gi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(o=!0,fl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ui(t),l.updater=Ml,t.stateNode=l,l._reactInternals=t,Jo(t,r,e,n),t=ri(null,t,r,!0,o,n)):(t.tag=0,H&&o&&Ai(t),me(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Pp(r),e=$e(r,e),l){case 0:t=ni(null,t,r,e,n);break e;case 1:t=sa(null,t,r,e,n);break e;case 11:t=ua(null,t,r,e,n);break e;case 14:t=aa(null,t,r,$e(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),ni(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),sa(e,t,r,l,n);case 3:e:{if(Sc(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Us(e,t),ml(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Error(S(423)),t=ca(e,t,r,n,l);break e}else if(r!==l){l=Error(S(424)),t=ca(e,t,r,n,l);break e}else for(we=qe(t.stateNode.containerInfo.firstChild),Ce=t,H=!0,Ue=null,n=Qs(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vn(),r===l){t=lt(e,t,n);break e}me(e,t,r,n)}t=t.child}return t;case 5:return Ks(t),e===null&&bo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Qo(r,l)?i=null:o!==null&&Qo(r,o)&&(t.flags|=32),wc(e,t),me(e,t,i,n),t.child;case 6:return e===null&&bo(t),null;case 13:return kc(e,t,n);case 4:return Hi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gn(t,null,r,n):me(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),ua(e,t,r,l,n);case 7:return me(e,t,t.pendingProps,n),t.child;case 8:return me(e,t,t.pendingProps.children,n),t.child;case 12:return me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,U(dl,r._currentValue),r._currentValue=i,o!==null)if(Ve(o.value,i)){if(o.children===l.children&&!ke.current){t=lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=tt(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var m=s.pending;m===null?a.next=a:(a.next=m.next,m.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Xo(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(S(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Xo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}me(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,dn(t,n),l=De(l),r=r(l),t.flags|=1,me(e,t,r,n),t.child;case 14:return r=t.type,l=$e(r,t.pendingProps),l=$e(r.type,l),aa(e,t,r,l,n);case 15:return gc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$e(r,l),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,xe(r)?(e=!0,fl(t)):e=!1,dn(t,n),Bs(t,r,l),Jo(t,r,l,n),ri(null,t,r,!0,e,n);case 19:return xc(e,t,n);case 22:return yc(e,t,n)}throw Error(S(156,t.tag))};function Ic(e,t){return ss(e,t)}function Cp(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 Re(e,t,n,r){return new Cp(e,t,n,r)}function lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pp(e){if(typeof e=="function")return lu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_i)return 11;if(e===Ci)return 14}return 2}function Ct(e,t){var n=e.alternate;return n===null?(n=Re(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 Zr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")lu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Zt:return Ut(n.children,l,o,t);case Ei:i=8,l|=8;break;case Eo:return e=Re(12,n,t,l|2),e.elementType=Eo,e.lanes=o,e;case _o:return e=Re(13,n,t,l),e.elementType=_o,e.lanes=o,e;case Co:return e=Re(19,n,t,l),e.elementType=Co,e.lanes=o,e;case Ka:return _l(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wa:i=10;break e;case Qa:i=9;break e;case _i:i=11;break e;case Ci:i=14;break e;case st:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Re(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=Re(7,e,r,t),e.lanes=n,e}function _l(e,t,n,r){return e=Re(22,e,r,t),e.elementType=Ka,e.lanes=n,e.stateNode={},e}function wo(e,t,n){return e=Re(6,e,null,t),e.lanes=n,e}function So(e,t,n){return t=Re(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Np(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=eo(0),this.expirationTimes=eo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ou(e,t,n,r,l,o,i,u,a){return e=new Np(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Re(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ui(o),e}function Tp(e,t,n){var r=3=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/** + * React Router v6.3.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 + */const su=k.exports.createContext(null),cu=k.exports.createContext(null),Wl=k.exports.createContext({outlet:null,matches:[]});function Xe(e,t){if(!e)throw new Error(t)}function Fp(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Pt(t):t,l=Wc(r.pathname||"/",n);if(l==null)return null;let o=Vc(e);Up(o);let i=null;for(let u=0;i==null&&u{let i={relativePath:l.path||"",caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(r)||Xe(!1),i.relativePath=i.relativePath.slice(r.length));let u=xt([r,i.relativePath]),a=n.concat(i);l.children&&l.children.length>0&&(l.index===!0&&Xe(!1),Vc(l.children,t,a,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:Kp(u,l.index),routesMeta:a})}),t}function Up(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ap=/^:\w+$/,Bp=3,Vp=2,Hp=1,Wp=10,Qp=-2,Oa=e=>e==="*";function Kp(e,t){let n=e.split("/"),r=n.length;return n.some(Oa)&&(r+=Qp),t&&(r+=Vp),n.filter(l=>!Oa(l)).reduce((l,o)=>l+(Ap.test(o)?Bp:o===""?Hp:Wp),r)}function Yp(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Gp(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{if(m==="*"){let d=u[h]||"";i=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return s[m]=Jp(u[h]||""),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Zp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(i,u)=>(r.push(u),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(l,t?void 0:"i"),r]}function Jp(e,t){try{return decodeURIComponent(e)}catch{return e}}function qp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Pt(e):e;return{pathname:n?n.startsWith("/")?n:bp(n,t):t,search:tm(r),hash:nm(l)}}function bp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Hc(e,t,n){let r=typeof e=="string"?Pt(e):e,l=e===""||r.pathname===""?"/":r.pathname,o;if(l==null)o=n;else{let u=t.length-1;if(l.startsWith("..")){let a=l.split("/");for(;a[0]==="..";)a.shift(),u-=1;r.pathname=a.join("/")}o=u>=0?t[u]:"/"}let i=qp(r,o);return l&&l!=="/"&&l.endsWith("/")&&!i.pathname.endsWith("/")&&(i.pathname+="/"),i}function em(e){return e===""||e.pathname===""?"/":typeof e=="string"?Pt(e).pathname:e.pathname}function Wc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const xt=e=>e.join("/").replace(/\/\/+/g,"/"),Qc=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rm(e){vr()||Xe(!1);let{basename:t,navigator:n}=k.exports.useContext(su),{hash:r,pathname:l,search:o}=fu(e),i=l;if(t!=="/"){let u=em(e),a=u!=null&&u.endsWith("/");i=l==="/"?t+(a?"/":""):xt([t,l])}return n.createHref({pathname:i,search:o,hash:r})}function vr(){return k.exports.useContext(cu)!=null}function En(){return vr()||Xe(!1),k.exports.useContext(cu).location}function Kc(){vr()||Xe(!1);let{basename:e,navigator:t}=k.exports.useContext(su),{matches:n}=k.exports.useContext(Wl),{pathname:r}=En(),l=JSON.stringify(n.map(u=>u.pathnameBase)),o=k.exports.useRef(!1);return k.exports.useEffect(()=>{o.current=!0}),k.exports.useCallback(function(u,a){if(a===void 0&&(a={}),!o.current)return;if(typeof u=="number"){t.go(u);return}let s=Hc(u,JSON.parse(l),r);e!=="/"&&(s.pathname=xt([e,s.pathname])),(a.replace?t.replace:t.push)(s,a.state)},[e,t,l,r])}function fu(e){let{matches:t}=k.exports.useContext(Wl),{pathname:n}=En(),r=JSON.stringify(t.map(l=>l.pathnameBase));return k.exports.useMemo(()=>Hc(e,JSON.parse(r),n),[e,r,n])}function lm(e,t){vr()||Xe(!1);let{matches:n}=k.exports.useContext(Wl),r=n[n.length-1],l=r?r.params:{};r&&r.pathname;let o=r?r.pathnameBase:"/";r&&r.route;let i=En(),u;if(t){var a;let d=typeof t=="string"?Pt(t):t;o==="/"||((a=d.pathname)==null?void 0:a.startsWith(o))||Xe(!1),u=d}else u=i;let s=u.pathname||"/",m=o==="/"?s:s.slice(o.length)||"/",h=Fp(e,{pathname:m});return om(h&&h.map(d=>Object.assign({},d,{params:Object.assign({},l,d.params),pathname:xt([o,d.pathname]),pathnameBase:d.pathnameBase==="/"?o:xt([o,d.pathnameBase])})),n)}function om(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,l)=>k.exports.createElement(Wl.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,l+1))}}),null)}function Jr(e){Xe(!1)}function im(e){let{basename:t="/",children:n=null,location:r,navigationType:l=$t.Pop,navigator:o,static:i=!1}=e;vr()&&Xe(!1);let u=Qc(t),a=k.exports.useMemo(()=>({basename:u,navigator:o,static:i}),[u,o,i]);typeof r=="string"&&(r=Pt(r));let{pathname:s="/",search:m="",hash:h="",state:d=null,key:v="default"}=r,y=k.exports.useMemo(()=>{let E=Wc(s,u);return E==null?null:{pathname:E,search:m,hash:h,state:d,key:v}},[u,s,m,h,d,v]);return y==null?null:k.exports.createElement(su.Provider,{value:a},k.exports.createElement(cu.Provider,{children:n,value:{location:y,navigationType:l}}))}function um(e){let{children:t,location:n}=e;return lm(pi(t),n)}function pi(e){let t=[];return k.exports.Children.forEach(e,n=>{if(!k.exports.isValidElement(n))return;if(n.type===k.exports.Fragment){t.push.apply(t,pi(n.props.children));return}n.type!==Jr&&Xe(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=pi(n.props.children)),t.push(r)}),t}/** + * React Router DOM v6.3.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 Nl(){return Nl=Object.assign||function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}const am=["onClick","reloadDocument","replace","state","target","to"],sm=["aria-current","caseSensitive","className","end","style","to","children"];function cm(e){let{basename:t,children:n,window:r}=e,l=k.exports.useRef();l.current==null&&(l.current=Ip({window:r}));let o=l.current,[i,u]=k.exports.useState({action:o.action,location:o.location});return k.exports.useLayoutEffect(()=>o.listen(u),[o]),k.exports.createElement(im,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:o})}function fm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const dm=k.exports.forwardRef(function(t,n){let{onClick:r,reloadDocument:l,replace:o=!1,state:i,target:u,to:a}=t,s=Yc(t,am),m=rm(a),h=pm(a,{replace:o,state:i,target:u});function d(v){r&&r(v),!v.defaultPrevented&&!l&&h(v)}return k.exports.createElement("a",Nl({},s,{href:m,onClick:d,ref:n,target:u}))}),ko=k.exports.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:o="",end:i=!1,style:u,to:a,children:s}=t,m=Yc(t,sm),h=En(),d=fu(a),v=h.pathname,y=d.pathname;l||(v=v.toLowerCase(),y=y.toLowerCase());let E=v===y||!i&&v.startsWith(y)&&v.charAt(y.length)==="/",D=E?r:void 0,f;typeof o=="function"?f=o({isActive:E}):f=[o,E?"active":null].filter(Boolean).join(" ");let c=typeof u=="function"?u({isActive:E}):u;return k.exports.createElement(dm,Nl({},m,{"aria-current":D,className:f,ref:n,style:c,to:a}),typeof s=="function"?s({isActive:E}):s)});function pm(e,t){let{target:n,replace:r,state:l}=t===void 0?{}:t,o=Kc(),i=En(),u=fu(e);return k.exports.useCallback(a=>{if(a.button===0&&(!n||n==="_self")&&!fm(a)){a.preventDefault();let s=!!r||Yn(i)===Yn(u);o(e,{replace:s,state:l})}},[i,o,u,r,l,n,e])}let mm={data:""},hm=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||mm,vm=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,gm=/\/\*[^]*?\*\/| +/g,za=/\n+/g,pt=(e,t)=>{let n="",r="",l="";for(let o in e){let i=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+i+";":r+=o[1]=="f"?pt(i,o):o+"{"+pt(i,o[1]=="k"?"":t)+"}":typeof i=="object"?r+=pt(i,t?t.replace(/([^,])+/g,u=>o.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,u):u?u+" "+a:a)):o):i!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=pt.p?pt.p(o,i):o+":"+i+";")}return n+(t&&l?t+"{"+l+"}":l)+r},jn={},Gc=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Gc(e[n]);return t}return e},ym=(e,t,n,r,l)=>{let o=Gc(e),i=jn[o]||(jn[o]=(u=>{let a=0,s=11;for(;a>>0;return"go"+s})(o));if(!jn[i]){let u=o!==e?e:(a=>{let s,m,h=[{}];for(;s=vm.exec(a.replace(gm,""));)s[4]?h.shift():s[3]?(m=s[3].replace(za," ").trim(),h.unshift(h[0][m]=h[0][m]||{})):h[0][s[1]]=s[2].replace(za," ").trim();return h[0]})(e);jn[i]=pt(l?{["@keyframes "+i]:u}:u,n?"":"."+i)}return((u,a,s)=>{a.data.indexOf(u)==-1&&(a.data=s?u+a.data:a.data+u)})(jn[i],t,r),i},wm=(e,t,n)=>e.reduce((r,l,o)=>{let i=t[o];if(i&&i.call){let u=i(n),a=u&&u.props&&u.props.className||/^go/.test(u)&&u;i=a?"."+a:u&&typeof u=="object"?u.props?"":pt(u,""):u===!1?"":u}return r+l+(i==null?"":i)},"");function Ql(e){let t=this||{},n=e.call?e(t.p):e;return ym(n.unshift?n.raw?wm(n,[].slice.call(arguments,1),t.p):n.reduce((r,l)=>Object.assign(r,l&&l.call?l(t.p):l),{}):n,hm(t.target),t.g,t.o,t.k)}let Xc,mi,hi;Ql.bind({g:1});let ot=Ql.bind({k:1});function Sm(e,t,n,r){pt.p=t,Xc=e,mi=n,hi=r}function zt(e,t){let n=this||{};return function(){let r=arguments;function l(o,i){let u=Object.assign({},o),a=u.className||l.className;n.p=Object.assign({theme:mi&&mi()},u),n.o=/ *go\d+/.test(a),u.className=Ql.apply(n,r)+(a?" "+a:""),t&&(u.ref=i);let s=e;return e[0]&&(s=u.as||e,delete u.as),hi&&s[0]&&hi(u),Xc(s,u)}return t?t(l):l}}function Y(){return Y=Object.assign||function(e){for(var t=1;t-1&&br.splice(i,1)}},[r]);var o=r.toasts.map(function(i){var u,a,s;return Y({},t,t[i.type],i,{duration:i.duration||((u=t[i.type])==null?void 0:u.duration)||((a=t)==null?void 0:a.duration)||Nm[i.type],style:Y({},t.style,(s=t[i.type])==null?void 0:s.style,i.style)})});return Y({},r,{toasts:o})},Om=function(t,n,r){return n===void 0&&(n="blank"),Y({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},r,{id:(r==null?void 0:r.id)||xm()})},gr=function(t){return function(n,r){var l=Om(n,t,r);return At({type:ne.UPSERT_TOAST,toast:l}),l.id}},I=function(t,n){return gr("blank")(t,n)};I.error=gr("error");I.success=gr("success");I.loading=gr("loading");I.custom=gr("custom");I.dismiss=function(e){At({type:ne.DISMISS_TOAST,toastId:e})};I.remove=function(e){return At({type:ne.REMOVE_TOAST,toastId:e})};I.promise=function(e,t,n){var r=I.loading(t.loading,Y({},n,n==null?void 0:n.loading));return e.then(function(l){return I.success(Tl(t.success,l),Y({id:r},n,n==null?void 0:n.success)),l}).catch(function(l){I.error(Tl(t.error,l),Y({id:r},n,n==null?void 0:n.error))}),e};var zm=function(t){var n=Tm(t),r=n.toasts,l=n.pausedAt;k.exports.useEffect(function(){if(!l){var i=Date.now(),u=r.map(function(a){if(a.duration!==1/0){var s=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(s<0){a.visible&&I.dismiss(a.id);return}return setTimeout(function(){return I.dismiss(a.id)},s)}});return function(){u.forEach(function(a){return a&&clearTimeout(a)})}}},[r,l]);var o=k.exports.useMemo(function(){return{startPause:function(){At({type:ne.START_PAUSE,time:Date.now()})},endPause:function(){l&&At({type:ne.END_PAUSE,time:Date.now()})},updateHeight:function(u,a){return At({type:ne.UPDATE_TOAST,toast:{id:u,height:a}})},calculateOffset:function(u,a){var s,m=a||{},h=m.reverseOrder,d=h===void 0?!1:h,v=m.gutter,y=v===void 0?8:v,E=m.defaultPosition,D=r.filter(function(g){return(g.position||E)===(u.position||E)&&g.height}),f=D.findIndex(function(g){return g.id===u.id}),c=D.filter(function(g,x){return x * { + pointer-events: auto; + } +`]);return pf=function(){return e},e}Sm(k.exports.createElement);var bm=function(t,n){var r=t.includes("top"),l=r?{top:0}:{bottom:0},o=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return Y({left:0,right:0,display:"flex",position:"absolute",transition:Zc()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+n*(r?1:-1)+"px)"},l,o)},eh=Ql(pf()),Ur=16,th=function(t){var n=t.reverseOrder,r=t.position,l=r===void 0?"top-center":r,o=t.toastOptions,i=t.gutter,u=t.children,a=t.containerStyle,s=t.containerClassName,m=zm(o),h=m.toasts,d=m.handlers;return k.exports.createElement("div",{style:Y({position:"fixed",zIndex:9999,top:Ur,left:Ur,right:Ur,bottom:Ur,pointerEvents:"none"},a),className:s,onMouseEnter:d.startPause,onMouseLeave:d.endPause},h.map(function(v){var y=v.position||l,E=d.calculateOffset(v,{reverseOrder:n,gutter:i,defaultPosition:l}),D=bm(y,E),f=v.height?void 0:Em(function(c){d.updateHeight(v.id,c.height)});return k.exports.createElement("div",{ref:f,className:v.visible?eh:"",key:v.id,style:D},v.type==="custom"?Tl(v.message,v):u?u(v):k.exports.createElement(qm,{toast:v,position:y}))}))};function nh(e){return k.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),k.exports.createElement("path",{d:"M5 4a2 2 0 012-2h6a2 2 0 012 2v14l-5-2.5L5 18V4z"}))}function rh(e){return k.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),k.exports.createElement("path",{d:"M13 7H7v6h6V7z"}),k.exports.createElement("path",{fillRule:"evenodd",d:"M7 2a1 1 0 012 0v1h2V2a1 1 0 112 0v1h2a2 2 0 012 2v2h1a1 1 0 110 2h-1v2h1a1 1 0 110 2h-1v2a2 2 0 01-2 2h-2v1a1 1 0 11-2 0v-1H9v1a1 1 0 11-2 0v-1H5a2 2 0 01-2-2v-2H2a1 1 0 110-2h1V9H2a1 1 0 010-2h1V5a2 2 0 012-2h2V2zM5 5h10v10H5V5z",clipRule:"evenodd"}))}function lh(e){return k.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),k.exports.createElement("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}var du={exports:{}},Kl={};/** + * @license React + * react-jsx-runtime.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 oh=k.exports,ih=Symbol.for("react.element"),uh=Symbol.for("react.fragment"),ah=Object.prototype.hasOwnProperty,sh=oh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ch={key:!0,ref:!0,__self:!0,__source:!0};function mf(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)ah.call(t,r)&&!ch.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:ih,type:e,key:o,ref:i,props:l,_owner:sh.current}}Kl.Fragment=uh;Kl.jsx=mf;Kl.jsxs=mf;du.exports=Kl;const N=du.exports.jsx,$=du.exports.jsxs;function pu(){const e=En();return $("header",{className:"flex p-3",children:[$("div",{className:"w-full text-left",children:[e.pathname==="/overview"&&$(ko,{to:"/",children:[N(rh,{className:"h-5 w-5 inline-block"})," Pick a different device"]}),e.pathname==="/settings"&&$(ko,{to:"/overview",children:[N(nh,{className:"h-5 w-5 inline-block"})," Return to device overview"]})]}),N("div",{className:"w-full text-right",children:e.pathname==="/overview"&&$(ko,{to:"/settings",children:["Settings ",N(lh,{className:"h-5 w-5 inline-block"})]})})]})}var fh="/assets/logo.24674eb3.png";function dh(){return window.go.backend.Backend.GetSelectedKobo()}function ph(){return window.go.backend.Backend.GetSettings()}function mh(){return window.go.backend.Backend.PromptForLocalDBPath()}function hh(e){return window.go.backend.Backend.SelectKobo(e)}function vh(){return window.go.backend.Backend.DetectKobos()}function gh(){return window.go.backend.Backend.ForwardToReadwise()}function yh(){const e=Kc(),[t,n]=k.exports.useState([]);k.exports.useEffect(()=>r(),[t.length]);function r(){vh().then(i=>{if(console.log(i),i==null){I("No devices were found");return}I.success(`${i.length} kobos detected`),n(i)}).catch(i=>{I.error(i)})}function l(i){hh(i).then(u=>{u===null?e("/overview"):(console.log(u),I.error("Something went wrong selecting your Kobo"))}).catch(u=>I.error(u))}function o(){mh().then(i=>{i===null?e("/overview"):(console.log(i),I.error("Something went wrong selecting your local SQLite database"))}).catch(i=>I.error(i))}return $("div",{className:"bg-gray-100 dark:bg-gray-800 ",children:[N(pu,{}),$("div",{className:"min-h-screen flex items-center justify-center pb-24 px-24 grid grid-cols-2 gap-14",children:[$("div",{className:"space-y-2",children:[N("img",{className:"mx-auto h-36 w-auto logo-animation",src:fh,alt:"The October logo, which is a cartoon octopus reading a book."}),N("h2",{className:"text-center text-3xl font-extrabold text-gray-900 dark:text-gray-100",children:"October"}),N("p",{className:"mt-0 text-center text-sm text-gray-600 dark:text-gray-400",children:"Easily access your Kobo highlights"})]}),$("div",{className:"space-y-4 text-center",children:[N("h1",{className:"text-3xl font-bold",children:"Select your Kobo"}),N("button",{onClick:r,children:"Don't see your device? Click here to refresh device list."}),$("ul",{children:[t.map(i=>{let u=`${i.storage} GB \xB7 ${i.display_ppi} PPI`;return i.name||(u="October did not recognise this Kobo but it's safe to continue"),N("li",{children:N("button",{onClick:()=>l(i.mnt_path),className:"w-full bg-purple-200 hover:bg-purple-300 group block rounded-lg p-4 mb-2 cursor-pointer",children:N("dl",{children:$("div",{children:[N("dt",{className:"sr-only",children:"Title"}),N("dd",{className:"border-gray leading-6 font-medium text-black",children:i.name||"Unknown Kobo"}),N("dt",{className:"sr-only",children:"System Specifications"}),N("dd",{className:"text-xs text-gray-600 dark:text-gray-400",children:u})]})})})},i.mnt_path)}),N("li",{children:N("button",{onClick:o,className:"w-full bg-purple-200 hover:bg-purple-300 group block rounded-lg p-4 mb-2 cursor-pointer",children:N("dl",{children:$("div",{children:[N("dt",{className:"sr-only",children:"Title"}),N("dd",{className:"border-gray leading-6 font-medium text-black",children:"Load in a local Kobo database (advanced)"}),N("dt",{className:"sr-only",children:"Description"}),N("dd",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Provide an instance of KoboReader.sqlite3"})]})})})})]})]})]})]})}function wh(){return window.go.backend.Kobo.CountDeviceBookmarks()}function Sh(){return window.go.backend.Settings.CheckReadwiseConfig()}function kh(e){return window.go.backend.Settings.SaveCoverUploading(e)}function xh(e){return window.go.backend.Settings.SaveToken(e)}function Eh(e){const[t,n]=k.exports.useState(!1),[r,l]=k.exports.useState({}),[o,i]=k.exports.useState(0);k.exports.useEffect(()=>{dh().then(s=>l(s)).catch(s=>I.error(s))},[r.mnt_path]),k.exports.useEffect(()=>{wh().then(s=>i(s)).catch(s=>I.error(s))},[o]),k.exports.useEffect(()=>{Sh().then(s=>n(s)).catch(s=>I.error(s))});function u(){I("In order to upload to Readwise, you need to configure your token on the Settings page!")}function a(){const s=I.loading("Preparing your highlights...");gh().then(m=>{typeof m=="number"?I.success(`Successfully forwarded ${m} highlights to Readwise`,{id:s}):I.error(`There was a problem sending your highlights: ${m.message}`,{id:s})}).catch(m=>{m.includes("401")?I.error("Received 401 Unauthorised from Readwise. Is your access token correct?",{id:s}):m.includes("failed to upload covers")?I.error(m,{id:s}):I.error(`There was a problem sending your highlights: ${m}`,{id:s})})}return $("div",{className:"bg-gray-100 dark:bg-gray-800 ",children:[N(pu,{}),$("div",{className:"min-h-screen flex items-center justify-center pb-24 px-24 grid grid-cols-2 gap-14",children:[$("div",{className:"space-y-2",children:[N("p",{className:"text-center text-xs text-gray-600 dark:text-gray-400",children:"Currently connected"}),N("h2",{className:"text-center text-3xl font-extrabold text-gray-900 dark:text-gray-100",children:r.name}),r.storage!==0&&r.display_ppi!==0&&$("p",{className:"mt-0 text-center text-sm text-gray-600 dark:text-gray-400",children:[r.storage," GB \xB7 ",r.display_ppi," PPI"]}),r.storage===0&&r.display_ppi===0&&N("p",{className:"mt-0 text-center text-sm text-gray-600 dark:text-gray-400",children:"Dang, that's some hardcore hacker stuff!"})]}),$("div",{className:"space-y-4 text-center",children:[N("h3",{className:"text-md font-medium",children:"What would you like to do?"}),N("ul",{children:N("li",{children:N("button",{onClick:t?a:u,className:"w-full bg-purple-200 hover:bg-purple-300 group block rounded-lg p-4 mb-2 cursor-pointer",children:N("dl",{children:$("div",{children:[N("dt",{className:"sr-only",children:"Title"}),N("dd",{className:"border-gray leading-6 font-medium text-black",children:"Sync your highlights with Readwise"}),N("dt",{className:"sr-only",children:"Description"}),$("dd",{className:"text-xs text-gray-600 dark:text-gray-400",children:["Your Kobo is currently home to ",o," highlights"]})]})})})})})]})]})]})}function _h(e){window.runtime.BrowserOpenURL(e)}function Ch(e){return window.go.backend.Readwise.CheckTokenValidity(e)}function Ph(){const[e,t]=k.exports.useState(!1),[n,r]=k.exports.useState(""),[l,o]=k.exports.useState(!1),[i,u]=k.exports.useState("");k.exports.useEffect(()=>{ph().then(h=>{t(!0),r(h.readwise_token),u(h.readwise_token),o(h.upload_covers)})},[e]);function a(){r(i),xh(i),I.success("Your changes have been saved")}function s(){o(!l),kh(!l),I.success("Your changes have been saved")}function m(){I.promise(Ch(i),{loading:"Contacting Readwise...",success:()=>"Your API token is valid!",error:h=>h==="401 Unauthorized"?"Readwise rejected your token":h})}return $("div",{className:"bg-gray-100 dark:bg-gray-800 ",children:[N(pu,{}),$("div",{className:"min-h-screen flex items-center justify-center pb-24 px-24 grid grid-cols-2 gap-14",children:[N("div",{className:"space-y-2",children:N("h2",{className:"text-center text-3xl font-extrabold text-gray-900 dark:text-gray-100",children:"Settings"})}),$("div",{className:"space-y-4",children:[N("div",{className:"bg-white shadow sm:rounded-lg",children:$("div",{className:"px-4 py-5 sm:p-6",children:[N("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Set your Readwise access token"}),N("div",{className:"mt-2 max-w-xl text-sm text-gray-500",children:$("p",{children:["You can find your access token at"," ",N("button",{className:"text-gray-600 underline",onClick:()=>_h("https://readwise.io/access_token"),children:"https://readwise.io/access_token"})]})}),$("form",{onSubmit:h=>h.preventDefault(),className:"sm:flex flex-col",children:[N("div",{className:"w-full mt-4 sm:flex sm:items-center",children:N("input",{onChange:h=>u(h.target.value),type:"text",name:"token",id:"token",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"Your access token goes here",value:i})}),$("div",{className:"w-full mt-4 sm:flex flex-row",children:[N("button",{onClick:m,type:"submit",className:"mt-3 w-full inline-flex items-center justify-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 sm:mt-0 sm:text-sm",children:"Validate"}),N("button",{onClick:a,type:"submit",className:"mt-3 w-full inline-flex items-center justify-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:text-sm",children:"Save"})]})]})]})}),N("div",{className:"shadow overflow-hidden sm:rounded-md",children:N("div",{className:"px-4 py-5 bg-white space-y-6 sm:p-6",children:$("fieldset",{children:[N("legend",{className:"text-base font-medium text-gray-900",children:"Kobo metadata upload"}),N("div",{className:"mt-4 space-y-4",children:$("div",{className:"flex items-start",children:[N("div",{className:"flex items-center h-5",children:N("input",{onInput:h=>s(!h.currentTarget.checked),checked:l,id:"comments",name:"comments",type:"checkbox",className:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded"})}),$("div",{className:"ml-3 text-sm",children:[N("label",{htmlFor:"comments",className:"font-medium text-gray-700",children:"Upload covers"}),N("p",{className:"text-gray-500",children:"This will slow down the upload process a bit. It also requires you to have configured Calibre correctly!"})]})]})})]})})})]})]})]})}const Nh=$(Rf.StrictMode,{children:[N(cm,{children:$(um,{children:[N(Jr,{path:"/",element:N(yh,{})}),N(Jr,{path:"/overview",element:N(Eh,{})}),N(Jr,{path:"/settings",element:N(Ph,{})})]})}),N(th,{})]}),Th=document.getElementById("root"),Oh=Bc(Th);Oh.render(Nh); diff --git a/frontend/dist/assets/index.bc6cfc65.js b/frontend/dist/assets/index.bc6cfc65.js deleted file mode 100644 index 02e44812..00000000 --- a/frontend/dist/assets/index.bc6cfc65.js +++ /dev/null @@ -1,234 +0,0 @@ -var bf=Object.defineProperty,ed=Object.defineProperties;var td=Object.getOwnPropertyDescriptors;var Mr=Object.getOwnPropertySymbols;var Bu=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable;var Au=(e,t,n)=>t in e?bf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))Bu.call(t,n)&&Au(e,n,t[n]);if(Mr)for(var n of Mr(t))Uu.call(t,n)&&Au(e,n,t[n]);return e},Qe=(e,t)=>ed(e,td(t));var mo=(e,t)=>{var n={};for(var r in e)Bu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Mr)for(var r of Mr(e))t.indexOf(r)<0&&Uu.call(e,r)&&(n[r]=e[r]);return n};const nd=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}};nd();var k={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 Tr=Symbol.for("react.element"),rd=Symbol.for("react.portal"),ld=Symbol.for("react.fragment"),od=Symbol.for("react.strict_mode"),id=Symbol.for("react.profiler"),ud=Symbol.for("react.provider"),ad=Symbol.for("react.context"),sd=Symbol.for("react.forward_ref"),cd=Symbol.for("react.suspense"),fd=Symbol.for("react.memo"),dd=Symbol.for("react.lazy"),Vu=Symbol.iterator;function pd(e){return e===null||typeof e!="object"?null:(e=Vu&&e[Vu]||e["@@iterator"],typeof e=="function"?e:null)}var cs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fs=Object.assign,ds={};function zn(e,t,n){this.props=e,this.context=t,this.refs=ds,this.updater=n||cs}zn.prototype.isReactComponent={};zn.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")};zn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ps(){}ps.prototype=zn.prototype;function Ui(e,t,n){this.props=e,this.context=t,this.refs=ds,this.updater=n||cs}var Vi=Ui.prototype=new ps;Vi.constructor=Ui;fs(Vi,zn.prototype);Vi.isPureReactComponent=!0;var Hu=Array.isArray,ms=Object.prototype.hasOwnProperty,Hi={current:null},hs={key:!0,ref:!0,__self:!0,__source:!0};function vs(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)ms.call(t,r)&&!hs.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,ae=C[b];if(0>>1;bl(po,I))Vtl(Dr,po)?(C[b]=Dr,C[Vt]=I,b=Vt):(C[b]=po,C[Ut]=I,b=Ut);else if(Vtl(Dr,I))C[b]=Dr,C[Vt]=I,b=Vt;else break e}}return z}function l(C,z){var I=C.sortIndex-z.sortIndex;return I!==0?I:C.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var a=[],s=[],m=1,h=null,p=3,v=!1,y=!1,S=!1,N=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(C){for(var z=n(s);z!==null;){if(z.callback===null)r(s);else if(z.startTime<=C)r(s),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(s)}}function g(C){if(S=!1,d(C),!y)if(n(a)!==null)y=!0,Re(w);else{var z=n(s);z!==null&&re(g,z.startTime-C)}}function w(C,z){y=!1,S&&(S=!1,c(x),x=-1),v=!0;var I=p;try{for(d(z),h=n(a);h!==null&&(!(h.expirationTime>z)||C&&!$());){var b=h.callback;if(typeof b=="function"){h.callback=null,p=h.priorityLevel;var ae=b(h.expirationTime<=z);z=e.unstable_now(),typeof ae=="function"?h.callback=ae:h===n(a)&&r(a),d(z)}else r(a);h=n(a)}if(h!==null)var Ir=!0;else{var Ut=n(s);Ut!==null&&re(g,Ut.startTime-z),Ir=!1}return Ir}finally{h=null,p=I,v=!1}}var T=!1,P=null,x=-1,L=5,R=-1;function $(){return!(e.unstable_now()-RC||125b?(C.sortIndex=I,t(s,C),n(a)===null&&C===n(s)&&(S?(c(x),x=-1):S=!0,re(g,I-b))):(C.sortIndex=ae,t(a,C),y||v||(y=!0,Re(w))),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var z=p;return function(){var I=p;p=z;try{return C.apply(this,arguments)}finally{p=I}}}})(ws);ys.exports=ws;/** - * @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 xs=k.exports,De=ys.exports;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Ee(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ee(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){pe[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qi=/[\-:]([a-z])/g;function Ki(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(Qi,Ki);pe[t]=new Ee(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(Qi,Ki);pe[t]=new Ee(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(Qi,Ki);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yi(e,t,n,r){var l=pe.hasOwnProperty(t)?pe[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var a=` -`+l[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=u);break}}}finally{go=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yn(e):""}function Sd(e){switch(e.tag){case 5:return Yn(e.type);case 16:return Yn("Lazy");case 13:return Yn("Suspense");case 19:return Yn("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function Xo(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 sn:return"Fragment";case an:return"Portal";case Ko:return"Profiler";case Gi:return"StrictMode";case Yo:return"Suspense";case Go:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Es:return(e.displayName||"Context")+".Consumer";case Ss:return(e._context.displayName||"Context")+".Provider";case Xi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zi:return t=e.displayName||null,t!==null?t:Xo(e.type)||"Memo";case yt:t=e._payload,e=e._init;try{return Xo(e(t))}catch{}}return null}function Ed(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 Xo(t);case 8:return t===Gi?"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 It(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _s(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cd(e){var t=_s(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fr(e){e._valueTracker||(e._valueTracker=Cd(e))}function Ts(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_s(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wl(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zo(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Gu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=It(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 Ns(e,t){t=t.checked,t!=null&&Yi(e,"checked",t,!1)}function Jo(e,t){Ns(e,t);var n=It(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")?qo(e,t.type,n):t.hasOwnProperty("defaultValue")&&qo(e,t.type,It(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xu(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 qo(e,t,n){(t!=="number"||wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gn=Array.isArray;function xn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Ar.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jn={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},_d=["Webkit","ms","Moz","O"];Object.keys(Jn).forEach(function(e){_d.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jn[t]=Jn[e]})});function Rs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jn.hasOwnProperty(e)&&Jn[e]?(""+t).trim():t+"px"}function zs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Rs(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Td=X({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 ti(e,t){if(t){if(Td[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function ni(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 ri=null;function Ji(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var li=null,kn=null,Sn=null;function qu(e){if(e=Or(e)){if(typeof li!="function")throw Error(E(280));var t=e.stateNode;t&&(t=ql(t),li(e.stateNode,e.type,t))}}function Is(e){kn?Sn?Sn.push(e):Sn=[e]:kn=e}function Ds(){if(kn){var e=kn,t=Sn;if(Sn=kn=null,qu(e),t)for(e=0;e>>=0,e===0?32:31-($d(e)/Fd|0)|0}var Br=64,Ur=4194304;function Xn(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 El(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Xn(u):(o&=i,o!==0&&(r=Xn(o)))}else i=n&~l,i!==0?r=Xn(i):o!==0&&(r=Xn(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Nr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Je(t),e[t]=n}function Vd(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=bn),ua=String.fromCharCode(32),aa=!1;function ec(e,t){switch(e){case"keyup":return vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cn=!1;function yp(e,t){switch(e){case"compositionend":return tc(t);case"keypress":return t.which!==32?null:(aa=!0,ua);case"textInput":return e=t.data,e===ua&&aa?null:e;default:return null}}function wp(e,t){if(cn)return e==="compositionend"||!ou&&ec(e,t)?(e=qs(),il=nu=Et=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=da(n)}}function oc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ic(){for(var e=window,t=wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wl(e.document)}return t}function iu(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 Pp(e){var t=ic(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&oc(n.ownerDocument.documentElement,n)){if(r!==null&&iu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=pa(n,o);var i=pa(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,fn=null,ci=null,tr=null,fi=!1;function ma(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fi||fn==null||fn!==wl(r)||(r=fn,"selectionStart"in r&&iu(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}),tr&&vr(tr,r)||(tr=r,r=Tl(ci,"onSelect"),0mn||(e.current=gi[mn],gi[mn]=null,mn--)}function H(e,t){mn++,gi[mn]=e.current,e.current=t}var Dt={},ge=Ft(Dt),Pe=Ft(!1),Jt=Dt;function Nn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Oe(e){return e=e.childContextTypes,e!=null}function Pl(){Q(Pe),Q(ge)}function ka(e,t,n){if(ge.current!==Dt)throw Error(E(168));H(ge,t),H(Pe,n)}function hc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(E(108,Ed(e)||"Unknown",l));return X({},n,r)}function Ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Jt=ge.current,H(ge,e),H(Pe,Pe.current),!0}function Sa(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=hc(e,t,Jt),r.__reactInternalMemoizedMergedChildContext=e,Q(Pe),Q(ge),H(ge,e)):Q(Pe),H(Pe,n)}var ut=null,bl=!1,zo=!1;function vc(e){ut===null?ut=[e]:ut.push(e)}function Bp(e){bl=!0,vc(e)}function At(){if(!zo&&ut!==null){zo=!0;var e=0,t=A;try{var n=ut;for(A=1;e>=i,l-=i,st=1<<32-Je(t)+l|n<x?(L=P,P=null):L=P.sibling;var R=p(c,P,d[x],g);if(R===null){P===null&&(P=L);break}e&&P&&R.alternate===null&&t(c,P),f=o(R,f,x),T===null?w=R:T.sibling=R,T=R,P=L}if(x===d.length)return n(c,P),K&&Ht(c,x),w;if(P===null){for(;xx?(L=P,P=null):L=P.sibling;var $=p(c,P,R.value,g);if($===null){P===null&&(P=L);break}e&&P&&$.alternate===null&&t(c,P),f=o($,f,x),T===null?w=$:T.sibling=$,T=$,P=L}if(R.done)return n(c,P),K&&Ht(c,x),w;if(P===null){for(;!R.done;x++,R=d.next())R=h(c,R.value,g),R!==null&&(f=o(R,f,x),T===null?w=R:T.sibling=R,T=R);return K&&Ht(c,x),w}for(P=r(c,P);!R.done;x++,R=d.next())R=v(P,c,x,R.value,g),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?x:R.key),f=o(R,f,x),T===null?w=R:T.sibling=R,T=R);return e&&P.forEach(function(q){return t(c,q)}),K&&Ht(c,x),w}function N(c,f,d,g){if(typeof d=="object"&&d!==null&&d.type===sn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case $r:e:{for(var w=d.key,T=f;T!==null;){if(T.key===w){if(w=d.type,w===sn){if(T.tag===7){n(c,T.sibling),f=l(T,d.props.children),f.return=c,c=f;break e}}else if(T.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===yt&&Oa(w)===T.type){n(c,T.sibling),f=l(T,d.props),f.ref=Vn(c,T,d),f.return=c,c=f;break e}n(c,T);break}else t(c,T);T=T.sibling}d.type===sn?(f=Xt(d.props.children,c.mode,g,d.key),f.return=c,c=f):(g=pl(d.type,d.key,d.props,null,c.mode,g),g.ref=Vn(c,f,d),g.return=c,c=g)}return i(c);case an:e:{for(T=d.key;f!==null;){if(f.key===T)if(f.tag===4&&f.stateNode.containerInfo===d.containerInfo&&f.stateNode.implementation===d.implementation){n(c,f.sibling),f=l(f,d.children||[]),f.return=c,c=f;break e}else{n(c,f);break}else t(c,f);f=f.sibling}f=Ao(d,c.mode,g),f.return=c,c=f}return i(c);case yt:return T=d._init,N(c,f,T(d._payload),g)}if(Gn(d))return y(c,f,d,g);if(jn(d))return S(c,f,d,g);Yr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,f!==null&&f.tag===6?(n(c,f.sibling),f=l(f,d),f.return=c,c=f):(n(c,f),f=Fo(d,c.mode,g),f.return=c,c=f),i(c)):n(c,f)}return N}var On=Sc(!0),Ec=Sc(!1),Lr={},rt=Ft(Lr),xr=Ft(Lr),kr=Ft(Lr);function Kt(e){if(e===Lr)throw Error(E(174));return e}function mu(e,t){switch(H(kr,t),H(xr,e),H(rt,Lr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ei(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ei(t,e)}Q(rt),H(rt,t)}function Ln(){Q(rt),Q(xr),Q(kr)}function Cc(e){Kt(kr.current);var t=Kt(rt.current),n=ei(t,e.type);t!==n&&(H(xr,e),H(rt,n))}function hu(e){xr.current===e&&(Q(rt),Q(xr))}var Y=Ft(0);function Ml(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)!==0)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 Io=[];function vu(){for(var e=0;en?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{A=n,Do.transition=r}}function Ac(){return We().memoizedState}function Wp(e,t,n){var r=Rt(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bc(e)?Uc(t,n):(Vc(e,t,n),n=ke(),e=Ve(e,r,n),e!==null&&Hc(e,t,r))}function Qp(e,t,n){var r=Rt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bc(e))Uc(t,l);else{Vc(e,t,l);var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,qe(u,i))return}catch{}finally{}n=ke(),e=Ve(e,r,n),e!==null&&Hc(e,t,r)}}function Bc(e){var t=e.alternate;return e===G||t!==null&&t===G}function Uc(e,t){nr=jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vc(e,t,n){uf(e)?(e=t.interleaved,e===null?(n.next=n,Ze===null?Ze=[t]:Ze.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function Hc(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bi(e,n)}}var $l={readContext:He,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},Kp={readContext:He,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:He,useEffect:Ra,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cl(4194308,4,Dc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cl(4194308,4,e,t)},useInsertionEffect:function(e,t){return cl(4,2,e,t)},useMemo:function(e,t){var n=et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=et();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=Wp.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:La,useDebugValue:ku,useDeferredValue:function(e){return et().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Hp.bind(null,e[1]),et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,l=et();if(K){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ie===null)throw Error(E(349));(bt&30)!==0||Nc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ra(Oc.bind(null,r,o,e),[e]),r.flags|=2048,Cr(9,Pc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=et(),t=ie.identifierPrefix;if(K){var n=ct,r=st;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[tt]=t,e[wr]=r,Kc(e,t,!1,!1),t.stateNode=e;e:{switch(i=ni(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;lRn&&(t.flags|=128,r=!0,Hn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ml(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!K)return he(t),null}else 2*ee()-o.renderingStartTime>Rn&&n!==1073741824&&(t.flags|=128,r=!0,Hn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ee(),t.sibling=null,n=Y.current,H(Y,r?n&1|2:n&1),t):(he(t),null);case 22:case 23:return Nu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ze&1073741824)!==0&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}var Jp=vt.ReactCurrentOwner,Te=!1;function we(e,t,n,r){t.child=e===null?Ec(t,null,n,r):On(t,e.child,n,r)}function Ma(e,t,n,r,l){n=n.render;var o=t.ref;return Cn(t,l),r=yu(e,t,n,r,o,l),n=wu(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,mt(e,t,l)):(K&&n&&fu(t),t.flags|=1,we(e,t,r,l),t.child)}function ja(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Ou(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Xc(e,t,o,r,l)):(e=pl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&l)===0){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:vr,n(i,r)&&e.ref===t.ref)return mt(e,t,l)}return t.flags|=1,e=Mt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Xc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(vr(o,r)&&e.ref===t.ref)if(Te=!1,t.pendingProps=r=o,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Te=!0);else return t.lanes=e.lanes,mt(e,t,l)}return _i(e,t,n,r,l)}function Zc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},H(wn,ze),ze|=n;else if((n&1073741824)!==0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,H(wn,ze),ze|=r;else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,H(wn,ze),ze|=e,null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,H(wn,ze),ze|=r;return we(e,t,l,n),t.child}function Jc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _i(e,t,n,r,l){var o=Oe(n)?Jt:ge.current;return o=Nn(t,o),Cn(t,l),n=yu(e,t,n,r,o,l),r=wu(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,mt(e,t,l)):(K&&r&&fu(t),t.flags|=1,we(e,t,n,l),t.child)}function $a(e,t,n,r,l){if(Oe(n)){var o=!0;Ol(t)}else o=!1;if(Cn(t,l),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),wc(t,n,r),xi(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var a=i.context,s=n.contextType;typeof s=="object"&&s!==null?s=He(s):(s=Oe(n)?Jt:ge.current,s=Nn(t,s));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||a!==s)&&Ta(t,i,r,s),wt=!1;var p=t.memoizedState;i.state=p,zl(t,r,i,l),a=t.memoizedState,u!==r||p!==a||Pe.current||wt?(typeof m=="function"&&(wi(t,n,m,r),a=t.memoizedState),(u=wt||_a(t,n,u,r,p,a,s))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=s,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,gc(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:Ye(t.type,u),i.props=s,h=t.pendingProps,p=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=He(a):(a=Oe(n)?Jt:ge.current,a=Nn(t,a));var v=n.getDerivedStateFromProps;(m=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==h||p!==a)&&Ta(t,i,r,a),wt=!1,p=t.memoizedState,i.state=p,zl(t,r,i,l);var y=t.memoizedState;u!==h||p!==y||Pe.current||wt?(typeof v=="function"&&(wi(t,n,v,r),y=t.memoizedState),(s=wt||_a(t,n,s,r,p,y,a)||!1)?(m||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=a,r=s):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ti(e,t,n,r,o,l)}function Ti(e,t,n,r,l,o){Jc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Sa(t,n,!1),mt(e,t,o);r=t.stateNode,Jp.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=On(t,e.child,null,o),t.child=On(t,null,u,o)):we(e,t,u,o),t.memoizedState=r.state,l&&Sa(t,n,!0),t.child}function qc(e){var t=e.stateNode;t.pendingContext?ka(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ka(e,t.context,!1),mu(e,t.containerInfo)}function Fa(e,t,n,r,l){return Pn(),pu(l),t.flags|=256,we(e,t,n,r),t.child}var Gr={dehydrated:null,treeContext:null,retryLane:0};function Xr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Aa(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function bc(e,t,n){var r=t.pendingProps,l=Y.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),H(Y,l&1),e===null)return Si(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Vl(l,r,0,null),e=Xt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Xr(n),t.memoizedState=Gr,e):Ni(t,l));if(l=e.memoizedState,l!==null){if(u=l.dehydrated,u!==null){if(i)return t.flags&256?(t.flags&=-257,Zr(e,t,n,Error(E(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Vl({mode:"visible",children:r.children},l,0,null),o=Xt(o,l,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&On(t,e.child,null,n),t.child.memoizedState=Xr(n),t.memoizedState=Gr,o);if((t.mode&1)===0)t=Zr(e,t,n,null);else if(u.data==="$!")t=Zr(e,t,n,Error(E(419)));else if(r=(n&e.childLanes)!==0,Te||r){if(r=ie,r!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}r=(o&(r.suspendedLanes|n))!==0?0:o,r!==0&&r!==l.retryLane&&(l.retryLane=r,Ve(e,r,-1))}Pu(),t=Zr(e,t,n,Error(E(421)))}else u.data==="$?"?(t.flags|=128,t.child=e.child,t=sm.bind(null,e),u._reactRetry=t,t=null):(n=l.treeContext,_e=at(u.nextSibling),Ie=t,K=!0,Xe=null,n!==null&&(Fe[Ae++]=st,Fe[Ae++]=ct,Fe[Ae++]=qt,st=n.id,ct=n.overflow,qt=t),t=Ni(t,t.pendingProps.children),t.flags|=4096);return t}return o?(r=Ua(e,t,r.children,r.fallback,n),o=t.child,l=e.child.memoizedState,o.memoizedState=l===null?Xr(n):Aa(l,n),o.childLanes=e.childLanes&~n,t.memoizedState=Gr,r):(n=Ba(e,t,r.children,n),t.memoizedState=null,n)}return o?(r=Ua(e,t,r.children,r.fallback,n),o=t.child,l=e.child.memoizedState,o.memoizedState=l===null?Xr(n):Aa(l,n),o.childLanes=e.childLanes&~n,t.memoizedState=Gr,r):(n=Ba(e,t,r.children,n),t.memoizedState=null,n)}function Ni(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ba(e,t,n,r){var l=e.child;return e=l.sibling,n=Mt(l,{mode:"visible",children:n}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Ua(e,t,n,r,l){var o=t.mode;e=e.child;var i=e.sibling,u={mode:"hidden",children:n};return(o&1)===0&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Mt(e,u),n.subtreeFlags=e.subtreeFlags&14680064),i!==null?r=Mt(i,r):(r=Xt(r,o,l,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Zr(e,t,n,r){return r!==null&&pu(r),On(t,e.child,null,n),e=Ni(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Va(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yi(e.return,t,n)}function $o(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function ef(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(we(e,t,r.children,n),r=Y.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Va(e,n,t);else if(e.tag===19)Va(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(H(Y,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ml(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),$o(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ml(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}$o(t,!0,n,null,o);break;case"together":$o(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),en|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Mt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qp(e,t,n){switch(t.tag){case 3:qc(t),Pn();break;case 5:Cc(t);break;case 1:Oe(t.type)&&Ol(t);break;case 4:mu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;H(Ll,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(H(Y,Y.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?bc(e,t,n):(H(Y,Y.current&1),e=mt(e,t,n),e!==null?e.sibling:null);H(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return ef(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),H(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,Zc(e,t,n)}return mt(e,t,n)}function bp(e,t){switch(du(t),t.tag){case 1:return Oe(t.type)&&Pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(),Q(Pe),Q(ge),vu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return hu(t),null;case 13:if(Q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Y),null;case 4:return Ln(),null;case 10:return su(t.type._context),null;case 22:case 23:return Nu(),null;case 24:return null;default:return null}}var Jr=!1,ve=!1,em=typeof WeakSet=="function"?WeakSet:Set,O=null;function yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function Pi(e,t,n){try{n()}catch(r){J(e,t,r)}}var Ha=!1;function tm(e,t){if(di=Cl,e=ic(),iu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,a=-1,s=0,m=0,h=e,p=null;t:for(;;){for(var v;h!==n||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(a=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(v=h.firstChild)!==null;)p=h,h=v;for(;;){if(h===e)break t;if(p===n&&++s===l&&(u=i),p===o&&++m===r&&(a=i),(v=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=v}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(pi={focusedElem:e,selectionRange:n},Cl=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var S=y.memoizedProps,N=y.memoizedState,c=t.stateNode,f=c.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ye(t.type,S),N);c.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var d=t.stateNode.containerInfo;if(d.nodeType===1)d.textContent="";else if(d.nodeType===9){var g=d.body;g!=null&&(g.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){J(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return y=Ha,Ha=!1,y}function rr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Pi(t,n,o)}l=l.next}while(l!==r)}}function no(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 Oi(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 tf(e){var t=e.alternate;t!==null&&(e.alternate=null,tf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tt],delete t[wr],delete t[vi],delete t[Fp],delete t[Ap])),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 nf(e){return e.tag===5||e.tag===3||e.tag===4}function Wa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nf(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 Li(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=Nl));else if(r!==4&&(e=e.child,e!==null))for(Li(e,t,n),e=e.sibling;e!==null;)Li(e,t,n),e=e.sibling}function Ri(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(Ri(e,t,n),e=e.sibling;e!==null;)Ri(e,t,n),e=e.sibling}var fe=null,Ge=!1;function gt(e,t,n){for(n=n.child;n!==null;)rf(e,t,n),n=n.sibling}function rf(e,t,n){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(Gl,n)}catch{}switch(n.tag){case 5:ve||yn(n,t);case 6:var r=fe,l=Ge;fe=null,gt(e,t,n),fe=r,Ge=l,fe!==null&&(Ge?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Ge?(e=fe,n=n.stateNode,e.nodeType===8?Ro(e.parentNode,n):e.nodeType===1&&Ro(e,n),mr(e)):Ro(fe,n.stateNode));break;case 4:r=fe,l=Ge,fe=n.stateNode.containerInfo,Ge=!0,gt(e,t,n),fe=r,Ge=l;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&((o&2)!==0||(o&4)!==0)&&Pi(n,t,i),l=l.next}while(l!==r)}gt(e,t,n);break;case 1:if(!ve&&(yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){J(n,t,u)}gt(e,t,n);break;case 21:gt(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,gt(e,t,n),ve=r):gt(e,t,n);break;default:gt(e,t,n)}}function Qa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new em),t.forEach(function(r){var l=cm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ke(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rm(r/1960))-r,10e?16:e,Ct===null)var r=!1;else{if(e=Ct,Ct=null,Bl=0,(F&6)!==0)throw Error(E(331));var l=F;for(F|=4,O=e.current;O!==null;){var o=O,i=o.child;if((O.flags&16)!==0){var u=o.deletions;if(u!==null){for(var a=0;aee()-_u?Gt(e,0):Cu|=n),Le(e,t)}function pf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ur,Ur<<=1,(Ur&130023424)===0&&(Ur=4194304)));var n=ke();e=lo(e,t),e!==null&&(Nr(e,t,n),Le(e,n))}function sm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pf(e,n)}function cm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),pf(e,n)}var mf;mf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)Te=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Te=!1,qp(e,t,n);Te=(e.flags&131072)!==0}else Te=!1,K&&(t.flags&1048576)!==0&&xc(t,Dl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var l=Nn(t,ge.current);Cn(t,n),l=yu(null,t,r,e,l,n);var o=wu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oe(r)?(o=!0,Ol(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,cu(t),l.updater=eo,t.stateNode=l,l._reactInternals=t,xi(t,r,e,n),t=Ti(null,t,r,!0,o,n)):(t.tag=0,K&&o&&fu(t),we(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=dm(r),e=Ye(r,e),l){case 0:t=_i(null,t,r,e,n);break e;case 1:t=$a(null,t,r,e,n);break e;case 11:t=Ma(null,t,r,e,n);break e;case 14:t=ja(null,t,r,Ye(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),_i(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),$a(e,t,r,l,n);case 3:e:{if(qc(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,gc(e,t),zl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Error(E(423)),t=Fa(e,t,r,n,l);break e}else if(r!==l){l=Error(E(424)),t=Fa(e,t,r,n,l);break e}else for(_e=at(t.stateNode.containerInfo.firstChild),Ie=t,K=!0,Xe=null,n=Ec(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pn(),r===l){t=mt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return Cc(t),e===null&&Si(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,mi(r,l)?i=null:o!==null&&mi(r,o)&&(t.flags|=32),Jc(e,t),we(e,t,i,n),t.child;case 6:return e===null&&Si(t),null;case 13:return bc(e,t,n);case 4:return mu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),Ma(e,t,r,l,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,H(Ll,r._currentValue),r._currentValue=i,o!==null)if(qe(o.value,i)){if(o.children===l.children&&!Pe.current){t=mt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=ft(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var m=s.pending;m===null?a.next=a:(a.next=m.next,m.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),yi(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(E(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),yi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}we(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Cn(t,n),l=He(l),r=r(l),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,l=Ye(r,t.pendingProps),l=Ye(r.type,l),ja(e,t,r,l,n);case 15:return Xc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Oe(r)?(e=!0,Ol(t)):e=!1,Cn(t,n),wc(t,r,l),xi(t,r,l,n),Ti(null,t,r,!0,e,n);case 19:return ef(e,t,n);case 22:return Zc(e,t,n)}throw Error(E(156,t.tag))};function hf(e,t){return Us(e,t)}function fm(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 Be(e,t,n,r){return new fm(e,t,n,r)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dm(e){if(typeof e=="function")return Ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xi)return 11;if(e===Zi)return 14}return 2}function Mt(e,t){var n=e.alternate;return n===null?(n=Be(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 pl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ou(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case sn:return Xt(n.children,l,o,t);case Gi:i=8,l|=8;break;case Ko:return e=Be(12,n,t,l|2),e.elementType=Ko,e.lanes=o,e;case Yo:return e=Be(13,n,t,l),e.elementType=Yo,e.lanes=o,e;case Go:return e=Be(19,n,t,l),e.elementType=Go,e.lanes=o,e;case Cs:return Vl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ss:i=10;break e;case Es:i=9;break e;case Xi:i=11;break e;case Zi:i=14;break e;case yt:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Be(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Xt(e,t,n,r){return e=Be(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=Be(22,e,r,t),e.elementType=Cs,e.lanes=n,e.stateNode={},e}function Fo(e,t,n){return e=Be(6,e,null,t),e.lanes=n,e}function Ao(e,t,n){return t=Be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xo(0),this.expirationTimes=xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,l,o,i,u,a){return e=new pm(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Be(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cu(o),e}function mm(e,t,n){var r=3typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||xm,Sm=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Em=/\/\*[^]*?\*\/| +/g,ba=/\n+/g,St=(e,t)=>{let n="",r="",l="";for(let o in e){let i=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+i+";":r+=o[1]=="f"?St(i,o):o+"{"+St(i,o[1]=="k"?"":t)+"}":typeof i=="object"?r+=St(i,t?t.replace(/([^,])+/g,u=>o.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,u):u?u+" "+a:a)):o):i!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=St.p?St.p(o,i):o+":"+i+";")}return n+(t&&l?t+"{"+l+"}":l)+r},Qn={},kf=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+kf(e[n]);return t}return e},Cm=(e,t,n,r,l)=>{let o=kf(e),i=Qn[o]||(Qn[o]=(u=>{let a=0,s=11;for(;a>>0;return"go"+s})(o));if(!Qn[i]){let u=o!==e?e:(a=>{let s,m,h=[{}];for(;s=Sm.exec(a.replace(Em,""));)s[4]?h.shift():s[3]?(m=s[3].replace(ba," ").trim(),h.unshift(h[0][m]=h[0][m]||{})):h[0][s[1]]=s[2].replace(ba," ").trim();return h[0]})(e);Qn[i]=St(l?{["@keyframes "+i]:u}:u,n?"":"."+i)}return((u,a,s)=>{a.data.indexOf(u)==-1&&(a.data=s?u+a.data:a.data+u)})(Qn[i],t,r),i},_m=(e,t,n)=>e.reduce((r,l,o)=>{let i=t[o];if(i&&i.call){let u=i(n),a=u&&u.props&&u.props.className||/^go/.test(u)&&u;i=a?"."+a:u&&typeof u=="object"?u.props?"":St(u,""):u===!1?"":u}return r+l+(i==null?"":i)},"");function so(e){let t=this||{},n=e.call?e(t.p):e;return Cm(n.unshift?n.raw?_m(n,[].slice.call(arguments,1),t.p):n.reduce((r,l)=>Object.assign(r,l&&l.call?l(t.p):l),{}):n,km(t.target),t.g,t.o,t.k)}let Sf,ji,$i;so.bind({g:1});let ht=so.bind({k:1});function Tm(e,t,n,r){St.p=t,Sf=e,ji=n,$i=r}function Bt(e,t){let n=this||{};return function(){let r=arguments;function l(o,i){let u=Object.assign({},o),a=u.className||l.className;n.p=Object.assign({theme:ji&&ji()},u),n.o=/ *go\d+/.test(a),u.className=so.apply(n,r)+(a?" "+a:""),t&&(u.ref=i);let s=e;return e[0]&&(s=u.as||e,delete u.as),$i&&s[0]&&$i(u),Sf(s,u)}return t?t(l):l}}function Z(){return Z=Object.assign||function(e){for(var t=1;t-1&&hl.splice(i,1)}},[r]);var o=r.toasts.map(function(i){var u,a,s;return Z({},t,t[i.type],i,{duration:i.duration||((u=t[i.type])==null?void 0:u.duration)||((a=t)==null?void 0:a.duration)||Im[i.type],style:Z({},t.style,(s=t[i.type])==null?void 0:s.style,i.style)})});return Z({},r,{toasts:o})},Mm=function(t,n,r){return n===void 0&&(n="blank"),Z({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},r,{id:(r==null?void 0:r.id)||Pm()})},Rr=function(t){return function(n,r){var l=Mm(n,t,r);return Zt({type:se.UPSERT_TOAST,toast:l}),l.id}},xe=function(t,n){return Rr("blank")(t,n)};xe.error=Rr("error");xe.success=Rr("success");xe.loading=Rr("loading");xe.custom=Rr("custom");xe.dismiss=function(e){Zt({type:se.DISMISS_TOAST,toastId:e})};xe.remove=function(e){return Zt({type:se.REMOVE_TOAST,toastId:e})};xe.promise=function(e,t,n){var r=xe.loading(t.loading,Z({},n,n==null?void 0:n.loading));return e.then(function(l){return xe.success(Wl(t.success,l),Z({id:r},n,n==null?void 0:n.success)),l}).catch(function(l){xe.error(Wl(t.error,l),Z({id:r},n,n==null?void 0:n.error))}),e};var jm=function(t){var n=Dm(t),r=n.toasts,l=n.pausedAt;k.exports.useEffect(function(){if(!l){var i=Date.now(),u=r.map(function(a){if(a.duration!==1/0){var s=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(s<0){a.visible&&xe.dismiss(a.id);return}return setTimeout(function(){return xe.dismiss(a.id)},s)}});return function(){u.forEach(function(a){return a&&clearTimeout(a)})}}},[r,l]);var o=k.exports.useMemo(function(){return{startPause:function(){Zt({type:se.START_PAUSE,time:Date.now()})},endPause:function(){l&&Zt({type:se.END_PAUSE,time:Date.now()})},updateHeight:function(u,a){return Zt({type:se.UPDATE_TOAST,toast:{id:u,height:a}})},calculateOffset:function(u,a){var s,m=a||{},h=m.reverseOrder,p=h===void 0?!1:h,v=m.gutter,y=v===void 0?8:v,S=m.defaultPosition,N=r.filter(function(g){return(g.position||S)===(u.position||S)&&g.height}),c=N.findIndex(function(g){return g.id===u.id}),f=N.filter(function(g,w){return w * { - pointer-events: auto; - } -`]);return Af=function(){return e},e}Tm(k.exports.createElement);var oh=function(t,n){var r=t.includes("top"),l=r?{top:0}:{bottom:0},o=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return Z({left:0,right:0,display:"flex",position:"absolute",transition:Ef()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+n*(r?1:-1)+"px)"},l,o)},ih=so(Af()),el=16,uh=function(t){var n=t.reverseOrder,r=t.position,l=r===void 0?"top-center":r,o=t.toastOptions,i=t.gutter,u=t.children,a=t.containerStyle,s=t.containerClassName,m=jm(o),h=m.toasts,p=m.handlers;return k.exports.createElement("div",{style:Z({position:"fixed",zIndex:9999,top:el,left:el,right:el,bottom:el,pointerEvents:"none"},a),className:s,onMouseEnter:p.startPause,onMouseLeave:p.endPause},h.map(function(v){var y=v.position||l,S=p.calculateOffset(v,{reverseOrder:n,gutter:i,defaultPosition:l}),N=oh(y,S),c=v.height?void 0:Om(function(f){p.updateHeight(v.id,f.height)});return k.exports.createElement("div",{ref:c,className:v.visible?ih:"",key:v.id,style:N},v.type==="custom"?Wl(v.message,v):u?u(v):k.exports.createElement(lh,{toast:v,position:y}))}))};function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/** - * React Router v6.3.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 - */const Du=k.exports.createContext(null),Mu=k.exports.createContext(null),co=k.exports.createContext({outlet:null,matches:[]});function lt(e,t){if(!e)throw new Error(t)}function dh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?jt(t):t,l=Vf(r.pathname||"/",n);if(l==null)return null;let o=Bf(e);ph(o);let i=null;for(let u=0;i==null&&u{let i={relativePath:l.path||"",caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(r)||lt(!1),i.relativePath=i.relativePath.slice(r.length));let u=zt([r,i.relativePath]),a=n.concat(i);l.children&&l.children.length>0&&(l.index===!0&<(!1),Bf(l.children,t,a,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:xh(u,l.index),routesMeta:a})}),t}function ph(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:kh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mh=/^:\w+$/,hh=3,vh=2,gh=1,yh=10,wh=-2,os=e=>e==="*";function xh(e,t){let n=e.split("/"),r=n.length;return n.some(os)&&(r+=wh),t&&(r+=vh),n.filter(l=>!os(l)).reduce((l,o)=>l+(mh.test(o)?hh:o===""?gh:yh),r)}function kh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Sh(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{if(m==="*"){let p=u[h]||"";i=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return s[m]=_h(u[h]||""),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Ch(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(i,u)=>(r.push(u),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(l,t?void 0:"i"),r]}function _h(e,t){try{return decodeURIComponent(e)}catch{return e}}function Th(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?jt(e):e;return{pathname:n?n.startsWith("/")?n:Nh(n,t):t,search:Oh(r),hash:Lh(l)}}function Nh(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Uf(e,t,n){let r=typeof e=="string"?jt(e):e,l=e===""||r.pathname===""?"/":r.pathname,o;if(l==null)o=n;else{let u=t.length-1;if(l.startsWith("..")){let a=l.split("/");for(;a[0]==="..";)a.shift(),u-=1;r.pathname=a.join("/")}o=u>=0?t[u]:"/"}let i=Th(r,o);return l&&l!=="/"&&l.endsWith("/")&&!i.pathname.endsWith("/")&&(i.pathname+="/"),i}function Ph(e){return e===""||e.pathname===""?"/":typeof e=="string"?jt(e).pathname:e.pathname}function Vf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const zt=e=>e.join("/").replace(/\/\/+/g,"/"),Hf=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Oh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Lh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Rh(e){zr()||lt(!1);let{basename:t,navigator:n}=k.exports.useContext(Du),{hash:r,pathname:l,search:o}=ju(e),i=l;if(t!=="/"){let u=Ph(e),a=u!=null&&u.endsWith("/");i=l==="/"?t+(a?"/":""):zt([t,l])}return n.createHref({pathname:i,search:o,hash:r})}function zr(){return k.exports.useContext(Mu)!=null}function Mn(){return zr()||lt(!1),k.exports.useContext(Mu).location}function Wf(){zr()||lt(!1);let{basename:e,navigator:t}=k.exports.useContext(Du),{matches:n}=k.exports.useContext(co),{pathname:r}=Mn(),l=JSON.stringify(n.map(u=>u.pathnameBase)),o=k.exports.useRef(!1);return k.exports.useEffect(()=>{o.current=!0}),k.exports.useCallback(function(u,a){if(a===void 0&&(a={}),!o.current)return;if(typeof u=="number"){t.go(u);return}let s=Uf(u,JSON.parse(l),r);e!=="/"&&(s.pathname=zt([e,s.pathname])),(a.replace?t.replace:t.push)(s,a.state)},[e,t,l,r])}function ju(e){let{matches:t}=k.exports.useContext(co),{pathname:n}=Mn(),r=JSON.stringify(t.map(l=>l.pathnameBase));return k.exports.useMemo(()=>Uf(e,JSON.parse(r),n),[e,r,n])}function zh(e,t){zr()||lt(!1);let{matches:n}=k.exports.useContext(co),r=n[n.length-1],l=r?r.params:{};r&&r.pathname;let o=r?r.pathnameBase:"/";r&&r.route;let i=Mn(),u;if(t){var a;let p=typeof t=="string"?jt(t):t;o==="/"||((a=p.pathname)==null?void 0:a.startsWith(o))||lt(!1),u=p}else u=i;let s=u.pathname||"/",m=o==="/"?s:s.slice(o.length)||"/",h=dh(e,{pathname:m});return Ih(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},l,p.params),pathname:zt([o,p.pathname]),pathnameBase:p.pathnameBase==="/"?o:zt([o,p.pathnameBase])})),n)}function Ih(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,l)=>k.exports.createElement(co.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,l+1))}}),null)}function gl(e){lt(!1)}function Dh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Yt.Pop,navigator:o,static:i=!1}=e;zr()&<(!1);let u=Hf(t),a=k.exports.useMemo(()=>({basename:u,navigator:o,static:i}),[u,o,i]);typeof r=="string"&&(r=jt(r));let{pathname:s="/",search:m="",hash:h="",state:p=null,key:v="default"}=r,y=k.exports.useMemo(()=>{let S=Vf(s,u);return S==null?null:{pathname:S,search:m,hash:h,state:p,key:v}},[u,s,m,h,p,v]);return y==null?null:k.exports.createElement(Du.Provider,{value:a},k.exports.createElement(Mu.Provider,{children:n,value:{location:y,navigationType:l}}))}function Mh(e){let{children:t,location:n}=e;return zh(Fi(t),n)}function Fi(e){let t=[];return k.exports.Children.forEach(e,n=>{if(!k.exports.isValidElement(n))return;if(n.type===k.exports.Fragment){t.push.apply(t,Fi(n.props.children));return}n.type!==gl&<(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=Fi(n.props.children)),t.push(r)}),t}/** - * React Router DOM v6.3.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 Kl(){return Kl=Object.assign||function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}const jh=["onClick","reloadDocument","replace","state","target","to"],$h=["aria-current","caseSensitive","className","end","style","to","children"];function Fh(e){let{basename:t,children:n,window:r}=e,l=k.exports.useRef();l.current==null&&(l.current=ch({window:r}));let o=l.current,[i,u]=k.exports.useState({action:o.action,location:o.location});return k.exports.useLayoutEffect(()=>o.listen(u),[o]),k.exports.createElement(Dh,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:o})}function Ah(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Bh=k.exports.forwardRef(function(t,n){let{onClick:r,reloadDocument:l,replace:o=!1,state:i,target:u,to:a}=t,s=Qf(t,jh),m=Rh(a),h=Uh(a,{replace:o,state:i,target:u});function p(v){r&&r(v),!v.defaultPrevented&&!l&&h(v)}return k.exports.createElement("a",Kl({},s,{href:m,onClick:p,ref:n,target:u}))}),Bo=k.exports.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:o="",end:i=!1,style:u,to:a,children:s}=t,m=Qf(t,$h),h=Mn(),p=ju(a),v=h.pathname,y=p.pathname;l||(v=v.toLowerCase(),y=y.toLowerCase());let S=v===y||!i&&v.startsWith(y)&&v.charAt(y.length)==="/",N=S?r:void 0,c;typeof o=="function"?c=o({isActive:S}):c=[o,S?"active":null].filter(Boolean).join(" ");let f=typeof u=="function"?u({isActive:S}):u;return k.exports.createElement(Bh,Kl({},m,{"aria-current":N,className:c,ref:n,style:f,to:a}),typeof s=="function"?s({isActive:S}):s)});function Uh(e,t){let{target:n,replace:r,state:l}=t===void 0?{}:t,o=Wf(),i=Mn(),u=ju(e);return k.exports.useCallback(a=>{if(a.button===0&&(!n||n==="_self")&&!Ah(a)){a.preventDefault();let s=!!r||ir(i)===ir(u);o(e,{replace:s,state:l})}},[i,o,u,r,l,n,e])}function Kf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{l.minHeight="initial",l.height=r+"px",l.transition="all "+n+"ms",requestAnimationFrame(()=>{l.height="0",l.padding="0",l.margin="0",setTimeout(t,n)})})}function Gf(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:l=!0,collapseDuration:o=300}=e;return function(i){let{children:u,position:a,preventExitTransition:s,done:m,nodeRef:h,isIn:p}=i;const v=r?t+"--"+a:t,y=r?n+"--"+a:n,S=k.exports.useRef(),N=k.exports.useRef(0);function c(d){if(d.target!==h.current)return;const g=h.current;g.dispatchEvent(new Event("d")),g.removeEventListener("animationend",c),g.removeEventListener("animationcancel",c),N.current===0&&d.type!=="animationcancel"&&(g.className=S.current)}function f(){const d=h.current;d.removeEventListener("animationend",f),l?Vh(d,m,o):m()}return k.exports.useLayoutEffect(()=>{(function(){const d=h.current;S.current=d.className,d.className+=" "+v,d.addEventListener("animationend",c),d.addEventListener("animationcancel",c)})()},[]),k.exports.useEffect(()=>{p||(s?f():function(){N.current=1;const d=h.current;d.className+=" "+y,d.addEventListener("animationend",f)}())},[p]),B.createElement(B.Fragment,null,u)}}function is(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}const $e={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},tl=e=>{let l=e,{theme:t,type:n}=l,r=mo(l,["theme","type"]);return B.createElement("svg",V({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":"var(--toastify-icon-color-"+n+")"},r))},Ho={info:function(e){return B.createElement(tl,V({},e),B.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return B.createElement(tl,V({},e),B.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return B.createElement(tl,V({},e),B.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return B.createElement(tl,V({},e),B.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return B.createElement("div",{className:"Toastify__spinner"})}};function Hh(e){const[,t]=k.exports.useReducer(v=>v+1,0),[n,r]=k.exports.useState([]),l=k.exports.useRef(null),o=k.exports.useRef(new Map).current,i=v=>n.indexOf(v)!==-1,u=k.exports.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:i,getToast:v=>o.get(v)}).current;function a(v){let{containerId:y}=v;const{limit:S}=u.props;!S||y&&u.containerId!==y||(u.count-=u.queue.length,u.queue=[])}function s(v){r(y=>Uo(v)?y.filter(S=>S!==v):[])}function m(){const{toastContent:v,toastProps:y,staleId:S}=u.queue.shift();p(v,y,S)}function h(v,y){let q=y,{delay:S,staleId:N}=q,c=mo(q,["delay","staleId"]);if(!Vo(v)||function(U){return!l.current||u.props.enableMultiContainer&&U.containerId!==u.props.containerId||o.has(U.toastId)&&U.updateId==null}(c))return;const{toastId:f,updateId:d,data:g}=c,{props:w}=u,T=()=>s(f),P=d==null;P&&u.count++;const x={toastId:f,updateId:d,data:g,containerId:c.containerId,isLoading:c.isLoading,theme:c.theme||w.theme,icon:c.icon!=null?c.icon:w.icon,isIn:!1,key:c.key||u.toastKey++,type:c.type,closeToast:T,closeButton:c.closeButton,rtl:w.rtl,position:c.position||w.position,transition:c.transition||w.transition,className:yl(c.className||w.toastClassName),bodyClassName:yl(c.bodyClassName||w.bodyClassName),style:c.style||w.toastStyle,bodyStyle:c.bodyStyle||w.bodyStyle,onClick:c.onClick||w.onClick,pauseOnHover:Kn(c.pauseOnHover)?c.pauseOnHover:w.pauseOnHover,pauseOnFocusLoss:Kn(c.pauseOnFocusLoss)?c.pauseOnFocusLoss:w.pauseOnFocusLoss,draggable:Kn(c.draggable)?c.draggable:w.draggable,draggablePercent:c.draggablePercent||w.draggablePercent,draggableDirection:c.draggableDirection||w.draggableDirection,closeOnClick:Kn(c.closeOnClick)?c.closeOnClick:w.closeOnClick,progressClassName:yl(c.progressClassName||w.progressClassName),progressStyle:c.progressStyle||w.progressStyle,autoClose:!c.isLoading&&(L=c.autoClose,R=w.autoClose,L===!1||ur(L)&&L>0?L:R),hideProgressBar:Kn(c.hideProgressBar)?c.hideProgressBar:w.hideProgressBar,progress:c.progress,role:c.role||w.role,deleteToast(){const U=is(o.get(f),"removed");o.delete(f),$e.emit(4,U);const ue=u.queue.length;if(u.count=Uo(f)?u.count-1:u.count-u.displayedToast,u.count<0&&(u.count=0),ue>0){const te=Uo(f)?1:u.props.limit;if(ue===1||te===1)u.displayedToast++,m();else{const Re=te>ue?ue:te;u.displayedToast=Re;for(let re=0;reI in Ho)(te)&&(C=Ho[te](z))),C}(x),Ne(c.onOpen)&&(x.onOpen=c.onOpen),Ne(c.onClose)&&(x.onClose=c.onClose),x.closeButton=w.closeButton,c.closeButton===!1||Vo(c.closeButton)?x.closeButton=c.closeButton:c.closeButton===!0&&(x.closeButton=!Vo(w.closeButton)||w.closeButton);let $=v;k.exports.isValidElement(v)&&!nn(v.type)?$=k.exports.cloneElement(v,{closeToast:T,toastProps:x,data:g}):Ne(v)&&($=v({closeToast:T,toastProps:x,data:g})),w.limit&&w.limit>0&&u.count>w.limit&&P?u.queue.push({toastContent:$,toastProps:x,staleId:N}):ur(S)?setTimeout(()=>{p($,x,N)},S):p($,x,N)}function p(v,y,S){const{toastId:N}=y;S&&o.delete(S);const c={content:v,props:y};o.set(N,c),r(f=>[...f,N].filter(d=>d!==S)),$e.emit(4,is(c,c.props.updateId==null?"added":"updated"))}return k.exports.useEffect(()=>(u.containerId=e.containerId,$e.cancelEmit(3).on(0,h).on(1,v=>l.current&&s(v)).on(5,a).emit(2,u),()=>$e.emit(3,u)),[]),k.exports.useEffect(()=>{u.props=e,u.isToastActive=i,u.displayedToast=n.length}),{getToastToRender:function(v){const y=new Map,S=Array.from(o.values());return e.newestOnTop&&S.reverse(),S.forEach(N=>{const{position:c}=N.props;y.has(c)||y.set(c,[]),y.get(c).push(N)}),Array.from(y,N=>v(N[0],N[1]))},containerRef:l,isToastActive:i}}function us(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function as(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Wh(e){const[t,n]=k.exports.useState(!1),[r,l]=k.exports.useState(!1),o=k.exports.useRef(null),i=k.exports.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=k.exports.useRef(e),{autoClose:a,pauseOnHover:s,closeToast:m,onClick:h,closeOnClick:p}=e;function v(g){if(e.draggable){i.didMove=!1,document.addEventListener("mousemove",c),document.addEventListener("mouseup",f),document.addEventListener("touchmove",c),document.addEventListener("touchend",f);const w=o.current;i.canCloseOnClick=!0,i.canDrag=!0,i.boundingRect=w.getBoundingClientRect(),w.style.transition="",i.x=us(g.nativeEvent),i.y=as(g.nativeEvent),e.draggableDirection==="x"?(i.start=i.x,i.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(i.start=i.y,i.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function y(){if(i.boundingRect){const{top:g,bottom:w,left:T,right:P}=i.boundingRect;e.pauseOnHover&&i.x>=T&&i.x<=P&&i.y>=g&&i.y<=w?N():S()}}function S(){n(!0)}function N(){n(!1)}function c(g){const w=o.current;i.canDrag&&w&&(i.didMove=!0,t&&N(),i.x=us(g),i.y=as(g),i.delta=e.draggableDirection==="x"?i.x-i.start:i.y-i.start,i.start!==i.x&&(i.canCloseOnClick=!1),w.style.transform="translate"+e.draggableDirection+"("+i.delta+"px)",w.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function f(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",f),document.removeEventListener("touchmove",c),document.removeEventListener("touchend",f);const g=o.current;if(i.canDrag&&i.didMove&&g){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return l(!0),void e.closeToast();g.style.transition="transform 0.2s, opacity 0.2s",g.style.transform="translate"+e.draggableDirection+"(0)",g.style.opacity="1"}}k.exports.useEffect(()=>{u.current=e}),k.exports.useEffect(()=>(o.current&&o.current.addEventListener("d",S,{once:!0}),Ne(e.onOpen)&&e.onOpen(k.exports.isValidElement(e.children)&&e.children.props),()=>{const g=u.current;Ne(g.onClose)&&g.onClose(k.exports.isValidElement(g.children)&&g.children.props)}),[]),k.exports.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||N(),window.addEventListener("focus",S),window.addEventListener("blur",N)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",S),window.removeEventListener("blur",N))}),[e.pauseOnFocusLoss]);const d={onMouseDown:v,onTouchStart:v,onMouseUp:y,onTouchEnd:y};return a&&s&&(d.onMouseEnter=N,d.onMouseLeave=S),p&&(d.onClick=g=>{h&&h(g),i.canCloseOnClick&&m()}),{playToast:S,pauseToast:N,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:d}}function Xf(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return B.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:l=>{l.stopPropagation(),t(l)},"aria-label":r},B.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},B.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Zf(e){let{delay:t,isRunning:n,closeToast:r,type:l,hide:o,className:i,style:u,controlledProgress:a,progress:s,rtl:m,isIn:h,theme:p}=e;const v=Qe(V({},u),{animationDuration:t+"ms",animationPlayState:n?"running":"paused",opacity:o?0:1});a&&(v.transform="scaleX("+s+")");const y=_t("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+p,"Toastify__progress-bar--"+l,{"Toastify__progress-bar--rtl":m}),S=Ne(i)?i({rtl:m,type:l,defaultClassName:y}):_t(y,i);return B.createElement("div",{role:"progressbar","aria-hidden":o?"true":"false","aria-label":"notification timer",className:S,style:v,[a&&s>=1?"onTransitionEnd":"onAnimationEnd"]:a&&s<1?null:()=>{h&&r()}})}Zf.defaultProps={type:it.DEFAULT,hide:!1};const Qh=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:l}=Wh(e),{closeButton:o,children:i,autoClose:u,onClick:a,type:s,hideProgressBar:m,closeToast:h,transition:p,position:v,className:y,style:S,bodyClassName:N,bodyStyle:c,progressClassName:f,progressStyle:d,updateId:g,role:w,progress:T,rtl:P,toastId:x,deleteToast:L,isIn:R,isLoading:$,iconOut:q,theme:U}=e,ue=_t("Toastify__toast","Toastify__toast-theme--"+U,"Toastify__toast--"+s,{"Toastify__toast--rtl":P}),te=Ne(y)?y({rtl:P,position:v,type:s,defaultClassName:ue}):_t(ue,y),Re=!!T,re={closeToast:h,type:s,theme:U};let C=null;return o===!1||(C=Ne(o)?o(re):B.isValidElement(o)?B.cloneElement(o,re):Xf(re)),B.createElement(p,{isIn:R,done:L,position:v,preventExitTransition:n,nodeRef:r},B.createElement("div",Qe(V({id:x,onClick:a,className:te},l),{style:S,ref:r}),B.createElement("div",Qe(V({},R&&{role:w}),{className:Ne(N)?N({type:s}):_t("Toastify__toast-body",N),style:c}),q!=null&&B.createElement("div",{className:_t("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!$})},q),B.createElement("div",null,i)),C,(u||Re)&&B.createElement(Zf,Qe(V({},g&&!Re?{key:"pb-"+g}:{}),{rtl:P,theme:U,delay:u,isRunning:t,isIn:R,closeToast:h,hide:m,type:s,style:d,className:f,controlledProgress:Re,progress:T}))))},Kh=Gf({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),Yh=Gf({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),Ai=k.exports.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:l}=Hh(e),{className:o,style:i,rtl:u,containerId:a}=e;function s(m){const h=_t("Toastify__toast-container","Toastify__toast-container--"+m,{"Toastify__toast-container--rtl":u});return Ne(o)?o({position:m,rtl:u,defaultClassName:h}):_t(h,yl(o))}return k.exports.useEffect(()=>{t&&(t.current=r.current)},[]),B.createElement("div",{ref:r,className:"Toastify",id:a},n((m,h)=>{const p=h.length?V({},i):Qe(V({},i),{pointerEvents:"none"});return B.createElement("div",{className:s(m),style:p,key:"container-"+m},h.map((v,y)=>{let{content:S,props:N}=v;return B.createElement(Qh,Qe(V({},N),{isIn:l(N.toastId),style:Qe(V({},N.style),{"--nth":y+1,"--len":h.length}),key:"toast-"+N.key}),S)}))}))});Ai.displayName="ToastContainer",Ai.defaultProps={position:Yf.TOP_RIGHT,transition:Kh,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:Xf,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Wo,un=new Map,Bi=[];function Jf(){return Math.random().toString(36).substring(2,9)}function Gh(e){return e&&(nn(e.toastId)||ur(e.toastId))?e.toastId:Jf()}function ar(e,t){return un.size>0?$e.emit(0,e,t):Bi.push({content:e,options:t}),t.toastId}function Yl(e,t){return Qe(V({},t),{type:t&&t.type||e,toastId:Gh(t)})}function nl(e){return(t,n)=>ar(t,Yl(e,n))}function D(e,t){return ar(e,Yl(it.DEFAULT,t))}D.loading=(e,t)=>ar(e,Yl(it.DEFAULT,V({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t))),D.promise=function(e,t,n){let r,{pending:l,error:o,success:i}=t;l&&(r=nn(l)?D.loading(l,n):D.loading(l.render,V(V({},n),l)));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},a=(m,h,p)=>{if(h==null)return void D.dismiss(r);const v=Qe(V(V({type:m},u),n),{data:p}),y=nn(h)?{render:h}:h;return r?D.update(r,V(V({},v),y)):D(y.render,V(V({},v),y)),p},s=Ne(e)?e():e;return s.then(m=>a("success",i,m)).catch(m=>a("error",o,m)),s},D.success=nl(it.SUCCESS),D.info=nl(it.INFO),D.error=nl(it.ERROR),D.warning=nl(it.WARNING),D.warn=D.warning,D.dark=(e,t)=>ar(e,Yl(it.DEFAULT,V({theme:"dark"},t))),D.dismiss=e=>$e.emit(1,e),D.clearWaitingQueue=function(e){return e===void 0&&(e={}),$e.emit(5,e)},D.isActive=e=>{let t=!1;return un.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},D.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,l){let{containerId:o}=l;const i=un.get(o||Wo);return i?i.getToast(r):null}(e,t);if(n){const{props:r,content:l}=n,o=Qe(V(V({},r),t),{toastId:t.toastId||e,updateId:Jf()});o.toastId!==e&&(o.staleId=e);const i=o.render||l;delete o.render,ar(i,o)}},0)},D.done=e=>{D.update(e,{progress:1})},D.onChange=e=>($e.on(4,e),()=>{$e.off(4,e)}),D.POSITION=Yf,D.TYPE=it,$e.on(2,e=>{Wo=e.containerId||e,un.set(Wo,e),Bi.forEach(t=>{$e.emit(0,t.content,t.options)}),Bi=[]}).on(3,e=>{un.delete(e.containerId||e),un.size===0&&$e.off(0).off(1).off(5)});function Xh(e){return k.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),k.exports.createElement("path",{d:"M5 4a2 2 0 012-2h6a2 2 0 012 2v14l-5-2.5L5 18V4z"}))}function Zh(e){return k.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),k.exports.createElement("path",{d:"M13 7H7v6h6V7z"}),k.exports.createElement("path",{fillRule:"evenodd",d:"M7 2a1 1 0 012 0v1h2V2a1 1 0 112 0v1h2a2 2 0 012 2v2h1a1 1 0 110 2h-1v2h1a1 1 0 110 2h-1v2a2 2 0 01-2 2h-2v1a1 1 0 11-2 0v-1H9v1a1 1 0 11-2 0v-1H5a2 2 0 01-2-2v-2H2a1 1 0 110-2h1V9H2a1 1 0 010-2h1V5a2 2 0 012-2h2V2zM5 5h10v10H5V5z",clipRule:"evenodd"}))}function Jh(e){return k.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),k.exports.createElement("path",{fillRule:"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}var $u={exports:{}},fo={};/** - * @license React - * react-jsx-runtime.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 qh=k.exports,bh=Symbol.for("react.element"),e0=Symbol.for("react.fragment"),t0=Object.prototype.hasOwnProperty,n0=qh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r0={key:!0,ref:!0,__self:!0,__source:!0};function qf(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)t0.call(t,r)&&!r0.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:bh,type:e,key:o,ref:i,props:l,_owner:n0.current}}fo.Fragment=e0;fo.jsx=qf;fo.jsxs=qf;$u.exports=fo;const _=$u.exports.jsx,j=$u.exports.jsxs;function Fu(){const e=Mn();return j("header",{className:"flex p-3",children:[j("div",{className:"w-full text-left",children:[e.pathname==="/overview"&&j(Bo,{to:"/",children:[_(Zh,{className:"h-5 w-5 inline-block"})," Pick a different device"]}),e.pathname==="/settings"&&j(Bo,{to:"/overview",children:[_(Xh,{className:"h-5 w-5 inline-block"})," Return to device overview"]})]}),_("div",{className:"w-full text-right",children:e.pathname==="/overview"&&j(Bo,{to:"/settings",children:["Settings ",_(Jh,{className:"h-5 w-5 inline-block"})]})})]})}var l0="/assets/logo.24674eb3.png";function o0(){return window.go.backend.Backend.ForwardToReadwise()}function i0(){return window.go.backend.Backend.GetSelectedKobo()}function u0(){return window.go.backend.Backend.GetSettings()}function a0(){return window.go.backend.Backend.PromptForLocalDBPath()}function s0(e){return window.go.backend.Backend.SelectKobo(e)}function c0(){return window.go.backend.Backend.DetectKobos()}function f0(){const e=Wf(),[t,n]=k.exports.useState([]);k.exports.useEffect(()=>r(),[t.length]);function r(){c0().then(i=>{if(console.log(i),i==null){D.info("No devices were found");return}n(i)}).catch(i=>{D.error(i)})}function l(i){s0(i).then(u=>{u===null?e("/overview"):(console.log(u),D.error("Something went wrong selecting your Kobo"))}).catch(u=>D.error(u))}function o(){a0().then(i=>{i===null?e("/overview"):(console.log(i),D.error("Something went wrong selecting your local sqlite database"))}).catch(i=>D.error(i))}return j("div",{className:"bg-gray-100 dark:bg-gray-800 ",children:[_(Fu,{}),j("div",{className:"min-h-screen flex items-center justify-center pb-24 px-24 grid grid-cols-2 gap-14",children:[j("div",{className:"space-y-2",children:[_("img",{className:"mx-auto h-36 w-auto logo-animation",src:l0,alt:"The October logo, which is a cartoon octopus reading a book."}),_("h2",{className:"text-center text-3xl font-extrabold text-gray-900 dark:text-gray-100",children:"October"}),_("p",{className:"mt-0 text-center text-sm text-gray-600 dark:text-gray-400",children:"Easily access your Kobo highlights"})]}),j("div",{className:"space-y-4 text-center",children:[_("h1",{className:"text-3xl font-bold",children:"Select your Kobo"}),_("button",{onClick:r,children:"Don't see your device? Click here to refresh device list."}),j("ul",{children:[t.map(i=>_("li",{children:_("button",{onClick:()=>l(i.mnt_path),className:"w-full bg-purple-200 hover:bg-purple-300 group block rounded-lg p-4 mb-2 cursor-pointer",children:_("dl",{children:j("div",{children:[_("dt",{className:"sr-only",children:"Title"}),_("dd",{className:"border-gray leading-6 font-medium text-black",children:i.name}),_("dt",{className:"sr-only",children:"System Specifications"}),j("dd",{className:"text-xs text-gray-600 dark:text-gray-400",children:[i.storage," GB \xB7 ",i.display_ppi," PPI"]})]})})})},i.mnt_path)),_("li",{children:_("button",{onClick:o,className:"w-full bg-purple-200 hover:bg-purple-300 group block rounded-lg p-4 mb-2 cursor-pointer",children:_("dl",{children:j("div",{children:[_("dt",{className:"sr-only",children:"Title"}),_("dd",{className:"border-gray leading-6 font-medium text-black",children:"Load in a local Kobo database (advanced)"}),_("dt",{className:"sr-only",children:"Description"}),_("dd",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Provide an instance of KoboReader.sqlite3"})]})})})})]})]})]})]})}function d0(){return window.go.backend.Kobo.CountDeviceBookmarks()}function p0(){return window.go.backend.Settings.CheckReadwiseConfig()}function m0(e){return window.go.backend.Settings.SaveCoverUploading(e)}function h0(e){return window.go.backend.Settings.SaveToken(e)}function v0(e){const[t,n]=k.exports.useState(!1),[r,l]=k.exports.useState({}),[o,i]=k.exports.useState(0);k.exports.useEffect(()=>{i0().then(s=>l(s)).catch(s=>D.error(s))},[r.mnt_path]),k.exports.useEffect(()=>{d0().then(s=>i(s)).catch(s=>D.error(s))},[o]),k.exports.useEffect(()=>{p0().then(s=>n(s)).catch(s=>D.error(s))});function u(){D.warning("In order to upload to Readwise, you need to configure your token on the Settings page!")}function a(){const s=D.loading("Bundling up your highlights to send to Readwise...");o0().then(m=>{typeof m=="number"?D.update(s,{render:`Successfully forwarded ${m} highlights to Readwise`,type:"success",isLoading:!1,autoClose:2e3}):D.update(s,{render:`There was a problem sending your highlights: ${m.message}`,type:"error",isLoading:!1,autoClose:3e3})}).catch(m=>{m.includes("401")?D.update(s,{render:"Received 401 Unauthorised from Readwise. Is your access token correct?",type:"error",isLoading:!1,autoClose:3e3}):m.includes("failed to upload covers")?D.update(s,{render:m,type:"warning",isLoading:!1,autoClose:3e3}):D.update(s,{render:`There was a problem sending your highlights: ${m}`,type:"error",isLoading:!1,autoClose:3e3})})}return j("div",{className:"bg-gray-100 dark:bg-gray-800 ",children:[_(Fu,{}),j("div",{className:"min-h-screen flex items-center justify-center pb-24 px-24 grid grid-cols-2 gap-14",children:[j("div",{className:"space-y-2",children:[_("p",{className:"text-center text-xs text-gray-600 dark:text-gray-400",children:"Currently connected"}),_("h2",{className:"text-center text-3xl font-extrabold text-gray-900 dark:text-gray-100",children:r.name}),r.storage!==0&&r.display_ppi!==0&&j("p",{className:"mt-0 text-center text-sm text-gray-600 dark:text-gray-400",children:[r.storage," GB \xB7 ",r.display_ppi," PPI"]}),r.storage===0&&r.display_ppi===0&&_("p",{className:"mt-0 text-center text-sm text-gray-600 dark:text-gray-400",children:"Dang, that's some hardcore hacker stuff!"})]}),j("div",{className:"space-y-4 text-center",children:[_("h3",{className:"text-md font-medium",children:"What would you like to do?"}),_("ul",{children:_("li",{children:_("button",{onClick:t?a:u,className:"w-full bg-purple-200 hover:bg-purple-300 group block rounded-lg p-4 mb-2 cursor-pointer",children:_("dl",{children:j("div",{children:[_("dt",{className:"sr-only",children:"Title"}),_("dd",{className:"border-gray leading-6 font-medium text-black",children:"Sync your highlights with Readwise"}),_("dt",{className:"sr-only",children:"Description"}),j("dd",{className:"text-xs text-gray-600 dark:text-gray-400",children:["Your Kobo is currently home to ",o," highlights"]})]})})})})})]})]})]})}function g0(e){window.runtime.BrowserOpenURL(e)}function y0(e){return window.go.backend.Readwise.CheckTokenValidity(e)}function w0(){const[e,t]=k.exports.useState(!1),[n,r]=k.exports.useState(""),[l,o]=k.exports.useState(!1),[i,u]=k.exports.useState("");k.exports.useEffect(()=>{u0().then(h=>{t(!0),r(h.readwise_token),u(h.readwise_token),o(h.upload_covers)})},[e]);function a(){r(i),h0(i),xe.success("Your changes have been saved")}function s(){o(!l),m0(!l),xe.success("Your changes have been saved")}function m(){xe.promise(y0(i),{loading:"Contacting Readwise...",success:()=>"Your API token is valid!",error:h=>h==="401 Unauthorized"?"Readwise rejected your token":h})}return j("div",{className:"bg-gray-100 dark:bg-gray-800 ",children:[_(Fu,{}),j("div",{className:"min-h-screen flex items-center justify-center pb-24 px-24 grid grid-cols-2 gap-14",children:[_("div",{className:"space-y-2",children:_("h2",{className:"text-center text-3xl font-extrabold text-gray-900 dark:text-gray-100",children:"Settings"})}),j("div",{className:"space-y-4",children:[_("div",{className:"bg-white shadow sm:rounded-lg",children:j("div",{className:"px-4 py-5 sm:p-6",children:[_("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Set your Readwise access token"}),_("div",{className:"mt-2 max-w-xl text-sm text-gray-500",children:j("p",{children:["You can find your access token at"," ",_("button",{className:"text-gray-600 underline",onClick:()=>g0("https://readwise.io/access_token"),children:"https://readwise.io/access_token"})]})}),j("form",{onSubmit:h=>h.preventDefault(),className:"mt-5 sm:flex sm:items-center",children:[_("div",{className:"w-full sm:max-w-xs",children:_("input",{onChange:h=>u(h.target.value),type:"text",name:"token",id:"token",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"Your access token goes here",value:i})}),_("button",{onClick:m,type:"submit",className:"mt-3 w-full inline-flex items-center justify-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:"Validate"}),_("button",{onClick:a,type:"submit",className:"mt-3 w-full inline-flex items-center justify-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:"Save"})]})]})}),_("div",{className:"bg-white shadow sm:rounded-lg",children:j("div",{className:"px-4 py-5 sm:p-6",children:[_("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Validate your Readwise token"}),_("div",{className:"mt-2 max-w-xl text-sm text-gray-500",children:_("p",{children:"Make a call to the Readwise API to check that your token is valid and correctly entered"})}),_("form",{onSubmit:h=>h.preventDefault(),className:"mt-5 sm:flex sm:items-center",children:_("button",{onClick:m,type:"submit",className:"mt-3 w-full inline-flex items-center justify-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:text-sm",children:"Validate Readwise token"})})]})}),_("div",{className:"shadow overflow-hidden sm:rounded-md",children:_("div",{className:"px-4 py-5 bg-white space-y-6 sm:p-6",children:j("fieldset",{children:[_("legend",{className:"text-base font-medium text-gray-900",children:"Kobo metadata upload"}),_("div",{className:"mt-4 space-y-4",children:j("div",{className:"flex items-start",children:[_("div",{className:"flex items-center h-5",children:_("input",{onInput:h=>s(!h.currentTarget.checked),checked:l,id:"comments",name:"comments",type:"checkbox",className:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded"})}),j("div",{className:"ml-3 text-sm",children:[_("label",{htmlFor:"comments",className:"font-medium text-gray-700",children:"Upload covers"}),_("p",{className:"text-gray-500",children:"This will slow down the upload process a bit. It also requires you to have configured Calibre correctly!"})]})]})})]})})})]})]})]})}const ss={success:"bg-green-50 text-green-700",error:"bg-red-50 text-red-700",info:"bg-gray-50 text-gray-700",warning:"bg-orange-50 text-orange-700",default:"bg-indigo-50 text-indigo-700",dark:"bg-white-50 text-gray-700"},x0=e=>_("div",{children:j("button",{type:"button",className:e+" min-h-full align-middle block rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2",children:[_("span",{className:"sr-only",children:"Dismiss"}),_("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:_("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})})]})}),k0=()=>j(Fh,{children:[j(Mh,{children:[_(gl,{path:"/",element:_(f0,{})}),_(gl,{path:"/overview",element:_(v0,{})}),_(gl,{path:"/settings",element:_(w0,{})})]}),_(Ai,{position:D.POSITION.BOTTOM_CENTER,limit:2,closeButton:({type:e})=>{const t=ss[e||"default"];return x0(t)},hideProgressBar:!0,autoClose:3e3,pauseOnHover:!0,style:{width:"475px"},transition:Yh,bodyClassName:()=>"text-sm w-screen flex p-2",toastClassName:({type:e})=>ss[e||"default"]+" rounded-md p-4 flex mb-2"})]}),S0=j(B.StrictMode,{children:[_(k0,{}),_(uh,{})]}),E0=document.getElementById("root"),C0=xf(E0);C0.render(S0); diff --git a/frontend/dist/assets/index.c7d5b2c6.css b/frontend/dist/assets/index.c7d5b2c6.css new file mode 100644 index 00000000..543f4218 --- /dev/null +++ b/frontend/dist/assets/index.c7d5b2c6.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.mx-auto{margin-left:auto;margin-right:auto}.mt-0{margin-top:0}.mb-2{margin-bottom:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-3{margin-top:.75rem}.ml-3{margin-left:.75rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-5{height:1.25rem}.h-36{height:9rem}.h-4{height:1rem}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-5{width:1.25rem}.w-auto{width:auto}.w-4{width:1rem}.max-w-xl{max-width:36rem}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-14{gap:3.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.border{border-width:1px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(233 213 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.p-3{padding:.75rem}.p-4{padding:1rem}.px-24{padding-left:6rem;padding-right:6rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-base{font-size:1rem;line-height:1.5rem}.font-extrabold{font-weight:800}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-6{line-height:1.5rem}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.logo-animation{-webkit-animation:floatAnimation 5s linear infinite;animation:floatAnimation 5s linear infinite}@-webkit-keyframes floatAnimation{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes floatAnimation{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.hover\:bg-purple-300:hover{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(34 197 94 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (prefers-color-scheme: dark){.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:ml-3{margin-left:.75rem}.sm\:flex{display:flex}.sm\:items-center{align-items:center}.sm\:rounded-lg{border-radius:.5rem}.sm\:rounded-md{border-radius:.375rem}.sm\:p-6{padding:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}} diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 03f9d35b..463d3a16 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -4,8 +4,8 @@ October - - + +
diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 0ac86bbc..35fd80a9 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -13,8 +13,7 @@ "react": "^18.1.0", "react-dom": "^18.1.0", "react-hot-toast": "^2.2.0", - "react-router-dom": "^6.3.0", - "react-toastify": "^9.0.3" + "react-router-dom": "^6.3.0" }, "devDependencies": { "@types/react": "^18.0.9", @@ -898,14 +897,6 @@ "node": ">= 6" } }, - "node_modules/clsx": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", - "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==", - "engines": { - "node": ">=6" - } - }, "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", @@ -1881,18 +1872,6 @@ "react-dom": ">=16.8" } }, - "node_modules/react-toastify": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/react-toastify/-/react-toastify-9.0.3.tgz", - "integrity": "sha512-0QZJk0SqYBxouRBGCFU3ymvjlwimRRhVH7SzqGRiVrQ001KSoUNbGKx9Yq42aoPv18n45yJzEFG82zqv3HnASg==", - "dependencies": { - "clsx": "^1.1.1" - }, - "peerDependencies": { - "react": ">=16", - "react-dom": ">=16" - } - }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -2771,11 +2750,6 @@ } } }, - "clsx": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", - "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==" - }, "color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", @@ -3348,14 +3322,6 @@ "react-router": "6.3.0" } }, - "react-toastify": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/react-toastify/-/react-toastify-9.0.3.tgz", - "integrity": "sha512-0QZJk0SqYBxouRBGCFU3ymvjlwimRRhVH7SzqGRiVrQ001KSoUNbGKx9Yq42aoPv18n45yJzEFG82zqv3HnASg==", - "requires": { - "clsx": "^1.1.1" - } - }, "readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 410d5d71..38aeec82 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,8 +9,7 @@ "react": "^18.1.0", "react-dom": "^18.1.0", "react-hot-toast": "^2.2.0", - "react-router-dom": "^6.3.0", - "react-toastify": "^9.0.3" + "react-router-dom": "^6.3.0" }, "scripts": { "dev": "vite", diff --git a/frontend/src/main.jsx b/frontend/src/main.jsx index 47a55e22..88a77140 100644 --- a/frontend/src/main.jsx +++ b/frontend/src/main.jsx @@ -1,15 +1,23 @@ import React from 'react'; import { createRoot } from 'react-dom/client' +import { HashRouter, Route, Routes } from "react-router-dom" import { Toaster } from 'react-hot-toast' -import 'react-toastify/dist/ReactToastify.css'; -import './style.css'; +import DeviceSelector from './pages/DeviceSelector'; +import Overview from './pages/Overview'; +import Settings from './pages/Settings'; -import Router from './router'; +import './style.css'; const routes = ( - + + + } /> + } /> + } /> + + ) diff --git a/frontend/src/pages/DeviceSelector.jsx b/frontend/src/pages/DeviceSelector.jsx index f5a3dbf4..d7f27b87 100644 --- a/frontend/src/pages/DeviceSelector.jsx +++ b/frontend/src/pages/DeviceSelector.jsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react' import { useNavigate } from 'react-router-dom' import Navbar from "../components/Navbar" import logo from '../logo.png' -import { toast } from "react-toastify"; +import { toast } from "react-hot-toast"; import { DetectKobos, SelectKobo, PromptForLocalDBPath } from '../../wailsjs/go/backend/Backend' export default function DeviceSelector() { @@ -22,9 +22,10 @@ export default function DeviceSelector() { .then(devices => { console.log(devices) if (devices == null) { - toast.info("No devices were found") + toast("No devices were found") return } + toast.success(`${devices.length} kobos detected`) setDevices(devices) }) .catch(err => { @@ -52,7 +53,7 @@ export default function DeviceSelector() { navigate("/overview") } else { console.log(error) - toast.error("Something went wrong selecting your local sqlite database") + toast.error("Something went wrong selecting your local SQLite database") } }) .catch(err => toast.error(err)) @@ -78,24 +79,30 @@ export default function DeviceSelector() {

Select your Kobo

    - {devices.map(device => ( -
  • - -
  • - ))} + {devices.map(device => { + let description = `${device.storage} GB · ${device.display_ppi} PPI` + if (!device.name) { + description = "October did not recognise this Kobo but it's safe to continue" + } + return ( +
  • + +
  • + ) + })}
  • - {/*
  • */} - {/* */} - {/*
    */} - {/*
    */} - {/*
    Title
    */} - {/*
    */} - {/* Export KoboReader.sqlite*/} - {/*
    */} - {/*
    Description
    */} - {/*
    */} - {/* Create a local copy of your Kobo database*/} - {/*
    */} - {/*
    */} - {/*
    */} - {/*
    */} - {/*
  • */}
diff --git a/frontend/src/router.jsx b/frontend/src/router.jsx deleted file mode 100644 index d534001f..00000000 --- a/frontend/src/router.jsx +++ /dev/null @@ -1,56 +0,0 @@ -import React from "react" -import { HashRouter, Route, Routes } from "react-router-dom" -import {Slide, toast, ToastContainer} from "react-toastify"; - -import DeviceSelector from "./pages/DeviceSelector" -import Overview from "./pages/Overview" -import Settings from "./pages/Settings" - -const contextClass = { - success: "bg-green-50 text-green-700", - error: "bg-red-50 text-red-700", - info: "bg-gray-50 text-gray-700", - warning: "bg-orange-50 text-orange-700", - default: "bg-indigo-50 text-indigo-700", - dark: "bg-white-50 text-gray-700", -}; - -const tailwindButton = (extraStyles) => ( -
- -
-) - -const Router = () => ( - - - } /> - } /> - } /> - - { - const extraStyles = contextClass[type || "default"] - return tailwindButton(extraStyles) - }} - hideProgressBar - autoClose={3000} - pauseOnHover - style={{ width: "475px" }} - transition={Slide} - bodyClassName={() => "text-sm w-screen flex p-2"} - toastClassName={({ type }) => contextClass[type || "default"] + - " rounded-md p-4 flex mb-2" - } - /> - -) - -export default Router diff --git a/frontend/wailsjs/go/backend/Backend.d.ts b/frontend/wailsjs/go/backend/Backend.d.ts index e7bcbbf2..9f5c9b80 100755 --- a/frontend/wailsjs/go/backend/Backend.d.ts +++ b/frontend/wailsjs/go/backend/Backend.d.ts @@ -2,6 +2,12 @@ // This file is automatically generated. DO NOT EDIT import {backend} from '../models'; +export function GetContent():Promise; + +export function GetSelectedKobo():Promise; + +export function GetSettings():Promise; + export function PromptForLocalDBPath():Promise; export function SelectKobo(arg1:string):Promise; @@ -11,9 +17,3 @@ export function DetectKobos():Promise>; export function ForwardToReadwise():Promise; export function GetBookmark():Promise; - -export function GetContent():Promise; - -export function GetSelectedKobo():Promise; - -export function GetSettings():Promise; diff --git a/frontend/wailsjs/go/backend/Backend.js b/frontend/wailsjs/go/backend/Backend.js index 467d5a33..2b0a7d4b 100755 --- a/frontend/wailsjs/go/backend/Backend.js +++ b/frontend/wailsjs/go/backend/Backend.js @@ -2,6 +2,18 @@ // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT +export function GetContent() { + return window['go']['backend']['Backend']['GetContent'](); +} + +export function GetSelectedKobo() { + return window['go']['backend']['Backend']['GetSelectedKobo'](); +} + +export function GetSettings() { + return window['go']['backend']['Backend']['GetSettings'](); +} + export function PromptForLocalDBPath() { return window['go']['backend']['Backend']['PromptForLocalDBPath'](); } @@ -21,15 +33,3 @@ export function ForwardToReadwise() { export function GetBookmark() { return window['go']['backend']['Backend']['GetBookmark'](); } - -export function GetContent() { - return window['go']['backend']['Backend']['GetContent'](); -} - -export function GetSelectedKobo() { - return window['go']['backend']['Backend']['GetSelectedKobo'](); -} - -export function GetSettings() { - return window['go']['backend']['Backend']['GetSettings'](); -} diff --git a/frontend/wailsjs/go/backend/Kobo.d.ts b/frontend/wailsjs/go/backend/Kobo.d.ts index 19ef3d57..3ccc1ccf 100755 --- a/frontend/wailsjs/go/backend/Kobo.d.ts +++ b/frontend/wailsjs/go/backend/Kobo.d.ts @@ -3,8 +3,6 @@ import {backend} from '../models'; import {map[string]backend} from '../models'; -export function ListDeviceBookmarks():Promise|Error>; - export function ListDeviceContent():Promise|Error>; export function BuildContentIndex(arg1:Array):Promise; @@ -16,3 +14,5 @@ export function FindBookOnDevice(arg1:string):Promise; export function ListBookmarksByID(arg1:string):Promise|Error>; export function ListBooksOnDevice():Promise|Error>; + +export function ListDeviceBookmarks():Promise|Error>; diff --git a/frontend/wailsjs/go/backend/Kobo.js b/frontend/wailsjs/go/backend/Kobo.js index 2c71404c..a53a1248 100755 --- a/frontend/wailsjs/go/backend/Kobo.js +++ b/frontend/wailsjs/go/backend/Kobo.js @@ -2,10 +2,6 @@ // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT -export function ListDeviceBookmarks() { - return window['go']['backend']['Kobo']['ListDeviceBookmarks'](); -} - export function ListDeviceContent() { return window['go']['backend']['Kobo']['ListDeviceContent'](); } @@ -29,3 +25,7 @@ export function ListBookmarksByID(arg1) { export function ListBooksOnDevice() { return window['go']['backend']['Kobo']['ListBooksOnDevice'](); } + +export function ListDeviceBookmarks() { + return window['go']['backend']['Kobo']['ListDeviceBookmarks'](); +} diff --git a/frontend/wailsjs/go/backend/Readwise.d.ts b/frontend/wailsjs/go/backend/Readwise.d.ts index 44287025..c4382bb7 100755 --- a/frontend/wailsjs/go/backend/Readwise.d.ts +++ b/frontend/wailsjs/go/backend/Readwise.d.ts @@ -2,10 +2,10 @@ // This file is automatically generated. DO NOT EDIT import {backend} from '../models'; +export function UploadCover(arg1:string,arg2:number,arg3:string):Promise; + export function CheckTokenValidity(arg1:string):Promise; export function RetrieveUploadedBooks(arg1:string):Promise; export function SendBookmarks(arg1:backend.Response,arg2:string):Promise; - -export function UploadCover(arg1:string,arg2:number,arg3:string):Promise; diff --git a/frontend/wailsjs/go/backend/Readwise.js b/frontend/wailsjs/go/backend/Readwise.js index 1bda6b5e..08ed86d3 100755 --- a/frontend/wailsjs/go/backend/Readwise.js +++ b/frontend/wailsjs/go/backend/Readwise.js @@ -2,6 +2,10 @@ // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT +export function UploadCover(arg1, arg2, arg3) { + return window['go']['backend']['Readwise']['UploadCover'](arg1, arg2, arg3); +} + export function CheckTokenValidity(arg1) { return window['go']['backend']['Readwise']['CheckTokenValidity'](arg1); } @@ -13,7 +17,3 @@ export function RetrieveUploadedBooks(arg1) { export function SendBookmarks(arg1, arg2) { return window['go']['backend']['Readwise']['SendBookmarks'](arg1, arg2); } - -export function UploadCover(arg1, arg2, arg3) { - return window['go']['backend']['Readwise']['UploadCover'](arg1, arg2, arg3); -} diff --git a/frontend/wailsjs/go/backend/Settings.d.ts b/frontend/wailsjs/go/backend/Settings.d.ts index d6477af4..ff679f7b 100755 --- a/frontend/wailsjs/go/backend/Settings.d.ts +++ b/frontend/wailsjs/go/backend/Settings.d.ts @@ -1,10 +1,10 @@ // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT +export function CheckReadwiseConfig():Promise; + export function Save():Promise; export function SaveCoverUploading(arg1:boolean):Promise; export function SaveToken(arg1:string):Promise; - -export function CheckReadwiseConfig():Promise; diff --git a/frontend/wailsjs/go/backend/Settings.js b/frontend/wailsjs/go/backend/Settings.js index 5f00aa6d..c8206fb9 100755 --- a/frontend/wailsjs/go/backend/Settings.js +++ b/frontend/wailsjs/go/backend/Settings.js @@ -2,6 +2,10 @@ // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT +export function CheckReadwiseConfig() { + return window['go']['backend']['Settings']['CheckReadwiseConfig'](); +} + export function Save() { return window['go']['backend']['Settings']['Save'](); } @@ -13,7 +17,3 @@ export function SaveCoverUploading(arg1) { export function SaveToken(arg1) { return window['go']['backend']['Settings']['SaveToken'](arg1); } - -export function CheckReadwiseConfig() { - return window['go']['backend']['Settings']['CheckReadwiseConfig'](); -}