diff --git a/assets/index-B-uk4tTQ.css b/assets/index-B-uk4tTQ.css deleted file mode 100644 index 0ce4d56..0000000 --- a/assets/index-B-uk4tTQ.css +++ /dev/null @@ -1 +0,0 @@ -/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */.pswp{--pswp-bg: #000;--pswp-placeholder-bg: #222;--pswp-root-z-index: 100000;--pswp-preloader-color: rgba(79, 79, 79, .4);--pswp-preloader-color-secondary: rgba(255, 255, 255, .9);--pswp-icon-color: #fff;--pswp-icon-color-secondary: #4f4f4f;--pswp-icon-stroke-color: #4f4f4f;--pswp-icon-stroke-width: 2px;--pswp-error-text-color: var(--pswp-icon-color)}.pswp{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--pswp-root-z-index);display:none;touch-action:none;outline:0;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:rgba(0,0,0,0)}.pswp:focus{outline:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{transform:translateZ(0);will-change:opacity}.pswp__bg{opacity:.005;background:var(--pswp-bg)}.pswp,.pswp__scroll-wrap{overflow:hidden}.pswp__scroll-wrap,.pswp__bg,.pswp__container,.pswp__item,.pswp__content,.pswp__img,.pswp__zoom-wrap{position:absolute;top:0;left:0;width:100%;height:100%}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:zoom-out}.pswp__container,.pswp__img,.pswp__button,.pswp__counter{-webkit-user-select:none;-moz-user-select:none;user-select:none}.pswp__item{z-index:1;overflow:hidden}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{margin:auto;font-size:1em;line-height:1;color:var(--pswp-error-text-color)}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4,0,.22,1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{position:relative;display:block;width:50px;height:60px;padding:0;margin:0;overflow:hidden;cursor:pointer;background:none;border:0;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none}.pswp__button:hover,.pswp__button:active,.pswp__button:focus{transition:none;padding:0;background:none;border:0;box-shadow:none;opacity:1}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary);position:absolute;top:14px;left:9px;width:32px;height:32px;overflow:hidden;pointer-events:none}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__icn:focus{outline:0}div.pswp__img--placeholder,.pswp__img--with-bg{background:var(--pswp-placeholder-bg)}.pswp__top-bar{position:absolute;left:0;top:0;width:100%;height:60px;display:flex;flex-direction:row;justify-content:flex-end;z-index:10;pointer-events:none!important}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{position:absolute;width:75px;height:100px;top:50%;margin-top:-50px}.pswp__button--arrow:disabled{display:none;cursor:default}.pswp__button--arrow .pswp__icn{top:50%;margin-top:-30px;width:60px;height:60px;background:none;border-radius:0}.pswp--one-slide .pswp__button--arrow{display:none}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{right:auto;left:0}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__zoom-icn-bar-v{display:none}.pswp__preloader{position:relative;overflow:hidden;width:50px;height:60px;margin-right:auto}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:pswp-clockwise .6s linear infinite}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{height:30px;margin-top:15px;margin-inline-start:20px;font-size:14px;line-height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85}.pswp--one-slide .pswp__counter{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{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,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-variation-settings:normal;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-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-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]:where(:not([hidden=until-found])){display:none}*{--tw-border-opacity: 1;border-color:rgb(var(--border) / var(--tw-border-opacity, 1))}body{--tw-bg-opacity: 1;background-color:rgb(var(--background) / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(var(--foreground) / var(--tw-text-opacity, 1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"rlig" 1,"calt" 1}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.max-h-\[90vh\]{max-height:90vh}.max-h-\[calc\(100vh-200px\)\]{max-height:calc(100vh - 200px)}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-12{width:3rem}.w-24{width:6rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-\[120px\]{min-width:120px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * 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))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-border>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(var(--border) / var(--tw-divide-opacity, 1))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-blue-500\/20{border-color:#3b82f633}.border-border{--tw-border-opacity: 1;border-color:rgb(var(--border) / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(var(--primary) / var(--tw-border-opacity, 1))}.border-red-500\/20{border-color:#ef444433}.border-yellow-500\/20{border-color:#eab30833}.border-t-transparent{border-top-color:transparent}.bg-background{--tw-bg-opacity: 1;background-color:rgb(var(--background) / var(--tw-bg-opacity, 1))}.bg-background\/80{background-color:rgb(var(--background) / .8)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/10{background-color:#0000001a}.bg-black\/50{background-color:#00000080}.bg-blue-500\/10{background-color:#3b82f61a}.bg-card{--tw-bg-opacity: 1;background-color:rgb(var(--card) / var(--tw-bg-opacity, 1))}.bg-muted{--tw-bg-opacity: 1;background-color:rgb(var(--muted) / var(--tw-bg-opacity, 1))}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(var(--primary) / var(--tw-bg-opacity, 1))}.bg-primary\/10{background-color:rgb(var(--primary) / .1)}.bg-purple-500\/10{background-color:#a855f71a}.bg-red-500\/10{background-color:#ef44441a}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-500\/10{background-color:#eab3081a}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tracking-wider{letter-spacing:.05em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-foreground{--tw-text-opacity: 1;color:rgb(var(--foreground) / var(--tw-text-opacity, 1))}.text-muted-foreground{--tw-text-opacity: 1;color:rgb(var(--muted-foreground) / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(var(--primary) / var(--tw-text-opacity, 1))}.text-primary-foreground{--tw-text-opacity: 1;color:rgb(var(--primary-foreground) / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.placeholder-muted-foreground::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(var(--muted-foreground) / var(--tw-placeholder-opacity, 1))}.placeholder-muted-foreground::placeholder{--tw-placeholder-opacity: 1;color:rgb(var(--muted-foreground) / var(--tw-placeholder-opacity, 1))}.accent-primary{accent-color:rgb(var(--primary) / 1)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px 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)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-2{--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)}.ring-primary{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--primary) / var(--tw-ring-opacity, 1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}:root{color-scheme:light;--background: 255 255 255;--foreground: 15 23 42;--muted: 241 245 249;--muted-foreground: 100 116 139;--card: 255 255 255;--card-foreground: 15 23 42;--border: 226 232 240;--primary: 37 99 235;--primary-foreground: 255 255 255}:root[class~=dark]{color-scheme:dark;--background: 15 23 42;--foreground: 226 232 240;--muted: 30 41 59;--muted-foreground: 148 163 184;--card: 30 41 59;--card-foreground: 226 232 240;--border: 51 65 85;--primary: 59 130 246;--primary-foreground: 255 255 255}.icon-container{position:relative;height:4rem;width:4rem;flex-shrink:0}.icon-container img{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%;border-radius:.5rem;-o-object-fit:cover;object-fit:cover;aspect-ratio:1/1}@media (max-width: 640px){.icon-container{height:3rem;width:3rem}.content-table th,.content-table td{padding:.5rem;font-size:.875rem;line-height:1.25rem}.content-table th:not(:first-child):not(:last-child),.content-table td:not(:first-child):not(:last-child){display:none}.pagination-controls{flex-direction:column}.pagination-controls>: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))}.pagination-controls select{width:100%}.search-bar{flex-direction:column}.search-bar>: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))}.search-bar input{width:100%}.stats-grid{grid-template-columns:repeat(1,minmax(0,1fr));gap:.5rem}}@media (min-width: 641px) and (max-width: 1024px){.icon-container{height:3.5rem;width:3.5rem}.content-table th,.content-table td{padding:.75rem}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}}.overflow-container{margin-left:-1rem;margin-right:-1rem;overflow-x:auto;padding-left:1rem;padding-right:1rem;-webkit-overflow-scrolling:touch}.hover\:border-primary\/50:hover{border-color:rgb(var(--primary) / .5)}.hover\:bg-muted:hover{--tw-bg-opacity: 1;background-color:rgb(var(--muted) / var(--tw-bg-opacity, 1))}.hover\:bg-muted\/50:hover{background-color:rgb(var(--muted) / .5)}.hover\:bg-muted\/80:hover{background-color:rgb(var(--muted) / .8)}.hover\:bg-primary\/20:hover{background-color:rgb(var(--primary) / .2)}.hover\:bg-primary\/90:hover{background-color:rgb(var(--primary) / .9)}.hover\:bg-red-500\/20:hover{background-color:#ef444433}.hover\:text-foreground:hover{--tw-text-opacity: 1;color:rgb(var(--foreground) / var(--tw-text-opacity, 1))}.hover\:text-primary\/80:hover{color:rgb(var(--primary) / .8)}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.focus\:border-transparent:focus{border-color:transparent}.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-primary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--primary) / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:bg-muted:active{--tw-bg-opacity: 1;background-color:rgb(var(--muted) / var(--tw-bg-opacity, 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-primary{--tw-text-opacity: 1;color:rgb(var(--primary) / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-primary\/80{color:rgb(var(--primary) / .8)}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-50{opacity:.5}.group:hover .group-hover\:shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.sm\:flex{display:flex}.sm\:flex-row{flex-direction:row}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}}@media (min-width: 768px){.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}} diff --git a/assets/index-BhcoY5PF.css b/assets/index-BhcoY5PF.css new file mode 100644 index 0000000..4776703 --- /dev/null +++ b/assets/index-BhcoY5PF.css @@ -0,0 +1 @@ +/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */.pswp{--pswp-bg: #000;--pswp-placeholder-bg: #222;--pswp-root-z-index: 100000;--pswp-preloader-color: rgba(79, 79, 79, .4);--pswp-preloader-color-secondary: rgba(255, 255, 255, .9);--pswp-icon-color: #fff;--pswp-icon-color-secondary: #4f4f4f;--pswp-icon-stroke-color: #4f4f4f;--pswp-icon-stroke-width: 2px;--pswp-error-text-color: var(--pswp-icon-color)}.pswp{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--pswp-root-z-index);display:none;touch-action:none;outline:0;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:rgba(0,0,0,0)}.pswp:focus{outline:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{transform:translateZ(0);will-change:opacity}.pswp__bg{opacity:.005;background:var(--pswp-bg)}.pswp,.pswp__scroll-wrap{overflow:hidden}.pswp__scroll-wrap,.pswp__bg,.pswp__container,.pswp__item,.pswp__content,.pswp__img,.pswp__zoom-wrap{position:absolute;top:0;left:0;width:100%;height:100%}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:zoom-out}.pswp__container,.pswp__img,.pswp__button,.pswp__counter{-webkit-user-select:none;-moz-user-select:none;user-select:none}.pswp__item{z-index:1;overflow:hidden}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{margin:auto;font-size:1em;line-height:1;color:var(--pswp-error-text-color)}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4,0,.22,1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{position:relative;display:block;width:50px;height:60px;padding:0;margin:0;overflow:hidden;cursor:pointer;background:none;border:0;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none}.pswp__button:hover,.pswp__button:active,.pswp__button:focus{transition:none;padding:0;background:none;border:0;box-shadow:none;opacity:1}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary);position:absolute;top:14px;left:9px;width:32px;height:32px;overflow:hidden;pointer-events:none}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__icn:focus{outline:0}div.pswp__img--placeholder,.pswp__img--with-bg{background:var(--pswp-placeholder-bg)}.pswp__top-bar{position:absolute;left:0;top:0;width:100%;height:60px;display:flex;flex-direction:row;justify-content:flex-end;z-index:10;pointer-events:none!important}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{position:absolute;width:75px;height:100px;top:50%;margin-top:-50px}.pswp__button--arrow:disabled{display:none;cursor:default}.pswp__button--arrow .pswp__icn{top:50%;margin-top:-30px;width:60px;height:60px;background:none;border-radius:0}.pswp--one-slide .pswp__button--arrow{display:none}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{right:auto;left:0}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__zoom-icn-bar-v{display:none}.pswp__preloader{position:relative;overflow:hidden;width:50px;height:60px;margin-right:auto}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:pswp-clockwise .6s linear infinite}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{height:30px;margin-top:15px;margin-inline-start:20px;font-size:14px;line-height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85}.pswp--one-slide .pswp__counter{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{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,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-variation-settings:normal;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-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-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]:where(:not([hidden=until-found])){display:none}*{--tw-border-opacity: 1;border-color:rgb(var(--border) / var(--tw-border-opacity, 1))}body{--tw-bg-opacity: 1;background-color:rgb(var(--background) / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(var(--foreground) / var(--tw-text-opacity, 1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"rlig" 1,"calt" 1}.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}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.max-h-\[90vh\]{max-height:90vh}.max-h-\[95vh\]{max-height:95vh}.max-h-\[calc\(100vh-200px\)\]{max-height:calc(100vh - 200px)}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-\[120px\]{min-width:120px}.min-w-full{min-width:100%}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * 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))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-border>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(var(--border) / var(--tw-divide-opacity, 1))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-blue-500\/20{border-color:#3b82f633}.border-border{--tw-border-opacity: 1;border-color:rgb(var(--border) / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(var(--primary) / var(--tw-border-opacity, 1))}.border-red-500\/20{border-color:#ef444433}.border-yellow-500\/20{border-color:#eab30833}.border-t-transparent{border-top-color:transparent}.bg-background{--tw-bg-opacity: 1;background-color:rgb(var(--background) / var(--tw-bg-opacity, 1))}.bg-background\/80{background-color:rgb(var(--background) / .8)}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/10{background-color:#0000001a}.bg-black\/50{background-color:#00000080}.bg-blue-500\/10{background-color:#3b82f61a}.bg-card{--tw-bg-opacity: 1;background-color:rgb(var(--card) / var(--tw-bg-opacity, 1))}.bg-muted{--tw-bg-opacity: 1;background-color:rgb(var(--muted) / var(--tw-bg-opacity, 1))}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(var(--primary) / var(--tw-bg-opacity, 1))}.bg-primary\/10{background-color:rgb(var(--primary) / .1)}.bg-purple-500\/10{background-color:#a855f71a}.bg-red-500\/10{background-color:#ef44441a}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-500\/10{background-color:#eab3081a}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tracking-wider{letter-spacing:.05em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-foreground{--tw-text-opacity: 1;color:rgb(var(--foreground) / var(--tw-text-opacity, 1))}.text-muted-foreground{--tw-text-opacity: 1;color:rgb(var(--muted-foreground) / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(var(--primary) / var(--tw-text-opacity, 1))}.text-primary-foreground{--tw-text-opacity: 1;color:rgb(var(--primary-foreground) / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.placeholder-muted-foreground::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(var(--muted-foreground) / var(--tw-placeholder-opacity, 1))}.placeholder-muted-foreground::placeholder{--tw-placeholder-opacity: 1;color:rgb(var(--muted-foreground) / var(--tw-placeholder-opacity, 1))}.accent-primary{accent-color:rgb(var(--primary) / 1)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px 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)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-2{--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)}.ring-primary{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--primary) / var(--tw-ring-opacity, 1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}:root{color-scheme:light;--background: 255 255 255;--foreground: 15 23 42;--muted: 241 245 249;--muted-foreground: 100 116 139;--card: 255 255 255;--card-foreground: 15 23 42;--border: 226 232 240;--primary: 37 99 235;--primary-foreground: 255 255 255}:root[class~=dark]{color-scheme:dark;--background: 15 23 42;--foreground: 226 232 240;--muted: 30 41 59;--muted-foreground: 148 163 184;--card: 30 41 59;--card-foreground: 226 232 240;--border: 51 65 85;--primary: 59 130 246;--primary-foreground: 255 255 255}.icon-container{position:relative;height:4rem;width:4rem;flex-shrink:0}.icon-container img{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%;border-radius:.5rem;-o-object-fit:cover;object-fit:cover;aspect-ratio:1/1}@media (max-width: 640px){.icon-container{height:3rem;width:3rem}.content-table th,.content-table td{padding:.5rem;font-size:.875rem;line-height:1.25rem}.content-table th:not(:first-child):not(:last-child),.content-table td:not(:first-child):not(:last-child){display:none}.pagination-controls{flex-direction:column}.pagination-controls>: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))}.pagination-controls select{width:100%}.search-bar{flex-direction:column}.search-bar>: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))}.search-bar input{width:100%}.stats-grid{grid-template-columns:repeat(1,minmax(0,1fr));gap:.5rem}}@media (min-width: 641px) and (max-width: 1024px){.icon-container{height:3.5rem;width:3.5rem}.content-table th,.content-table td{padding:.75rem}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}}.overflow-container{margin-left:-1rem;margin-right:-1rem;overflow-x:auto;padding-left:1rem;padding-right:1rem;-webkit-overflow-scrolling:touch}.hover\:border-primary\/50:hover{border-color:rgb(var(--primary) / .5)}.hover\:bg-muted:hover{--tw-bg-opacity: 1;background-color:rgb(var(--muted) / var(--tw-bg-opacity, 1))}.hover\:bg-muted\/50:hover{background-color:rgb(var(--muted) / .5)}.hover\:bg-muted\/80:hover{background-color:rgb(var(--muted) / .8)}.hover\:bg-primary\/20:hover{background-color:rgb(var(--primary) / .2)}.hover\:bg-primary\/90:hover{background-color:rgb(var(--primary) / .9)}.hover\:bg-red-500\/20:hover{background-color:#ef444433}.hover\:text-foreground:hover{--tw-text-opacity: 1;color:rgb(var(--foreground) / var(--tw-text-opacity, 1))}.hover\:text-primary\/80:hover{color:rgb(var(--primary) / .8)}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.focus\:border-transparent:focus{border-color:transparent}.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-primary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--primary) / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:bg-muted:active{--tw-bg-opacity: 1;background-color:rgb(var(--muted) / var(--tw-bg-opacity, 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-primary{--tw-text-opacity: 1;color:rgb(var(--primary) / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-primary\/80{color:rgb(var(--primary) / .8)}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-50{opacity:.5}.group:hover .group-hover\:shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 475px){.xs\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 640px){.sm\:line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:table-cell{display:table-cell}.sm\:hidden{display:none}.sm\:w-24{width:6rem}.sm\:max-w-4xl{max-width:56rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:gap-4{gap:1rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\: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))}.sm\:p-4{padding:1rem}.sm\:p-6{padding:1.5rem}.sm\:px-3{padding-left:.75rem;padding-right:.75rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\:table-cell{display:table-cell}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}} diff --git a/assets/index-Dlvsi0XC.js b/assets/index-Cml1J917.js similarity index 78% rename from assets/index-Dlvsi0XC.js rename to assets/index-Cml1J917.js index e066913..c4f025f 100644 --- a/assets/index-Dlvsi0XC.js +++ b/assets/index-Cml1J917.js @@ -1,4 +1,4 @@ -var oh=Object.defineProperty;var lh=(t,e,n)=>e in t?oh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Dn=(t,e,n)=>lh(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Io(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cu={exports:{}},Ri={},du={exports:{}},O={};/** +var oh=Object.defineProperty;var lh=(t,e,n)=>e in t?oh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Dn=(t,e,n)=>lh(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function zo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cu={exports:{}},Fi={},du={exports:{}},O={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var oh=Object.defineProperty;var lh=(t,e,n)=>e in t?oh(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Lr=Symbol.for("react.element"),ah=Symbol.for("react.portal"),uh=Symbol.for("react.fragment"),ch=Symbol.for("react.strict_mode"),dh=Symbol.for("react.profiler"),hh=Symbol.for("react.provider"),fh=Symbol.for("react.context"),ph=Symbol.for("react.forward_ref"),mh=Symbol.for("react.suspense"),gh=Symbol.for("react.memo"),vh=Symbol.for("react.lazy"),Il=Symbol.iterator;function yh(t){return t===null||typeof t!="object"?null:(t=Il&&t[Il]||t["@@iterator"],typeof t=="function"?t:null)}var hu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fu=Object.assign,pu={};function jn(t,e,n){this.props=t,this.context=e,this.refs=pu,this.updater=n||hu}jn.prototype.isReactComponent={};jn.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};jn.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function mu(){}mu.prototype=jn.prototype;function zo(t,e,n){this.props=t,this.context=e,this.refs=pu,this.updater=n||hu}var Mo=zo.prototype=new mu;Mo.constructor=zo;fu(Mo,jn.prototype);Mo.isPureReactComponent=!0;var zl=Array.isArray,gu=Object.prototype.hasOwnProperty,Ao={current:null},vu={key:!0,ref:!0,__self:!0,__source:!0};function yu(t,e,n){var r,i={},s=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)gu.call(e,r)&&!vu.hasOwnProperty(r)&&(i[r]=e[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1e in t?oh(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kh=I,Eh=Symbol.for("react.element"),Ch=Symbol.for("react.fragment"),Ph=Object.prototype.hasOwnProperty,Nh=kh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Lh={key:!0,ref:!0,__self:!0,__source:!0};function wu(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)Ph.call(e,r)&&!Lh.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:Eh,type:t,key:s,ref:o,props:i,_owner:Nh.current}}Ri.Fragment=Ch;Ri.jsx=wu;Ri.jsxs=wu;cu.exports=Ri;var c=cu.exports,Ts={},Su={exports:{}},ze={},_u={exports:{}},ku={};/** + */var kh=I,Eh=Symbol.for("react.element"),Ch=Symbol.for("react.fragment"),Ph=Object.prototype.hasOwnProperty,Nh=kh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Lh={key:!0,ref:!0,__self:!0,__source:!0};function wu(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)Ph.call(e,r)&&!Lh.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:Eh,type:t,key:s,ref:o,props:i,_owner:Nh.current}}Fi.Fragment=Ch;Fi.jsx=wu;Fi.jsxs=wu;cu.exports=Fi;var c=cu.exports,Ts={},Su={exports:{}},ze={},_u={exports:{}},ku={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var oh=Object.defineProperty;var lh=(t,e,n)=>e in t?oh(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(t){function e(C,T){var j=C.length;C.push(T);e:for(;0>>1,B=C[b];if(0>>1;bi(An,j))Gei(it,An)?(C[b]=it,C[Ge]=j,b=Ge):(C[b]=An,C[rt]=j,b=rt);else if(Gei(it,j))C[b]=it,C[Ge]=j,b=Ge;else break e}}return T}function i(C,T){var j=C.sortIndex-T.sortIndex;return j!==0?j:C.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],h=1,f=null,p=3,y=!1,v=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=C)r(u),T.sortIndex=T.expirationTime,e(a,T);else break;T=n(u)}}function w(C){if(x=!1,g(C),!v)if(n(a)!==null)v=!0,A(P);else{var T=n(u);T!==null&&Z(w,T.startTime-C)}}function P(C,T){v=!1,x&&(x=!1,m(N),N=-1),y=!0;var j=p;try{for(g(T),f=n(a);f!==null&&(!(f.expirationTime>T)||C&&!re());){var b=f.callback;if(typeof b=="function"){f.callback=null,p=f.priorityLevel;var B=b(f.expirationTime<=T);T=t.unstable_now(),typeof B=="function"?f.callback=B:f===n(a)&&r(a),g(T)}else r(a);f=n(a)}if(f!==null)var he=!0;else{var rt=n(u);rt!==null&&Z(w,rt.startTime-T),he=!1}return he}finally{f=null,p=j,y=!1}}var S=!1,_=null,N=-1,F=5,M=-1;function re(){return!(t.unstable_now()-MC||125b?(C.sortIndex=j,e(u,C),n(a)===null&&C===n(u)&&(x?(m(N),N=-1):x=!0,Z(w,j-b))):(C.sortIndex=B,e(a,C),v||y||(v=!0,A(P))),C},t.unstable_shouldYield=re,t.unstable_wrapCallback=function(C){var T=p;return function(){var j=p;p=T;try{return C.apply(this,arguments)}finally{p=j}}}})(ku);_u.exports=ku;var Th=_u.exports;/** + */(function(t){function e(C,j){var T=C.length;C.push(j);e:for(;0>>1,b=C[B];if(0>>1;Bi(An,T))Gei(it,An)?(C[B]=it,C[Ge]=T,B=Ge):(C[B]=An,C[rt]=T,B=rt);else if(Gei(it,T))C[B]=it,C[Ge]=T,B=Ge;else break e}}return j}function i(C,j){var T=C.sortIndex-j.sortIndex;return T!==0?T:C.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],h=1,f=null,p=3,y=!1,v=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=C)r(u),j.sortIndex=j.expirationTime,e(a,j);else break;j=n(u)}}function w(C){if(x=!1,g(C),!v)if(n(a)!==null)v=!0,A(P);else{var j=n(u);j!==null&&Z(w,j.startTime-C)}}function P(C,j){v=!1,x&&(x=!1,m(N),N=-1),y=!0;var T=p;try{for(g(j),f=n(a);f!==null&&(!(f.expirationTime>j)||C&&!re());){var B=f.callback;if(typeof B=="function"){f.callback=null,p=f.priorityLevel;var b=B(f.expirationTime<=j);j=t.unstable_now(),typeof b=="function"?f.callback=b:f===n(a)&&r(a),g(j)}else r(a);f=n(a)}if(f!==null)var he=!0;else{var rt=n(u);rt!==null&&Z(w,rt.startTime-j),he=!1}return he}finally{f=null,p=T,y=!1}}var S=!1,_=null,N=-1,F=5,M=-1;function re(){return!(t.unstable_now()-MC||125B?(C.sortIndex=T,e(u,C),n(a)===null&&C===n(u)&&(x?(m(N),N=-1):x=!0,Z(w,T-B))):(C.sortIndex=b,e(a,C),v||y||(v=!0,A(P))),C},t.unstable_shouldYield=re,t.unstable_wrapCallback=function(C){var j=p;return function(){var T=p;p=j;try{return C.apply(this,arguments)}finally{p=T}}}})(ku);_u.exports=ku;var jh=_u.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var oh=Object.defineProperty;var lh=(t,e,n)=>e in t?oh(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jh=I,Ie=Th;function k(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=Object.prototype.hasOwnProperty,Ih=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Al={},Dl={};function zh(t){return js.call(Dl,t)?!0:js.call(Al,t)?!1:Ih.test(t)?Dl[t]=!0:(Al[t]=!0,!1)}function Mh(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Ah(t,e,n,r){if(e===null||typeof e>"u"||Mh(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function we(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){de[t]=new we(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];de[e]=new we(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){de[t]=new we(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){de[t]=new we(t,2,!1,t,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(t){de[t]=new we(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){de[t]=new we(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){de[t]=new we(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){de[t]=new we(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){de[t]=new we(t,5,!1,t.toLowerCase(),null,!1,!1)});var Ro=/[\-:]([a-z])/g;function Fo(t){return t[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(t){var e=t.replace(Ro,Fo);de[e]=new we(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Ro,Fo);de[e]=new we(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Ro,Fo);de[e]=new we(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){de[t]=new we(t,1,!1,t.toLowerCase(),null,!1,!1)});de.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){de[t]=new we(t,1,!1,t.toLowerCase(),null,!0,!0)});function $o(t,e,n,r){var i=de.hasOwnProperty(e)?de[e]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Is=Object.prototype.hasOwnProperty,Ih=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Al={},Dl={};function zh(t){return Is.call(Dl,t)?!0:Is.call(Al,t)?!1:Ih.test(t)?Dl[t]=!0:(Al[t]=!0,!1)}function Mh(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Ah(t,e,n,r){if(e===null||typeof e>"u"||Mh(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function we(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){de[t]=new we(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];de[e]=new we(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){de[t]=new we(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){de[t]=new we(t,2,!1,t,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(t){de[t]=new we(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){de[t]=new we(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){de[t]=new we(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){de[t]=new we(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){de[t]=new we(t,5,!1,t.toLowerCase(),null,!1,!1)});var Fo=/[\-:]([a-z])/g;function $o(t){return t[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(t){var e=t.replace(Fo,$o);de[e]=new we(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Fo,$o);de[e]=new we(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Fo,$o);de[e]=new we(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){de[t]=new we(t,1,!1,t.toLowerCase(),null,!1,!1)});de.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){de[t]=new we(t,1,!1,t.toLowerCase(),null,!0,!0)});function bo(t,e,n,r){var i=de.hasOwnProperty(e)?de[e]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` -`+i[o].replace(" at new "," at ");return t.displayName&&a.includes("")&&(a=a.replace("",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{rs=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Vn(t):""}function Dh(t){switch(t.tag){case 5:return Vn(t.type);case 16:return Vn("Lazy");case 13:return Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 2:case 15:return t=is(t.type,!1),t;case 11:return t=is(t.type.render,!1),t;case 1:return t=is(t.type,!0),t;default:return""}}function As(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case sn:return"Fragment";case rn:return"Portal";case Is:return"Profiler";case Bo:return"StrictMode";case zs:return"Suspense";case Ms:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Pu:return(t.displayName||"Context")+".Consumer";case Cu:return(t._context.displayName||"Context")+".Provider";case bo:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Uo:return e=t.displayName||null,e!==null?e:As(t.type)||"Memo";case yt:e=t._payload,t=t._init;try{return As(t(e))}catch{}}return null}function Oh(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return As(e);case 8:return e===Bo?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function zt(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Lu(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Rh(t){var e=Lu(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Or(t){t._valueTracker||(t._valueTracker=Rh(t))}function Tu(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Lu(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ci(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ds(t,e){var n=e.checked;return Y({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Rl(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=zt(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function ju(t,e){e=e.checked,e!=null&&$o(t,"checked",e,!1)}function Os(t,e){ju(t,e);var n=zt(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Rs(t,e.type,n):e.hasOwnProperty("defaultValue")&&Rs(t,e.type,zt(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Fl(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Rs(t,e,n){(e!=="number"||ci(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Qn=Array.isArray;function gn(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Rr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ar(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Yn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fh=["Webkit","ms","Moz","O"];Object.keys(Yn).forEach(function(t){Fh.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Yn[e]=Yn[t]})});function Au(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Yn.hasOwnProperty(t)&&Yn[t]?(""+e).trim():e+"px"}function Du(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Au(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var $h=Y({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 Bs(t,e){if(e){if($h[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(k(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(k(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(k(61))}if(e.style!=null&&typeof e.style!="object")throw Error(k(62))}}function bs(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Us=null;function Ho(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Hs=null,vn=null,yn=null;function bl(t){if(t=Ir(t)){if(typeof Hs!="function")throw Error(k(280));var e=t.stateNode;e&&(e=Ui(e),Hs(t.stateNode,t.type,e))}}function Ou(t){vn?yn?yn.push(t):yn=[t]:vn=t}function Ru(){if(vn){var t=vn,e=yn;if(yn=vn=null,bl(t),e)for(t=0;t>>=0,t===0?32:31-(Xh(t)/Yh|0)|0}var Fr=64,$r=4194304;function Kn(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pi(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Kn(l):(s&=o,s!==0&&(r=Kn(s)))}else o=n&~i,o!==0?r=Kn(o):s!==0&&(r=Kn(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function Tr(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ve(e),t[e]=n}function tf(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Jn),Xl=" ",Yl=!1;function rc(t,e){switch(t){case"keyup":return jf.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ic(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var on=!1;function zf(t,e){switch(t){case"compositionend":return ic(e);case"keypress":return e.which!==32?null:(Yl=!0,Xl);case"textInput":return t=e.data,t===Xl&&Yl?null:t;default:return null}}function Mf(t,e){if(on)return t==="compositionend"||!Yo&&rc(t,e)?(t=tc(),ti=Ko=_t=null,on=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ta(n)}}function ac(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ac(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function uc(){for(var t=window,e=ci();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ci(t.document)}return e}function qo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Uf(t){var e=uc(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&ac(n.ownerDocument.documentElement,n)){if(r!==null&&qo(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=na(n,s);var o=na(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ln=null,Gs=null,tr=null,Xs=!1;function ra(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xs||ln==null||ln!==ci(r)||(r=ln,"selectionStart"in r&&qo(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&&pr(tr,r)||(tr=r,r=vi(Gs,"onSelect"),0cn||(t.current=no[cn],no[cn]=null,cn--)}function W(t,e){cn++,no[cn]=t.current,t.current=e}var Mt={},ge=Dt(Mt),ke=Dt(!1),Kt=Mt;function kn(t,e){var n=t.type.contextTypes;if(!n)return Mt;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Ee(t){return t=t.childContextTypes,t!=null}function xi(){Q(ke),Q(ge)}function ca(t,e,n){if(ge.current!==Mt)throw Error(k(168));W(ge,e),W(ke,n)}function yc(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(k(108,Oh(t)||"Unknown",i));return Y({},n,r)}function wi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Mt,Kt=ge.current,W(ge,t),W(ke,ke.current),!0}function da(t,e,n){var r=t.stateNode;if(!r)throw Error(k(169));n?(t=yc(t,e,Kt),r.__reactInternalMemoizedMergedChildContext=t,Q(ke),Q(ge),W(ge,t)):Q(ke),W(ke,n)}var ot=null,Hi=!1,ys=!1;function xc(t){ot===null?ot=[t]:ot.push(t)}function ep(t){Hi=!0,xc(t)}function Ot(){if(!ys&&ot!==null){ys=!0;var t=0,e=H;try{var n=ot;for(H=1;t>=o,i-=o,lt=1<<32-Ve(e)+i|n<N?(F=_,_=null):F=_.sibling;var M=p(m,_,g[N],w);if(M===null){_===null&&(_=F);break}t&&_&&M.alternate===null&&e(m,_),d=s(M,d,N),S===null?P=M:S.sibling=M,S=M,_=F}if(N===g.length)return n(m,_),K&&$t(m,N),P;if(_===null){for(;NN?(F=_,_=null):F=_.sibling;var re=p(m,_,M.value,w);if(re===null){_===null&&(_=F);break}t&&_&&re.alternate===null&&e(m,_),d=s(re,d,N),S===null?P=re:S.sibling=re,S=re,_=F}if(M.done)return n(m,_),K&&$t(m,N),P;if(_===null){for(;!M.done;N++,M=g.next())M=f(m,M.value,w),M!==null&&(d=s(M,d,N),S===null?P=M:S.sibling=M,S=M);return K&&$t(m,N),P}for(_=r(m,_);!M.done;N++,M=g.next())M=y(_,m,N,M.value,w),M!==null&&(t&&M.alternate!==null&&_.delete(M.key===null?N:M.key),d=s(M,d,N),S===null?P=M:S.sibling=M,S=M);return t&&_.forEach(function(R){return e(m,R)}),K&&$t(m,N),P}function E(m,d,g,w){if(typeof g=="object"&&g!==null&&g.type===sn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Dr:e:{for(var P=g.key,S=d;S!==null;){if(S.key===P){if(P=g.type,P===sn){if(S.tag===7){n(m,S.sibling),d=i(S,g.props.children),d.return=m,m=d;break e}}else if(S.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yt&&pa(P)===S.type){n(m,S.sibling),d=i(S,g.props),d.ref=bn(m,S,g),d.return=m,m=d;break e}n(m,S);break}else e(m,S);S=S.sibling}g.type===sn?(d=Qt(g.props.children,m.mode,w,g.key),d.return=m,m=d):(w=ui(g.type,g.key,g.props,null,m.mode,w),w.ref=bn(m,d,g),w.return=m,m=w)}return o(m);case rn:e:{for(S=g.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),d=i(d,g.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else e(m,d);d=d.sibling}d=Ps(g,m.mode,w),d.return=m,m=d}return o(m);case yt:return S=g._init,E(m,d,S(g._payload),w)}if(Qn(g))return v(m,d,g,w);if(On(g))return x(m,d,g,w);Vr(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),d=i(d,g),d.return=m,m=d):(n(m,d),d=Cs(g,m.mode,w),d.return=m,m=d),o(m)):n(m,d)}return E}var Cn=kc(!0),Ec=kc(!1),ki=Dt(null),Ei=null,fn=null,nl=null;function rl(){nl=fn=Ei=null}function il(t){var e=ki.current;Q(ki),t._currentValue=e}function so(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function wn(t,e){Ei=t,nl=fn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(_e=!0),t.firstContext=null)}function Be(t){var e=t._currentValue;if(nl!==t)if(t={context:t,memoizedValue:e,next:null},fn===null){if(Ei===null)throw Error(k(308));fn=t,Ei.dependencies={lanes:0,firstContext:t}}else fn=fn.next=t;return e}var Ht=null;function sl(t){Ht===null?Ht=[t]:Ht.push(t)}function Cc(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,sl(e)):(n.next=i.next,i.next=n),e.interleaved=n,ht(t,r)}function ht(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var xt=!1;function ol(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function ut(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Lt(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,ht(t,n)}return i=r.interleaved,i===null?(e.next=e,sl(r)):(e.next=i.next,i.next=e),r.interleaved=e,ht(t,n)}function ri(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Wo(t,n)}}function ma(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ci(t,e,n,r){var i=t.updateQueue;xt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var h=t.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==o&&(l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,h=u=a=null,l=s;do{var p=l.lane,y=l.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=t,x=l;switch(p=e,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){f=v.call(y,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,p=typeof v=="function"?v.call(y,f,p):v,p==null)break e;f=Y({},f,p);break e;case 2:xt=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else y={eventTime:y,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(u=h=y,a=f):h=h.next=y,o|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(h===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=h,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Yt|=o,t.lanes=o,t.memoizedState=f}}function ga(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=ws.transition;ws.transition={};try{t(!1),e()}finally{H=n,ws.transition=r}}function Hc(){return be().memoizedState}function ip(t,e,n){var r=jt(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zc(t))Wc(e,n);else if(n=Cc(t,e,n,r),n!==null){var i=ye();Qe(n,t,r,i),Vc(n,e,r)}}function sp(t,e,n){var r=jt(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zc(t))Wc(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ke(l,o)){var a=e.interleaved;a===null?(i.next=i,sl(e)):(i.next=a.next,a.next=i),e.interleaved=i;return}}catch{}finally{}n=Cc(t,e,i,r),n!==null&&(i=ye(),Qe(n,t,r,i),Vc(n,e,r))}}function Zc(t){var e=t.alternate;return t===X||e!==null&&e===X}function Wc(t,e){nr=Ni=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vc(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Wo(t,n)}}var Li={readContext:Be,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},op={readContext:Be,useCallback:function(t,e){return Ye().memoizedState=[t,e===void 0?null:e],t},useContext:Be,useEffect:ya,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,si(4194308,4,Fc.bind(null,e,t),n)},useLayoutEffect:function(t,e){return si(4194308,4,t,e)},useInsertionEffect:function(t,e){return si(4,2,t,e)},useMemo:function(t,e){var n=Ye();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ye();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=ip.bind(null,X,t),[r.memoizedState,t]},useRef:function(t){var e=Ye();return t={current:t},e.memoizedState=t},useState:va,useDebugValue:pl,useDeferredValue:function(t){return Ye().memoizedState=t},useTransition:function(){var t=va(!1),e=t[0];return t=rp.bind(null,t[1]),Ye().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=X,i=Ye();if(K){if(n===void 0)throw Error(k(407));n=n()}else{if(n=e(),ae===null)throw Error(k(349));Xt&30||jc(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,ya(zc.bind(null,r,s,t),[t]),r.flags|=2048,_r(9,Ic.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=Ye(),e=ae.identifierPrefix;if(K){var n=at,r=lt;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=wr++,0")&&(a=a.replace("",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{is=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Vn(t):""}function Dh(t){switch(t.tag){case 5:return Vn(t.type);case 16:return Vn("Lazy");case 13:return Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 2:case 15:return t=ss(t.type,!1),t;case 11:return t=ss(t.type.render,!1),t;case 1:return t=ss(t.type,!0),t;default:return""}}function Ds(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case sn:return"Fragment";case rn:return"Portal";case zs:return"Profiler";case Bo:return"StrictMode";case Ms:return"Suspense";case As:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Pu:return(t.displayName||"Context")+".Consumer";case Cu:return(t._context.displayName||"Context")+".Provider";case Uo:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ho:return e=t.displayName||null,e!==null?e:Ds(t.type)||"Memo";case yt:e=t._payload,t=t._init;try{return Ds(t(e))}catch{}}return null}function Oh(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ds(e);case 8:return e===Bo?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function zt(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Lu(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Rh(t){var e=Lu(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Or(t){t._valueTracker||(t._valueTracker=Rh(t))}function ju(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Lu(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ci(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Os(t,e){var n=e.checked;return Y({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Rl(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=zt(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Tu(t,e){e=e.checked,e!=null&&bo(t,"checked",e,!1)}function Rs(t,e){Tu(t,e);var n=zt(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Fs(t,e.type,n):e.hasOwnProperty("defaultValue")&&Fs(t,e.type,zt(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Fl(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Fs(t,e,n){(e!=="number"||ci(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Qn=Array.isArray;function gn(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Rr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ar(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Yn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fh=["Webkit","ms","Moz","O"];Object.keys(Yn).forEach(function(t){Fh.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Yn[e]=Yn[t]})});function Au(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Yn.hasOwnProperty(t)&&Yn[t]?(""+e).trim():e+"px"}function Du(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Au(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var $h=Y({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 Bs(t,e){if(e){if($h[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(k(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(k(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(k(61))}if(e.style!=null&&typeof e.style!="object")throw Error(k(62))}}function Us(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Hs=null;function Zo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Zs=null,vn=null,yn=null;function Bl(t){if(t=Ir(t)){if(typeof Zs!="function")throw Error(k(280));var e=t.stateNode;e&&(e=Hi(e),Zs(t.stateNode,t.type,e))}}function Ou(t){vn?yn?yn.push(t):yn=[t]:vn=t}function Ru(){if(vn){var t=vn,e=yn;if(yn=vn=null,Bl(t),e)for(t=0;t>>=0,t===0?32:31-(Xh(t)/Yh|0)|0}var Fr=64,$r=4194304;function Kn(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pi(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Kn(l):(s&=o,s!==0&&(r=Kn(s)))}else o=n&~i,o!==0?r=Kn(o):s!==0&&(r=Kn(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function jr(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ve(e),t[e]=n}function tf(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Jn),Xl=" ",Yl=!1;function rc(t,e){switch(t){case"keyup":return Tf.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ic(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var on=!1;function zf(t,e){switch(t){case"compositionend":return ic(e);case"keypress":return e.which!==32?null:(Yl=!0,Xl);case"textInput":return t=e.data,t===Xl&&Yl?null:t;default:return null}}function Mf(t,e){if(on)return t==="compositionend"||!qo&&rc(t,e)?(t=tc(),ti=Go=_t=null,on=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ta(n)}}function ac(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ac(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function uc(){for(var t=window,e=ci();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ci(t.document)}return e}function Jo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Uf(t){var e=uc(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&ac(n.ownerDocument.documentElement,n)){if(r!==null&&Jo(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=na(n,s);var o=na(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ln=null,Xs=null,tr=null,Ys=!1;function ra(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ys||ln==null||ln!==ci(r)||(r=ln,"selectionStart"in r&&Jo(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&&pr(tr,r)||(tr=r,r=vi(Xs,"onSelect"),0cn||(t.current=ro[cn],ro[cn]=null,cn--)}function W(t,e){cn++,ro[cn]=t.current,t.current=e}var Mt={},ge=Dt(Mt),ke=Dt(!1),Kt=Mt;function kn(t,e){var n=t.type.contextTypes;if(!n)return Mt;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Ee(t){return t=t.childContextTypes,t!=null}function xi(){Q(ke),Q(ge)}function ca(t,e,n){if(ge.current!==Mt)throw Error(k(168));W(ge,e),W(ke,n)}function yc(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(k(108,Oh(t)||"Unknown",i));return Y({},n,r)}function wi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Mt,Kt=ge.current,W(ge,t),W(ke,ke.current),!0}function da(t,e,n){var r=t.stateNode;if(!r)throw Error(k(169));n?(t=yc(t,e,Kt),r.__reactInternalMemoizedMergedChildContext=t,Q(ke),Q(ge),W(ge,t)):Q(ke),W(ke,n)}var ot=null,Zi=!1,xs=!1;function xc(t){ot===null?ot=[t]:ot.push(t)}function ep(t){Zi=!0,xc(t)}function Ot(){if(!xs&&ot!==null){xs=!0;var t=0,e=H;try{var n=ot;for(H=1;t>=o,i-=o,lt=1<<32-Ve(e)+i|n<N?(F=_,_=null):F=_.sibling;var M=p(m,_,g[N],w);if(M===null){_===null&&(_=F);break}t&&_&&M.alternate===null&&e(m,_),d=s(M,d,N),S===null?P=M:S.sibling=M,S=M,_=F}if(N===g.length)return n(m,_),K&&$t(m,N),P;if(_===null){for(;NN?(F=_,_=null):F=_.sibling;var re=p(m,_,M.value,w);if(re===null){_===null&&(_=F);break}t&&_&&re.alternate===null&&e(m,_),d=s(re,d,N),S===null?P=re:S.sibling=re,S=re,_=F}if(M.done)return n(m,_),K&&$t(m,N),P;if(_===null){for(;!M.done;N++,M=g.next())M=f(m,M.value,w),M!==null&&(d=s(M,d,N),S===null?P=M:S.sibling=M,S=M);return K&&$t(m,N),P}for(_=r(m,_);!M.done;N++,M=g.next())M=y(_,m,N,M.value,w),M!==null&&(t&&M.alternate!==null&&_.delete(M.key===null?N:M.key),d=s(M,d,N),S===null?P=M:S.sibling=M,S=M);return t&&_.forEach(function(R){return e(m,R)}),K&&$t(m,N),P}function E(m,d,g,w){if(typeof g=="object"&&g!==null&&g.type===sn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Dr:e:{for(var P=g.key,S=d;S!==null;){if(S.key===P){if(P=g.type,P===sn){if(S.tag===7){n(m,S.sibling),d=i(S,g.props.children),d.return=m,m=d;break e}}else if(S.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===yt&&pa(P)===S.type){n(m,S.sibling),d=i(S,g.props),d.ref=Bn(m,S,g),d.return=m,m=d;break e}n(m,S);break}else e(m,S);S=S.sibling}g.type===sn?(d=Qt(g.props.children,m.mode,w,g.key),d.return=m,m=d):(w=ui(g.type,g.key,g.props,null,m.mode,w),w.ref=Bn(m,d,g),w.return=m,m=w)}return o(m);case rn:e:{for(S=g.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),d=i(d,g.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else e(m,d);d=d.sibling}d=Ns(g,m.mode,w),d.return=m,m=d}return o(m);case yt:return S=g._init,E(m,d,S(g._payload),w)}if(Qn(g))return v(m,d,g,w);if(On(g))return x(m,d,g,w);Vr(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),d=i(d,g),d.return=m,m=d):(n(m,d),d=Ps(g,m.mode,w),d.return=m,m=d),o(m)):n(m,d)}return E}var Cn=kc(!0),Ec=kc(!1),ki=Dt(null),Ei=null,fn=null,rl=null;function il(){rl=fn=Ei=null}function sl(t){var e=ki.current;Q(ki),t._currentValue=e}function oo(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function wn(t,e){Ei=t,rl=fn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(_e=!0),t.firstContext=null)}function be(t){var e=t._currentValue;if(rl!==t)if(t={context:t,memoizedValue:e,next:null},fn===null){if(Ei===null)throw Error(k(308));fn=t,Ei.dependencies={lanes:0,firstContext:t}}else fn=fn.next=t;return e}var Ht=null;function ol(t){Ht===null?Ht=[t]:Ht.push(t)}function Cc(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,ol(e)):(n.next=i.next,i.next=n),e.interleaved=n,ht(t,r)}function ht(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var xt=!1;function ll(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function ut(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Lt(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,ht(t,n)}return i=r.interleaved,i===null?(e.next=e,ol(r)):(e.next=i.next,i.next=e),r.interleaved=e,ht(t,n)}function ri(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Vo(t,n)}}function ma(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ci(t,e,n,r){var i=t.updateQueue;xt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var h=t.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==o&&(l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,h=u=a=null,l=s;do{var p=l.lane,y=l.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=t,x=l;switch(p=e,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){f=v.call(y,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,p=typeof v=="function"?v.call(y,f,p):v,p==null)break e;f=Y({},f,p);break e;case 2:xt=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else y={eventTime:y,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(u=h=y,a=f):h=h.next=y,o|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(h===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=h,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Yt|=o,t.lanes=o,t.memoizedState=f}}function ga(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=Ss.transition;Ss.transition={};try{t(!1),e()}finally{H=n,Ss.transition=r}}function Hc(){return Be().memoizedState}function ip(t,e,n){var r=Tt(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zc(t))Wc(e,n);else if(n=Cc(t,e,n,r),n!==null){var i=ye();Qe(n,t,r,i),Vc(n,e,r)}}function sp(t,e,n){var r=Tt(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zc(t))Wc(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ke(l,o)){var a=e.interleaved;a===null?(i.next=i,ol(e)):(i.next=a.next,a.next=i),e.interleaved=i;return}}catch{}finally{}n=Cc(t,e,i,r),n!==null&&(i=ye(),Qe(n,t,r,i),Vc(n,e,r))}}function Zc(t){var e=t.alternate;return t===X||e!==null&&e===X}function Wc(t,e){nr=Ni=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vc(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Vo(t,n)}}var Li={readContext:be,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},op={readContext:be,useCallback:function(t,e){return Ye().memoizedState=[t,e===void 0?null:e],t},useContext:be,useEffect:ya,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,si(4194308,4,Fc.bind(null,e,t),n)},useLayoutEffect:function(t,e){return si(4194308,4,t,e)},useInsertionEffect:function(t,e){return si(4,2,t,e)},useMemo:function(t,e){var n=Ye();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ye();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=ip.bind(null,X,t),[r.memoizedState,t]},useRef:function(t){var e=Ye();return t={current:t},e.memoizedState=t},useState:va,useDebugValue:ml,useDeferredValue:function(t){return Ye().memoizedState=t},useTransition:function(){var t=va(!1),e=t[0];return t=rp.bind(null,t[1]),Ye().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=X,i=Ye();if(K){if(n===void 0)throw Error(k(407));n=n()}else{if(n=e(),ae===null)throw Error(k(349));Xt&30||Tc(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,ya(zc.bind(null,r,s,t),[t]),r.flags|=2048,_r(9,Ic.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=Ye(),e=ae.identifierPrefix;if(K){var n=at,r=lt;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=wr++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[qe]=e,t[vr]=r,nd(t,e,!1,!1),e.stateNode=t;e:{switch(o=bs(n,r),n){case"dialog":V("cancel",t),V("close",t),i=r;break;case"iframe":case"object":case"embed":V("load",t),i=r;break;case"video":case"audio":for(i=0;iLn&&(e.flags|=128,r=!0,Un(s,!1),e.lanes=4194304)}else{if(!r)if(t=Pi(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Un(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!K)return pe(e),null}else 2*J()-s.renderingStartTime>Ln&&n!==1073741824&&(e.flags|=128,r=!0,Un(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=J(),e.sibling=null,n=G.current,W(G,r?n&1|2:n&1),e):(pe(e),null);case 22:case 23:return wl(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Pe&1073741824&&(pe(e),e.subtreeFlags&6&&(e.flags|=8192)):pe(e),null;case 24:return null;case 25:return null}throw Error(k(156,e.tag))}function pp(t,e){switch(el(e),e.tag){case 1:return Ee(e.type)&&xi(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pn(),Q(ke),Q(ge),ul(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return al(e),null;case 13:if(Q(G),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(k(340));En()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(G),null;case 4:return Pn(),null;case 10:return il(e.type._context),null;case 22:case 23:return wl(),null;case 24:return null;default:return null}}var Kr=!1,me=!1,mp=typeof WeakSet=="function"?WeakSet:Set,L=null;function pn(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(t,e,r)}else n.current=null}function mo(t,e,n){try{n()}catch(r){q(t,e,r)}}var Ta=!1;function gp(t,e){if(Ys=mi,t=uc(),qo(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,h=0,f=t,p=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===t)break t;if(p===n&&++u===i&&(l=o),p===s&&++h===r&&(a=o),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(qs={focusedElem:t,selectionRange:n},mi=!1,L=e;L!==null;)if(e=L,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,L=t;else for(;L!==null;){e=L;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,E=v.memoizedState,m=e.stateNode,d=m.getSnapshotBeforeUpdate(e.elementType===e.type?x:He(e.type,x),E);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=e.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){q(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,L=t;break}L=e.return}return v=Ta,Ta=!1,v}function rr(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&mo(e,n,s)}i=i.next}while(i!==r)}}function Vi(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function go(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function sd(t){var e=t.alternate;e!==null&&(t.alternate=null,sd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[qe],delete e[vr],delete e[to],delete e[qf],delete e[Jf])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function od(t){return t.tag===5||t.tag===3||t.tag===4}function ja(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||od(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function vo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=yi));else if(r!==4&&(t=t.child,t!==null))for(vo(t,e,n),t=t.sibling;t!==null;)vo(t,e,n),t=t.sibling}function yo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(yo(t,e,n),t=t.sibling;t!==null;)yo(t,e,n),t=t.sibling}var ue=null,Ze=!1;function gt(t,e,n){for(n=n.child;n!==null;)ld(t,e,n),n=n.sibling}function ld(t,e,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(Fi,n)}catch{}switch(n.tag){case 5:me||pn(n,e);case 6:var r=ue,i=Ze;ue=null,gt(t,e,n),ue=r,Ze=i,ue!==null&&(Ze?(t=ue,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Ze?(t=ue,n=n.stateNode,t.nodeType===8?vs(t.parentNode,n):t.nodeType===1&&vs(t,n),hr(t)):vs(ue,n.stateNode));break;case 4:r=ue,i=Ze,ue=n.stateNode.containerInfo,Ze=!0,gt(t,e,n),ue=r,Ze=i;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&mo(n,e,o),i=i.next}while(i!==r)}gt(t,e,n);break;case 1:if(!me&&(pn(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){q(n,e,l)}gt(t,e,n);break;case 21:gt(t,e,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,gt(t,e,n),me=r):gt(t,e,n);break;default:gt(t,e,n)}}function Ia(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new mp),e.forEach(function(r){var i=Cp.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ue(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yp(r/1960))-r,10t?16:t,kt===null)var r=!1;else{if(t=kt,kt=null,Ii=0,$&6)throw Error(k(331));var i=$;for($|=4,L=t.current;L!==null;){var s=L,o=s.child;if(L.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aJ()-yl?Vt(t,0):vl|=n),Ce(t,e)}function md(t,e){e===0&&(t.mode&1?(e=$r,$r<<=1,!($r&130023424)&&($r=4194304)):e=1);var n=ye();t=ht(t,e),t!==null&&(Tr(t,e,n),Ce(t,n))}function Ep(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),md(t,n)}function Cp(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(e),md(t,n)}var gd;gd=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||ke.current)_e=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return _e=!1,hp(t,e,n);_e=!!(t.flags&131072)}else _e=!1,K&&e.flags&1048576&&wc(e,_i,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;oi(t,e),t=e.pendingProps;var i=kn(e,ge.current);wn(e,n),i=dl(null,e,r,t,i,n);var s=hl();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ee(r)?(s=!0,wi(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ol(e),i.updater=Wi,e.stateNode=i,i._reactInternals=e,lo(e,r,t,n),e=co(null,e,r,!0,s,n)):(e.tag=0,K&&s&&Jo(e),ve(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(oi(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=Np(r),t=He(r,t),i){case 0:e=uo(null,e,r,t,n);break e;case 1:e=Pa(null,e,r,t,n);break e;case 11:e=Ea(null,e,r,t,n);break e;case 14:e=Ca(null,e,r,He(r.type,t),n);break e}throw Error(k(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),uo(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),Pa(t,e,r,i,n);case 3:e:{if(Jc(e),t===null)throw Error(k(387));r=e.pendingProps,s=e.memoizedState,i=s.element,Pc(t,e),Ci(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Nn(Error(k(423)),e),e=Na(t,e,r,n,i);break e}else if(r!==i){i=Nn(Error(k(424)),e),e=Na(t,e,r,n,i);break e}else for(Le=Nt(e.stateNode.containerInfo.firstChild),je=e,K=!0,We=null,n=Ec(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===i){e=ft(t,e,n);break e}ve(t,e,r,n)}e=e.child}return e;case 5:return Nc(e),t===null&&io(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Js(r,i)?o=null:s!==null&&Js(r,s)&&(e.flags|=32),qc(t,e),ve(t,e,o,n),e.child;case 6:return t===null&&io(e),null;case 13:return ed(t,e,n);case 4:return ll(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Cn(e,null,r,n):ve(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),Ea(t,e,r,i,n);case 7:return ve(t,e,e.pendingProps,n),e.child;case 8:return ve(t,e,e.pendingProps.children,n),e.child;case 12:return ve(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,W(ki,r._currentValue),r._currentValue=o,s!==null)if(Ke(s.value,o)){if(s.children===i.children&&!ke.current){e=ft(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=ut(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?a.next=a:(a.next=h.next,h.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),so(s.return,n,e),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(k(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),so(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ve(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,wn(e,n),i=Be(i),r=r(i),e.flags|=1,ve(t,e,r,n),e.child;case 14:return r=e.type,i=He(r,e.pendingProps),i=He(r.type,i),Ca(t,e,r,i,n);case 15:return Xc(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),oi(t,e),e.tag=1,Ee(r)?(t=!0,wi(e)):t=!1,wn(e,n),Qc(e,r,i),lo(e,r,i,n),co(null,e,r,!0,t,n);case 19:return td(t,e,n);case 22:return Yc(t,e,n)}throw Error(k(156,e.tag))};function vd(t,e){return Zu(t,e)}function Pp(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 Fe(t,e,n,r){return new Pp(t,e,n,r)}function _l(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Np(t){if(typeof t=="function")return _l(t)?1:0;if(t!=null){if(t=t.$$typeof,t===bo)return 11;if(t===Uo)return 14}return 2}function It(t,e){var n=t.alternate;return n===null?(n=Fe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ui(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")_l(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case sn:return Qt(n.children,i,s,e);case Bo:o=8,i|=8;break;case Is:return t=Fe(12,n,e,i|2),t.elementType=Is,t.lanes=s,t;case zs:return t=Fe(13,n,e,i),t.elementType=zs,t.lanes=s,t;case Ms:return t=Fe(19,n,e,i),t.elementType=Ms,t.lanes=s,t;case Nu:return Ki(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Cu:o=10;break e;case Pu:o=9;break e;case bo:o=11;break e;case Uo:o=14;break e;case yt:o=16,r=null;break e}throw Error(k(130,t==null?t:typeof t,""))}return e=Fe(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Qt(t,e,n,r){return t=Fe(7,t,r,e),t.lanes=n,t}function Ki(t,e,n,r){return t=Fe(22,t,r,e),t.elementType=Nu,t.lanes=n,t.stateNode={isHidden:!1},t}function Cs(t,e,n){return t=Fe(6,t,null,e),t.lanes=n,t}function Ps(t,e,n){return e=Fe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Lp(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=os(0),this.expirationTimes=os(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=os(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function kl(t,e,n,r,i,s,o,l,a){return t=new Lp(t,e,n,l,a),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Fe(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ol(s),t}function Tp(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sd)}catch(t){console.error(t)}}Sd(),Su.exports=ze;var _d=Su.exports,$a=_d;Ts.createRoot=$a.createRoot,Ts.hydrateRoot=$a.hydrateRoot;/** +`+s.stack}return{value:t,source:e,stack:i,digest:null}}function Es(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function uo(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var up=typeof WeakMap=="function"?WeakMap:Map;function Kc(t,e,n){n=ut(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ti||(Ti=!0,wo=r),uo(t,e)},n}function Gc(t,e,n){n=ut(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){uo(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){uo(t,e),typeof r!="function"&&(jt===null?jt=new Set([this]):jt.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function Sa(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new up;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=kp.bind(null,t,e,n),e.then(t,t))}function _a(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function ka(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=ut(-1,1),e.tag=2,Lt(n,e,1))),n.lanes|=1),t)}var cp=mt.ReactCurrentOwner,_e=!1;function ve(t,e,n,r){e.child=t===null?Ec(e,null,n,r):Cn(e,t.child,n,r)}function Ea(t,e,n,r,i){n=n.render;var s=e.ref;return wn(e,i),r=hl(t,e,n,r,s,i),n=fl(),t!==null&&!_e?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,ft(t,e,i)):(K&&n&&el(e),e.flags|=1,ve(t,e,r,i),e.child)}function Ca(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!kl(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,Xc(t,e,s,r,i)):(t=ui(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:pr,n(o,r)&&t.ref===e.ref)return ft(t,e,i)}return e.flags|=1,t=It(s,r),t.ref=e.ref,t.return=e,e.child=t}function Xc(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(pr(s,r)&&t.ref===e.ref)if(_e=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(_e=!0);else return e.lanes=t.lanes,ft(t,e,i)}return co(t,e,n,r,i)}function Yc(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(mn,Pe),Pe|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,W(mn,Pe),Pe|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,W(mn,Pe),Pe|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,W(mn,Pe),Pe|=r;return ve(t,e,i,n),e.child}function qc(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function co(t,e,n,r,i){var s=Ee(n)?Kt:ge.current;return s=kn(e,s),wn(e,i),n=hl(t,e,n,r,s,i),r=fl(),t!==null&&!_e?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,ft(t,e,i)):(K&&r&&el(e),e.flags|=1,ve(t,e,n,i),e.child)}function Pa(t,e,n,r,i){if(Ee(n)){var s=!0;wi(e)}else s=!1;if(wn(e,i),e.stateNode===null)oi(t,e),Qc(e,n,r),ao(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,l=e.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=be(u):(u=Ee(n)?Kt:ge.current,u=kn(e,u));var h=n.getDerivedStateFromProps,f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&wa(e,o,r,u),xt=!1;var p=e.memoizedState;o.state=p,Ci(e,r,o,i),a=e.memoizedState,l!==r||p!==a||ke.current||xt?(typeof h=="function"&&(lo(e,n,h,r),a=e.memoizedState),(l=xt||xa(e,n,l,r,p,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Pc(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:He(e.type,l),o.props=u,f=e.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=be(a):(a=Ee(n)?Kt:ge.current,a=kn(e,a));var y=n.getDerivedStateFromProps;(h=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||p!==a)&&wa(e,o,r,a),xt=!1,p=e.memoizedState,o.state=p,Ci(e,r,o,i);var v=e.memoizedState;l!==f||p!==v||ke.current||xt?(typeof y=="function"&&(lo(e,n,y,r),v=e.memoizedState),(u=xt||xa(e,n,u,r,p,v,a)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),r=!1)}return ho(t,e,n,r,s,i)}function ho(t,e,n,r,i,s){qc(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&da(e,n,!1),ft(t,e,s);r=e.stateNode,cp.current=e;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=Cn(e,t.child,null,s),e.child=Cn(e,null,l,s)):ve(t,e,l,s),e.memoizedState=r.state,i&&da(e,n,!0),e.child}function Jc(t){var e=t.stateNode;e.pendingContext?ca(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ca(t,e.context,!1),al(t,e.containerInfo)}function Na(t,e,n,r,i){return En(),nl(i),e.flags|=256,ve(t,e,n,r),e.child}var fo={dehydrated:null,treeContext:null,retryLane:0};function po(t){return{baseLanes:t,cachePool:null,transitions:null}}function ed(t,e,n){var r=e.pendingProps,i=G.current,s=!1,o=(e.flags&128)!==0,l;if((l=o)||(l=t!==null&&t.memoizedState===null?!1:(i&2)!==0),l?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),W(G,i&1),t===null)return so(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,s?(r=e.mode,s=e.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Gi(o,r,0,null),t=Qt(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=po(n),e.memoizedState=fo,t):gl(e,o));if(i=t.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return dp(t,e,o,r,l,i,n);if(s){s=r.fallback,o=e.mode,i=t.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=a,e.deletions=null):(r=It(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=It(l,s):(s=Qt(s,o,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,o=t.child.memoizedState,o=o===null?po(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=fo,r}return s=t.child,t=s.sibling,r=It(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function gl(t,e){return e=Gi({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Qr(t,e,n,r){return r!==null&&nl(r),Cn(e,t.child,null,n),t=gl(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function dp(t,e,n,r,i,s,o){if(n)return e.flags&256?(e.flags&=-257,r=Es(Error(k(422))),Qr(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=Gi({mode:"visible",children:r.children},i,0,null),s=Qt(s,i,o,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&Cn(e,t.child,null,o),e.child.memoizedState=po(o),e.memoizedState=fo,s);if(!(e.mode&1))return Qr(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(k(419)),r=Es(s,r,void 0),Qr(t,e,o,r)}if(l=(o&t.childLanes)!==0,_e||l){if(r=ae,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,ht(t,i),Qe(r,t,i,-1))}return _l(),r=Es(Error(k(421))),Qr(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=Ep.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,Le=Nt(i.nextSibling),Te=e,K=!0,We=null,t!==null&&(Oe[Re++]=lt,Oe[Re++]=at,Oe[Re++]=Gt,lt=t.id,at=t.overflow,Gt=e),e=gl(e,r.children),e.flags|=4096,e)}function La(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),oo(t.return,e,n)}function Cs(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function td(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(ve(t,e,r.children,n),r=G.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&La(t,n,e);else if(t.tag===19)La(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(W(G,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Pi(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Cs(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Pi(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Cs(e,!0,n,null,s);break;case"together":Cs(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function oi(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function ft(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Yt|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(k(153));if(e.child!==null){for(t=e.child,n=It(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=It(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function hp(t,e,n){switch(e.tag){case 3:Jc(e),En();break;case 5:Nc(e);break;case 1:Ee(e.type)&&wi(e);break;case 4:al(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;W(ki,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(W(G,G.current&1),e.flags|=128,null):n&e.child.childLanes?ed(t,e,n):(W(G,G.current&1),t=ft(t,e,n),t!==null?t.sibling:null);W(G,G.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return td(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(G,G.current),r)break;return null;case 22:case 23:return e.lanes=0,Yc(t,e,n)}return ft(t,e,n)}var nd,mo,rd,id;nd=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};mo=function(){};rd=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Zt(nt.current);var s=null;switch(n){case"input":i=Os(t,i),r=Os(t,r),s=[];break;case"select":i=Y({},i,{value:void 0}),r=Y({},r,{value:void 0}),s=[];break;case"textarea":i=$s(t,i),r=$s(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=yi)}Bs(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(lr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(lr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&V("scroll",t),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};id=function(t,e,n,r){n!==r&&(e.flags|=4)};function Un(t,e){if(!K)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function pe(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function fp(t,e,n){var r=e.pendingProps;switch(tl(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(e),null;case 1:return Ee(e.type)&&xi(),pe(e),null;case 3:return r=e.stateNode,Pn(),Q(ke),Q(ge),cl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Wr(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,We!==null&&(ko(We),We=null))),mo(t,e),pe(e),null;case 5:ul(e);var i=Zt(xr.current);if(n=e.type,t!==null&&e.stateNode!=null)rd(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(k(166));return pe(e),null}if(t=Zt(nt.current),Wr(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[qe]=e,r[vr]=s,t=(e.mode&1)!==0,n){case"dialog":V("cancel",r),V("close",r);break;case"iframe":case"object":case"embed":V("load",r);break;case"video":case"audio":for(i=0;i<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[qe]=e,t[vr]=r,nd(t,e,!1,!1),e.stateNode=t;e:{switch(o=Us(n,r),n){case"dialog":V("cancel",t),V("close",t),i=r;break;case"iframe":case"object":case"embed":V("load",t),i=r;break;case"video":case"audio":for(i=0;iLn&&(e.flags|=128,r=!0,Un(s,!1),e.lanes=4194304)}else{if(!r)if(t=Pi(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Un(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!K)return pe(e),null}else 2*J()-s.renderingStartTime>Ln&&n!==1073741824&&(e.flags|=128,r=!0,Un(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=J(),e.sibling=null,n=G.current,W(G,r?n&1|2:n&1),e):(pe(e),null);case 22:case 23:return Sl(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Pe&1073741824&&(pe(e),e.subtreeFlags&6&&(e.flags|=8192)):pe(e),null;case 24:return null;case 25:return null}throw Error(k(156,e.tag))}function pp(t,e){switch(tl(e),e.tag){case 1:return Ee(e.type)&&xi(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pn(),Q(ke),Q(ge),cl(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return ul(e),null;case 13:if(Q(G),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(k(340));En()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(G),null;case 4:return Pn(),null;case 10:return sl(e.type._context),null;case 22:case 23:return Sl(),null;case 24:return null;default:return null}}var Kr=!1,me=!1,mp=typeof WeakSet=="function"?WeakSet:Set,L=null;function pn(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(t,e,r)}else n.current=null}function go(t,e,n){try{n()}catch(r){q(t,e,r)}}var ja=!1;function gp(t,e){if(qs=mi,t=uc(),Jo(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,h=0,f=t,p=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===t)break t;if(p===n&&++u===i&&(l=o),p===s&&++h===r&&(a=o),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Js={focusedElem:t,selectionRange:n},mi=!1,L=e;L!==null;)if(e=L,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,L=t;else for(;L!==null;){e=L;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,E=v.memoizedState,m=e.stateNode,d=m.getSnapshotBeforeUpdate(e.elementType===e.type?x:He(e.type,x),E);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=e.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){q(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,L=t;break}L=e.return}return v=ja,ja=!1,v}function rr(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&go(e,n,s)}i=i.next}while(i!==r)}}function Qi(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function vo(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function sd(t){var e=t.alternate;e!==null&&(t.alternate=null,sd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[qe],delete e[vr],delete e[no],delete e[qf],delete e[Jf])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function od(t){return t.tag===5||t.tag===3||t.tag===4}function Ta(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||od(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function yo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=yi));else if(r!==4&&(t=t.child,t!==null))for(yo(t,e,n),t=t.sibling;t!==null;)yo(t,e,n),t=t.sibling}function xo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(xo(t,e,n),t=t.sibling;t!==null;)xo(t,e,n),t=t.sibling}var ue=null,Ze=!1;function gt(t,e,n){for(n=n.child;n!==null;)ld(t,e,n),n=n.sibling}function ld(t,e,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount($i,n)}catch{}switch(n.tag){case 5:me||pn(n,e);case 6:var r=ue,i=Ze;ue=null,gt(t,e,n),ue=r,Ze=i,ue!==null&&(Ze?(t=ue,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Ze?(t=ue,n=n.stateNode,t.nodeType===8?ys(t.parentNode,n):t.nodeType===1&&ys(t,n),hr(t)):ys(ue,n.stateNode));break;case 4:r=ue,i=Ze,ue=n.stateNode.containerInfo,Ze=!0,gt(t,e,n),ue=r,Ze=i;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&go(n,e,o),i=i.next}while(i!==r)}gt(t,e,n);break;case 1:if(!me&&(pn(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){q(n,e,l)}gt(t,e,n);break;case 21:gt(t,e,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,gt(t,e,n),me=r):gt(t,e,n);break;default:gt(t,e,n)}}function Ia(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new mp),e.forEach(function(r){var i=Cp.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ue(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yp(r/1960))-r,10t?16:t,kt===null)var r=!1;else{if(t=kt,kt=null,Ii=0,$&6)throw Error(k(331));var i=$;for($|=4,L=t.current;L!==null;){var s=L,o=s.child;if(L.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aJ()-xl?Vt(t,0):yl|=n),Ce(t,e)}function md(t,e){e===0&&(t.mode&1?(e=$r,$r<<=1,!($r&130023424)&&($r=4194304)):e=1);var n=ye();t=ht(t,e),t!==null&&(jr(t,e,n),Ce(t,n))}function Ep(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),md(t,n)}function Cp(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(e),md(t,n)}var gd;gd=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||ke.current)_e=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return _e=!1,hp(t,e,n);_e=!!(t.flags&131072)}else _e=!1,K&&e.flags&1048576&&wc(e,_i,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;oi(t,e),t=e.pendingProps;var i=kn(e,ge.current);wn(e,n),i=hl(null,e,r,t,i,n);var s=fl();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ee(r)?(s=!0,wi(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ll(e),i.updater=Vi,e.stateNode=i,i._reactInternals=e,ao(e,r,t,n),e=ho(null,e,r,!0,s,n)):(e.tag=0,K&&s&&el(e),ve(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(oi(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=Np(r),t=He(r,t),i){case 0:e=co(null,e,r,t,n);break e;case 1:e=Pa(null,e,r,t,n);break e;case 11:e=Ea(null,e,r,t,n);break e;case 14:e=Ca(null,e,r,He(r.type,t),n);break e}throw Error(k(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),co(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),Pa(t,e,r,i,n);case 3:e:{if(Jc(e),t===null)throw Error(k(387));r=e.pendingProps,s=e.memoizedState,i=s.element,Pc(t,e),Ci(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Nn(Error(k(423)),e),e=Na(t,e,r,n,i);break e}else if(r!==i){i=Nn(Error(k(424)),e),e=Na(t,e,r,n,i);break e}else for(Le=Nt(e.stateNode.containerInfo.firstChild),Te=e,K=!0,We=null,n=Ec(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===i){e=ft(t,e,n);break e}ve(t,e,r,n)}e=e.child}return e;case 5:return Nc(e),t===null&&so(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,eo(r,i)?o=null:s!==null&&eo(r,s)&&(e.flags|=32),qc(t,e),ve(t,e,o,n),e.child;case 6:return t===null&&so(e),null;case 13:return ed(t,e,n);case 4:return al(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Cn(e,null,r,n):ve(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),Ea(t,e,r,i,n);case 7:return ve(t,e,e.pendingProps,n),e.child;case 8:return ve(t,e,e.pendingProps.children,n),e.child;case 12:return ve(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,W(ki,r._currentValue),r._currentValue=o,s!==null)if(Ke(s.value,o)){if(s.children===i.children&&!ke.current){e=ft(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=ut(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?a.next=a:(a.next=h.next,h.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),oo(s.return,n,e),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(k(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),oo(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ve(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,wn(e,n),i=be(i),r=r(i),e.flags|=1,ve(t,e,r,n),e.child;case 14:return r=e.type,i=He(r,e.pendingProps),i=He(r.type,i),Ca(t,e,r,i,n);case 15:return Xc(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:He(r,i),oi(t,e),e.tag=1,Ee(r)?(t=!0,wi(e)):t=!1,wn(e,n),Qc(e,r,i),ao(e,r,i,n),ho(null,e,r,!0,t,n);case 19:return td(t,e,n);case 22:return Yc(t,e,n)}throw Error(k(156,e.tag))};function vd(t,e){return Zu(t,e)}function Pp(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 Fe(t,e,n,r){return new Pp(t,e,n,r)}function kl(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Np(t){if(typeof t=="function")return kl(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Uo)return 11;if(t===Ho)return 14}return 2}function It(t,e){var n=t.alternate;return n===null?(n=Fe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ui(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")kl(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case sn:return Qt(n.children,i,s,e);case Bo:o=8,i|=8;break;case zs:return t=Fe(12,n,e,i|2),t.elementType=zs,t.lanes=s,t;case Ms:return t=Fe(13,n,e,i),t.elementType=Ms,t.lanes=s,t;case As:return t=Fe(19,n,e,i),t.elementType=As,t.lanes=s,t;case Nu:return Gi(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Cu:o=10;break e;case Pu:o=9;break e;case Uo:o=11;break e;case Ho:o=14;break e;case yt:o=16,r=null;break e}throw Error(k(130,t==null?t:typeof t,""))}return e=Fe(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Qt(t,e,n,r){return t=Fe(7,t,r,e),t.lanes=n,t}function Gi(t,e,n,r){return t=Fe(22,t,r,e),t.elementType=Nu,t.lanes=n,t.stateNode={isHidden:!1},t}function Ps(t,e,n){return t=Fe(6,t,null,e),t.lanes=n,t}function Ns(t,e,n){return e=Fe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Lp(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ls(0),this.expirationTimes=ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function El(t,e,n,r,i,s,o,l,a){return t=new Lp(t,e,n,l,a),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Fe(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ll(s),t}function jp(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sd)}catch(t){console.error(t)}}Sd(),Su.exports=ze;var _d=Su.exports,$a=_d;Ts.createRoot=$a.createRoot,Ts.hydrateRoot=$a.hydrateRoot;/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -57,7 +57,7 @@ Error generating stack: `+s.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ji=ne("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const es=ne("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -77,12 +77,12 @@ Error generating stack: `+s.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Bp=ne("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** + */const bp=ne("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bp=ne("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + */const Bp=ne("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -107,7 +107,7 @@ Error generating stack: `+s.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ba=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + */const ba=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -132,7 +132,7 @@ Error generating stack: `+s.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ba=ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + */const Ba=ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -147,16 +147,16 @@ Error generating stack: `+s.message+` * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Er=ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ai(t){if(t.endsWith("000"))return t;if(t.endsWith("800"))return t.slice(0,-3)+"000";const e=t.charAt(t.length-4),n=r=>r>="1"&&r<="9"?String(parseInt(r)-1):r>="b"&&r<="z"||r>="B"&&r<="Z"?String.fromCharCode(r.charCodeAt(0)-1):r;return t.slice(0,-4)+n(e)+"000"}function Ua(t){return t.slice(0,12)}function Ha(t,e){const n=Ua(e),r=t.filter(l=>Ua(l.id)===n),i=r.find(l=>l.id===e)||null,s=r.filter(l=>l.id.endsWith("800")).sort((l,a)=>(a.version||"0").localeCompare(l.version||"0")),o=r.filter(l=>!l.id.endsWith("000")&&!l.id.endsWith("800")).sort((l,a)=>l.id.localeCompare(a.id));return{base:i,updates:s,dlcs:o}}function Qp(t){const e=Ai(t),n="https://api.nlib.cc/nx";return{icon:`${n}/${e}/icon/128/128`,banner:`${n}/${e}/banner/1280/720`,screenshots:Array.from({length:6},(r,i)=>`${n}/${e}/screen/${i+1}`)}}function Kp(t){return`https://api.nlib.cc/nx/${Ai(t)}/icon/128/128`}function Nl(t){if(!t)return"Unknown";const e=["B","KB","MB","GB"];let n=t,r=0;for(;n>=1024&&rr>="1"&&r<="9"?String(parseInt(r)-1):r>="b"&&r<="z"||r>="B"&&r<="Z"?String.fromCharCode(r.charCodeAt(0)-1):r;return t.slice(0,-4)+n(e)+"000"}function Ua(t){return t.slice(0,12)}function Ha(t,e){const n=Ua(e),r=t.filter(l=>Ua(l.id)===n),i=r.find(l=>l.id===e)||null,s=r.filter(l=>l.id.endsWith("800")).sort((l,a)=>(a.version||"0").localeCompare(l.version||"0")),o=r.filter(l=>!l.id.endsWith("000")&&!l.id.endsWith("800")).sort((l,a)=>l.id.localeCompare(a.id));return{base:i,updates:s,dlcs:o}}function Qp(t){const e=Ai(t),n="https://api.nlib.cc/nx";return{icon:`${n}/${e}/icon/128/128`,banner:`${n}/${e}/banner/1280/720`,screenshots:Array.from({length:6},(r,i)=>`${n}/${e}/screen/${i+1}`)}}function Kp(t){return`https://api.nlib.cc/nx/${Ai(t)}/icon/128/128`}function Di(t){if(!t)return"Unknown";const e=["B","KB","MB","GB"];let n=t,r=0;for(;n>=1024&&r{}):t.complete?Promise.resolve(t):new Promise((e,n)=>{t.onload=()=>e(t),t.onerror=n})}const De={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function qp(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function Jp(t,e,n=document){let r=[];if(t instanceof Element)r=[t];else if(t instanceof NodeList||Array.isArray(t))r=Array.from(t);else{const i=typeof t=="string"?t:e;i&&(r=Array.from(n.querySelectorAll(i)))}return r}function Za(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let Id=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{Id=!0}}))}catch{}class em{constructor(){this._pool=[]}add(e,n,r,i){this._toggleListener(e,n,r,i)}remove(e,n,r,i){this._toggleListener(e,n,r,i,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,n,r,i,s,o){if(!e)return;const l=s?"removeEventListener":"addEventListener";n.split(" ").forEach(u=>{if(u){o||(s?this._pool=this._pool.filter(f=>f.type!==u||f.listener!==r||f.target!==e):this._pool.push({target:e,type:u,listener:r,passive:i}));const h=Id?{passive:i||!1}:!1;e[l](u,r,h)}})}}function zd(t,e){if(t.getViewportSizeFn){const n=t.getViewportSizeFn(t,e);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function Xn(t,e,n,r,i){let s=0;if(e.paddingFn)s=e.paddingFn(n,r,i)[t];else if(e.padding)s=e.padding[t];else{const o="padding"+t[0].toUpperCase()+t.slice(1);e[o]&&(s=e[o])}return Number(s)||0}function Md(t,e,n,r){return{x:e.x-Xn("left",t,e,n,r)-Xn("right",t,e,n,r),y:e.y-Xn("top",t,e,n,r)-Xn("bottom",t,e,n,r)}}class tm{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:n}=this.slide,r=this.slide[e==="x"?"width":"height"]*this.currZoomLevel,s=Xn(e==="x"?"left":"top",n.options,n.viewportSize,this.slide.data,this.slide.index),o=this.slide.panAreaSize[e];this.center[e]=Math.round((o-r)/2)+s,this.max[e]=r>o?Math.round(o-r)+s:this.center[e],this.min[e]=r>o?s:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,n){return Mr(n,this.max[e],this.min[e])}}const Wa=4e3;class Ad{constructor(e,n,r,i){this.pswp=i,this.options=e,this.itemData=n,this.index=r,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,n,r){const i={x:e,y:n};this.elementSize=i,this.panAreaSize=r;const s=r.x/i.x,o=r.y/i.y;this.fit=Math.min(1,so?s:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const n=e+"ZoomLevel",r=this.options[n];if(r)return typeof r=="function"?r(this):r==="fill"?this.fill:r==="fit"?this.fit:Number(r)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Wa&&(e=Wa/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}class nm{constructor(e,n,r){this.data=e,this.index=n,this.pswp=r,this.isActive=n===r.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!r.opener.isOpen,this.zoomLevels=new Ad(r.options,e,n,r),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:n}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=Te("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new tm(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;this.heavyAppended||!e.opener.isOpen||e.mainScroll.isShifted()||!this.isActive&&!!0||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel===this.zoomLevels.initial||!this.isActive?(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize()):(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y))}updateContentSize(e){const n=this.currentResolution||this.zoomLevels.initial;if(!n)return;const r=Math.round(this.width*n)||this.pswp.viewportSize.x,i=Math.round(this.height*n)||this.pswp.viewportSize.y;!this.sizeChanged(r,i)&&!e||this.content.setDisplayedSize(r,i)}sizeChanged(e,n){return e!==this.prevDisplayedWidth||n!==this.prevDisplayedHeight?(this.prevDisplayedWidth=e,this.prevDisplayedHeight=n,!0):!1}getPlaceholderElement(){var e;return(e=this.content.placeholder)===null||e===void 0?void 0:e.element}zoomTo(e,n,r,i){const{pswp:s}=this;if(!this.isZoomable()||s.mainScroll.isShifted())return;s.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:n,transitionDuration:r}),s.animations.stopAllPan();const o=this.currZoomLevel;i||(e=Mr(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",n,o),this.pan.y=this.calculateZoomToPanOffset("y",n,o),Td(this.pan);const l=()=>{this._setResolution(e),this.applyCurrentZoomPan()};r?s.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:l,duration:r,easing:s.options.easing}):l()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,n,r){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];n||(n=this.pswp.getViewportCenterPoint()),r||(r=this.zoomLevels.initial);const s=this.currZoomLevel/r;return this.bounds.correctPan(e,(this.pan[e]-n[e])*s+n[e])}panTo(e,n){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",n),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),ee(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,n,r){r/=this.currentResolution||this.zoomLevels.initial,Wt(this.container,e,n,r)}calculateSize(){const{pswp:e}=this;ee(this.panAreaSize,Md(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return Cr(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}const rm=.35,im=.6,Va=.4,Qa=.5;function sm(t,e){return t*e/(1-e)}class om{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&ee(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:n,dragAxis:r}=this.gestures,{currSlide:i}=this.pswp;if(r==="y"&&this.pswp.options.closeOnVerticalDrag&&i&&i.currZoomLevel<=i.zoomLevels.fit&&!this.gestures.isMultitouch){const s=i.pan.y+(e.y-n.y);if(!this.pswp.dispatch("verticalDrag",{panY:s}).defaultPrevented){this._setPanWithFriction("y",s,im);const o=1-Math.abs(this._getVerticalDragRatio(i.pan.y));this.pswp.applyBgOpacity(o),i.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),i&&(Td(i.pan),i.applyCurrentZoomPan()))}end(){const{velocity:e}=this.gestures,{mainScroll:n,currSlide:r}=this.pswp;let i=0;if(this.pswp.animations.stopAll(),n.isShifted()){const o=(n.x-n.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-Qa&&o<0||e.x<.1&&o<-.5?(i=1,e.x=Math.min(e.x,0)):(e.x>Qa&&o>0||e.x>-.1&&o>.5)&&(i=-1,e.x=Math.max(e.x,0)),n.moveIndexBy(i,!0,e.x)}r&&r.currZoomLevel>r.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:n}=this.gestures,{currSlide:r}=this.pswp;if(!r)return;const{pan:i,bounds:s}=r,o=i[e],l=this.pswp.bgOpacity<1&&e==="y",u=o+sm(n[e],.995);if(l){const v=this._getVerticalDragRatio(o),x=this._getVerticalDragRatio(u);if(v<0&&x<-Va||v>0&&x>Va){this.pswp.close();return}}const h=s.correctPan(e,u);if(o===h)return;const f=h===u?1:.82,p=this.pswp.bgOpacity,y=h-o;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:h,velocity:n[e],dampingRatio:f,onUpdate:v=>{if(l&&this.pswp.bgOpacity<1){const x=1-(h-v)/y;this.pswp.applyBgOpacity(Mr(p+(1-p)*x,0,1))}i[e]=Math.floor(v),r.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:n,dragAxis:r,prevP1:i,isMultitouch:s}=this.gestures,{currSlide:o,mainScroll:l}=this.pswp,a=n[e]-i[e],u=l.x+a;if(!a||!o)return!1;if(e==="x"&&!o.isPannable()&&!s)return l.moveTo(u,!0),!0;const{bounds:h}=o,f=o.pan[e]+a;if(this.pswp.options.allowPanToNext&&r==="x"&&e==="x"&&!s){const p=l.getCurrSlideX(),y=l.x-p,v=a>0,x=!v;if(f>h.min[e]&&v){if(h.min[e]<=this.startPan[e])return l.moveTo(u,!0),!0;this._setPanWithFriction(e,f)}else if(f0)return l.moveTo(Math.max(u,p),!0),!0;if(y<0)return l.moveTo(Math.min(u,p),!0),!0}else this._setPanWithFriction(e,f)}else e==="y"?!l.isShifted()&&h.min.y!==h.max.y&&this._setPanWithFriction(e,f):this._setPanWithFriction(e,f);return!1}_getVerticalDragRatio(e){var n,r;return(e-((n=(r=this.pswp.currSlide)===null||r===void 0?void 0:r.bounds.center.y)!==null&&n!==void 0?n:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,n,r){const{currSlide:i}=this.pswp;if(!i)return;const{pan:s,bounds:o}=i;if(o.correctPan(e,n)!==n||r){const a=Math.round(n-s[e]);s[e]+=a*(r||rm)}else s[e]=n}}const lm=.05,am=.15;function Ka(t,e,n){return t.x=(e.x+n.x)/2,t.y=(e.y+n.y)/2,t}class um{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,ee(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:n,p2:r,startP2:i,pswp:s}=this.gestures,{currSlide:o}=s;if(!o)return;const l=o.zoomLevels.min,a=o.zoomLevels.max;if(!o.isZoomable()||s.mainScroll.isShifted())return;Ka(this._startZoomPoint,n,i),Ka(this._zoomPoint,e,r);let u=1/ko(n,i)*ko(e,r)*this._startZoomLevel;if(u>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),ua&&(u=a+(u-a)*lm);o.pan.x=this._calculatePanForZoomLevel("x",u),o.pan.y=this._calculatePanForZoomLevel("y",u),o.setZoomLevel(u),o.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:n}=e;(!n||n.currZoomLevelr.zoomLevels.max?s=r.zoomLevels.max:(o=!1,s=i);const l=n.bgOpacity,a=n.bgOpacity<1,u=ee({x:0,y:0},r.pan);let h=ee({x:0,y:0},u);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=i,ee(this._startPan,u)),o&&(h={x:this._calculatePanForZoomLevel("x",s),y:this._calculatePanForZoomLevel("y",s)}),r.setZoomLevel(s),h={x:r.bounds.correctPan("x",h.x),y:r.bounds.correctPan("y",h.y)},r.setZoomLevel(i);const f=!or(h,u);if(!f&&!o&&!a){r._setResolution(s),r.applyCurrentZoomPan();return}n.animations.stopAllPan(),n.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:p=>{if(p/=1e3,f||o){if(f&&(r.pan.x=u.x+(h.x-u.x)*p,r.pan.y=u.y+(h.y-u.y)*p),o){const y=i+(s-i)*p;r.setZoomLevel(y)}r.applyCurrentZoomPan()}a&&n.bgOpacity<1&&n.applyBgOpacity(Mr(l+(1-l)*p,0,1))},onComplete:()=>{r._setResolution(s),r.applyCurrentZoomPan()}})}}function Ga(t){return!!t.target.closest(".pswp__container")}class cm{constructor(e){this.gestures=e}click(e,n){const r=n.target.classList,i=r.contains("pswp__img"),s=r.contains("pswp__item")||r.contains("pswp__zoom-wrap");i?this._doClickOrTapAction("imageClick",e,n):s&&this._doClickOrTapAction("bgClick",e,n)}tap(e,n){Ga(n)&&this._doClickOrTapAction("tap",e,n)}doubleTap(e,n){Ga(n)&&this._doClickOrTapAction("doubleTap",e,n)}_doClickOrTapAction(e,n,r){var i;const{pswp:s}=this.gestures,{currSlide:o}=s,l=e+"Action",a=s.options[l];if(!s.dispatch(l,{point:n,originalEvent:r}).defaultPrevented){if(typeof a=="function"){a.call(s,n,r);return}switch(a){case"close":case"next":s[a]();break;case"zoom":o==null||o.toggleZoom(n);break;case"zoom-or-close":o!=null&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(n):s.options.clickToCloseNonZoomable&&s.close();break;case"toggle-controls":(i=this.gestures.pswp.element)===null||i===void 0||i.classList.toggle("pswp--ui-visible");break}}}}const dm=10,hm=300,fm=25;class pm{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new om(this),this.zoomLevels=new um(this),this.tapHandler=new cm(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,n,r,i){const{pswp:s}=this,{events:o}=s,l=i?e+i:"";o.add(s.scrollWrap,e+n,this.onPointerDown.bind(this)),o.add(window,e+"move",this.onPointerMove.bind(this)),o.add(window,e+r,this.onPointerUp.bind(this)),l&&o.add(s.scrollWrap,l,this.onPointerUp.bind(this))}onPointerDown(e){const n=e.type==="mousedown"||e.pointerType==="mouse";if(n&&e.button>0)return;const{pswp:r}=this;if(!r.opener.isOpen){e.preventDefault();return}r.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(n&&(r.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),r.animations.stopAll(),this._updatePoints(e,"down"),this._numActivePoints===1&&(this.dragAxis=null,ee(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1)}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===1&&!this.isDragging?(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,ee(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop())):this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop())))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===0&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),this._numActivePoints===1&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?or(this.p1,this.prevP1)||this.drag.change():(!or(this.p1,this.prevP1)||!or(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const n=Date.now(),r=n-this._intervalTime;r<50&&!e||(this.velocity.x=this._getVelocity("x",r),this.velocity.y=this._getVelocity("y",r),this._intervalTime=n,ee(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:n}=this.pswp;if(n.isShifted()){n.moveIndexBy(0,!0);return}if(e.type.indexOf("cancel")>0)return;if(e.type==="mouseup"||e.pointerType==="mouse"){this.tapHandler.click(this.startP1,e);return}const r=this.pswp.options.doubleTapAction?hm:0;this._tapTimer?(this._clearTapTimer(),ko(this._lastStartP1,this.startP1){this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},r))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,n){const r=this.p1[e]-this._intervalP1[e];return Math.abs(r)>1&&n>5?r/n:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,n){this.pswp.applyFilters("preventPointerEvent",!0,e,n)&&e.preventDefault()}_updatePoints(e,n){if(this._pointerEventEnabled){const r=e,i=this._ongoingPointers.findIndex(s=>s.id===r.pointerId);n==="up"&&i>-1?this._ongoingPointers.splice(i,1):n==="down"&&i===-1?this._ongoingPointers.push(this._convertEventPosToPoint(r,{x:0,y:0})):i>-1&&this._convertEventPosToPoint(r,this._ongoingPointers[i]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&ee(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&ee(this.p2,this._ongoingPointers[1])}else{const r=e;this._numActivePoints=0,r.type.indexOf("touch")>-1?r.touches&&r.touches.length>0&&(this._convertEventPosToPoint(r.touches[0],this.p1),this._numActivePoints++,r.touches.length>1&&(this._convertEventPosToPoint(r.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),n==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){ee(this.prevP1,this.p1),ee(this.prevP2,this.p2)}_updateStartPoints(){ee(this.startP1,this.p1),ee(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(e!==0){const n=e>0?"x":"y";Math.abs(this.p1[n]-this.startP1[n])>=dm&&(this.dragAxis=n)}}}_convertEventPosToPoint(e,n){return n.x=e.pageX-this.pswp.offset.x,n.y=e.pageY-this.pswp.offset.y,"pointerId"in e?n.id=e.pointerId:e.identifier!==void 0&&(n.id=e.identifier),n}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}const mm=.35;class gm{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){const{pswp:n}=this,r=Math.round(n.viewportSize.x+n.viewportSize.x*n.options.spacing),i=r!==this.slideWidth;i&&(this.slideWidth=r,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((s,o)=>{i&&Wt(s.el,(o+this._containerShiftIndex)*this.slideWidth),e&&s.slide&&s.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){const n=Te("pswp__item","div",this.pswp.container);n.setAttribute("role","group"),n.setAttribute("aria-roledescription","slide"),n.setAttribute("aria-hidden","true"),n.style.display=e===1?"block":"none",this.itemHolders.push({el:n})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,n,r){const{pswp:i}=this;let s=i.potentialIndex+e;const o=i.getNumItems();if(i.canLoop()){s=i.getLoopedIndex(s);const a=(e+o)%o;a<=o/2?e=a:e=a-o}else s<0?s=0:s>=o&&(s=o-1),e=s-i.potentialIndex;i.potentialIndex=s,this._currPositionIndex-=e,i.animations.stopMainScroll();const l=this.getCurrSlideX();if(!n)this.moveTo(l),this.updateCurrItem();else{i.animations.startSpring({isMainScroll:!0,start:this.x,end:l,velocity:r||0,naturalFrequency:30,dampingRatio:1,onUpdate:u=>{this.moveTo(u)},onComplete:()=>{this.updateCurrItem(),i.appendHeavy()}});let a=i.potentialIndex-i.currIndex;if(i.canLoop()){const u=(a+o)%o;u<=o/2?a=u:a=u-o}Math.abs(a)>1&&this.updateCurrItem()}return!!e}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;const{pswp:n}=this,r=this._prevPositionIndex-this._currPositionIndex;if(!r)return;this._prevPositionIndex=this._currPositionIndex,n.currIndex=n.potentialIndex;let i=Math.abs(r),s;i>=3&&(this._containerShiftIndex+=r+(r>0?-3:3),i=3,this.itemHolders.forEach(o=>{var l;(l=o.slide)===null||l===void 0||l.destroy(),o.slide=void 0}));for(let o=0;o0?(s=this.itemHolders.shift(),s&&(this.itemHolders[2]=s,this._containerShiftIndex++,Wt(s.el,(this._containerShiftIndex+2)*this.slideWidth),n.setContent(s,n.currIndex-i+o+2))):(s=this.itemHolders.pop(),s&&(this.itemHolders.unshift(s),this._containerShiftIndex--,Wt(s.el,this._containerShiftIndex*this.slideWidth),n.setContent(s,n.currIndex+i-o-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),n.animations.stopAllPan(),this.itemHolders.forEach((o,l)=>{o.slide&&o.slide.setIsActive(l===1)}),n.currSlide=(e=this.itemHolders[1])===null||e===void 0?void 0:e.slide,n.contentLoader.updateLazy(r),n.currSlide&&n.currSlide.applyCurrentZoomPan(),n.dispatch("change")}moveTo(e,n){if(!this.pswp.canLoop()&&n){let r=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;r+=this.pswp.currIndex;const i=Math.round(e-this.x);(r<0&&i>0||r>=this.pswp.getNumItems()-1&&i<0)&&(e=this.x+i*mm)}this.x=e,this.pswp.container&&Wt(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:n??!1})}}const vm={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},Ft=(t,e)=>e?t:vm[t];class ym{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});const n=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&n&&this._wasFocused&&n.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:n}=this;if(n.dispatch("keydown",{originalEvent:e}).defaultPrevented||qp(e))return;let r,i,s=!1;const o="key"in e;switch(o?e.key:e.keyCode){case Ft("Escape",o):n.options.escKey&&(r="close");break;case Ft("z",o):r="toggleZoom";break;case Ft("ArrowLeft",o):i="x";break;case Ft("ArrowUp",o):i="y";break;case Ft("ArrowRight",o):i="x",s=!0;break;case Ft("ArrowDown",o):s=!0,i="y";break;case Ft("Tab",o):this._focusRoot();break}if(i){e.preventDefault();const{currSlide:l}=n;n.options.arrowKeys&&i==="x"&&n.getNumItems()>1?r=s?"next":"prev":l&&l.currZoomLevel>l.zoomLevels.fit&&(l.pan[i]+=s?-80:80,l.panTo(l.pan.x,l.pan.y))}r&&(e.preventDefault(),n[r]())}_onFocusIn(e){const{template:n}=this.pswp;n&&document!==e.target&&n!==e.target&&!n.contains(e.target)&&n.focus()}}const xm="cubic-bezier(.4,0,.22,1)";class wm{constructor(e){var n;this.props=e;const{target:r,onComplete:i,transform:s,onFinish:o=()=>{},duration:l=333,easing:a=xm}=e;this.onFinish=o;const u=s?"transform":"opacity",h=(n=e[u])!==null&&n!==void 0?n:"";this._target=r,this._onComplete=i,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{jd(r,u,l,a),this._helperTimeout=setTimeout(()=>{r.addEventListener("transitionend",this._onTransitionEnd,!1),r.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},l+500),r.style[u]=h},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),Xp(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}const Sm=12,_m=.75;class km{constructor(e,n,r){this.velocity=e*1e3,this._dampingRatio=n||_m,this._naturalFrequency=r||Sm,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,n){let r=0,i;n/=1e3;const s=Math.E**(-this._dampingRatio*this._naturalFrequency*n);if(this._dampingRatio===1)i=this.velocity+this._naturalFrequency*e,r=(e+i*n)*s,this.velocity=r*-this._naturalFrequency+i*s;else if(this._dampingRatio<1){i=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const o=Math.cos(this._dampedFrequency*n),l=Math.sin(this._dampedFrequency*n);r=s*(e*o+i*l),this.velocity=r*-this._naturalFrequency*this._dampingRatio+s*(-this._dampedFrequency*e*l+this._dampedFrequency*i*o)}return r}}class Em{constructor(e){this.props=e,this._raf=0;const{start:n,end:r,velocity:i,onUpdate:s,onComplete:o,onFinish:l=()=>{},dampingRatio:a,naturalFrequency:u}=e;this.onFinish=l;const h=new km(i,a,u);let f=Date.now(),p=n-r;const y=()=>{this._raf&&(p=h.easeFrame(p,Date.now()-f),Math.abs(p)<1&&Math.abs(h.velocity)<50?(s(r),o&&o(),this.onFinish()):(f=Date.now(),s(p+r),this._raf=requestAnimationFrame(y)))};this._raf=requestAnimationFrame(y)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class Cm{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,n){const r=n?new Em(e):new wm(e);return this.activeAnimations.push(r),r.onFinish=()=>this.stop(r),r}stop(e){e.destroy();const n=this.activeAnimations.indexOf(e);n>-1&&this.activeAnimations.splice(n,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isPan?(e.destroy(),!1):!0)}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isMainScroll?(e.destroy(),!1):!0)}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}}class Pm{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:n}=this.pswp;let{deltaX:r,deltaY:i}=e;if(n&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(n.isZoomable()){let s=-i;e.deltaMode===1?s*=.05:s*=e.deltaMode?1:.002,s=2**s;const o=n.currZoomLevel*s;n.zoomTo(o,{x:e.clientX,y:e.clientY})}}else n.isPannable()&&(e.deltaMode===1&&(r*=18,i*=18),n.panTo(n.pan.x-r,n.pan.y-i))}}function Nm(t){if(typeof t=="string")return t;if(!t||!t.isCustomSVG)return"";const e=t;let n='",n}class Lm{constructor(e,n){var r;const i=n.name||n.className;let s=n.html;if(e.options[i]===!1)return;typeof e.options[i+"SVG"]=="string"&&(s=e.options[i+"SVG"]),e.dispatch("uiElementCreate",{data:n});let o="";n.isButton?(o+="pswp__button ",o+=n.className||`pswp__button--${n.name}`):o+=n.className||`pswp__${n.name}`;let l=n.isButton?n.tagName||"button":n.tagName||"div";l=l.toLowerCase();const a=Te(o,l);if(n.isButton){l==="button"&&(a.type="button");let{title:f}=n;const{ariaLabel:p}=n;typeof e.options[i+"Title"]=="string"&&(f=e.options[i+"Title"]),f&&(a.title=f);const y=p||f;y&&a.setAttribute("aria-label",y)}a.innerHTML=Nm(s),n.onInit&&n.onInit(a,e),n.onClick&&(a.onclick=f=>{typeof n.onClick=="string"?e[n.onClick]():typeof n.onClick=="function"&&n.onClick(f,a,e)});const u=n.appendTo||"bar";let h=e.element;u==="bar"?(e.topBar||(e.topBar=Te("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),h=e.topBar):(a.classList.add("pswp__hide-on-close"),u==="wrapper"&&(h=e.scrollWrap)),(r=h)===null||r===void 0||r.appendChild(e.applyFilters("uiElement",a,n))}}function Dd(t,e,n){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(n?t.disabled=!(e.currIndex0))})}const Tm={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:Dd},jm={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,e)=>{Dd(t,e,!0)}},Im={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-close"},onClick:"close"},zm={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Mm={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let n,r=null;const i=(l,a)=>{t.classList.toggle("pswp__preloader--"+l,a)},s=l=>{n!==l&&(n=l,i("active",l))},o=()=>{var l;if(!((l=e.currSlide)!==null&&l!==void 0&&l.content.isLoading())){s(!1),r&&(clearTimeout(r),r=null);return}r||(r=setTimeout(()=>{var a;s(!!(!((a=e.currSlide)===null||a===void 0)&&a.content.isLoading())),r=null},e.options.preloaderDelay))};e.on("change",o),e.on("loadComplete",l=>{e.currSlide===l.slide&&o()}),e.ui&&(e.ui.updatePreloaderVisibility=o)}},Am={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function Xa(t,e){t.classList.toggle("pswp--zoomed-in",e)}class Dm{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[Im,Tm,jm,zm,Mm,Am],e.dispatch("uiRegister"),this.uiElementsData.sort((n,r)=>(n.order||0)-(r.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(n=>{this.registerElement(n)}),e.on("change",()=>{var n;(n=e.element)===null||n===void 0||n.classList.toggle("pswp--one-slide",e.getNumItems()===1)}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new Lm(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:n,options:r}=this.pswp;if(this.pswp.opener.isClosing||!e||!n)return;let{currZoomLevel:i}=n;if(this.pswp.opener.isOpen||(i=n.zoomLevels.initial),i===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=i;const s=n.zoomLevels.initial-n.zoomLevels.secondary;if(Math.abs(s)<.01||!n.isZoomable()){Xa(e,!1),e.classList.remove("pswp--zoom-allowed");return}e.classList.add("pswp--zoom-allowed");const o=i===n.zoomLevels.initial?n.zoomLevels.secondary:n.zoomLevels.initial;Xa(e,o<=i),(r.imageClickAction==="zoom"||r.imageClickAction==="zoom-or-close")&&e.classList.add("pswp--click-to-zoom")}}function Om(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}function Rm(t,e,n){const r=t.getBoundingClientRect(),i=r.width/e,s=r.height/n,o=i>s?i:s,l=(r.width-e*o)/2,a=(r.height-n*o)/2,u={x:r.left+l,y:r.top+a,w:e*o};return u.innerRect={w:r.width,h:r.height,x:l,y:a},u}function Fm(t,e,n){const r=n.dispatch("thumbBounds",{index:t,itemData:e,instance:n});if(r.thumbBounds)return r.thumbBounds;const{element:i}=e;let s,o;if(i&&n.options.thumbSelector!==!1){const l=n.options.thumbSelector||"img";o=i.matches(l)?i:i.querySelector(l)}return o=n.applyFilters("thumbEl",o,e,t),o&&(e.thumbCropped?s=Rm(o,e.width||e.w||0,e.height||e.h||0):s=Om(o)),n.applyFilters("thumbBounds",s,e,t)}class $m{constructor(e,n){this.type=e,this.defaultPrevented=!1,n&&Object.assign(this,n)}preventDefault(){this.defaultPrevented=!0}}class Bm{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,n,r=100){var i,s,o;this._filters[e]||(this._filters[e]=[]),(i=this._filters[e])===null||i===void 0||i.push({fn:n,priority:r}),(s=this._filters[e])===null||s===void 0||s.sort((l,a)=>l.priority-a.priority),(o=this.pswp)===null||o===void 0||o.addFilter(e,n,r)}removeFilter(e,n){this._filters[e]&&(this._filters[e]=this._filters[e].filter(r=>r.fn!==n)),this.pswp&&this.pswp.removeFilter(e,n)}applyFilters(e,...n){var r;return(r=this._filters[e])===null||r===void 0||r.forEach(i=>{n[0]=i.fn.apply(this,n)}),n[0]}on(e,n){var r,i;this._listeners[e]||(this._listeners[e]=[]),(r=this._listeners[e])===null||r===void 0||r.push(n),(i=this.pswp)===null||i===void 0||i.on(e,n)}off(e,n){var r;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(i=>n!==i)),(r=this.pswp)===null||r===void 0||r.off(e,n)}dispatch(e,n){var r;if(this.pswp)return this.pswp.dispatch(e,n);const i=new $m(e,n);return(r=this._listeners[e])===null||r===void 0||r.forEach(s=>{s.call(this,i)}),i}}class bm{constructor(e,n){if(this.element=Te("pswp__img pswp__img--placeholder",e?"img":"div",n),e){const r=this.element;r.decoding="async",r.alt="",r.src=e,r.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,n){this.element&&(this.element.tagName==="IMG"?(Eo(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Cr(0,0,e/250)):Eo(this.element,e,n))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}}class Um{constructor(e,n,r){this.instance=n,this.data=e,this.index=r,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=De.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,n){if(this.slide&&this.usePlaceholder())if(this.placeholder){const r=this.placeholder.element;r&&!r.parentElement&&this.slide.container.prepend(r)}else{const r=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new bm(r,this.slide.container)}this.element&&!n||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=Te("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=Te("pswp__content","div"),this.element.innerHTML=this.data.html||""),n&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var n,r;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=(n=this.data.src)!==null&&n!==void 0?n:"",i.alt=(r=this.data.alt)!==null&&r!==void 0?r:"",this.state=De.LOADING,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=De.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===De.LOADED||this.state===De.ERROR)&&this.removePlaceholder())}onError(){this.state=De.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===De.LOADING,this)}isError(){return this.state===De.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,n){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,n),!this.instance.dispatch("contentResize",{content:this,width:e,height:n}).defaultPrevented&&(Eo(this.element,e,n),this.isImageContent()&&!this.isError()))){const r=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=n,r?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:n,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==De.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,n=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||n>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=n+"px",e.dataset.largestUsedSize=String(n))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,n;let r=Te("pswp__error-msg","div");r.innerText=(e=(n=this.instance.options)===null||n===void 0?void 0:n.errorMsg)!==null&&e!==void 0?e:"",r=this.instance.applyFilters("contentErrorElement",r,this),this.element=Te("pswp__content pswp__error-msg-container","div"),this.element.appendChild(r),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===De.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Za())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Za()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===De.LOADED||this.state===De.ERROR)&&this.removePlaceholder()))}}const Hm=5;function Od(t,e,n){const r=e.createContentFromData(t,n);let i;const{options:s}=e;if(s){i=new Ad(s,t,-1);let o;e.pswp?o=e.pswp.viewportSize:o=zd(s,e);const l=Md(s,o,t,n);i.update(r.width,r.height,l)}return r.lazyLoad(),i&&r.setDisplayedSize(Math.ceil(r.width*i.initial),Math.ceil(r.height*i.initial)),r}function Zm(t,e){const n=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:n}).defaultPrevented)return Od(n,e,t)}class Wm{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,Hm),this._cachedItems=[]}updateLazy(e){const{pswp:n}=this;if(n.dispatch("lazyLoad").defaultPrevented)return;const{preload:r}=n.options,i=e===void 0?!0:e>=0;let s;for(s=0;s<=r[1];s++)this.loadSlideByIndex(n.currIndex+(i?s:-s));for(s=1;s<=r[0];s++)this.loadSlideByIndex(n.currIndex+(i?-s:s))}loadSlideByIndex(e){const n=this.pswp.getLoopedIndex(e);let r=this.getContentByIndex(n);r||(r=Zm(n,this.pswp),r&&this.addToCache(r))}getContentBySlide(e){let n=this.getContentByIndex(e.index);return n||(n=this.pswp.createContentFromData(e.data,e.index),this.addToCache(n)),n.setSlide(e),n}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const n=this._cachedItems.findIndex(r=>!r.isAttached&&!r.hasSlide);n!==-1&&this._cachedItems.splice(n,1)[0].destroy()}}removeByIndex(e){const n=this._cachedItems.findIndex(r=>r.index===e);n!==-1&&this._cachedItems.splice(n,1)}getContentByIndex(e){return this._cachedItems.find(n=>n.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}}class Vm extends Bm{getNumItems(){var e;let n=0;const r=(e=this.options)===null||e===void 0?void 0:e.dataSource;r&&"length"in r?n=r.length:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),r.items&&(n=r.items.length));const i=this.dispatch("numItems",{dataSource:r,numItems:n});return this.applyFilters("numItems",i.numItems,r)}createContentFromData(e,n){return new Um(e,this,n)}getItemData(e){var n;const r=(n=this.options)===null||n===void 0?void 0:n.dataSource;let i={};Array.isArray(r)?i=r[e]:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),i=r.items[e]);let s=i;s instanceof Element&&(s=this._domElementToItemData(s));const o=this.dispatch("itemData",{itemData:s||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var n,r;return(n=this.options)!==null&&n!==void 0&&n.children||(r=this.options)!==null&&r!==void 0&&r.childSelector?Jp(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const n={element:e},r=e.tagName==="A"?e:e.querySelector("a");if(r){n.src=r.dataset.pswpSrc||r.href,r.dataset.pswpSrcset&&(n.srcset=r.dataset.pswpSrcset),n.width=r.dataset.pswpWidth?parseInt(r.dataset.pswpWidth,10):0,n.height=r.dataset.pswpHeight?parseInt(r.dataset.pswpHeight,10):0,n.w=n.width,n.h=n.height,r.dataset.pswpType&&(n.type=r.dataset.pswpType);const s=e.querySelector("img");if(s){var i;n.msrc=s.currentSrc||s.src,n.alt=(i=s.getAttribute("alt"))!==null&&i!==void 0?i:""}(r.dataset.pswpCropped||r.dataset.cropped)&&(n.thumbCropped=!0)}return this.applyFilters("domItemData",n,e,r)}lazyLoadData(e,n){return Od(e,this,n)}}const Zn=.003;class Qm{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,n=this.pswp.currSlide,{options:r}=e;if(r.showHideAnimationType==="fade"?(r.showHideOpacity=!0,this._thumbBounds=void 0):r.showHideAnimationType==="none"?(r.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=n==null?void 0:n.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&(n==null?void 0:n.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&n&&(n.zoomAndPanToInitial(),n.applyCurrentZoomPan());else{var i;this._animateRootOpacity=(i=r.showHideOpacity)!==null&&i!==void 0?i:!1}if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>Zn,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation){this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,this.isOpening&&(e.element&&(e.element.style.opacity=String(Zn)),e.applyBgOpacity(1));return}if(this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect){var s;this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=(s=this.pswp.currSlide)===null||s===void 0?void 0:s.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")}else this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(Zn)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(Zn)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(Zn)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&e.mainScroll.x!==0&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&this._placeholder.tagName==="IMG"?new Promise(e=>{let n=!1,r=!0;Yp(this._placeholder).finally(()=>{n=!0,r||e(!0)}),setTimeout(()=>{r=!1,n&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,n;(e=this.pswp.element)===null||e===void 0||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),(n=this.pswp.element)===null||n===void 0||n.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var n;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),(n=e.currSlide)===null||n===void 0||n.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:n}=this,{innerRect:r}=this._thumbBounds,{currSlide:i,viewportSize:s}=n;if(this._croppedZoom&&r&&this._cropContainer1&&this._cropContainer2){const o=-s.x+(this._thumbBounds.x-r.x)+r.w,l=-s.y+(this._thumbBounds.y-r.y)+r.h,a=s.x-r.w,u=s.y-r.h;e?(this._animateTo(this._cropContainer1,"transform",Cr(o,l)),this._animateTo(this._cropContainer2,"transform",Cr(a,u))):(Wt(this._cropContainer1,o,l),Wt(this._cropContainer2,a,u))}i&&(ee(i.pan,r||this._thumbBounds),i.currZoomLevel=this._thumbBounds.w/i.width,e?this._animateTo(i.container,"transform",i.getCurrentTransform()):i.applyCurrentZoomPan())}_animateTo(e,n,r){if(!this._duration){e.style[n]=r;return}const{animations:i}=this.pswp,s={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{i.activeAnimations.length||this._onAnimationComplete()},target:e};s[n]=r,i.startTransition(s)}}const Km={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class Gm extends Vm{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new em,this.animations=new Cm,this.mainScroll=new gm(this),this.gestures=new pm(this),this.opener=new Qm(this),this.keyboard=new ym(this),this.contentLoader=new Wm(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new Pm(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:n}=this.mainScroll;n[0]&&(n[0].el.style.display="block",this.setContent(n[0],this.currIndex-1)),n[2]&&(n[2].el.style.display="block",this.setContent(n[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const n=this.getNumItems();return this.options.loop&&(e>n-1&&(e-=n),e<0&&(e+=n)),Mr(e,0,n-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var n;(n=e.slide)===null||n===void 0||n.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var n;(n=this.currSlide)===null||n===void 0||n.zoomTo(...e)}toggleZoom(){var e;(e=this.currSlide)===null||e===void 0||e.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying){this.options.showHideAnimationType="none",this.close();return}this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),(e=this.element)===null||e===void 0||e.remove(),this.mainScroll.itemHolders.forEach(n=>{var r;(r=n.slide)===null||r===void 0||r.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((n,r)=>{var i,s;let o=((i=(s=this.currSlide)===null||s===void 0?void 0:s.index)!==null&&i!==void 0?i:0)-1+r;if(this.canLoop()&&(o=this.getLoopedIndex(o)),o===e&&(this.setContent(n,e,!0),r===1)){var l;this.currSlide=n.slide,(l=n.slide)===null||l===void 0||l.setIsActive(!0)}}),this.dispatch("change")}setContent(e,n,r){if(this.canLoop()&&(n=this.getLoopedIndex(n)),e.slide){if(e.slide.index===n&&!r)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(n<0||n>=this.getNumItems()))return;const i=this.getItemData(n);e.slide=new nm(i,n,this),n===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const n=zd(this.options,this);!e&&or(n,this._prevViewportSize)||(ee(this._prevViewportSize,n),this.dispatch("beforeResize"),ee(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){if(!this.hasMouse){var e;this.hasMouse=!0,(e=this.element)===null||e===void 0||e.classList.add("pswp--has_mouse")}}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,n){this.offset.x=e,this.offset.y=n,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=Te("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=Te("pswp__bg","div",this.element),this.scrollWrap=Te("pswp__scroll-wrap","section",this.element),this.container=Te("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new Dm(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return Fm(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...Km,...e}}}var Rd={exports:{}},Xm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ym=Xm,qm=Ym;function Fd(){}function $d(){}$d.resetWarningCache=Fd;var Jm=function(){function t(r,i,s,o,l,a){if(a!==qm){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:$d,resetWarningCache:Fd};return n.PropTypes=n,n};Rd.exports=Jm();var eg=Rd.exports;const U=Io(eg);function tg(t,e){return t===e?0:t.compareDocumentPosition(e)&2?1:-1}function Bd(t){return Object.entries(t).map(([e,n])=>n?`${e}=${n}`:e).join("&")}function Ll(t){return t.split("&").reduce((e,n)=>{const[r,i]=n.split("=");return r&&(e[r]=i),e},{})}function Ya(t){const e=Ll(t);return delete e.gid,delete e.pid,Bd(e)}function Wn(){return window.location.hash.substring(1)}function qa(){return`${window.location.pathname}${window.location.search}`}const Ja=t=>{const e=Ll(t);return!!e.gid&&!!e.pid};function ng(t,e){return t!==null?t:e?parseInt(e,10)-1:0}class Tl extends Error{constructor(e=""){super(),this.message=` + */function je(t,e,n){const r=document.createElement(e);return t&&(r.className=t),n&&n.appendChild(r),r}function ee(t,e){return t.x=e.x,t.y=e.y,e.id!==void 0&&(t.id=e.id),t}function jd(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function Eo(t,e){const n=Math.abs(t.x-e.x),r=Math.abs(t.y-e.y);return Math.sqrt(n*n+r*r)}function or(t,e){return t.x===e.x&&t.y===e.y}function Mr(t,e,n){return Math.min(Math.max(t,e),n)}function Cr(t,e,n){let r=`translate3d(${t}px,${e||0}px,0)`;return n!==void 0&&(r+=` scale3d(${n},${n},1)`),r}function Wt(t,e,n,r){t.style.transform=Cr(e,n,r)}const Gp="cubic-bezier(.4,0,.22,1)";function Td(t,e,n,r){t.style.transition=e?`${e} ${n}ms ${r||Gp}`:"none"}function Co(t,e,n){t.style.width=typeof e=="number"?`${e}px`:e,t.style.height=typeof n=="number"?`${n}px`:n}function Xp(t){Td(t)}function Yp(t){return"decode"in t?t.decode().catch(()=>{}):t.complete?Promise.resolve(t):new Promise((e,n)=>{t.onload=()=>e(t),t.onerror=n})}const De={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function qp(t){return"button"in t&&t.button===1||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function Jp(t,e,n=document){let r=[];if(t instanceof Element)r=[t];else if(t instanceof NodeList||Array.isArray(t))r=Array.from(t);else{const i=typeof t=="string"?t:e;i&&(r=Array.from(n.querySelectorAll(i)))}return r}function Za(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let Id=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{Id=!0}}))}catch{}class em{constructor(){this._pool=[]}add(e,n,r,i){this._toggleListener(e,n,r,i)}remove(e,n,r,i){this._toggleListener(e,n,r,i,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,n,r,i,s,o){if(!e)return;const l=s?"removeEventListener":"addEventListener";n.split(" ").forEach(u=>{if(u){o||(s?this._pool=this._pool.filter(f=>f.type!==u||f.listener!==r||f.target!==e):this._pool.push({target:e,type:u,listener:r,passive:i}));const h=Id?{passive:i||!1}:!1;e[l](u,r,h)}})}}function zd(t,e){if(t.getViewportSizeFn){const n=t.getViewportSizeFn(t,e);if(n)return n}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function Xn(t,e,n,r,i){let s=0;if(e.paddingFn)s=e.paddingFn(n,r,i)[t];else if(e.padding)s=e.padding[t];else{const o="padding"+t[0].toUpperCase()+t.slice(1);e[o]&&(s=e[o])}return Number(s)||0}function Md(t,e,n,r){return{x:e.x-Xn("left",t,e,n,r)-Xn("right",t,e,n,r),y:e.y-Xn("top",t,e,n,r)-Xn("bottom",t,e,n,r)}}class tm{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:n}=this.slide,r=this.slide[e==="x"?"width":"height"]*this.currZoomLevel,s=Xn(e==="x"?"left":"top",n.options,n.viewportSize,this.slide.data,this.slide.index),o=this.slide.panAreaSize[e];this.center[e]=Math.round((o-r)/2)+s,this.max[e]=r>o?Math.round(o-r)+s:this.center[e],this.min[e]=r>o?s:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,n){return Mr(n,this.max[e],this.min[e])}}const Wa=4e3;class Ad{constructor(e,n,r,i){this.pswp=i,this.options=e,this.itemData=n,this.index=r,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,n,r){const i={x:e,y:n};this.elementSize=i,this.panAreaSize=r;const s=r.x/i.x,o=r.y/i.y;this.fit=Math.min(1,so?s:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const n=e+"ZoomLevel",r=this.options[n];if(r)return typeof r=="function"?r(this):r==="fill"?this.fill:r==="fit"?this.fit:Number(r)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Wa&&(e=Wa/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}class nm{constructor(e,n,r){this.data=e,this.index=n,this.pswp=r,this.isActive=n===r.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!r.opener.isOpen,this.zoomLevels=new Ad(r.options,e,n,r),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:n}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=je("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new tm(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;this.heavyAppended||!e.opener.isOpen||e.mainScroll.isShifted()||!this.isActive&&!!0||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel===this.zoomLevels.initial||!this.isActive?(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize()):(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y))}updateContentSize(e){const n=this.currentResolution||this.zoomLevels.initial;if(!n)return;const r=Math.round(this.width*n)||this.pswp.viewportSize.x,i=Math.round(this.height*n)||this.pswp.viewportSize.y;!this.sizeChanged(r,i)&&!e||this.content.setDisplayedSize(r,i)}sizeChanged(e,n){return e!==this.prevDisplayedWidth||n!==this.prevDisplayedHeight?(this.prevDisplayedWidth=e,this.prevDisplayedHeight=n,!0):!1}getPlaceholderElement(){var e;return(e=this.content.placeholder)===null||e===void 0?void 0:e.element}zoomTo(e,n,r,i){const{pswp:s}=this;if(!this.isZoomable()||s.mainScroll.isShifted())return;s.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:n,transitionDuration:r}),s.animations.stopAllPan();const o=this.currZoomLevel;i||(e=Mr(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",n,o),this.pan.y=this.calculateZoomToPanOffset("y",n,o),jd(this.pan);const l=()=>{this._setResolution(e),this.applyCurrentZoomPan()};r?s.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:l,duration:r,easing:s.options.easing}):l()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,n,r){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];n||(n=this.pswp.getViewportCenterPoint()),r||(r=this.zoomLevels.initial);const s=this.currZoomLevel/r;return this.bounds.correctPan(e,(this.pan[e]-n[e])*s+n[e])}panTo(e,n){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",n),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),ee(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,n,r){r/=this.currentResolution||this.zoomLevels.initial,Wt(this.container,e,n,r)}calculateSize(){const{pswp:e}=this;ee(this.panAreaSize,Md(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return Cr(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}const rm=.35,im=.6,Va=.4,Qa=.5;function sm(t,e){return t*e/(1-e)}class om{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&ee(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:n,dragAxis:r}=this.gestures,{currSlide:i}=this.pswp;if(r==="y"&&this.pswp.options.closeOnVerticalDrag&&i&&i.currZoomLevel<=i.zoomLevels.fit&&!this.gestures.isMultitouch){const s=i.pan.y+(e.y-n.y);if(!this.pswp.dispatch("verticalDrag",{panY:s}).defaultPrevented){this._setPanWithFriction("y",s,im);const o=1-Math.abs(this._getVerticalDragRatio(i.pan.y));this.pswp.applyBgOpacity(o),i.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),i&&(jd(i.pan),i.applyCurrentZoomPan()))}end(){const{velocity:e}=this.gestures,{mainScroll:n,currSlide:r}=this.pswp;let i=0;if(this.pswp.animations.stopAll(),n.isShifted()){const o=(n.x-n.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-Qa&&o<0||e.x<.1&&o<-.5?(i=1,e.x=Math.min(e.x,0)):(e.x>Qa&&o>0||e.x>-.1&&o>.5)&&(i=-1,e.x=Math.max(e.x,0)),n.moveIndexBy(i,!0,e.x)}r&&r.currZoomLevel>r.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:n}=this.gestures,{currSlide:r}=this.pswp;if(!r)return;const{pan:i,bounds:s}=r,o=i[e],l=this.pswp.bgOpacity<1&&e==="y",u=o+sm(n[e],.995);if(l){const v=this._getVerticalDragRatio(o),x=this._getVerticalDragRatio(u);if(v<0&&x<-Va||v>0&&x>Va){this.pswp.close();return}}const h=s.correctPan(e,u);if(o===h)return;const f=h===u?1:.82,p=this.pswp.bgOpacity,y=h-o;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:h,velocity:n[e],dampingRatio:f,onUpdate:v=>{if(l&&this.pswp.bgOpacity<1){const x=1-(h-v)/y;this.pswp.applyBgOpacity(Mr(p+(1-p)*x,0,1))}i[e]=Math.floor(v),r.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:n,dragAxis:r,prevP1:i,isMultitouch:s}=this.gestures,{currSlide:o,mainScroll:l}=this.pswp,a=n[e]-i[e],u=l.x+a;if(!a||!o)return!1;if(e==="x"&&!o.isPannable()&&!s)return l.moveTo(u,!0),!0;const{bounds:h}=o,f=o.pan[e]+a;if(this.pswp.options.allowPanToNext&&r==="x"&&e==="x"&&!s){const p=l.getCurrSlideX(),y=l.x-p,v=a>0,x=!v;if(f>h.min[e]&&v){if(h.min[e]<=this.startPan[e])return l.moveTo(u,!0),!0;this._setPanWithFriction(e,f)}else if(f0)return l.moveTo(Math.max(u,p),!0),!0;if(y<0)return l.moveTo(Math.min(u,p),!0),!0}else this._setPanWithFriction(e,f)}else e==="y"?!l.isShifted()&&h.min.y!==h.max.y&&this._setPanWithFriction(e,f):this._setPanWithFriction(e,f);return!1}_getVerticalDragRatio(e){var n,r;return(e-((n=(r=this.pswp.currSlide)===null||r===void 0?void 0:r.bounds.center.y)!==null&&n!==void 0?n:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,n,r){const{currSlide:i}=this.pswp;if(!i)return;const{pan:s,bounds:o}=i;if(o.correctPan(e,n)!==n||r){const a=Math.round(n-s[e]);s[e]+=a*(r||rm)}else s[e]=n}}const lm=.05,am=.15;function Ka(t,e,n){return t.x=(e.x+n.x)/2,t.y=(e.y+n.y)/2,t}class um{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,ee(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:n,p2:r,startP2:i,pswp:s}=this.gestures,{currSlide:o}=s;if(!o)return;const l=o.zoomLevels.min,a=o.zoomLevels.max;if(!o.isZoomable()||s.mainScroll.isShifted())return;Ka(this._startZoomPoint,n,i),Ka(this._zoomPoint,e,r);let u=1/Eo(n,i)*Eo(e,r)*this._startZoomLevel;if(u>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),ua&&(u=a+(u-a)*lm);o.pan.x=this._calculatePanForZoomLevel("x",u),o.pan.y=this._calculatePanForZoomLevel("y",u),o.setZoomLevel(u),o.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:n}=e;(!n||n.currZoomLevelr.zoomLevels.max?s=r.zoomLevels.max:(o=!1,s=i);const l=n.bgOpacity,a=n.bgOpacity<1,u=ee({x:0,y:0},r.pan);let h=ee({x:0,y:0},u);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=i,ee(this._startPan,u)),o&&(h={x:this._calculatePanForZoomLevel("x",s),y:this._calculatePanForZoomLevel("y",s)}),r.setZoomLevel(s),h={x:r.bounds.correctPan("x",h.x),y:r.bounds.correctPan("y",h.y)},r.setZoomLevel(i);const f=!or(h,u);if(!f&&!o&&!a){r._setResolution(s),r.applyCurrentZoomPan();return}n.animations.stopAllPan(),n.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:p=>{if(p/=1e3,f||o){if(f&&(r.pan.x=u.x+(h.x-u.x)*p,r.pan.y=u.y+(h.y-u.y)*p),o){const y=i+(s-i)*p;r.setZoomLevel(y)}r.applyCurrentZoomPan()}a&&n.bgOpacity<1&&n.applyBgOpacity(Mr(l+(1-l)*p,0,1))},onComplete:()=>{r._setResolution(s),r.applyCurrentZoomPan()}})}}function Ga(t){return!!t.target.closest(".pswp__container")}class cm{constructor(e){this.gestures=e}click(e,n){const r=n.target.classList,i=r.contains("pswp__img"),s=r.contains("pswp__item")||r.contains("pswp__zoom-wrap");i?this._doClickOrTapAction("imageClick",e,n):s&&this._doClickOrTapAction("bgClick",e,n)}tap(e,n){Ga(n)&&this._doClickOrTapAction("tap",e,n)}doubleTap(e,n){Ga(n)&&this._doClickOrTapAction("doubleTap",e,n)}_doClickOrTapAction(e,n,r){var i;const{pswp:s}=this.gestures,{currSlide:o}=s,l=e+"Action",a=s.options[l];if(!s.dispatch(l,{point:n,originalEvent:r}).defaultPrevented){if(typeof a=="function"){a.call(s,n,r);return}switch(a){case"close":case"next":s[a]();break;case"zoom":o==null||o.toggleZoom(n);break;case"zoom-or-close":o!=null&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(n):s.options.clickToCloseNonZoomable&&s.close();break;case"toggle-controls":(i=this.gestures.pswp.element)===null||i===void 0||i.classList.toggle("pswp--ui-visible");break}}}}const dm=10,hm=300,fm=25;class pm{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new om(this),this.zoomLevels=new um(this),this.tapHandler=new cm(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,n,r,i){const{pswp:s}=this,{events:o}=s,l=i?e+i:"";o.add(s.scrollWrap,e+n,this.onPointerDown.bind(this)),o.add(window,e+"move",this.onPointerMove.bind(this)),o.add(window,e+r,this.onPointerUp.bind(this)),l&&o.add(s.scrollWrap,l,this.onPointerUp.bind(this))}onPointerDown(e){const n=e.type==="mousedown"||e.pointerType==="mouse";if(n&&e.button>0)return;const{pswp:r}=this;if(!r.opener.isOpen){e.preventDefault();return}r.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(n&&(r.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),r.animations.stopAll(),this._updatePoints(e,"down"),this._numActivePoints===1&&(this.dragAxis=null,ee(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1)}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===1&&!this.isDragging?(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,ee(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop())):this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop())))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===0&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),this._numActivePoints===1&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?or(this.p1,this.prevP1)||this.drag.change():(!or(this.p1,this.prevP1)||!or(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const n=Date.now(),r=n-this._intervalTime;r<50&&!e||(this.velocity.x=this._getVelocity("x",r),this.velocity.y=this._getVelocity("y",r),this._intervalTime=n,ee(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:n}=this.pswp;if(n.isShifted()){n.moveIndexBy(0,!0);return}if(e.type.indexOf("cancel")>0)return;if(e.type==="mouseup"||e.pointerType==="mouse"){this.tapHandler.click(this.startP1,e);return}const r=this.pswp.options.doubleTapAction?hm:0;this._tapTimer?(this._clearTapTimer(),Eo(this._lastStartP1,this.startP1){this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},r))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,n){const r=this.p1[e]-this._intervalP1[e];return Math.abs(r)>1&&n>5?r/n:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,n){this.pswp.applyFilters("preventPointerEvent",!0,e,n)&&e.preventDefault()}_updatePoints(e,n){if(this._pointerEventEnabled){const r=e,i=this._ongoingPointers.findIndex(s=>s.id===r.pointerId);n==="up"&&i>-1?this._ongoingPointers.splice(i,1):n==="down"&&i===-1?this._ongoingPointers.push(this._convertEventPosToPoint(r,{x:0,y:0})):i>-1&&this._convertEventPosToPoint(r,this._ongoingPointers[i]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&ee(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&ee(this.p2,this._ongoingPointers[1])}else{const r=e;this._numActivePoints=0,r.type.indexOf("touch")>-1?r.touches&&r.touches.length>0&&(this._convertEventPosToPoint(r.touches[0],this.p1),this._numActivePoints++,r.touches.length>1&&(this._convertEventPosToPoint(r.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),n==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){ee(this.prevP1,this.p1),ee(this.prevP2,this.p2)}_updateStartPoints(){ee(this.startP1,this.p1),ee(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(e!==0){const n=e>0?"x":"y";Math.abs(this.p1[n]-this.startP1[n])>=dm&&(this.dragAxis=n)}}}_convertEventPosToPoint(e,n){return n.x=e.pageX-this.pswp.offset.x,n.y=e.pageY-this.pswp.offset.y,"pointerId"in e?n.id=e.pointerId:e.identifier!==void 0&&(n.id=e.identifier),n}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}const mm=.35;class gm{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){const{pswp:n}=this,r=Math.round(n.viewportSize.x+n.viewportSize.x*n.options.spacing),i=r!==this.slideWidth;i&&(this.slideWidth=r,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((s,o)=>{i&&Wt(s.el,(o+this._containerShiftIndex)*this.slideWidth),e&&s.slide&&s.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){const n=je("pswp__item","div",this.pswp.container);n.setAttribute("role","group"),n.setAttribute("aria-roledescription","slide"),n.setAttribute("aria-hidden","true"),n.style.display=e===1?"block":"none",this.itemHolders.push({el:n})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,n,r){const{pswp:i}=this;let s=i.potentialIndex+e;const o=i.getNumItems();if(i.canLoop()){s=i.getLoopedIndex(s);const a=(e+o)%o;a<=o/2?e=a:e=a-o}else s<0?s=0:s>=o&&(s=o-1),e=s-i.potentialIndex;i.potentialIndex=s,this._currPositionIndex-=e,i.animations.stopMainScroll();const l=this.getCurrSlideX();if(!n)this.moveTo(l),this.updateCurrItem();else{i.animations.startSpring({isMainScroll:!0,start:this.x,end:l,velocity:r||0,naturalFrequency:30,dampingRatio:1,onUpdate:u=>{this.moveTo(u)},onComplete:()=>{this.updateCurrItem(),i.appendHeavy()}});let a=i.potentialIndex-i.currIndex;if(i.canLoop()){const u=(a+o)%o;u<=o/2?a=u:a=u-o}Math.abs(a)>1&&this.updateCurrItem()}return!!e}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;const{pswp:n}=this,r=this._prevPositionIndex-this._currPositionIndex;if(!r)return;this._prevPositionIndex=this._currPositionIndex,n.currIndex=n.potentialIndex;let i=Math.abs(r),s;i>=3&&(this._containerShiftIndex+=r+(r>0?-3:3),i=3,this.itemHolders.forEach(o=>{var l;(l=o.slide)===null||l===void 0||l.destroy(),o.slide=void 0}));for(let o=0;o0?(s=this.itemHolders.shift(),s&&(this.itemHolders[2]=s,this._containerShiftIndex++,Wt(s.el,(this._containerShiftIndex+2)*this.slideWidth),n.setContent(s,n.currIndex-i+o+2))):(s=this.itemHolders.pop(),s&&(this.itemHolders.unshift(s),this._containerShiftIndex--,Wt(s.el,this._containerShiftIndex*this.slideWidth),n.setContent(s,n.currIndex+i-o-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),n.animations.stopAllPan(),this.itemHolders.forEach((o,l)=>{o.slide&&o.slide.setIsActive(l===1)}),n.currSlide=(e=this.itemHolders[1])===null||e===void 0?void 0:e.slide,n.contentLoader.updateLazy(r),n.currSlide&&n.currSlide.applyCurrentZoomPan(),n.dispatch("change")}moveTo(e,n){if(!this.pswp.canLoop()&&n){let r=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;r+=this.pswp.currIndex;const i=Math.round(e-this.x);(r<0&&i>0||r>=this.pswp.getNumItems()-1&&i<0)&&(e=this.x+i*mm)}this.x=e,this.pswp.container&&Wt(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:n??!1})}}const vm={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},Ft=(t,e)=>e?t:vm[t];class ym{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});const n=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&n&&this._wasFocused&&n.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:n}=this;if(n.dispatch("keydown",{originalEvent:e}).defaultPrevented||qp(e))return;let r,i,s=!1;const o="key"in e;switch(o?e.key:e.keyCode){case Ft("Escape",o):n.options.escKey&&(r="close");break;case Ft("z",o):r="toggleZoom";break;case Ft("ArrowLeft",o):i="x";break;case Ft("ArrowUp",o):i="y";break;case Ft("ArrowRight",o):i="x",s=!0;break;case Ft("ArrowDown",o):s=!0,i="y";break;case Ft("Tab",o):this._focusRoot();break}if(i){e.preventDefault();const{currSlide:l}=n;n.options.arrowKeys&&i==="x"&&n.getNumItems()>1?r=s?"next":"prev":l&&l.currZoomLevel>l.zoomLevels.fit&&(l.pan[i]+=s?-80:80,l.panTo(l.pan.x,l.pan.y))}r&&(e.preventDefault(),n[r]())}_onFocusIn(e){const{template:n}=this.pswp;n&&document!==e.target&&n!==e.target&&!n.contains(e.target)&&n.focus()}}const xm="cubic-bezier(.4,0,.22,1)";class wm{constructor(e){var n;this.props=e;const{target:r,onComplete:i,transform:s,onFinish:o=()=>{},duration:l=333,easing:a=xm}=e;this.onFinish=o;const u=s?"transform":"opacity",h=(n=e[u])!==null&&n!==void 0?n:"";this._target=r,this._onComplete=i,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{Td(r,u,l,a),this._helperTimeout=setTimeout(()=>{r.addEventListener("transitionend",this._onTransitionEnd,!1),r.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},l+500),r.style[u]=h},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),Xp(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}const Sm=12,_m=.75;class km{constructor(e,n,r){this.velocity=e*1e3,this._dampingRatio=n||_m,this._naturalFrequency=r||Sm,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,n){let r=0,i;n/=1e3;const s=Math.E**(-this._dampingRatio*this._naturalFrequency*n);if(this._dampingRatio===1)i=this.velocity+this._naturalFrequency*e,r=(e+i*n)*s,this.velocity=r*-this._naturalFrequency+i*s;else if(this._dampingRatio<1){i=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const o=Math.cos(this._dampedFrequency*n),l=Math.sin(this._dampedFrequency*n);r=s*(e*o+i*l),this.velocity=r*-this._naturalFrequency*this._dampingRatio+s*(-this._dampedFrequency*e*l+this._dampedFrequency*i*o)}return r}}class Em{constructor(e){this.props=e,this._raf=0;const{start:n,end:r,velocity:i,onUpdate:s,onComplete:o,onFinish:l=()=>{},dampingRatio:a,naturalFrequency:u}=e;this.onFinish=l;const h=new km(i,a,u);let f=Date.now(),p=n-r;const y=()=>{this._raf&&(p=h.easeFrame(p,Date.now()-f),Math.abs(p)<1&&Math.abs(h.velocity)<50?(s(r),o&&o(),this.onFinish()):(f=Date.now(),s(p+r),this._raf=requestAnimationFrame(y)))};this._raf=requestAnimationFrame(y)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class Cm{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,n){const r=n?new Em(e):new wm(e);return this.activeAnimations.push(r),r.onFinish=()=>this.stop(r),r}stop(e){e.destroy();const n=this.activeAnimations.indexOf(e);n>-1&&this.activeAnimations.splice(n,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isPan?(e.destroy(),!1):!0)}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isMainScroll?(e.destroy(),!1):!0)}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}}class Pm{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:n}=this.pswp;let{deltaX:r,deltaY:i}=e;if(n&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(n.isZoomable()){let s=-i;e.deltaMode===1?s*=.05:s*=e.deltaMode?1:.002,s=2**s;const o=n.currZoomLevel*s;n.zoomTo(o,{x:e.clientX,y:e.clientY})}}else n.isPannable()&&(e.deltaMode===1&&(r*=18,i*=18),n.panTo(n.pan.x-r,n.pan.y-i))}}function Nm(t){if(typeof t=="string")return t;if(!t||!t.isCustomSVG)return"";const e=t;let n='",n}class Lm{constructor(e,n){var r;const i=n.name||n.className;let s=n.html;if(e.options[i]===!1)return;typeof e.options[i+"SVG"]=="string"&&(s=e.options[i+"SVG"]),e.dispatch("uiElementCreate",{data:n});let o="";n.isButton?(o+="pswp__button ",o+=n.className||`pswp__button--${n.name}`):o+=n.className||`pswp__${n.name}`;let l=n.isButton?n.tagName||"button":n.tagName||"div";l=l.toLowerCase();const a=je(o,l);if(n.isButton){l==="button"&&(a.type="button");let{title:f}=n;const{ariaLabel:p}=n;typeof e.options[i+"Title"]=="string"&&(f=e.options[i+"Title"]),f&&(a.title=f);const y=p||f;y&&a.setAttribute("aria-label",y)}a.innerHTML=Nm(s),n.onInit&&n.onInit(a,e),n.onClick&&(a.onclick=f=>{typeof n.onClick=="string"?e[n.onClick]():typeof n.onClick=="function"&&n.onClick(f,a,e)});const u=n.appendTo||"bar";let h=e.element;u==="bar"?(e.topBar||(e.topBar=je("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),h=e.topBar):(a.classList.add("pswp__hide-on-close"),u==="wrapper"&&(h=e.scrollWrap)),(r=h)===null||r===void 0||r.appendChild(e.applyFilters("uiElement",a,n))}}function Dd(t,e,n){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(n?t.disabled=!(e.currIndex0))})}const jm={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:Dd},Tm={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,e)=>{Dd(t,e,!0)}},Im={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-close"},onClick:"close"},zm={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Mm={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let n,r=null;const i=(l,a)=>{t.classList.toggle("pswp__preloader--"+l,a)},s=l=>{n!==l&&(n=l,i("active",l))},o=()=>{var l;if(!((l=e.currSlide)!==null&&l!==void 0&&l.content.isLoading())){s(!1),r&&(clearTimeout(r),r=null);return}r||(r=setTimeout(()=>{var a;s(!!(!((a=e.currSlide)===null||a===void 0)&&a.content.isLoading())),r=null},e.options.preloaderDelay))};e.on("change",o),e.on("loadComplete",l=>{e.currSlide===l.slide&&o()}),e.ui&&(e.ui.updatePreloaderVisibility=o)}},Am={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function Xa(t,e){t.classList.toggle("pswp--zoomed-in",e)}class Dm{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[Im,jm,Tm,zm,Mm,Am],e.dispatch("uiRegister"),this.uiElementsData.sort((n,r)=>(n.order||0)-(r.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(n=>{this.registerElement(n)}),e.on("change",()=>{var n;(n=e.element)===null||n===void 0||n.classList.toggle("pswp--one-slide",e.getNumItems()===1)}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new Lm(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:n,options:r}=this.pswp;if(this.pswp.opener.isClosing||!e||!n)return;let{currZoomLevel:i}=n;if(this.pswp.opener.isOpen||(i=n.zoomLevels.initial),i===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=i;const s=n.zoomLevels.initial-n.zoomLevels.secondary;if(Math.abs(s)<.01||!n.isZoomable()){Xa(e,!1),e.classList.remove("pswp--zoom-allowed");return}e.classList.add("pswp--zoom-allowed");const o=i===n.zoomLevels.initial?n.zoomLevels.secondary:n.zoomLevels.initial;Xa(e,o<=i),(r.imageClickAction==="zoom"||r.imageClickAction==="zoom-or-close")&&e.classList.add("pswp--click-to-zoom")}}function Om(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}function Rm(t,e,n){const r=t.getBoundingClientRect(),i=r.width/e,s=r.height/n,o=i>s?i:s,l=(r.width-e*o)/2,a=(r.height-n*o)/2,u={x:r.left+l,y:r.top+a,w:e*o};return u.innerRect={w:r.width,h:r.height,x:l,y:a},u}function Fm(t,e,n){const r=n.dispatch("thumbBounds",{index:t,itemData:e,instance:n});if(r.thumbBounds)return r.thumbBounds;const{element:i}=e;let s,o;if(i&&n.options.thumbSelector!==!1){const l=n.options.thumbSelector||"img";o=i.matches(l)?i:i.querySelector(l)}return o=n.applyFilters("thumbEl",o,e,t),o&&(e.thumbCropped?s=Rm(o,e.width||e.w||0,e.height||e.h||0):s=Om(o)),n.applyFilters("thumbBounds",s,e,t)}class $m{constructor(e,n){this.type=e,this.defaultPrevented=!1,n&&Object.assign(this,n)}preventDefault(){this.defaultPrevented=!0}}class bm{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,n,r=100){var i,s,o;this._filters[e]||(this._filters[e]=[]),(i=this._filters[e])===null||i===void 0||i.push({fn:n,priority:r}),(s=this._filters[e])===null||s===void 0||s.sort((l,a)=>l.priority-a.priority),(o=this.pswp)===null||o===void 0||o.addFilter(e,n,r)}removeFilter(e,n){this._filters[e]&&(this._filters[e]=this._filters[e].filter(r=>r.fn!==n)),this.pswp&&this.pswp.removeFilter(e,n)}applyFilters(e,...n){var r;return(r=this._filters[e])===null||r===void 0||r.forEach(i=>{n[0]=i.fn.apply(this,n)}),n[0]}on(e,n){var r,i;this._listeners[e]||(this._listeners[e]=[]),(r=this._listeners[e])===null||r===void 0||r.push(n),(i=this.pswp)===null||i===void 0||i.on(e,n)}off(e,n){var r;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(i=>n!==i)),(r=this.pswp)===null||r===void 0||r.off(e,n)}dispatch(e,n){var r;if(this.pswp)return this.pswp.dispatch(e,n);const i=new $m(e,n);return(r=this._listeners[e])===null||r===void 0||r.forEach(s=>{s.call(this,i)}),i}}class Bm{constructor(e,n){if(this.element=je("pswp__img pswp__img--placeholder",e?"img":"div",n),e){const r=this.element;r.decoding="async",r.alt="",r.src=e,r.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,n){this.element&&(this.element.tagName==="IMG"?(Co(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Cr(0,0,e/250)):Co(this.element,e,n))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}}class Um{constructor(e,n,r){this.instance=n,this.data=e,this.index=r,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=De.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,n){if(this.slide&&this.usePlaceholder())if(this.placeholder){const r=this.placeholder.element;r&&!r.parentElement&&this.slide.container.prepend(r)}else{const r=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new Bm(r,this.slide.container)}this.element&&!n||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=je("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=je("pswp__content","div"),this.element.innerHTML=this.data.html||""),n&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var n,r;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=(n=this.data.src)!==null&&n!==void 0?n:"",i.alt=(r=this.data.alt)!==null&&r!==void 0?r:"",this.state=De.LOADING,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=De.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===De.LOADED||this.state===De.ERROR)&&this.removePlaceholder())}onError(){this.state=De.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===De.LOADING,this)}isError(){return this.state===De.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,n){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,n),!this.instance.dispatch("contentResize",{content:this,width:e,height:n}).defaultPrevented&&(Co(this.element,e,n),this.isImageContent()&&!this.isError()))){const r=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=n,r?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:n,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==De.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,n=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||n>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=n+"px",e.dataset.largestUsedSize=String(n))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,n;let r=je("pswp__error-msg","div");r.innerText=(e=(n=this.instance.options)===null||n===void 0?void 0:n.errorMsg)!==null&&e!==void 0?e:"",r=this.instance.applyFilters("contentErrorElement",r,this),this.element=je("pswp__content pswp__error-msg-container","div"),this.element.appendChild(r),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===De.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Za())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Za()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===De.LOADED||this.state===De.ERROR)&&this.removePlaceholder()))}}const Hm=5;function Od(t,e,n){const r=e.createContentFromData(t,n);let i;const{options:s}=e;if(s){i=new Ad(s,t,-1);let o;e.pswp?o=e.pswp.viewportSize:o=zd(s,e);const l=Md(s,o,t,n);i.update(r.width,r.height,l)}return r.lazyLoad(),i&&r.setDisplayedSize(Math.ceil(r.width*i.initial),Math.ceil(r.height*i.initial)),r}function Zm(t,e){const n=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:n}).defaultPrevented)return Od(n,e,t)}class Wm{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,Hm),this._cachedItems=[]}updateLazy(e){const{pswp:n}=this;if(n.dispatch("lazyLoad").defaultPrevented)return;const{preload:r}=n.options,i=e===void 0?!0:e>=0;let s;for(s=0;s<=r[1];s++)this.loadSlideByIndex(n.currIndex+(i?s:-s));for(s=1;s<=r[0];s++)this.loadSlideByIndex(n.currIndex+(i?-s:s))}loadSlideByIndex(e){const n=this.pswp.getLoopedIndex(e);let r=this.getContentByIndex(n);r||(r=Zm(n,this.pswp),r&&this.addToCache(r))}getContentBySlide(e){let n=this.getContentByIndex(e.index);return n||(n=this.pswp.createContentFromData(e.data,e.index),this.addToCache(n)),n.setSlide(e),n}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const n=this._cachedItems.findIndex(r=>!r.isAttached&&!r.hasSlide);n!==-1&&this._cachedItems.splice(n,1)[0].destroy()}}removeByIndex(e){const n=this._cachedItems.findIndex(r=>r.index===e);n!==-1&&this._cachedItems.splice(n,1)}getContentByIndex(e){return this._cachedItems.find(n=>n.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}}class Vm extends bm{getNumItems(){var e;let n=0;const r=(e=this.options)===null||e===void 0?void 0:e.dataSource;r&&"length"in r?n=r.length:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),r.items&&(n=r.items.length));const i=this.dispatch("numItems",{dataSource:r,numItems:n});return this.applyFilters("numItems",i.numItems,r)}createContentFromData(e,n){return new Um(e,this,n)}getItemData(e){var n;const r=(n=this.options)===null||n===void 0?void 0:n.dataSource;let i={};Array.isArray(r)?i=r[e]:r&&"gallery"in r&&(r.items||(r.items=this._getGalleryDOMElements(r.gallery)),i=r.items[e]);let s=i;s instanceof Element&&(s=this._domElementToItemData(s));const o=this.dispatch("itemData",{itemData:s||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var n,r;return(n=this.options)!==null&&n!==void 0&&n.children||(r=this.options)!==null&&r!==void 0&&r.childSelector?Jp(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const n={element:e},r=e.tagName==="A"?e:e.querySelector("a");if(r){n.src=r.dataset.pswpSrc||r.href,r.dataset.pswpSrcset&&(n.srcset=r.dataset.pswpSrcset),n.width=r.dataset.pswpWidth?parseInt(r.dataset.pswpWidth,10):0,n.height=r.dataset.pswpHeight?parseInt(r.dataset.pswpHeight,10):0,n.w=n.width,n.h=n.height,r.dataset.pswpType&&(n.type=r.dataset.pswpType);const s=e.querySelector("img");if(s){var i;n.msrc=s.currentSrc||s.src,n.alt=(i=s.getAttribute("alt"))!==null&&i!==void 0?i:""}(r.dataset.pswpCropped||r.dataset.cropped)&&(n.thumbCropped=!0)}return this.applyFilters("domItemData",n,e,r)}lazyLoadData(e,n){return Od(e,this,n)}}const Zn=.003;class Qm{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,n=this.pswp.currSlide,{options:r}=e;if(r.showHideAnimationType==="fade"?(r.showHideOpacity=!0,this._thumbBounds=void 0):r.showHideAnimationType==="none"?(r.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=n==null?void 0:n.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&(n==null?void 0:n.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&n&&(n.zoomAndPanToInitial(),n.applyCurrentZoomPan());else{var i;this._animateRootOpacity=(i=r.showHideOpacity)!==null&&i!==void 0?i:!1}if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>Zn,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation){this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,this.isOpening&&(e.element&&(e.element.style.opacity=String(Zn)),e.applyBgOpacity(1));return}if(this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect){var s;this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=(s=this.pswp.currSlide)===null||s===void 0?void 0:s.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")}else this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(Zn)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(Zn)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(Zn)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&e.mainScroll.x!==0&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&this._placeholder.tagName==="IMG"?new Promise(e=>{let n=!1,r=!0;Yp(this._placeholder).finally(()=>{n=!0,r||e(!0)}),setTimeout(()=>{r=!1,n&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,n;(e=this.pswp.element)===null||e===void 0||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),(n=this.pswp.element)===null||n===void 0||n.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var n;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),(n=e.currSlide)===null||n===void 0||n.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:n}=this,{innerRect:r}=this._thumbBounds,{currSlide:i,viewportSize:s}=n;if(this._croppedZoom&&r&&this._cropContainer1&&this._cropContainer2){const o=-s.x+(this._thumbBounds.x-r.x)+r.w,l=-s.y+(this._thumbBounds.y-r.y)+r.h,a=s.x-r.w,u=s.y-r.h;e?(this._animateTo(this._cropContainer1,"transform",Cr(o,l)),this._animateTo(this._cropContainer2,"transform",Cr(a,u))):(Wt(this._cropContainer1,o,l),Wt(this._cropContainer2,a,u))}i&&(ee(i.pan,r||this._thumbBounds),i.currZoomLevel=this._thumbBounds.w/i.width,e?this._animateTo(i.container,"transform",i.getCurrentTransform()):i.applyCurrentZoomPan())}_animateTo(e,n,r){if(!this._duration){e.style[n]=r;return}const{animations:i}=this.pswp,s={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{i.activeAnimations.length||this._onAnimationComplete()},target:e};s[n]=r,i.startTransition(s)}}const Km={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class Gm extends Vm{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new em,this.animations=new Cm,this.mainScroll=new gm(this),this.gestures=new pm(this),this.opener=new Qm(this),this.keyboard=new ym(this),this.contentLoader=new Wm(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new Pm(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:n}=this.mainScroll;n[0]&&(n[0].el.style.display="block",this.setContent(n[0],this.currIndex-1)),n[2]&&(n[2].el.style.display="block",this.setContent(n[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const n=this.getNumItems();return this.options.loop&&(e>n-1&&(e-=n),e<0&&(e+=n)),Mr(e,0,n-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var n;(n=e.slide)===null||n===void 0||n.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var n;(n=this.currSlide)===null||n===void 0||n.zoomTo(...e)}toggleZoom(){var e;(e=this.currSlide)===null||e===void 0||e.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying){this.options.showHideAnimationType="none",this.close();return}this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),(e=this.element)===null||e===void 0||e.remove(),this.mainScroll.itemHolders.forEach(n=>{var r;(r=n.slide)===null||r===void 0||r.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((n,r)=>{var i,s;let o=((i=(s=this.currSlide)===null||s===void 0?void 0:s.index)!==null&&i!==void 0?i:0)-1+r;if(this.canLoop()&&(o=this.getLoopedIndex(o)),o===e&&(this.setContent(n,e,!0),r===1)){var l;this.currSlide=n.slide,(l=n.slide)===null||l===void 0||l.setIsActive(!0)}}),this.dispatch("change")}setContent(e,n,r){if(this.canLoop()&&(n=this.getLoopedIndex(n)),e.slide){if(e.slide.index===n&&!r)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(n<0||n>=this.getNumItems()))return;const i=this.getItemData(n);e.slide=new nm(i,n,this),n===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const n=zd(this.options,this);!e&&or(n,this._prevViewportSize)||(ee(this._prevViewportSize,n),this.dispatch("beforeResize"),ee(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){if(!this.hasMouse){var e;this.hasMouse=!0,(e=this.element)===null||e===void 0||e.classList.add("pswp--has_mouse")}}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,n){this.offset.x=e,this.offset.y=n,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=je("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=je("pswp__bg","div",this.element),this.scrollWrap=je("pswp__scroll-wrap","section",this.element),this.container=je("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new Dm(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return Fm(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...Km,...e}}}var Rd={exports:{}},Xm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ym=Xm,qm=Ym;function Fd(){}function $d(){}$d.resetWarningCache=Fd;var Jm=function(){function t(r,i,s,o,l,a){if(a!==qm){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:$d,resetWarningCache:Fd};return n.PropTypes=n,n};Rd.exports=Jm();var eg=Rd.exports;const U=zo(eg);function tg(t,e){return t===e?0:t.compareDocumentPosition(e)&2?1:-1}function bd(t){return Object.entries(t).map(([e,n])=>n?`${e}=${n}`:e).join("&")}function Ll(t){return t.split("&").reduce((e,n)=>{const[r,i]=n.split("=");return r&&(e[r]=i),e},{})}function Ya(t){const e=Ll(t);return delete e.gid,delete e.pid,bd(e)}function Wn(){return window.location.hash.substring(1)}function qa(){return`${window.location.pathname}${window.location.search}`}const Ja=t=>{const e=Ll(t);return!!e.gid&&!!e.pid};function ng(t,e){return t!==null?t:e?parseInt(e,10)-1:0}class jl extends Error{constructor(e=""){super(),this.message=` ${e} No valid \`ref\` provided. You should use \`ref\` from render prop of Item component. Example: {({ ref }) =>
}
-`}}const bd=t=>t[0].current instanceof Element,rg=t=>{if(bd(t))return t;throw new Tl},Ud=I.createContext({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{},isRefRegistered:()=>!1});class ig{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var sg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const[u,h]=I.useState(null),f=I.useRef(new Map),p=I.useRef(null),y=I.useCallback((w,P,S,_)=>{if(vt)return;const N=Array.from(f.current);if(typeof S=="number"&&(N[S]===void 0||!bd(N[S])))throw new Tl(`Failed to open at index ${S}`);const{slides:F,index:M}=N.map(rg).sort(([{current:D}],[{current:A}])=>tg(D,A)).reduce((D,A,Z)=>{const[C,T]=A,{width:j,height:b,original:B,originalSrcset:he,thumbnail:rt,cropped:An,content:Ge,id:it}=T,sh=sg(T,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);return(w===C||it!==void 0&&String(it)===P)&&(D.index=Z),D.slides.push(Object.assign(Object.assign(Object.assign({w:Number(j),h:Number(b),src:B,srcset:he,msrc:rt,element:C.current,thumbCropped:An,content:Ge},Ge!==void 0?{type:"html"}:{}),it!==void 0?{pid:it}:{}),sh)),D},{slides:[],index:S||null}),re=_&&_.clientX!==void 0&&_.clientY!==void 0?{x:_.clientX,y:_.clientY}:null,R=new Gm(Object.assign({dataSource:F,index:ng(M,P),initialPointerPos:re},e||{}));vt=R,R.on("contentActivate",({content:D})=>{D.data.content?h(_d.createPortal(D.data.content,D.element)):h(null)}),R.on("close",()=>{h(null)}),a&&R.on("uiRegister",()=>{var D;(D=R.ui)===null||D===void 0||D.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(A,Z)=>{A.setAttribute("download",""),A.setAttribute("target","_blank"),A.setAttribute("rel","noopener"),R.on("change",()=>{var C;if(!(!((C=Z.currSlide)===null||C===void 0)&&C.data.src))return;const T=A;T.href=Z.currSlide.data.src})}})}),l&&R.on("uiRegister",()=>{var D;(D=R.ui)===null||D===void 0||D.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(A,Z)=>{A.style.position="absolute",A.style.bottom="15px",A.style.left="0",A.style.right="0",A.style.padding="0 20px",A.style.color="var(--pswp-icon-color)",A.style.textAlign="center",A.style.fontSize="14px",A.style.lineHeight="1.5",A.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",R.on("change",()=>{if(!Z.currSlide)return;const{caption:C,alt:T}=Z.currSlide.data;A.innerHTML=C||T||""})}})}),Array.isArray(r)&&r.forEach(D=>{R.on("uiRegister",()=>{var A;(A=R.ui)===null||A===void 0||A.registerElement(D)})}),typeof n=="function"&&n(new ig(R)),typeof s=="function"&&s(R);const Ae=()=>({gallery:{galleryUID:i}});R.on("beforeOpen",()=>{var D;if(i===void 0)return;if(!Ja(Wn())){window.history.pushState(Ae(),document.title);return}if(!!(!((D=window.history.state)===null||D===void 0)&&D.gallery))return;const C=qa(),T=Wn(),j=Ya(T),b=`${C}${j?`#${j}`:""}`,B=`${C}#${T}`;window.history.replaceState(window.history.state,document.title,b),window.history.pushState(Ae(),document.title,B)}),R.on("change",()=>{var D;if(i===void 0)return;const A=((D=R.currSlide)===null||D===void 0?void 0:D.data.pid)||R.currIndex+1,Z=qa(),C=Ya(Wn()),T=Bd({gid:i,pid:A}),j=`${Z}#${C}&${T}`;window.history.replaceState(Ae(),document.title,j)});const ie=()=>{i!==void 0&&vt!==null&&vt.close()};window.addEventListener("popstate",ie),R.on("destroy",()=>{i!==void 0&&(window.removeEventListener("popstate",ie),Ja(Wn())&&window.history.back()),vt=null}),R.init(),typeof o=="function"&&o(R)},[e,n,r,i,s,o,l,a]);I.useEffect(()=>()=>{vt&&vt.close()},[]);const v=I.useCallback(()=>{if(i===void 0||vt!==null)return;const w=Wn();if(w.length<5)return;const P=Ll(w),{pid:S,gid:_}=P;if(!(!S||!_)){if(f.current.size===0){p.current=S;return}S&&_===String(i)&&y(null,S)}},[y,i]);I.useEffect(()=>(v(),window.addEventListener("popstate",v),()=>{window.removeEventListener("popstate",v)}),[v]);const x=I.useCallback(w=>{f.current.delete(w)},[]),E=I.useCallback((w,P)=>{if(f.current.set(w,P),p.current===null)return;const{id:S}=P;if(S===p.current){y(w),p.current=null;return}if(!S){const _=parseInt(p.current,10)-1,N=Array.from(f.current.keys())[_];N&&(y(N),p.current=null)}},[y]),m=I.useCallback(w=>f.current.has(w),[]),d=I.useCallback(w=>{y(null,null,w)},[y]),g=I.useMemo(()=>({remove:x,set:E,handleClick:y,open:d,isRefRegistered:m}),[x,E,y,d,m]);return Oo.createElement(Ud.Provider,{value:g},t,u)};Hd.propTypes={children:U.any,options:U.object,plugins:U.func,uiElements:U.array,id:U.oneOfType([U.string,U.number]),onBeforeOpen:U.func,onOpen:U.func,withCaption:U.bool,withDownloadButton:U.bool};const og=()=>I.useContext(Ud);var lg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var{children:e}=t,n=lg(t,["children"]);const r=I.useRef(null),{remove:i,set:s,handleClick:o,isRefRegistered:l}=og(),a=I.useCallback(f=>{r.current=f,s(r,n)},[s,...Object.values(n)]),u=I.useCallback(f=>{if(!l(r))throw new Tl;o(r,null,null,f)},[o,l]),h=I.useMemo(()=>({ref:a,open:u}),[a,u]);return I.useEffect(()=>()=>{r.current===null&&i(r)},[i]),e(h)};Zd.propTypes={children:U.func.isRequired,original:U.string,originalSrcset:U.string,thumbnail:U.string,width:U.oneOfType([U.number,U.string]),height:U.oneOfType([U.number,U.string]),alt:U.string,caption:U.string,content:U.element,html:U.string,id:U.oneOfType([U.number,U.string]),cropped:U.bool};function ag({screenshots:t}){return c.jsxs("div",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Screenshots"}),c.jsx(Hd,{children:c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:t.map((e,n)=>c.jsx(Zd,{original:e,thumbnail:e,width:1280,height:720,children:({ref:r,open:i})=>c.jsxs("div",{ref:r,onClick:i,className:"aspect-video rounded-lg overflow-hidden bg-muted cursor-pointer group relative",children:[c.jsx("img",{src:e,alt:`Screenshot ${n+1}`,className:"w-full h-full object-cover transition-transform group-hover:scale-105",onError:s=>{const o=s.target;o.style.display="none"}}),c.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:c.jsx("span",{className:"text-white text-sm font-medium",children:"View Fullscreen"})})]})},n))})})]})}const ug={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},eu=t=>{let e;const n=new Set,r=(h,f)=>{const p=typeof h=="function"?h(e):h;if(!Object.is(p,e)){const y=e;e=f??(typeof p!="object"||p===null)?p:Object.assign({},e,p),n.forEach(v=>v(e,y))}},i=()=>e,a={setState:r,getState:i,getInitialState:()=>u,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{(ug?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=e=t(r,i,a);return a},cg=t=>t?eu(t):eu;var Wd={exports:{}},Vd={},Qd={exports:{}},Kd={};/** +`}}const Bd=t=>t[0].current instanceof Element,rg=t=>{if(Bd(t))return t;throw new jl},Ud=I.createContext({remove:()=>{},set:()=>{},handleClick:()=>{},open:()=>{},isRefRegistered:()=>!1});class ig{constructor(e){this.pswp=e,this.on=e.on.bind(e),this.off=e.off.bind(e),this.dispatch=e.dispatch.bind(e)}}var sg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const[u,h]=I.useState(null),f=I.useRef(new Map),p=I.useRef(null),y=I.useCallback((w,P,S,_)=>{if(vt)return;const N=Array.from(f.current);if(typeof S=="number"&&(N[S]===void 0||!Bd(N[S])))throw new jl(`Failed to open at index ${S}`);const{slides:F,index:M}=N.map(rg).sort(([{current:D}],[{current:A}])=>tg(D,A)).reduce((D,A,Z)=>{const[C,j]=A,{width:T,height:B,original:b,originalSrcset:he,thumbnail:rt,cropped:An,content:Ge,id:it}=j,sh=sg(j,["width","height","original","originalSrcset","thumbnail","cropped","content","id"]);return(w===C||it!==void 0&&String(it)===P)&&(D.index=Z),D.slides.push(Object.assign(Object.assign(Object.assign({w:Number(T),h:Number(B),src:b,srcset:he,msrc:rt,element:C.current,thumbCropped:An,content:Ge},Ge!==void 0?{type:"html"}:{}),it!==void 0?{pid:it}:{}),sh)),D},{slides:[],index:S||null}),re=_&&_.clientX!==void 0&&_.clientY!==void 0?{x:_.clientX,y:_.clientY}:null,R=new Gm(Object.assign({dataSource:F,index:ng(M,P),initialPointerPos:re},e||{}));vt=R,R.on("contentActivate",({content:D})=>{D.data.content?h(_d.createPortal(D.data.content,D.element)):h(null)}),R.on("close",()=>{h(null)}),a&&R.on("uiRegister",()=>{var D;(D=R.ui)===null||D===void 0||D.registerElement({name:"download-button",ariaLabel:"Download",order:8,isButton:!0,tagName:"a",appendTo:"bar",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:(A,Z)=>{A.setAttribute("download",""),A.setAttribute("target","_blank"),A.setAttribute("rel","noopener"),R.on("change",()=>{var C;if(!(!((C=Z.currSlide)===null||C===void 0)&&C.data.src))return;const j=A;j.href=Z.currSlide.data.src})}})}),l&&R.on("uiRegister",()=>{var D;(D=R.ui)===null||D===void 0||D.registerElement({name:"default-caption",order:9,isButton:!1,appendTo:"root",onInit:(A,Z)=>{A.style.position="absolute",A.style.bottom="15px",A.style.left="0",A.style.right="0",A.style.padding="0 20px",A.style.color="var(--pswp-icon-color)",A.style.textAlign="center",A.style.fontSize="14px",A.style.lineHeight="1.5",A.style.textShadow="1px 1px 3px var(--pswp-icon-color-secondary)",R.on("change",()=>{if(!Z.currSlide)return;const{caption:C,alt:j}=Z.currSlide.data;A.innerHTML=C||j||""})}})}),Array.isArray(r)&&r.forEach(D=>{R.on("uiRegister",()=>{var A;(A=R.ui)===null||A===void 0||A.registerElement(D)})}),typeof n=="function"&&n(new ig(R)),typeof s=="function"&&s(R);const Ae=()=>({gallery:{galleryUID:i}});R.on("beforeOpen",()=>{var D;if(i===void 0)return;if(!Ja(Wn())){window.history.pushState(Ae(),document.title);return}if(!!(!((D=window.history.state)===null||D===void 0)&&D.gallery))return;const C=qa(),j=Wn(),T=Ya(j),B=`${C}${T?`#${T}`:""}`,b=`${C}#${j}`;window.history.replaceState(window.history.state,document.title,B),window.history.pushState(Ae(),document.title,b)}),R.on("change",()=>{var D;if(i===void 0)return;const A=((D=R.currSlide)===null||D===void 0?void 0:D.data.pid)||R.currIndex+1,Z=qa(),C=Ya(Wn()),j=bd({gid:i,pid:A}),T=`${Z}#${C}&${j}`;window.history.replaceState(Ae(),document.title,T)});const ie=()=>{i!==void 0&&vt!==null&&vt.close()};window.addEventListener("popstate",ie),R.on("destroy",()=>{i!==void 0&&(window.removeEventListener("popstate",ie),Ja(Wn())&&window.history.back()),vt=null}),R.init(),typeof o=="function"&&o(R)},[e,n,r,i,s,o,l,a]);I.useEffect(()=>()=>{vt&&vt.close()},[]);const v=I.useCallback(()=>{if(i===void 0||vt!==null)return;const w=Wn();if(w.length<5)return;const P=Ll(w),{pid:S,gid:_}=P;if(!(!S||!_)){if(f.current.size===0){p.current=S;return}S&&_===String(i)&&y(null,S)}},[y,i]);I.useEffect(()=>(v(),window.addEventListener("popstate",v),()=>{window.removeEventListener("popstate",v)}),[v]);const x=I.useCallback(w=>{f.current.delete(w)},[]),E=I.useCallback((w,P)=>{if(f.current.set(w,P),p.current===null)return;const{id:S}=P;if(S===p.current){y(w),p.current=null;return}if(!S){const _=parseInt(p.current,10)-1,N=Array.from(f.current.keys())[_];N&&(y(N),p.current=null)}},[y]),m=I.useCallback(w=>f.current.has(w),[]),d=I.useCallback(w=>{y(null,null,w)},[y]),g=I.useMemo(()=>({remove:x,set:E,handleClick:y,open:d,isRefRegistered:m}),[x,E,y,d,m]);return Ro.createElement(Ud.Provider,{value:g},t,u)};Hd.propTypes={children:U.any,options:U.object,plugins:U.func,uiElements:U.array,id:U.oneOfType([U.string,U.number]),onBeforeOpen:U.func,onOpen:U.func,withCaption:U.bool,withDownloadButton:U.bool};const og=()=>I.useContext(Ud);var lg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var{children:e}=t,n=lg(t,["children"]);const r=I.useRef(null),{remove:i,set:s,handleClick:o,isRefRegistered:l}=og(),a=I.useCallback(f=>{r.current=f,s(r,n)},[s,...Object.values(n)]),u=I.useCallback(f=>{if(!l(r))throw new jl;o(r,null,null,f)},[o,l]),h=I.useMemo(()=>({ref:a,open:u}),[a,u]);return I.useEffect(()=>()=>{r.current===null&&i(r)},[i]),e(h)};Zd.propTypes={children:U.func.isRequired,original:U.string,originalSrcset:U.string,thumbnail:U.string,width:U.oneOfType([U.number,U.string]),height:U.oneOfType([U.number,U.string]),alt:U.string,caption:U.string,content:U.element,html:U.string,id:U.oneOfType([U.number,U.string]),cropped:U.bool};function ag({screenshots:t}){return c.jsxs("div",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Screenshots"}),c.jsx(Hd,{children:c.jsx("div",{className:"grid grid-cols-1 xs:grid-cols-2 md:grid-cols-3 gap-2 sm:gap-4",children:t.map((e,n)=>c.jsx(Zd,{original:e,thumbnail:e,width:1280,height:720,children:({ref:r,open:i})=>c.jsxs("div",{ref:r,onClick:i,className:"aspect-video rounded-lg overflow-hidden bg-muted cursor-pointer group relative",children:[c.jsx("img",{src:e,alt:`Screenshot ${n+1}`,className:"w-full h-full object-cover transition-transform group-hover:scale-105",onError:s=>{const o=s.target;o.style.display="none"}}),c.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:c.jsx("span",{className:"text-white text-xs sm:text-sm font-medium",children:"View Fullscreen"})})]})},n))})})]})}const ug={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},eu=t=>{let e;const n=new Set,r=(h,f)=>{const p=typeof h=="function"?h(e):h;if(!Object.is(p,e)){const y=e;e=f??(typeof p!="object"||p===null)?p:Object.assign({},e,p),n.forEach(v=>v(e,y))}},i=()=>e,a={setState:r,getState:i,getInitialState:()=>u,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{(ug?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=e=t(r,i,a);return a},cg=t=>t?eu(t):eu;var Wd={exports:{}},Vd={},Qd={exports:{}},Kd={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -164,7 +164,7 @@ Error generating stack: `+s.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Tn=I;function dg(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var hg=typeof Object.is=="function"?Object.is:dg,fg=Tn.useState,pg=Tn.useEffect,mg=Tn.useLayoutEffect,gg=Tn.useDebugValue;function vg(t,e){var n=e(),r=fg({inst:{value:n,getSnapshot:e}}),i=r[0].inst,s=r[1];return mg(function(){i.value=n,i.getSnapshot=e,Ns(i)&&s({inst:i})},[t,n,e]),pg(function(){return Ns(i)&&s({inst:i}),t(function(){Ns(i)&&s({inst:i})})},[t]),gg(n),n}function Ns(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!hg(t,n)}catch{return!0}}function yg(t,e){return e()}var xg=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?yg:vg;Kd.useSyncExternalStore=Tn.useSyncExternalStore!==void 0?Tn.useSyncExternalStore:xg;Qd.exports=Kd;var wg=Qd.exports;/** + */var jn=I;function dg(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var hg=typeof Object.is=="function"?Object.is:dg,fg=jn.useState,pg=jn.useEffect,mg=jn.useLayoutEffect,gg=jn.useDebugValue;function vg(t,e){var n=e(),r=fg({inst:{value:n,getSnapshot:e}}),i=r[0].inst,s=r[1];return mg(function(){i.value=n,i.getSnapshot=e,Ls(i)&&s({inst:i})},[t,n,e]),pg(function(){return Ls(i)&&s({inst:i}),t(function(){Ls(i)&&s({inst:i})})},[t]),gg(n),n}function Ls(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!hg(t,n)}catch{return!0}}function yg(t,e){return e()}var xg=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?yg:vg;Kd.useSyncExternalStore=jn.useSyncExternalStore!==void 0?jn.useSyncExternalStore:xg;Qd.exports=Kd;var wg=Qd.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -172,20 +172,20 @@ Error generating stack: `+s.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var es=I,Sg=wg;function _g(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var kg=typeof Object.is=="function"?Object.is:_g,Eg=Sg.useSyncExternalStore,Cg=es.useRef,Pg=es.useEffect,Ng=es.useMemo,Lg=es.useDebugValue;Vd.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=Cg(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=Ng(function(){function a(y){if(!u){if(u=!0,h=y,y=r(y),i!==void 0&&o.hasValue){var v=o.value;if(i(v,y))return f=v}return f=y}if(v=f,kg(h,y))return v;var x=r(y);return i!==void 0&&i(v,x)?v:(h=y,f=x)}var u=!1,h,f,p=n===void 0?null:n;return[function(){return a(e())},p===null?void 0:function(){return a(p())}]},[e,n,r,i]);var l=Eg(t,s[0],s[1]);return Pg(function(){o.hasValue=!0,o.value=l},[l]),Lg(l),l};Wd.exports=Vd;var Tg=Wd.exports;const jg=Io(Tg),Gd={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:Ig}=Oo,{useSyncExternalStoreWithSelector:zg}=jg;let tu=!1;const Mg=t=>t;function Ag(t,e=Mg,n){(Gd?"production":void 0)!=="production"&&n&&!tu&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),tu=!0);const r=zg(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return Ig(r),r}const Dg=t=>{(Gd?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?cg(t):t,n=(r,i)=>Ag(e,r,i);return Object.assign(n,e),n},Og=t=>Dg,Rg={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Fg(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var s;const o=a=>a===null?null:JSON.parse(a,void 0),l=(s=n.getItem(i))!=null?s:null;return l instanceof Promise?l.then(o):o(l)},setItem:(i,s)=>n.setItem(i,JSON.stringify(s,void 0)),removeItem:i=>n.removeItem(i)}}const Pr=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return Pr(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Pr(r)(n)}}}},$g=(t,e)=>(n,r,i)=>{let s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:E=>E,version:0,merge:(E,m)=>({...m,...E}),...e},o=!1;const l=new Set,a=new Set;let u;try{u=s.getStorage()}catch{}if(!u)return t((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...E)},r,i);const h=Pr(s.serialize),f=()=>{const E=s.partialize({...r()});let m;const d=h({state:E,version:s.version}).then(g=>u.setItem(s.name,g)).catch(g=>{m=g});if(m)throw m;return d},p=i.setState;i.setState=(E,m)=>{p(E,m),f()};const y=t((...E)=>{n(...E),f()},r,i);let v;const x=()=>{var E;if(!u)return;o=!1,l.forEach(d=>d(r()));const m=((E=s.onRehydrateStorage)==null?void 0:E.call(s,r()))||void 0;return Pr(u.getItem.bind(u))(s.name).then(d=>{if(d)return s.deserialize(d)}).then(d=>{if(d)if(typeof d.version=="number"&&d.version!==s.version){if(s.migrate)return s.migrate(d.state,d.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return d.state}).then(d=>{var g;return v=s.merge(d,(g=r())!=null?g:y),n(v,!0),f()}).then(()=>{m==null||m(v,void 0),o=!0,a.forEach(d=>d(v))}).catch(d=>{m==null||m(void 0,d)})};return i.persist={setOptions:E=>{s={...s,...E},E.getStorage&&(u=E.getStorage())},clearStorage:()=>{u==null||u.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>x(),hasHydrated:()=>o,onHydrate:E=>(l.add(E),()=>{l.delete(E)}),onFinishHydration:E=>(a.add(E),()=>{a.delete(E)})},x(),v||y},Bg=(t,e)=>(n,r,i)=>{let s={storage:Fg(()=>localStorage),partialize:x=>x,version:0,merge:(x,E)=>({...E,...x}),...e},o=!1;const l=new Set,a=new Set;let u=s.storage;if(!u)return t((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...x)},r,i);const h=()=>{const x=s.partialize({...r()});return u.setItem(s.name,{state:x,version:s.version})},f=i.setState;i.setState=(x,E)=>{f(x,E),h()};const p=t((...x)=>{n(...x),h()},r,i);i.getInitialState=()=>p;let y;const v=()=>{var x,E;if(!u)return;o=!1,l.forEach(d=>{var g;return d((g=r())!=null?g:p)});const m=((E=s.onRehydrateStorage)==null?void 0:E.call(s,(x=r())!=null?x:p))||void 0;return Pr(u.getItem.bind(u))(s.name).then(d=>{if(d)if(typeof d.version=="number"&&d.version!==s.version){if(s.migrate)return[!0,s.migrate(d.state,d.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,d.state];return[!1,void 0]}).then(d=>{var g;const[w,P]=d;if(y=s.merge(P,(g=r())!=null?g:p),n(y,!0),w)return h()}).then(()=>{m==null||m(y,void 0),y=r(),o=!0,a.forEach(d=>d(y))}).catch(d=>{m==null||m(void 0,d)})};return i.persist={setOptions:x=>{s={...s,...x},x.storage&&(u=x.storage)},clearStorage:()=>{u==null||u.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>v(),hasHydrated:()=>o,onHydrate:x=>(l.add(x),()=>{l.delete(x)}),onFinishHydration:x=>(a.add(x),()=>{a.delete(x)})},s.skipHydration||v(),y||p},bg=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((Rg?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),$g(t,e)):Bg(t,e),Ug=bg,nu={workingContent:"https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.txt",titlesDb:"https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/titles_db.txt"},tn=Og()(Ug(t=>({isDark:window.matchMedia("(prefers-color-scheme: dark)").matches,itemsPerPage:25,lastActiveTab:"base",namePrecision:.7,tidPrecision:.1,showLogs:!0,showVersionHistory:!0,autoRefreshInterval:null,maxDlcDisplay:5,maxUpdateDisplay:5,dataSources:nu,setDarkMode:e=>t({isDark:e}),setItemsPerPage:e=>t({itemsPerPage:e}),setLastActiveTab:e=>t({lastActiveTab:e}),setNamePrecision:e=>t({namePrecision:e}),setTidPrecision:e=>t({tidPrecision:e}),setShowLogs:e=>t({showLogs:e}),setShowVersionHistory:e=>t({showVersionHistory:e}),setAutoRefreshInterval:e=>t({autoRefreshInterval:e}),setMaxDlcDisplay:e=>t({maxDlcDisplay:e}),setMaxUpdateDisplay:e=>t({maxUpdateDisplay:e}),setDataSource:(e,n)=>t(r=>({dataSources:{...r.dataSources,[e]:n}})),resetDataSources:()=>t({dataSources:nu})}),{name:"nx-working-preferences",version:4,migrate:(t,e)=>e<4?{...t,tidPrecision:.1,namePrecision:.7,showLogs:!0}:t}));function ru({items:t,maxVisible:e=5,type:n}){const[r,i]=I.useState(!1),s=r?t:t.slice(0,e),o=t.length>e;return c.jsxs("div",{className:"space-y-3",children:[s.map(l=>c.jsxs("div",{className:"text-sm",children:[c.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:l.id}),l.name&&c.jsx("p",{className:"text-sm",children:l.name}),l.version&&n==="update"&&c.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Version ",l.version]}),l.size&&c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Size: ",Nl(l.size)]})]},l.uniqueId)),o&&c.jsx("button",{onClick:()=>i(!r),className:"text-xs text-primary hover:text-primary/80 transition-colors",children:r?"Show Less":`Show ${t.length-e} More`})]})}function Hg({content:t,onClose:e}){const{base:n,updates:r,dlcs:i}=t,{maxDlcDisplay:s,maxUpdateDisplay:o}=tn();if(!n)return null;const l=Qp(n.id);return c.jsxs("div",{className:"p-6 space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-xl font-bold",children:"Content Details"}),c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsxs("a",{href:`https://stats.ghostland.at/${n.id}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-2 px-3 py-1.5 rounded-lg bg-primary/10 text-primary hover:bg-primary/20 transition-colors",children:[c.jsx(Hp,{className:"h-4 w-4"}),c.jsx("span",{children:"View Stats"})]}),c.jsx("button",{onClick:e,className:"p-2 hover:bg-muted rounded-full transition-colors","aria-label":"Close details",children:c.jsx(Er,{className:"h-5 w-5"})})]})]}),c.jsx("div",{className:"relative aspect-video rounded-lg overflow-hidden bg-muted",children:c.jsx("img",{src:l.banner,alt:"Game Banner",className:"w-full h-full object-cover",onError:a=>{const u=a.target;u.style.display="none"}})}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[c.jsxs("div",{className:"bg-card border border-border p-4 rounded-lg",children:[c.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[c.jsx("img",{src:l.icon,alt:"Game Icon",className:"w-12 h-12 rounded",onError:a=>{const u=a.target;u.style.display="none"}}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium",children:"Base Game"}),c.jsx("p",{className:"text-xs text-muted-foreground font-mono",children:n.id})]})]}),n.name&&c.jsx("p",{className:"text-sm mb-2",children:n.name}),n.size&&c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Size: ",Nl(n.size)]}),n.releaseDate&&c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Released: ",Ld(n.releaseDate)]})]}),r.length>0&&c.jsxs("div",{className:"bg-card border border-border p-4 rounded-lg",children:[c.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[c.jsx(Ed,{className:"h-5 w-5 text-blue-500"}),c.jsxs("h3",{className:"text-sm font-medium",children:["Updates (",r.length,")"]})]}),c.jsx(ru,{items:r,maxVisible:o,type:"update"})]}),i.length>0&&c.jsxs("div",{className:"bg-card border border-border p-4 rounded-lg",children:[c.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[c.jsx(Pd,{className:"h-5 w-5 text-purple-500"}),c.jsxs("h3",{className:"text-sm font-medium",children:["DLCs (",i.length,")"]})]}),c.jsx(ru,{items:i,maxVisible:s,type:"dlc"})]})]}),c.jsx(ag,{screenshots:l.screenshots})]})}function Zg({currentPage:t,totalPages:e,onPageChange:n}){const{itemsPerPage:r,setItemsPerPage:i}=tn(),s=5,o=Math.floor(s/2);let l=Math.max(t-o,1),a=Math.min(l+s-1,e);a-l+1l+f);return c.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-card border-t border-border",children:[c.jsxs("div",{className:"flex items-center text-sm",children:[c.jsxs("select",{className:"bg-muted border border-border rounded-lg px-3 py-1.5 mr-2 text-foreground hover:border-primary/50 transition-colors",value:r,onChange:h=>i(Number(h.target.value)),children:[c.jsx("option",{value:10,children:"10 per page"}),c.jsx("option",{value:25,children:"25 per page"}),c.jsx("option",{value:50,children:"50 per page"}),c.jsx("option",{value:100,children:"100 per page"})]}),c.jsxs("span",{className:"text-muted-foreground",children:["Page ",t," of ",e]})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("button",{onClick:()=>n(t-1),disabled:t===1,className:"p-1.5 rounded-lg bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:c.jsx(Bp,{className:"h-5 w-5"})}),l>1&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>n(1),className:"px-3 py-1.5 rounded-lg bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80 transition-colors",children:"1"}),l>2&&c.jsx("span",{className:"text-muted-foreground",children:"..."})]}),u.map(h=>c.jsx("button",{onClick:()=>n(h),className:`px-3 py-1.5 rounded-lg transition-colors ${t===h?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80"}`,children:h},h)),an(e),className:"px-3 py-1.5 rounded-lg bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80 transition-colors",children:e})]}),c.jsx("button",{onClick:()=>n(t+1),disabled:t===e,className:"p-1.5 rounded-lg bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:c.jsx(bp,{className:"h-5 w-5"})})]})]})}function Wg({items:t,allItems:e,currentPage:n,totalPages:r,onPageChange:i,sortField:s,sortDirection:o,onSort:l}){const[a,u]=I.useState(null),h=v=>{const x=Ai(v);u(x)},f=v=>{const x=Ai(v),{updates:E,dlcs:m}=Ha(e,x);return c.jsxs("div",{className:"flex gap-2",children:[E.length>0&&c.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-500/10 text-blue-500",children:[E.length," Update",E.length!==1?"s":""]}),m.length>0&&c.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-purple-500/10 text-purple-500",children:[m.length," DLC",m.length!==1?"s":""]})]})},p=(v,x,E)=>!E||t.every(d=>d.type===E)?c.jsx("th",{className:"px-6 py-3 text-left",children:c.jsxs("button",{onClick:()=>l(v),className:"flex items-center space-x-2 group w-full",children:[c.jsx("span",{className:` - text-xs font-medium uppercase tracking-wider - ${s===v?"text-primary":"text-muted-foreground"} - group-hover:text-primary transition-colors - `,children:x}),c.jsx("span",{className:` - transition-all duration-200 - ${s===v?"opacity-100":"opacity-0 group-hover:opacity-50"} - `,children:s===v&&(o==="asc"?c.jsx(Fp,{className:"h-4 w-4"}):c.jsx(Rp,{className:"h-4 w-4"}))})]})}):null,y=t.length>0&&t[0].type==="base";return c.jsxs("div",{className:"bg-card rounded-lg shadow-lg overflow-hidden border border-border",children:[c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"min-w-full divide-y divide-border",children:[c.jsx("thead",{className:"bg-muted",children:c.jsxs("tr",{children:[c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider w-24",children:"Icon"}),p("id","Title ID"),p("name","Name"),p("size","Size"),y&&p("releaseDate","Release Date","base"),c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Related Content"}),c.jsx("th",{className:"px-6 py-3 text-right"})]})}),c.jsx("tbody",{className:"divide-y divide-border",children:t.map(v=>c.jsxs("tr",{onClick:()=>h(v.id),className:"group hover:bg-muted/50 active:bg-muted transition-colors cursor-pointer",children:[c.jsx("td",{className:"px-6 py-4",children:c.jsx("div",{className:"icon-container transform group-hover:scale-105 transition-transform duration-200",children:c.jsx("img",{src:Kp(v.id),alt:"Game Icon",className:"rounded-lg shadow-sm group-hover:shadow-md transition-shadow",onError:x=>{const E=x.target;E.src='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="3" width="18" height="18" rx="2" ry="2"%3E%3C/rect%3E%3Ccircle cx="8.5" cy="8.5" r="1.5"%3E%3C/circle%3E%3Cpolyline points="21 15 16 10 5 21"%3E%3C/polyline%3E%3C/svg%3E'}})})}),c.jsxs("td",{className:"px-6 py-4 whitespace-nowrap",children:[c.jsx("div",{className:"font-mono text-sm group-hover:text-primary transition-colors",children:v.id}),v.version&&c.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["v",v.version]})]}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsx("div",{className:"text-sm group-hover:text-primary transition-colors",children:v.name||"Unknown Title"})}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsx("div",{className:"text-sm text-muted-foreground",children:Nl(v.size)})}),y&&c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsx("div",{className:"text-sm text-muted-foreground",children:Ld(v.releaseDate)})}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:f(v.id)}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-right",children:c.jsx(Cd,{className:"h-5 w-5 text-primary opacity-0 group-hover:opacity-100 transition-opacity"})})]},v.uniqueId))})]})}),t.length>0?c.jsx(Zg,{currentPage:n,totalPages:r,onPageChange:i}):c.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"No items found"}),a&&c.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center p-4 z-50",children:c.jsx("div",{className:"bg-card rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto border border-border",children:c.jsx(Hg,{content:Ha(e,a),onClose:()=>u(null)})})})]})}function Vg({activeTab:t,onTabChange:e,counts:n}){const r=[{id:"base",name:"Base Games",icon:kd,count:n.base},{id:"update",name:"Updates",icon:Ed,count:n.update},{id:"dlc",name:"DLC",icon:Pd,count:n.dlc}];return c.jsx("div",{className:"bg-card rounded-lg p-1 border border-border",children:c.jsx("nav",{className:"flex space-x-1",children:r.map(({id:i,name:s,icon:o,count:l})=>c.jsxs("button",{onClick:()=>e(i),className:` + */var ts=I,Sg=wg;function _g(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var kg=typeof Object.is=="function"?Object.is:_g,Eg=Sg.useSyncExternalStore,Cg=ts.useRef,Pg=ts.useEffect,Ng=ts.useMemo,Lg=ts.useDebugValue;Vd.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=Cg(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=Ng(function(){function a(y){if(!u){if(u=!0,h=y,y=r(y),i!==void 0&&o.hasValue){var v=o.value;if(i(v,y))return f=v}return f=y}if(v=f,kg(h,y))return v;var x=r(y);return i!==void 0&&i(v,x)?v:(h=y,f=x)}var u=!1,h,f,p=n===void 0?null:n;return[function(){return a(e())},p===null?void 0:function(){return a(p())}]},[e,n,r,i]);var l=Eg(t,s[0],s[1]);return Pg(function(){o.hasValue=!0,o.value=l},[l]),Lg(l),l};Wd.exports=Vd;var jg=Wd.exports;const Tg=zo(jg),Gd={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:Ig}=Ro,{useSyncExternalStoreWithSelector:zg}=Tg;let tu=!1;const Mg=t=>t;function Ag(t,e=Mg,n){(Gd?"production":void 0)!=="production"&&n&&!tu&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),tu=!0);const r=zg(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return Ig(r),r}const Dg=t=>{(Gd?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?cg(t):t,n=(r,i)=>Ag(e,r,i);return Object.assign(n,e),n},Og=t=>Dg,Rg={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Fg(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var s;const o=a=>a===null?null:JSON.parse(a,void 0),l=(s=n.getItem(i))!=null?s:null;return l instanceof Promise?l.then(o):o(l)},setItem:(i,s)=>n.setItem(i,JSON.stringify(s,void 0)),removeItem:i=>n.removeItem(i)}}const Pr=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return Pr(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Pr(r)(n)}}}},$g=(t,e)=>(n,r,i)=>{let s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:E=>E,version:0,merge:(E,m)=>({...m,...E}),...e},o=!1;const l=new Set,a=new Set;let u;try{u=s.getStorage()}catch{}if(!u)return t((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...E)},r,i);const h=Pr(s.serialize),f=()=>{const E=s.partialize({...r()});let m;const d=h({state:E,version:s.version}).then(g=>u.setItem(s.name,g)).catch(g=>{m=g});if(m)throw m;return d},p=i.setState;i.setState=(E,m)=>{p(E,m),f()};const y=t((...E)=>{n(...E),f()},r,i);let v;const x=()=>{var E;if(!u)return;o=!1,l.forEach(d=>d(r()));const m=((E=s.onRehydrateStorage)==null?void 0:E.call(s,r()))||void 0;return Pr(u.getItem.bind(u))(s.name).then(d=>{if(d)return s.deserialize(d)}).then(d=>{if(d)if(typeof d.version=="number"&&d.version!==s.version){if(s.migrate)return s.migrate(d.state,d.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return d.state}).then(d=>{var g;return v=s.merge(d,(g=r())!=null?g:y),n(v,!0),f()}).then(()=>{m==null||m(v,void 0),o=!0,a.forEach(d=>d(v))}).catch(d=>{m==null||m(void 0,d)})};return i.persist={setOptions:E=>{s={...s,...E},E.getStorage&&(u=E.getStorage())},clearStorage:()=>{u==null||u.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>x(),hasHydrated:()=>o,onHydrate:E=>(l.add(E),()=>{l.delete(E)}),onFinishHydration:E=>(a.add(E),()=>{a.delete(E)})},x(),v||y},bg=(t,e)=>(n,r,i)=>{let s={storage:Fg(()=>localStorage),partialize:x=>x,version:0,merge:(x,E)=>({...E,...x}),...e},o=!1;const l=new Set,a=new Set;let u=s.storage;if(!u)return t((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...x)},r,i);const h=()=>{const x=s.partialize({...r()});return u.setItem(s.name,{state:x,version:s.version})},f=i.setState;i.setState=(x,E)=>{f(x,E),h()};const p=t((...x)=>{n(...x),h()},r,i);i.getInitialState=()=>p;let y;const v=()=>{var x,E;if(!u)return;o=!1,l.forEach(d=>{var g;return d((g=r())!=null?g:p)});const m=((E=s.onRehydrateStorage)==null?void 0:E.call(s,(x=r())!=null?x:p))||void 0;return Pr(u.getItem.bind(u))(s.name).then(d=>{if(d)if(typeof d.version=="number"&&d.version!==s.version){if(s.migrate)return[!0,s.migrate(d.state,d.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,d.state];return[!1,void 0]}).then(d=>{var g;const[w,P]=d;if(y=s.merge(P,(g=r())!=null?g:p),n(y,!0),w)return h()}).then(()=>{m==null||m(y,void 0),y=r(),o=!0,a.forEach(d=>d(y))}).catch(d=>{m==null||m(void 0,d)})};return i.persist={setOptions:x=>{s={...s,...x},x.storage&&(u=x.storage)},clearStorage:()=>{u==null||u.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>v(),hasHydrated:()=>o,onHydrate:x=>(l.add(x),()=>{l.delete(x)}),onFinishHydration:x=>(a.add(x),()=>{a.delete(x)})},s.skipHydration||v(),y||p},Bg=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((Rg?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),$g(t,e)):bg(t,e),Ug=Bg,nu={workingContent:"https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.txt",titlesDb:"https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/titles_db.txt"},tn=Og()(Ug(t=>({isDark:window.matchMedia("(prefers-color-scheme: dark)").matches,itemsPerPage:25,lastActiveTab:"base",namePrecision:.7,tidPrecision:.1,showLogs:!0,showVersionHistory:!0,autoRefreshInterval:null,maxDlcDisplay:5,maxUpdateDisplay:5,dataSources:nu,setDarkMode:e=>t({isDark:e}),setItemsPerPage:e=>t({itemsPerPage:e}),setLastActiveTab:e=>t({lastActiveTab:e}),setNamePrecision:e=>t({namePrecision:e}),setTidPrecision:e=>t({tidPrecision:e}),setShowLogs:e=>t({showLogs:e}),setShowVersionHistory:e=>t({showVersionHistory:e}),setAutoRefreshInterval:e=>t({autoRefreshInterval:e}),setMaxDlcDisplay:e=>t({maxDlcDisplay:e}),setMaxUpdateDisplay:e=>t({maxUpdateDisplay:e}),setDataSource:(e,n)=>t(r=>({dataSources:{...r.dataSources,[e]:n}})),resetDataSources:()=>t({dataSources:nu})}),{name:"nx-working-preferences",version:4,migrate:(t,e)=>e<4?{...t,tidPrecision:.1,namePrecision:.7,showLogs:!0}:t}));function ru({items:t,maxVisible:e=5,type:n}){const[r,i]=I.useState(!1),s=r?t:t.slice(0,e),o=t.length>e;return c.jsxs("div",{className:"space-y-3",children:[s.map(l=>c.jsxs("div",{className:"text-sm",children:[c.jsx("p",{className:"font-mono text-xs text-muted-foreground break-all",children:l.id}),l.name&&c.jsx("p",{className:"text-sm break-words",children:l.name}),l.version&&n==="update"&&c.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Version ",l.version]}),l.size&&c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Size: ",Di(l.size)]})]},l.uniqueId)),o&&c.jsx("button",{onClick:()=>i(!r),className:"text-xs text-primary hover:text-primary/80 transition-colors",children:r?"Show Less":`Show ${t.length-e} More`})]})}function Hg({content:t,onClose:e}){const{base:n,updates:r,dlcs:i}=t,{maxDlcDisplay:s,maxUpdateDisplay:o}=tn();if(!n)return null;const l=Qp(n.id);return c.jsxs("div",{className:"p-4 sm:p-6 space-y-4 sm:space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-lg sm:text-xl font-bold line-clamp-1",children:n.name||"Content Details"}),c.jsxs("div",{className:"flex items-center space-x-2 sm:space-x-3",children:[c.jsxs("a",{href:`https://stats.ghostland.at/${n.id}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-1 sm:space-x-2 px-2 sm:px-3 py-1.5 rounded-lg bg-primary/10 text-primary hover:bg-primary/20 transition-colors text-sm",children:[c.jsx(Hp,{className:"h-4 w-4"}),c.jsx("span",{className:"hidden sm:inline",children:"View Stats"})]}),c.jsx("button",{onClick:e,className:"p-2 hover:bg-muted rounded-full transition-colors","aria-label":"Close details",children:c.jsx(Er,{className:"h-5 w-5"})})]})]}),c.jsx("div",{className:"relative aspect-video rounded-lg overflow-hidden bg-muted",children:c.jsx("img",{src:l.banner,alt:"Game Banner",className:"w-full h-full object-cover",onError:a=>{const u=a.target;u.style.display="none"}})}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[c.jsxs("div",{className:"bg-card border border-border p-4 rounded-lg",children:[c.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[c.jsx("img",{src:l.icon,alt:"Game Icon",className:"w-12 h-12 rounded",onError:a=>{const u=a.target;u.style.display="none"}}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium",children:"Base Game"}),c.jsx("p",{className:"text-xs text-muted-foreground font-mono break-all",children:n.id})]})]}),n.name&&c.jsx("p",{className:"text-sm mb-2 break-words",children:n.name}),n.size&&c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Size: ",Di(n.size)]}),n.releaseDate&&c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Released: ",Ld(n.releaseDate)]})]}),r.length>0&&c.jsxs("div",{className:"bg-card border border-border p-4 rounded-lg",children:[c.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[c.jsx(Ed,{className:"h-5 w-5 text-blue-500"}),c.jsxs("h3",{className:"text-sm font-medium",children:["Updates (",r.length,")"]})]}),c.jsx(ru,{items:r,maxVisible:o,type:"update"})]}),i.length>0&&c.jsxs("div",{className:"bg-card border border-border p-4 rounded-lg",children:[c.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[c.jsx(Pd,{className:"h-5 w-5 text-purple-500"}),c.jsxs("h3",{className:"text-sm font-medium",children:["DLCs (",i.length,")"]})]}),c.jsx(ru,{items:i,maxVisible:s,type:"dlc"})]})]}),c.jsx(ag,{screenshots:l.screenshots})]})}function Zg({currentPage:t,totalPages:e,onPageChange:n}){const{itemsPerPage:r,setItemsPerPage:i}=tn(),s=5,o=Math.floor(s/2);let l=Math.max(t-o,1),a=Math.min(l+s-1,e);a-l+1l+f);return c.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-card border-t border-border",children:[c.jsxs("div",{className:"flex items-center text-sm",children:[c.jsxs("select",{className:"bg-muted border border-border rounded-lg px-3 py-1.5 mr-2 text-foreground hover:border-primary/50 transition-colors",value:r,onChange:h=>i(Number(h.target.value)),children:[c.jsx("option",{value:10,children:"10 per page"}),c.jsx("option",{value:25,children:"25 per page"}),c.jsx("option",{value:50,children:"50 per page"}),c.jsx("option",{value:100,children:"100 per page"})]}),c.jsxs("span",{className:"text-muted-foreground",children:["Page ",t," of ",e]})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("button",{onClick:()=>n(t-1),disabled:t===1,className:"p-1.5 rounded-lg bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:c.jsx(bp,{className:"h-5 w-5"})}),l>1&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>n(1),className:"px-3 py-1.5 rounded-lg bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80 transition-colors",children:"1"}),l>2&&c.jsx("span",{className:"text-muted-foreground",children:"..."})]}),u.map(h=>c.jsx("button",{onClick:()=>n(h),className:`px-3 py-1.5 rounded-lg transition-colors ${t===h?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80"}`,children:h},h)),an(e),className:"px-3 py-1.5 rounded-lg bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80 transition-colors",children:e})]}),c.jsx("button",{onClick:()=>n(t+1),disabled:t===e,className:"p-1.5 rounded-lg bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:c.jsx(Bp,{className:"h-5 w-5"})})]})]})}function Wg({items:t,allItems:e,currentPage:n,totalPages:r,onPageChange:i,sortField:s,sortDirection:o,onSort:l}){const[a,u]=I.useState(null),h=v=>{const x=Ai(v);u(x)},f=v=>{const x=Ai(v),{updates:E,dlcs:m}=Ha(e,x);return c.jsxs("div",{className:"flex flex-wrap gap-2",children:[E.length>0&&c.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-500/10 text-blue-500",children:[E.length," Update",E.length!==1?"s":""]}),m.length>0&&c.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-purple-500/10 text-purple-500",children:[m.length," DLC",m.length!==1?"s":""]})]})},p=(v,x,E)=>!E||t.every(d=>d.type===E)?c.jsxs("button",{onClick:()=>l(v),className:"flex items-center space-x-2 group w-full",children:[c.jsx("span",{className:` + text-xs font-medium uppercase tracking-wider + ${s===v?"text-primary":"text-muted-foreground"} + group-hover:text-primary transition-colors + `,children:x}),c.jsx("span",{className:` + transition-all duration-200 + ${s===v?"opacity-100":"opacity-0 group-hover:opacity-50"} + `,children:s===v&&(o==="asc"?c.jsx(Fp,{className:"h-4 w-4"}):c.jsx(Rp,{className:"h-4 w-4"}))})]}):null,y=t.length>0&&t[0].type==="base";return c.jsxs("div",{className:"bg-card rounded-lg shadow-lg overflow-hidden border border-border",children:[c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"min-w-full divide-y divide-border",children:[c.jsx("thead",{className:"bg-muted",children:c.jsxs("tr",{children:[c.jsx("th",{className:"px-3 sm:px-6 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider w-16 sm:w-24",children:"Icon"}),c.jsx("th",{className:"px-3 sm:px-6 py-3 text-left",children:p("id","Title ID")}),c.jsx("th",{className:"px-3 sm:px-6 py-3 text-left",children:p("name","Name")}),c.jsx("th",{className:"hidden sm:table-cell px-3 sm:px-6 py-3 text-left",children:p("size","Size")}),y&&c.jsx("th",{className:"hidden md:table-cell px-3 sm:px-6 py-3 text-left",children:p("releaseDate","Release Date","base")}),c.jsx("th",{className:"hidden sm:table-cell px-3 sm:px-6 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Related Content"}),c.jsx("th",{className:"px-3 sm:px-6 py-3 text-right",children:c.jsx("span",{className:"sr-only",children:"Actions"})})]})}),c.jsx("tbody",{className:"divide-y divide-border",children:t.map(v=>c.jsxs("tr",{onClick:()=>h(v.id),className:"group hover:bg-muted/50 active:bg-muted transition-colors cursor-pointer",children:[c.jsx("td",{className:"px-3 sm:px-6 py-4",children:c.jsx("div",{className:"icon-container transform group-hover:scale-105 transition-transform duration-200",children:c.jsx("img",{src:Kp(v.id),alt:"Game Icon",className:"rounded-lg shadow-sm group-hover:shadow-md transition-shadow",onError:x=>{const E=x.target;E.src='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="3" width="18" height="18" rx="2" ry="2"%3E%3C/rect%3E%3Ccircle cx="8.5" cy="8.5" r="1.5"%3E%3C/circle%3E%3Cpolyline points="21 15 16 10 5 21"%3E%3C/polyline%3E%3C/svg%3E'}})})}),c.jsxs("td",{className:"px-3 sm:px-6 py-4",children:[c.jsx("div",{className:"font-mono text-xs sm:text-sm group-hover:text-primary transition-colors",children:v.id}),v.version&&c.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["v",v.version]})]}),c.jsxs("td",{className:"px-3 sm:px-6 py-4",children:[c.jsx("div",{className:"text-sm group-hover:text-primary transition-colors line-clamp-2 sm:line-clamp-1",children:v.name||"Unknown Title"}),c.jsx("div",{className:"sm:hidden text-xs text-muted-foreground mt-1",children:Di(v.size)})]}),c.jsx("td",{className:"hidden sm:table-cell px-3 sm:px-6 py-4 whitespace-nowrap",children:c.jsx("div",{className:"text-sm text-muted-foreground",children:Di(v.size)})}),y&&c.jsx("td",{className:"hidden md:table-cell px-3 sm:px-6 py-4 whitespace-nowrap",children:c.jsx("div",{className:"text-sm text-muted-foreground",children:Ld(v.releaseDate)})}),c.jsx("td",{className:"hidden sm:table-cell px-3 sm:px-6 py-4",children:f(v.id)}),c.jsx("td",{className:"px-3 sm:px-6 py-4 text-right",children:c.jsx(Cd,{className:"h-5 w-5 text-primary opacity-0 group-hover:opacity-100 transition-opacity"})})]},v.uniqueId))})]})}),t.length>0?c.jsx(Zg,{currentPage:n,totalPages:r,onPageChange:i}):c.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"No items found"}),a&&c.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center p-2 sm:p-4 z-50",children:c.jsx("div",{className:"bg-card rounded-lg shadow-xl w-full max-h-[95vh] overflow-y-auto border border-border sm:max-w-4xl",children:c.jsx(Hg,{content:Ha(e,a),onClose:()=>u(null)})})})]})}function Vg({activeTab:t,onTabChange:e,counts:n}){const r=[{id:"base",name:"Base Games",icon:kd,count:n.base},{id:"update",name:"Updates",icon:Ed,count:n.update},{id:"dlc",name:"DLC",icon:Pd,count:n.dlc}];return c.jsx("div",{className:"bg-card rounded-lg p-1 border border-border",children:c.jsx("nav",{className:"flex space-x-1",children:r.map(({id:i,name:s,icon:o,count:l})=>c.jsxs("button",{onClick:()=>e(i),className:` flex-1 flex items-center justify-center py-3 px-4 rounded-md text-sm font-medium transition-all ${t===i?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground hover:bg-muted/50"} - `,children:[c.jsx(o,{className:"h-5 w-5 mr-2"}),c.jsx("span",{children:s}),c.jsxs("span",{className:"ml-2 text-xs opacity-75",children:["(",l.toLocaleString(),")"]})]},i))})})}class Qg{constructor(){Dn(this,"logs",[]);Dn(this,"maxLogs",1e3)}createEntry(e,n,r){return{timestamp:new Date().toISOString(),level:e,message:n,details:r}}addLog(e){this.logs.unshift(e),this.logs.length>this.maxLogs&&this.logs.pop();const n=`color: ${e.level==="error"?"red":e.level==="warn"?"orange":"blue"}; font-weight: bold;`;console.groupCollapsed(`%c${e.level.toUpperCase()}: ${e.message}`,n),console.log("Timestamp:",e.timestamp),e.details&&console.log("Details:",e.details),console.groupEnd()}info(e,n){this.addLog(this.createEntry("info",e,n))}warn(e,n){this.addLog(this.createEntry("warn",e,n))}error(e,n){this.addLog(this.createEntry("error",e,n))}getLogs(){return[...this.logs]}getErrorLogs(){return this.logs.filter(e=>e.level==="error")}clearLogs(){this.logs=[]}}const Je=new Qg;function Kg({level:t}){switch(t){case"error":return c.jsx(Ji,{className:"h-4 w-4 text-red-500"});case"warn":return c.jsx(Op,{className:"h-4 w-4 text-yellow-500"});default:return c.jsx(Cd,{className:"h-4 w-4 text-blue-500"})}}function Gg(t){try{return c.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs bg-black/10 p-2 rounded",children:JSON.stringify(t,null,2)})}catch{return c.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs bg-black/10 p-2 rounded text-red-500",children:"[Error formatting details]"})}}function Xg({onClose:t}){const[e,n]=I.useState("error"),r=e==="all"?Je.getLogs():Je.getErrorLogs();return c.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:c.jsxs("div",{className:"bg-card rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col border border-border",children:[c.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Ji,{className:"h-5 w-5 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Application Logs"})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsxs("button",{onClick:()=>{const i=r.map(a=>`[${a.timestamp}] ${a.level.toUpperCase()}: ${a.message}${a.details?` + `,children:[c.jsx(o,{className:"h-5 w-5 mr-2"}),c.jsx("span",{children:s}),c.jsxs("span",{className:"ml-2 text-xs opacity-75",children:["(",l.toLocaleString(),")"]})]},i))})})}class Qg{constructor(){Dn(this,"logs",[]);Dn(this,"maxLogs",1e3)}createEntry(e,n,r){return{timestamp:new Date().toISOString(),level:e,message:n,details:r}}addLog(e){this.logs.unshift(e),this.logs.length>this.maxLogs&&this.logs.pop();const n=`color: ${e.level==="error"?"red":e.level==="warn"?"orange":"blue"}; font-weight: bold;`;console.groupCollapsed(`%c${e.level.toUpperCase()}: ${e.message}`,n),console.log("Timestamp:",e.timestamp),e.details&&console.log("Details:",e.details),console.groupEnd()}info(e,n){this.addLog(this.createEntry("info",e,n))}warn(e,n){this.addLog(this.createEntry("warn",e,n))}error(e,n){this.addLog(this.createEntry("error",e,n))}getLogs(){return[...this.logs]}getErrorLogs(){return this.logs.filter(e=>e.level==="error")}clearLogs(){this.logs=[]}}const Je=new Qg;function Kg({level:t}){switch(t){case"error":return c.jsx(es,{className:"h-4 w-4 text-red-500"});case"warn":return c.jsx(Op,{className:"h-4 w-4 text-yellow-500"});default:return c.jsx(Cd,{className:"h-4 w-4 text-blue-500"})}}function Gg(t){try{return c.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs bg-black/10 p-2 rounded",children:JSON.stringify(t,null,2)})}catch{return c.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs bg-black/10 p-2 rounded text-red-500",children:"[Error formatting details]"})}}function Xg({onClose:t}){const[e,n]=I.useState("error"),r=e==="all"?Je.getLogs():Je.getErrorLogs();return c.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:c.jsxs("div",{className:"bg-card rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col border border-border",children:[c.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(es,{className:"h-5 w-5 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Application Logs"})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsxs("button",{onClick:()=>{const i=r.map(a=>`[${a.timestamp}] ${a.level.toUpperCase()}: ${a.message}${a.details?` Details: `+JSON.stringify(a.details,null,2):""}`).join(` -`),s=new Blob([i],{type:"text/plain"}),o=URL.createObjectURL(s),l=document.createElement("a");l.href=o,l.download=`nx-working-logs-${new Date().toISOString()}.txt`,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)},className:"flex items-center space-x-2 px-3 py-1.5 rounded-lg bg-primary/10 text-primary hover:bg-primary/20 transition-colors",children:[c.jsx(Ba,{className:"h-4 w-4"}),c.jsx("span",{children:"Export Logs"})]}),c.jsx("button",{onClick:t,className:"p-2 hover:bg-muted rounded-full transition-colors",children:c.jsx(Er,{className:"h-5 w-5"})})]})]}),c.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[c.jsxs("select",{value:e,onChange:i=>n(i.target.value),className:"bg-muted border border-border rounded-lg px-3 py-1.5 text-foreground hover:border-primary/50 transition-colors",children:[c.jsxs("option",{value:"all",children:["All Logs (",Je.getLogs().length,")"]}),c.jsxs("option",{value:"error",children:["Errors Only (",Je.getErrorLogs().length,")"]})]}),c.jsx("button",{onClick:()=>{Je.clearLogs(),t()},className:"px-3 py-1.5 text-sm text-red-500 hover:text-red-600 transition-colors",children:"Clear All Logs"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:r.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground",children:[c.jsx(Ba,{className:"h-12 w-12 mb-4 opacity-50"}),c.jsx("p",{children:"No logs to display"})]}):c.jsx("div",{className:"space-y-4",children:r.map((i,s)=>c.jsxs("div",{className:`p-3 rounded-lg border ${i.level==="error"?"bg-red-500/10 border-red-500/20":i.level==="warn"?"bg-yellow-500/10 border-yellow-500/20":"bg-blue-500/10 border-blue-500/20"}`,children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Kg,{level:i.level}),c.jsx("span",{className:"text-sm font-medium",children:i.level.toUpperCase()})]}),c.jsx("span",{className:"text-sm text-muted-foreground",children:new Date(i.timestamp).toLocaleString()})]}),c.jsx("p",{className:"mb-2 text-foreground",children:i.message}),i.details&&Gg(i.details)]},s))})})]})})}function Yg({onClose:t}){const[e,n]=I.useState(!1),{itemsPerPage:r,setItemsPerPage:i,namePrecision:s,setNamePrecision:o,tidPrecision:l,setTidPrecision:a,showLogs:u,setShowLogs:h,showVersionHistory:f,setShowVersionHistory:p,autoRefreshInterval:y,setAutoRefreshInterval:v,maxDlcDisplay:x,setMaxDlcDisplay:E,maxUpdateDisplay:m,setMaxUpdateDisplay:d,dataSources:g,setDataSource:w,resetDataSources:P}=tn();return c.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center p-4 z-50",children:c.jsxs("div",{className:"bg-card rounded-lg shadow-xl max-w-2xl w-full border border-border",children:[c.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Nd,{className:"h-5 w-5 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Settings"})]}),c.jsx("button",{onClick:t,className:"p-2 hover:bg-muted rounded-full transition-colors",children:c.jsx(Er,{className:"h-5 w-5"})})]}),c.jsxs("div",{className:"p-4 space-y-6 max-h-[calc(100vh-200px)] overflow-y-auto",children:[c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Search Settings"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Name Search Precision"}),c.jsx("input",{type:"range",min:"0.1",max:"0.9",step:"0.1",value:s,onChange:S=>o(parseFloat(S.target.value)),className:"w-full accent-primary"}),c.jsxs("div",{className:"flex justify-between text-sm text-muted-foreground mt-1",children:[c.jsx("span",{children:"Exact Match"}),c.jsx("span",{children:"Fuzzy Match"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Title ID Search Precision"}),c.jsx("input",{type:"range",min:"0.1",max:"0.9",step:"0.1",value:l,onChange:S=>a(parseFloat(S.target.value)),className:"w-full accent-primary"}),c.jsxs("div",{className:"flex justify-between text-sm text-muted-foreground mt-1",children:[c.jsx("span",{children:"Exact Match"}),c.jsx("span",{children:"Partial Match"})]})]})]}),c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Display Settings"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Items per page"}),c.jsxs("select",{value:r,onChange:S=>i(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2",children:[c.jsx("option",{value:10,children:"10 items"}),c.jsx("option",{value:25,children:"25 items"}),c.jsx("option",{value:50,children:"50 items"}),c.jsx("option",{value:100,children:"100 items"})]})]}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium",children:"Show Debug Logs"}),c.jsx("button",{onClick:()=>h(!u),className:` +`),s=new Blob([i],{type:"text/plain"}),o=URL.createObjectURL(s),l=document.createElement("a");l.href=o,l.download=`nx-working-logs-${new Date().toISOString()}.txt`,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)},className:"flex items-center space-x-2 px-3 py-1.5 rounded-lg bg-primary/10 text-primary hover:bg-primary/20 transition-colors",children:[c.jsx(ba,{className:"h-4 w-4"}),c.jsx("span",{children:"Export Logs"})]}),c.jsx("button",{onClick:t,className:"p-2 hover:bg-muted rounded-full transition-colors",children:c.jsx(Er,{className:"h-5 w-5"})})]})]}),c.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[c.jsxs("select",{value:e,onChange:i=>n(i.target.value),className:"bg-muted border border-border rounded-lg px-3 py-1.5 text-foreground hover:border-primary/50 transition-colors",children:[c.jsxs("option",{value:"all",children:["All Logs (",Je.getLogs().length,")"]}),c.jsxs("option",{value:"error",children:["Errors Only (",Je.getErrorLogs().length,")"]})]}),c.jsx("button",{onClick:()=>{Je.clearLogs(),t()},className:"px-3 py-1.5 text-sm text-red-500 hover:text-red-600 transition-colors",children:"Clear All Logs"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:r.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground",children:[c.jsx(ba,{className:"h-12 w-12 mb-4 opacity-50"}),c.jsx("p",{children:"No logs to display"})]}):c.jsx("div",{className:"space-y-4",children:r.map((i,s)=>c.jsxs("div",{className:`p-3 rounded-lg border ${i.level==="error"?"bg-red-500/10 border-red-500/20":i.level==="warn"?"bg-yellow-500/10 border-yellow-500/20":"bg-blue-500/10 border-blue-500/20"}`,children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Kg,{level:i.level}),c.jsx("span",{className:"text-sm font-medium",children:i.level.toUpperCase()})]}),c.jsx("span",{className:"text-sm text-muted-foreground",children:new Date(i.timestamp).toLocaleString()})]}),c.jsx("p",{className:"mb-2 text-foreground",children:i.message}),i.details&&Gg(i.details)]},s))})})]})})}function Yg({onClose:t}){const[e,n]=I.useState(!1),{itemsPerPage:r,setItemsPerPage:i,namePrecision:s,setNamePrecision:o,tidPrecision:l,setTidPrecision:a,showLogs:u,setShowLogs:h,showVersionHistory:f,setShowVersionHistory:p,autoRefreshInterval:y,setAutoRefreshInterval:v,maxDlcDisplay:x,setMaxDlcDisplay:E,maxUpdateDisplay:m,setMaxUpdateDisplay:d,dataSources:g,setDataSource:w,resetDataSources:P}=tn();return c.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center p-2 sm:p-4 z-50",children:c.jsxs("div",{className:"bg-card rounded-lg shadow-xl w-full max-w-lg border border-border",children:[c.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Nd,{className:"h-5 w-5 text-primary"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Settings"})]}),c.jsx("button",{onClick:t,className:"p-2 hover:bg-muted rounded-full transition-colors",children:c.jsx(Er,{className:"h-5 w-5"})})]}),c.jsxs("div",{className:"p-4 space-y-6 max-h-[calc(100vh-200px)] overflow-y-auto",children:[c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Search Settings"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Name Search Precision"}),c.jsx("input",{type:"range",min:"0.1",max:"0.9",step:"0.1",value:s,onChange:S=>o(parseFloat(S.target.value)),className:"w-full accent-primary"}),c.jsxs("div",{className:"flex justify-between text-xs sm:text-sm text-muted-foreground mt-1",children:[c.jsx("span",{children:"Exact Match"}),c.jsx("span",{children:"Fuzzy Match"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Title ID Search Precision"}),c.jsx("input",{type:"range",min:"0.1",max:"0.9",step:"0.1",value:l,onChange:S=>a(parseFloat(S.target.value)),className:"w-full accent-primary"}),c.jsxs("div",{className:"flex justify-between text-xs sm:text-sm text-muted-foreground mt-1",children:[c.jsx("span",{children:"Exact Match"}),c.jsx("span",{children:"Partial Match"})]})]})]}),c.jsxs("section",{className:"space-y-4",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Display Settings"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Items per page"}),c.jsxs("select",{value:r,onChange:S=>i(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:10,children:"10 items"}),c.jsx("option",{value:25,children:"25 items"}),c.jsx("option",{value:50,children:"50 items"}),c.jsx("option",{value:100,children:"100 items"})]})]}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium",children:"Show Debug Logs"}),c.jsx("button",{onClick:()=>h(!u),className:` relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 ${u?"bg-primary":"bg-muted"} @@ -201,21 +201,21 @@ Details: `+JSON.stringify(a.details,null,2):""}`).join(` inline-block h-4 w-4 transform rounded-full bg-white shadow-lg transition-transform duration-200 ${f?"translate-x-6":"translate-x-1"} - `})})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Maximum DLCs to display"}),c.jsxs("select",{value:x,onChange:S=>E(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2",children:[c.jsx("option",{value:5,children:"5 DLCs"}),c.jsx("option",{value:10,children:"10 DLCs"}),c.jsx("option",{value:15,children:"15 DLCs"}),c.jsx("option",{value:20,children:"20 DLCs"}),c.jsx("option",{value:-1,children:"Show All"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Maximum Updates to display"}),c.jsxs("select",{value:m,onChange:S=>d(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2",children:[c.jsx("option",{value:5,children:"5 Updates"}),c.jsx("option",{value:10,children:"10 Updates"}),c.jsx("option",{value:15,children:"15 Updates"}),c.jsx("option",{value:20,children:"20 Updates"}),c.jsx("option",{value:-1,children:"Show All"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Auto Refresh Interval"}),c.jsxs("select",{value:y||"",onChange:S=>v(S.target.value?Number(S.target.value):null),className:"w-full bg-muted border border-border rounded-lg px-3 py-2",children:[c.jsx("option",{value:"",children:"Disabled"}),c.jsx("option",{value:"300000",children:"5 minutes"}),c.jsx("option",{value:"600000",children:"10 minutes"}),c.jsx("option",{value:"1800000",children:"30 minutes"}),c.jsx("option",{value:"3600000",children:"1 hour"})]})]})]}),c.jsxs("section",{className:"border-t border-border pt-4",children:[c.jsxs("button",{onClick:()=>n(!e),className:"flex items-center justify-between w-full text-sm font-medium p-2 hover:bg-muted rounded-lg transition-colors",children:["Advanced Settings",e?c.jsx(Up,{className:"h-4 w-4"}):c.jsx($p,{className:"h-4 w-4"})]}),e&&c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Working Content URL"}),c.jsx("input",{type:"url",value:g.workingContent,onChange:S=>w("workingContent",S.target.value),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",placeholder:"Enter URL for working.txt"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Titles Database URL"}),c.jsx("input",{type:"url",value:g.titlesDb,onChange:S=>w("titlesDb",S.target.value),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",placeholder:"Enter URL for titles_db.txt"})]}),c.jsx("div",{className:"flex justify-end",children:c.jsx("button",{onClick:P,className:"px-4 py-2 text-sm bg-red-500/10 text-red-500 rounded-lg hover:bg-red-500/20 transition-colors",children:"Reset to Defaults"})})]})]})]})]})})}function qg({onToggleTheme:t}){const[e,n]=I.useState(!1),[r,i]=I.useState(!1),{isDark:s,showLogs:o}=tn(),[l,a]=I.useState(0),[u,h]=I.useState(0);return I.useEffect(()=>{const f=()=>{const y=Je.getErrorLogs(),v=Je.getLogs();a(y.length),h(v.length)};f();const p=setInterval(f,1e3);return()=>clearInterval(p)},[]),c.jsxs("header",{className:"bg-card border-b border-border",children:[c.jsxs("div",{className:"max-w-7xl mx-auto px-4 h-16 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(kd,{className:"h-6 w-6 text-primary"}),c.jsx("h1",{className:"text-xl font-bold",children:"NX Working Content Tracker"})]}),c.jsxs("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[o&&u>0&&c.jsxs("button",{onClick:()=>n(!0),className:` + `})})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Maximum DLCs to display"}),c.jsxs("select",{value:x,onChange:S=>E(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:5,children:"5 DLCs"}),c.jsx("option",{value:10,children:"10 DLCs"}),c.jsx("option",{value:15,children:"15 DLCs"}),c.jsx("option",{value:20,children:"20 DLCs"}),c.jsx("option",{value:-1,children:"Show All"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Maximum Updates to display"}),c.jsxs("select",{value:m,onChange:S=>d(Number(S.target.value)),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:5,children:"5 Updates"}),c.jsx("option",{value:10,children:"10 Updates"}),c.jsx("option",{value:15,children:"15 Updates"}),c.jsx("option",{value:20,children:"20 Updates"}),c.jsx("option",{value:-1,children:"Show All"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Auto Refresh Interval"}),c.jsxs("select",{value:y||"",onChange:S=>v(S.target.value?Number(S.target.value):null),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"",children:"Disabled"}),c.jsx("option",{value:"300000",children:"5 minutes"}),c.jsx("option",{value:"600000",children:"10 minutes"}),c.jsx("option",{value:"1800000",children:"30 minutes"}),c.jsx("option",{value:"3600000",children:"1 hour"})]})]})]}),c.jsxs("section",{className:"border-t border-border pt-4",children:[c.jsxs("button",{onClick:()=>n(!e),className:"flex items-center justify-between w-full text-sm font-medium p-2 hover:bg-muted rounded-lg transition-colors",children:["Advanced Settings",e?c.jsx(Up,{className:"h-4 w-4"}):c.jsx($p,{className:"h-4 w-4"})]}),e&&c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Working Content URL"}),c.jsx("input",{type:"url",value:g.workingContent,onChange:S=>w("workingContent",S.target.value),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-xs sm:text-sm break-all",placeholder:"Enter URL for working.txt"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium mb-2",children:"Titles Database URL"}),c.jsx("input",{type:"url",value:g.titlesDb,onChange:S=>w("titlesDb",S.target.value),className:"w-full bg-muted border border-border rounded-lg px-3 py-2 text-xs sm:text-sm break-all",placeholder:"Enter URL for titles_db.txt"})]}),c.jsx("div",{className:"flex justify-end",children:c.jsx("button",{onClick:P,className:"px-4 py-2 text-sm bg-red-500/10 text-red-500 rounded-lg hover:bg-red-500/20 transition-colors",children:"Reset to Defaults"})})]})]})]})]})})}function qg({onToggleTheme:t}){const[e,n]=I.useState(!1),[r,i]=I.useState(!1),{isDark:s,showLogs:o}=tn(),[l,a]=I.useState(0),[u,h]=I.useState(0);return I.useEffect(()=>{const f=()=>{const y=Je.getErrorLogs(),v=Je.getLogs();a(y.length),h(v.length)};f();const p=setInterval(f,1e3);return()=>clearInterval(p)},[]),c.jsxs("header",{className:"bg-card border-b border-border",children:[c.jsxs("div",{className:"max-w-7xl mx-auto px-4 h-16 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx(kd,{className:"h-6 w-6 text-primary"}),c.jsx("h1",{className:"text-xl font-bold",children:"NX Working Content Tracker"})]}),c.jsxs("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[o&&u>0&&c.jsxs("button",{onClick:()=>n(!0),className:` flex items-center space-x-2 px-3 py-2 rounded-lg transition-colors ${l>0?"bg-red-500/10 text-red-500 hover:bg-red-500/20":"bg-primary/10 text-primary hover:bg-primary/20"} - `,title:`${u} total log${u!==1?"s":""}${l>0?`, including ${l} error${l!==1?"s":""}`:""}`,children:[c.jsx(Ji,{className:"h-4 w-4"}),c.jsxs("span",{children:["View Logs ",l>0?`(${l})`:""]})]}),c.jsx("button",{onClick:()=>i(!0),className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":"Open settings",children:c.jsx(Nd,{className:"h-5 w-5"})}),c.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":s?"Switch to light mode":"Switch to dark mode",children:s?c.jsx(Vp,{className:"h-5 w-5"}):c.jsx(Zp,{className:"h-5 w-5"})}),c.jsxs("a",{href:"https://github.com/ghost-land/NX-Working",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:flex items-center space-x-2 px-3 py-1.5 rounded-lg hover:bg-muted transition-colors",children:[c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),c.jsx("span",{children:"View on GitHub"})]})]})]}),e&&c.jsx(Xg,{onClose:()=>n(!1)}),r&&c.jsx(Yg,{onClose:()=>i(!1)})]})}function Jg({nameQuery:t,tidQuery:e,onNameChange:n,onTidChange:r,resultCount:i,totalCount:s}){return c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[c.jsxs("div",{className:"relative group flex-1",children:[c.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:c.jsx(ba,{className:"h-5 w-5 text-muted-foreground group-hover:text-primary/80 transition-colors"})}),c.jsx("input",{type:"text",value:t,onChange:o=>n(o.target.value),className:` + `,title:`${u} total log${u!==1?"s":""}${l>0?`, including ${l} error${l!==1?"s":""}`:""}`,children:[c.jsx(es,{className:"h-4 w-4"}),c.jsxs("span",{children:["View Logs ",l>0?`(${l})`:""]})]}),c.jsx("button",{onClick:()=>i(!0),className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":"Open settings",children:c.jsx(Nd,{className:"h-5 w-5"})}),c.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":s?"Switch to light mode":"Switch to dark mode",children:s?c.jsx(Vp,{className:"h-5 w-5"}):c.jsx(Zp,{className:"h-5 w-5"})}),c.jsxs("a",{href:"https://github.com/ghost-land/NX-Working",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:flex items-center space-x-2 px-3 py-1.5 rounded-lg hover:bg-muted transition-colors",children:[c.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})}),c.jsx("span",{children:"View on GitHub"})]})]})]}),e&&c.jsx(Xg,{onClose:()=>n(!1)}),r&&c.jsx(Yg,{onClose:()=>i(!1)})]})}function Jg({nameQuery:t,tidQuery:e,onNameChange:n,onTidChange:r,resultCount:i,totalCount:s}){return c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[c.jsxs("div",{className:"relative group flex-1",children:[c.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:c.jsx(Ba,{className:"h-5 w-5 text-muted-foreground group-hover:text-primary/80 transition-colors"})}),c.jsx("input",{type:"text",value:t,onChange:o=>n(o.target.value),className:` block w-full pl-10 pr-10 py-3 bg-card border border-border rounded-lg text-foreground placeholder-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent hover:border-primary/50 transition-all duration-200 ${t?"ring-2 ring-primary":""} - `,placeholder:"Search by name..."}),t&&c.jsx("button",{onClick:()=>n(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:c.jsx(Er,{className:"h-5 w-5 text-muted-foreground hover:text-foreground transition-colors"})})]}),c.jsxs("div",{className:"relative group flex-1",children:[c.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:c.jsx(ba,{className:"h-5 w-5 text-muted-foreground group-hover:text-primary/80 transition-colors"})}),c.jsx("input",{type:"text",value:e,onChange:o=>{const l=o.target.value.toUpperCase();(l===""||/^[0-9A-F]*$/.test(l))&&r(l)},maxLength:16,className:` + `,placeholder:"Search by name..."}),t&&c.jsx("button",{onClick:()=>n(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:c.jsx(Er,{className:"h-5 w-5 text-muted-foreground hover:text-foreground transition-colors"})})]}),c.jsxs("div",{className:"relative group flex-1",children:[c.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:c.jsx(Ba,{className:"h-5 w-5 text-muted-foreground group-hover:text-primary/80 transition-colors"})}),c.jsx("input",{type:"text",value:e,onChange:o=>{const l=o.target.value.toUpperCase();(l===""||/^[0-9A-F]*$/.test(l))&&r(l)},maxLength:16,className:` block w-full pl-10 pr-10 py-3 bg-card border border-border rounded-lg text-foreground placeholder-muted-foreground font-mono uppercase focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent hover:border-primary/50 transition-all duration-200 ${e?"ring-2 ring-primary":""} - `,placeholder:"Search by Title ID..."}),e&&c.jsx("button",{onClick:()=>r(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:c.jsx(Er,{className:"h-5 w-5 text-muted-foreground hover:text-foreground transition-colors"})})]}),i!==void 0&&s!==void 0&&c.jsx("div",{className:"hidden sm:flex items-center justify-center px-4 py-2 bg-muted rounded-lg min-w-[120px]",children:c.jsxs("span",{className:"text-sm text-muted-foreground",children:[i.toLocaleString()," / ",s.toLocaleString()]})})]})}function pt(t){return Array.isArray?Array.isArray(t):qd(t)==="[object Array]"}const ev=1/0;function tv(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-ev?"-0":e}function nv(t){return t==null?"":tv(t)}function et(t){return typeof t=="string"}function Xd(t){return typeof t=="number"}function rv(t){return t===!0||t===!1||iv(t)&&qd(t)=="[object Boolean]"}function Yd(t){return typeof t=="object"}function iv(t){return Yd(t)&&t!==null}function Ne(t){return t!=null}function Ls(t){return!t.trim().length}function qd(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const sv="Incorrect 'index' type",ov=t=>`Invalid value for key ${t}`,lv=t=>`Pattern length exceeds max of ${t}.`,av=t=>`Missing ${t} property in key`,uv=t=>`Property 'weight' in key '${t}' must be a positive integer`,iu=Object.prototype.hasOwnProperty;class cv{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(r=>{let i=Jd(r);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(r=>{r.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Jd(t){let e=null,n=null,r=null,i=1,s=null;if(et(t)||pt(t))r=t,e=su(t),n=Co(t);else{if(!iu.call(t,"name"))throw new Error(av("name"));const o=t.name;if(r=o,iu.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(uv(o));e=su(o),n=Co(o),s=t.getFn}return{path:e,id:n,weight:i,src:r,getFn:s}}function su(t){return pt(t)?t:t.split(".")}function Co(t){return pt(t)?t.join("."):t}function dv(t,e){let n=[],r=!1;const i=(s,o,l)=>{if(Ne(s))if(!o[l])n.push(s);else{let a=o[l];const u=s[a];if(!Ne(u))return;if(l===o.length-1&&(et(u)||Xd(u)||rv(u)))n.push(nv(u));else if(pt(u)){r=!0;for(let h=0,f=u.length;ht.score===e.score?t.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,et(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();et(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n{let o=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Ne(o)){if(pt(o)){let l=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:u,value:h}=a.pop();if(Ne(h))if(et(h)&&!Ls(h)){let f={v:h,i:u,n:this.norm.get(h)};l.push(f)}else pt(h)&&h.forEach((f,p)=>{a.push({nestedArrIndex:p,value:f})})}r.$[s]=l}else if(et(o)&&!Ls(o)){let l={v:o,n:this.norm.get(o)};r.$[s]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function eh(t,e,{getFn:n=z.getFn,fieldNormWeight:r=z.fieldNormWeight}={}){const i=new jl({getFn:n,fieldNormWeight:r});return i.setKeys(t.map(Jd)),i.setSources(e),i.create(),i}function yv(t,{getFn:e=z.getFn,fieldNormWeight:n=z.fieldNormWeight}={}){const{keys:r,records:i}=t,s=new jl({getFn:e,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(i),s}function Yr(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:i=z.distance,ignoreLocation:s=z.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(r-n);return i?o+l/i:l?1:o}function xv(t=[],e=z.minMatchCharLength){let n=[],r=-1,i=-1,s=0;for(let o=t.length;s=e&&n.push([r,i]),r=-1)}return t[s-1]&&s-r>=e&&n.push([r,s-1]),n}const bt=32;function wv(t,e,n,{location:r=z.location,distance:i=z.distance,threshold:s=z.threshold,findAllMatches:o=z.findAllMatches,minMatchCharLength:l=z.minMatchCharLength,includeMatches:a=z.includeMatches,ignoreLocation:u=z.ignoreLocation}={}){if(e.length>bt)throw new Error(lv(bt));const h=e.length,f=t.length,p=Math.max(0,Math.min(r,f));let y=s,v=p;const x=l>1||a,E=x?Array(f):[];let m;for(;(m=t.indexOf(e,v))>-1;){let _=Yr(e,{currentLocation:m,expectedLocation:p,distance:i,ignoreLocation:u});if(y=Math.min(_,y),v=m+h,x){let N=0;for(;N=M;ie-=1){let D=ie-1,A=n[t.charAt(D)];if(x&&(E[D]=+!!A),R[ie]=(R[ie+1]<<1|1)&A,_&&(R[ie]|=(d[ie+1]|d[ie])<<1|1|d[ie+1]),R[ie]&P&&(g=Yr(e,{errors:_,currentLocation:D,expectedLocation:p,distance:i,ignoreLocation:u}),g<=y)){if(y=g,v=D,v<=p)break;M=Math.max(1,2*p-v)}}if(Yr(e,{errors:_+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:u})>y)break;d=R}const S={isMatch:v>=0,score:Math.max(.001,g)};if(x){const _=xv(E,l);_.length?a&&(S.indices=_):S.isMatch=!1}return S}function Sv(t){let e={};for(let n=0,r=t.length;n{this.chunks.push({pattern:p,alphabet:Sv(p),startIndex:y})},f=this.pattern.length;if(f>bt){let p=0;const y=f%bt,v=f-y;for(;p{const{isMatch:m,score:d,indices:g}=wv(e,v,x,{location:i+E,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:a,includeMatches:r,ignoreLocation:u});m&&(p=!0),f+=d,m&&g&&(h=[...h,...g])});let y={isMatch:p,score:p?f/this.chunks.length:1};return p&&r&&(y.indices=h),y}}class Rt{constructor(e){this.pattern=e}static isMultiMatch(e){return ou(e,this.multiRegex)}static isSingleMatch(e){return ou(e,this.singleRegex)}search(){}}function ou(t,e){const n=t.match(e);return n?n[1]:null}class _v extends Rt{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class kv extends Rt{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Ev extends Rt{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Cv extends Rt{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Pv extends Rt{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Nv extends Rt{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class nh extends Rt{constructor(e,{location:n=z.location,threshold:r=z.threshold,distance:i=z.distance,includeMatches:s=z.includeMatches,findAllMatches:o=z.findAllMatches,minMatchCharLength:l=z.minMatchCharLength,isCaseSensitive:a=z.isCaseSensitive,ignoreLocation:u=z.ignoreLocation}={}){super(e),this._bitapSearch=new th(e,{location:n,threshold:r,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class rh extends Rt{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,r;const i=[],s=this.pattern.length;for(;(r=e.indexOf(this.pattern,n))>-1;)n=r+s,i.push([r,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const Po=[_v,rh,Ev,Cv,Nv,Pv,kv,nh],lu=Po.length,Lv=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Tv="|";function jv(t,e={}){return t.split(Tv).map(n=>{let r=n.trim().split(Lv).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=r.length;s!!(t[Di.AND]||t[Di.OR]),Av=t=>!!t[To.PATH],Dv=t=>!pt(t)&&Yd(t)&&!jo(t),au=t=>({[Di.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function ih(t,e,{auto:n=!0}={}){const r=i=>{let s=Object.keys(i);const o=Av(i);if(!o&&s.length>1&&!jo(i))return r(au(i));if(Dv(i)){const a=o?i[To.PATH]:s[0],u=o?i[To.PATTERN]:i[a];if(!et(u))throw new Error(ov(a));const h={keyId:Co(a),pattern:u};return n&&(h.searcher=Lo(u,e)),h}let l={children:[],operator:s[0]};return s.forEach(a=>{const u=i[a];pt(u)&&u.forEach(h=>{l.children.push(r(h))})}),l};return jo(t)||(t=au(t)),r(t)}function Ov(t,{ignoreFieldNorm:e=z.ignoreFieldNorm}){t.forEach(n=>{let r=1;n.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;r*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),n.score=r})}function Rv(t,e){const n=t.matches;e.matches=[],Ne(n)&&n.forEach(r=>{if(!Ne(r.indices)||!r.indices.length)return;const{indices:i,value:s}=r;let o={indices:i,value:s};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),e.matches.push(o)})}function Fv(t,e){e.score=t.score}function $v(t,e,{includeMatches:n=z.includeMatches,includeScore:r=z.includeScore}={}){const i=[];return n&&i.push(Rv),r&&i.push(Fv),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(a=>{a(s,l)}),l})}class Mn{constructor(e,n={},r){this.options={...z,...n},this.options.useExtendedSearch,this._keyStore=new cv(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof jl))throw new Error(sv);this._myIndex=n||eh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ne(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let r=0,i=this._docs.length;r-1&&(a=a.slice(0,n)),$v(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const n=Lo(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:s,i:o,n:l})=>{if(!Ne(s))return;const{isMatch:a,score:u,indices:h}=n.searchIn(s);a&&i.push({item:s,idx:o,matches:[{score:u,value:s,norm:l,indices:h}]})}),i}_searchLogical(e){const n=ih(e,this.options),r=(l,a,u)=>{if(!l.children){const{keyId:f,searcher:p}=l,y=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:p});return y&&y.length?[{idx:u,item:a,matches:y}]:[]}const h=[];for(let f=0,p=l.children.length;f{if(Ne(l)){let u=r(n,l,a);u.length&&(s[a]||(s[a]={idx:a,item:l,matches:[]},o.push(s[a])),u.forEach(({matches:h})=>{s[a].matches.push(...h)}))}}),o}_searchObjectList(e){const n=Lo(e,this.options),{keys:r,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!Ne(o))return;let a=[];r.forEach((u,h)=>{a.push(...this._findMatches({key:u,value:o[h],searcher:n}))}),a.length&&s.push({idx:l,item:o,matches:a})}),s}_findMatches({key:e,value:n,searcher:r}){if(!Ne(n))return[];let i=[];if(pt(n))n.forEach(({v:s,i:o,n:l})=>{if(!Ne(s))return;const{isMatch:a,score:u,indices:h}=r.searchIn(s);a&&i.push({score:u,key:e,value:s,idx:o,norm:l,indices:h})});else{const{v:s,n:o}=n,{isMatch:l,score:a,indices:u}=r.searchIn(s);l&&i.push({score:a,key:e,value:s,norm:o,indices:u})}return i}}Mn.version="7.0.0";Mn.createIndex=eh;Mn.parseIndex=yv;Mn.config=z;Mn.parseQuery=ih;Mv(zv);function Nr(t){if(!t)return!1;const e=new Date(t);return!isNaN(e.getTime())}function Oi(t){return!t.releaseDate||!Nr(t.releaseDate)?0:new Date(t.releaseDate).getTime()}function Bv(t,e,n){switch(n){case"releaseDate":{if(t.type!=="base"||e.type!=="base")return t.id.localeCompare(e.id);const r=Oi(t),i=Oi(e);return r===0&&i===0?t.id.localeCompare(e.id):r===0?1:i===0?-1:r===i?(t.name||"").localeCompare(e.name||""):i-r}case"name":{const r=t.name||"Unknown Title",i=e.name||"Unknown Title";return r==="Unknown Title"&&i!=="Unknown Title"?1:i==="Unknown Title"&&r!=="Unknown Title"?-1:r.localeCompare(i)}case"size":{const r=t.size||0,i=e.size||0;return r===0&&i!==0?1:i===0&&r!==0?-1:i-r}case"id":default:return t.id.localeCompare(e.id)}}function bv(t,e,n){const r=[...t].sort((i,s)=>{const o=Bv(i,s,e);return n==="asc"?o:-o});if(e==="releaseDate"){const i=r.filter(o=>Nr(o.releaseDate)),s=r.filter(o=>!Nr(o.releaseDate));return n==="asc"?[...i,...s]:[...i,...s]}return r}function Uv(t){const e=t.filter(l=>l.type==="base"&&Nr(l.releaseDate)),n=t.filter(l=>l.type==="base"&&!Nr(l.releaseDate)),r=t.filter(l=>l.type!=="base"),i=e.sort((l,a)=>{const u=Oi(l),h=Oi(a);return u===h?(l.name||"").localeCompare(a.name||""):h-u}),s=n.sort((l,a)=>l.id.localeCompare(a.id)),o=r.sort((l,a)=>l.id.localeCompare(a.id));return[...i,...s,...o]}function Hv(t){return{threshold:Math.max(.1,1-t),distance:Math.floor(30*(1-t)),minMatchCharLength:Math.max(2,Math.floor(4*t)),location:0,ignoreLocation:!1,findAllMatches:!0,includeMatches:!0,useExtendedSearch:!1,isCaseSensitive:!1,tokenize:!0,matchAllTokens:!1}}function Zv(t){const[e,n]=I.useState(""),[r,i]=I.useState(""),[s,o]=I.useState("name"),[l,a]=I.useState("asc"),{namePrecision:u}=tn(),h=I.useMemo(()=>new Mn(t,{keys:["name"],...Hv(u)}),[t,u]),f=I.useCallback(()=>{let v=t;if(r){const x=r.toLowerCase();v=v.filter(E=>E.id.toLowerCase().includes(x))}if(e.trim()){const E=h.search(e).map(m=>m.item);if(r){const m=new Set(E.map(d=>d.id));v=v.filter(d=>m.has(d.id))}else v=E}return v},[h,t,e,r]),p=I.useCallback(v=>{o(v),a(x=>v===s&&x==="asc"?"desc":"asc")},[s]),y=I.useMemo(()=>{const v=f();return bv(v,s,l)},[f,s,l]);return{nameQuery:e,setNameQuery:n,tidQuery:r,setTidQuery:i,results:y,sortField:s,sortDirection:l,toggleSort:p}}function uu(t){if(!t)return!1;try{const e=new Date(t);if(isNaN(e.getTime()))return!1;const n=e.getFullYear(),r=new Date().getFullYear();return n>=2e3&&n<=r+2}catch{return!1}}function Wv(){const{isDark:t,setDarkMode:e,itemsPerPage:n,lastActiveTab:r,setLastActiveTab:i}=tn(),[s,o]=I.useState([]),[l,a]=I.useState(!0),[u,h]=I.useState(1),{nameQuery:f,setNameQuery:p,tidQuery:y,setTidQuery:v,results:x,sortField:E,sortDirection:m,toggleSort:d}=Zv(s);if(I.useEffect(()=>{const _=document.documentElement;t?_.classList.add("dark"):_.classList.remove("dark")},[t]),I.useEffect(()=>{(async()=>{try{a(!0),Je.info("Starting data load");const[N,F,M]=await Promise.all([fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.txt"),fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/titles_db.txt"),fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.json")]),[re,R]=await Promise.all([N.text(),F.text()]),Ae=await M.json(),ie=new Map(R.trim().split(` -`).map(Z=>{const[C,T,j,b]=Z.split("|");return[C,{date:T,name:j,size:parseInt(b)}]})),D=new Map;re.trim().split(` -`).forEach(Z=>{const[C,T]=Z.split("|"),j=C.endsWith("800")?"update":C.endsWith("000")?"base":"dlc",b=`${C}_${T||"0"}`,B=ie.get(C),he=Ae[C];D.has(b)||D.set(b,{id:C,uniqueId:b,type:j,version:T||(he==null?void 0:he.Version),name:(he==null?void 0:he["Game Name"])||(B==null?void 0:B.name)||"Unknown Title",size:(B==null?void 0:B.size)||(he==null?void 0:he.Size),releaseDate:j==="base"?B==null?void 0:B.date:void 0})});const A=Uv(Array.from(D.values()));o(A),a(!1),Je.info("Data load complete",{totalItems:A.length,baseCount:A.filter(Z=>Z.type==="base").length,updateCount:A.filter(Z=>Z.type==="update").length,dlcCount:A.filter(Z=>Z.type==="dlc").length,withDatesCount:A.filter(Z=>uu(Z.releaseDate)).length,withoutDatesCount:A.filter(Z=>!uu(Z.releaseDate)).length})}catch(N){throw Je.error("Failed to load content data",{errorMessage:N instanceof Error?N.message:"Unknown error"}),a(!1),new Error("Failed to load content data")}})()},[]),l)return c.jsx("div",{className:"fixed inset-0 bg-background flex items-center justify-center",children:c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-4 border-primary border-t-transparent mx-auto"}),c.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading games..."})]})});const g=x.filter(_=>_.type===r),w=Math.ceil(g.length/n),P=g.slice((u-1)*n,u*n),S={base:s.filter(_=>_.type==="base").length,update:s.filter(_=>_.type==="update").length,dlc:s.filter(_=>_.type==="dlc").length};return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(qg,{onToggleTheme:()=>e(!t)}),c.jsxs("main",{className:"max-w-7xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Base Games"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.base.toLocaleString()})]}),c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Updates"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.update.toLocaleString()})]}),c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"DLCs"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.dlc.toLocaleString()})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx(Jg,{nameQuery:f,tidQuery:y,onNameChange:p,onTidChange:v,resultCount:g.length,totalCount:s.filter(_=>_.type===r).length}),c.jsx(Vg,{activeTab:r,onTabChange:i,counts:S}),c.jsx(Wg,{items:P,allItems:s,currentPage:u,totalPages:w,onPageChange:h,sortField:E,sortDirection:m,onSort:d})]})]})]})}class Vv extends I.Component{constructor(){super(...arguments);Dn(this,"state",{hasError:!1,error:null});Dn(this,"handleReset",()=>{const{resetDataSources:n}=tn.getState();n(),window.location.reload()})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){var n,r,i;if(this.state.hasError){const s=(r=(n=this.state.error)==null?void 0:n.message)==null?void 0:r.includes("Failed to load game data");return c.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-card p-6 rounded-lg shadow-lg border border-border max-w-md w-full",children:[c.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[c.jsx(Ji,{className:"h-6 w-6 text-red-500"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Something went wrong"})]}),c.jsx("p",{className:"text-muted-foreground mb-6",children:((i=this.state.error)==null?void 0:i.message)||"An unexpected error occurred"}),c.jsxs("div",{className:"flex flex-col space-y-3",children:[s&&c.jsxs("button",{className:"w-full flex items-center justify-center space-x-2 bg-red-500/10 text-red-500 px-4 py-2 rounded-lg hover:bg-red-500/20 transition-colors",onClick:this.handleReset,children:[c.jsx(Wp,{className:"h-4 w-4"}),c.jsx("span",{children:"Reset Data Sources & Reload"})]}),c.jsx("button",{className:"w-full bg-primary text-primary-foreground px-4 py-2 rounded-lg hover:bg-primary/90 transition-colors",onClick:()=>window.location.reload(),children:"Reload Page"})]}),s&&c.jsxs("div",{className:"mt-4 p-3 bg-muted rounded-lg text-sm text-muted-foreground",children:[c.jsx("p",{className:"font-medium mb-1",children:"💡 Tip"}),c.jsx("p",{children:"If you've modified the data source URLs in settings, try resetting them to their default values. This often resolves loading issues."})]})]})})}return this.props.children}}Ts.createRoot(document.getElementById("root")).render(c.jsx(Oo.StrictMode,{children:c.jsx(Vv,{children:c.jsx(Wv,{})})})); + `,placeholder:"Search by Title ID..."}),e&&c.jsx("button",{onClick:()=>r(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:c.jsx(Er,{className:"h-5 w-5 text-muted-foreground hover:text-foreground transition-colors"})})]}),i!==void 0&&s!==void 0&&c.jsx("div",{className:"hidden sm:flex items-center justify-center px-4 py-2 bg-muted rounded-lg min-w-[120px]",children:c.jsxs("span",{className:"text-sm text-muted-foreground",children:[i.toLocaleString()," / ",s.toLocaleString()]})})]})}function pt(t){return Array.isArray?Array.isArray(t):qd(t)==="[object Array]"}const ev=1/0;function tv(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-ev?"-0":e}function nv(t){return t==null?"":tv(t)}function et(t){return typeof t=="string"}function Xd(t){return typeof t=="number"}function rv(t){return t===!0||t===!1||iv(t)&&qd(t)=="[object Boolean]"}function Yd(t){return typeof t=="object"}function iv(t){return Yd(t)&&t!==null}function Ne(t){return t!=null}function js(t){return!t.trim().length}function qd(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const sv="Incorrect 'index' type",ov=t=>`Invalid value for key ${t}`,lv=t=>`Pattern length exceeds max of ${t}.`,av=t=>`Missing ${t} property in key`,uv=t=>`Property 'weight' in key '${t}' must be a positive integer`,iu=Object.prototype.hasOwnProperty;class cv{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(r=>{let i=Jd(r);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(r=>{r.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Jd(t){let e=null,n=null,r=null,i=1,s=null;if(et(t)||pt(t))r=t,e=su(t),n=Po(t);else{if(!iu.call(t,"name"))throw new Error(av("name"));const o=t.name;if(r=o,iu.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(uv(o));e=su(o),n=Po(o),s=t.getFn}return{path:e,id:n,weight:i,src:r,getFn:s}}function su(t){return pt(t)?t:t.split(".")}function Po(t){return pt(t)?t.join("."):t}function dv(t,e){let n=[],r=!1;const i=(s,o,l)=>{if(Ne(s))if(!o[l])n.push(s);else{let a=o[l];const u=s[a];if(!Ne(u))return;if(l===o.length-1&&(et(u)||Xd(u)||rv(u)))n.push(nv(u));else if(pt(u)){r=!0;for(let h=0,f=u.length;ht.score===e.score?t.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,et(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();et(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n{let o=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Ne(o)){if(pt(o)){let l=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:u,value:h}=a.pop();if(Ne(h))if(et(h)&&!js(h)){let f={v:h,i:u,n:this.norm.get(h)};l.push(f)}else pt(h)&&h.forEach((f,p)=>{a.push({nestedArrIndex:p,value:f})})}r.$[s]=l}else if(et(o)&&!js(o)){let l={v:o,n:this.norm.get(o)};r.$[s]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function eh(t,e,{getFn:n=z.getFn,fieldNormWeight:r=z.fieldNormWeight}={}){const i=new Tl({getFn:n,fieldNormWeight:r});return i.setKeys(t.map(Jd)),i.setSources(e),i.create(),i}function yv(t,{getFn:e=z.getFn,fieldNormWeight:n=z.fieldNormWeight}={}){const{keys:r,records:i}=t,s=new Tl({getFn:e,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(i),s}function Yr(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:i=z.distance,ignoreLocation:s=z.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(r-n);return i?o+l/i:l?1:o}function xv(t=[],e=z.minMatchCharLength){let n=[],r=-1,i=-1,s=0;for(let o=t.length;s=e&&n.push([r,i]),r=-1)}return t[s-1]&&s-r>=e&&n.push([r,s-1]),n}const Bt=32;function wv(t,e,n,{location:r=z.location,distance:i=z.distance,threshold:s=z.threshold,findAllMatches:o=z.findAllMatches,minMatchCharLength:l=z.minMatchCharLength,includeMatches:a=z.includeMatches,ignoreLocation:u=z.ignoreLocation}={}){if(e.length>Bt)throw new Error(lv(Bt));const h=e.length,f=t.length,p=Math.max(0,Math.min(r,f));let y=s,v=p;const x=l>1||a,E=x?Array(f):[];let m;for(;(m=t.indexOf(e,v))>-1;){let _=Yr(e,{currentLocation:m,expectedLocation:p,distance:i,ignoreLocation:u});if(y=Math.min(_,y),v=m+h,x){let N=0;for(;N=M;ie-=1){let D=ie-1,A=n[t.charAt(D)];if(x&&(E[D]=+!!A),R[ie]=(R[ie+1]<<1|1)&A,_&&(R[ie]|=(d[ie+1]|d[ie])<<1|1|d[ie+1]),R[ie]&P&&(g=Yr(e,{errors:_,currentLocation:D,expectedLocation:p,distance:i,ignoreLocation:u}),g<=y)){if(y=g,v=D,v<=p)break;M=Math.max(1,2*p-v)}}if(Yr(e,{errors:_+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:u})>y)break;d=R}const S={isMatch:v>=0,score:Math.max(.001,g)};if(x){const _=xv(E,l);_.length?a&&(S.indices=_):S.isMatch=!1}return S}function Sv(t){let e={};for(let n=0,r=t.length;n{this.chunks.push({pattern:p,alphabet:Sv(p),startIndex:y})},f=this.pattern.length;if(f>Bt){let p=0;const y=f%Bt,v=f-y;for(;p{const{isMatch:m,score:d,indices:g}=wv(e,v,x,{location:i+E,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:a,includeMatches:r,ignoreLocation:u});m&&(p=!0),f+=d,m&&g&&(h=[...h,...g])});let y={isMatch:p,score:p?f/this.chunks.length:1};return p&&r&&(y.indices=h),y}}class Rt{constructor(e){this.pattern=e}static isMultiMatch(e){return ou(e,this.multiRegex)}static isSingleMatch(e){return ou(e,this.singleRegex)}search(){}}function ou(t,e){const n=t.match(e);return n?n[1]:null}class _v extends Rt{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class kv extends Rt{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Ev extends Rt{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Cv extends Rt{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Pv extends Rt{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Nv extends Rt{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class nh extends Rt{constructor(e,{location:n=z.location,threshold:r=z.threshold,distance:i=z.distance,includeMatches:s=z.includeMatches,findAllMatches:o=z.findAllMatches,minMatchCharLength:l=z.minMatchCharLength,isCaseSensitive:a=z.isCaseSensitive,ignoreLocation:u=z.ignoreLocation}={}){super(e),this._bitapSearch=new th(e,{location:n,threshold:r,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class rh extends Rt{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,r;const i=[],s=this.pattern.length;for(;(r=e.indexOf(this.pattern,n))>-1;)n=r+s,i.push([r,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const No=[_v,rh,Ev,Cv,Nv,Pv,kv,nh],lu=No.length,Lv=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,jv="|";function Tv(t,e={}){return t.split(jv).map(n=>{let r=n.trim().split(Lv).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=r.length;s!!(t[Oi.AND]||t[Oi.OR]),Av=t=>!!t[To.PATH],Dv=t=>!pt(t)&&Yd(t)&&!Io(t),au=t=>({[Oi.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function ih(t,e,{auto:n=!0}={}){const r=i=>{let s=Object.keys(i);const o=Av(i);if(!o&&s.length>1&&!Io(i))return r(au(i));if(Dv(i)){const a=o?i[To.PATH]:s[0],u=o?i[To.PATTERN]:i[a];if(!et(u))throw new Error(ov(a));const h={keyId:Po(a),pattern:u};return n&&(h.searcher=jo(u,e)),h}let l={children:[],operator:s[0]};return s.forEach(a=>{const u=i[a];pt(u)&&u.forEach(h=>{l.children.push(r(h))})}),l};return Io(t)||(t=au(t)),r(t)}function Ov(t,{ignoreFieldNorm:e=z.ignoreFieldNorm}){t.forEach(n=>{let r=1;n.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;r*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),n.score=r})}function Rv(t,e){const n=t.matches;e.matches=[],Ne(n)&&n.forEach(r=>{if(!Ne(r.indices)||!r.indices.length)return;const{indices:i,value:s}=r;let o={indices:i,value:s};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),e.matches.push(o)})}function Fv(t,e){e.score=t.score}function $v(t,e,{includeMatches:n=z.includeMatches,includeScore:r=z.includeScore}={}){const i=[];return n&&i.push(Rv),r&&i.push(Fv),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(a=>{a(s,l)}),l})}class Mn{constructor(e,n={},r){this.options={...z,...n},this.options.useExtendedSearch,this._keyStore=new cv(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Tl))throw new Error(sv);this._myIndex=n||eh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ne(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let r=0,i=this._docs.length;r-1&&(a=a.slice(0,n)),$v(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const n=jo(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:s,i:o,n:l})=>{if(!Ne(s))return;const{isMatch:a,score:u,indices:h}=n.searchIn(s);a&&i.push({item:s,idx:o,matches:[{score:u,value:s,norm:l,indices:h}]})}),i}_searchLogical(e){const n=ih(e,this.options),r=(l,a,u)=>{if(!l.children){const{keyId:f,searcher:p}=l,y=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:p});return y&&y.length?[{idx:u,item:a,matches:y}]:[]}const h=[];for(let f=0,p=l.children.length;f{if(Ne(l)){let u=r(n,l,a);u.length&&(s[a]||(s[a]={idx:a,item:l,matches:[]},o.push(s[a])),u.forEach(({matches:h})=>{s[a].matches.push(...h)}))}}),o}_searchObjectList(e){const n=jo(e,this.options),{keys:r,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!Ne(o))return;let a=[];r.forEach((u,h)=>{a.push(...this._findMatches({key:u,value:o[h],searcher:n}))}),a.length&&s.push({idx:l,item:o,matches:a})}),s}_findMatches({key:e,value:n,searcher:r}){if(!Ne(n))return[];let i=[];if(pt(n))n.forEach(({v:s,i:o,n:l})=>{if(!Ne(s))return;const{isMatch:a,score:u,indices:h}=r.searchIn(s);a&&i.push({score:u,key:e,value:s,idx:o,norm:l,indices:h})});else{const{v:s,n:o}=n,{isMatch:l,score:a,indices:u}=r.searchIn(s);l&&i.push({score:a,key:e,value:s,norm:o,indices:u})}return i}}Mn.version="7.0.0";Mn.createIndex=eh;Mn.parseIndex=yv;Mn.config=z;Mn.parseQuery=ih;Mv(zv);function Nr(t){if(!t)return!1;const e=new Date(t);return!isNaN(e.getTime())}function Ri(t){return!t.releaseDate||!Nr(t.releaseDate)?0:new Date(t.releaseDate).getTime()}function bv(t,e,n){switch(n){case"releaseDate":{if(t.type!=="base"||e.type!=="base")return t.id.localeCompare(e.id);const r=Ri(t),i=Ri(e);return r===0&&i===0?t.id.localeCompare(e.id):r===0?1:i===0?-1:r===i?(t.name||"").localeCompare(e.name||""):i-r}case"name":{const r=t.name||"Unknown Title",i=e.name||"Unknown Title";return r==="Unknown Title"&&i!=="Unknown Title"?1:i==="Unknown Title"&&r!=="Unknown Title"?-1:r.localeCompare(i)}case"size":{const r=t.size||0,i=e.size||0;return r===0&&i!==0?1:i===0&&r!==0?-1:i-r}case"id":default:return t.id.localeCompare(e.id)}}function Bv(t,e,n){const r=[...t].sort((i,s)=>{const o=bv(i,s,e);return n==="asc"?o:-o});if(e==="releaseDate"){const i=r.filter(o=>Nr(o.releaseDate)),s=r.filter(o=>!Nr(o.releaseDate));return n==="asc"?[...i,...s]:[...i,...s]}return r}function Uv(t){const e=t.filter(l=>l.type==="base"&&Nr(l.releaseDate)),n=t.filter(l=>l.type==="base"&&!Nr(l.releaseDate)),r=t.filter(l=>l.type!=="base"),i=e.sort((l,a)=>{const u=Ri(l),h=Ri(a);return u===h?(l.name||"").localeCompare(a.name||""):h-u}),s=n.sort((l,a)=>l.id.localeCompare(a.id)),o=r.sort((l,a)=>l.id.localeCompare(a.id));return[...i,...s,...o]}function Hv(t){return{threshold:Math.max(.1,1-t),distance:Math.floor(30*(1-t)),minMatchCharLength:Math.max(2,Math.floor(4*t)),location:0,ignoreLocation:!1,findAllMatches:!0,includeMatches:!0,useExtendedSearch:!1,isCaseSensitive:!1,tokenize:!0,matchAllTokens:!1}}function Zv(t){const[e,n]=I.useState(""),[r,i]=I.useState(""),[s,o]=I.useState("name"),[l,a]=I.useState("asc"),{namePrecision:u}=tn(),h=I.useMemo(()=>new Mn(t,{keys:["name"],...Hv(u)}),[t,u]),f=I.useCallback(()=>{let v=t;if(r){const x=r.toLowerCase();v=v.filter(E=>E.id.toLowerCase().includes(x))}if(e.trim()){const E=h.search(e).map(m=>m.item);if(r){const m=new Set(E.map(d=>d.id));v=v.filter(d=>m.has(d.id))}else v=E}return v},[h,t,e,r]),p=I.useCallback(v=>{o(v),a(x=>v===s&&x==="asc"?"desc":"asc")},[s]),y=I.useMemo(()=>{const v=f();return Bv(v,s,l)},[f,s,l]);return{nameQuery:e,setNameQuery:n,tidQuery:r,setTidQuery:i,results:y,sortField:s,sortDirection:l,toggleSort:p}}function uu(t){if(!t)return!1;try{const e=new Date(t);if(isNaN(e.getTime()))return!1;const n=e.getFullYear(),r=new Date().getFullYear();return n>=2e3&&n<=r+2}catch{return!1}}function Wv(){const{isDark:t,setDarkMode:e,itemsPerPage:n,lastActiveTab:r,setLastActiveTab:i}=tn(),[s,o]=I.useState([]),[l,a]=I.useState(!0),[u,h]=I.useState(1),{nameQuery:f,setNameQuery:p,tidQuery:y,setTidQuery:v,results:x,sortField:E,sortDirection:m,toggleSort:d}=Zv(s);if(I.useEffect(()=>{const _=document.documentElement;t?_.classList.add("dark"):_.classList.remove("dark")},[t]),I.useEffect(()=>{(async()=>{try{a(!0),Je.info("Starting data load");const[N,F,M]=await Promise.all([fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.txt"),fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/titles_db.txt"),fetch("https://raw.githubusercontent.com/ghost-land/NX-Missing/refs/heads/main/data/working.json")]),[re,R]=await Promise.all([N.text(),F.text()]),Ae=await M.json(),ie=new Map(R.trim().split(` +`).map(Z=>{const[C,j,T,B]=Z.split("|");return[C,{date:j,name:T,size:parseInt(B)}]})),D=new Map;re.trim().split(` +`).forEach(Z=>{const[C,j]=Z.split("|"),T=C.endsWith("800")?"update":C.endsWith("000")?"base":"dlc",B=`${C}_${j||"0"}`,b=ie.get(C),he=Ae[C];D.has(B)||D.set(B,{id:C,uniqueId:B,type:T,version:j||(he==null?void 0:he.Version),name:(he==null?void 0:he["Game Name"])||(b==null?void 0:b.name)||"Unknown Title",size:(b==null?void 0:b.size)||(he==null?void 0:he.Size),releaseDate:T==="base"?b==null?void 0:b.date:void 0})});const A=Uv(Array.from(D.values()));o(A),a(!1),Je.info("Data load complete",{totalItems:A.length,baseCount:A.filter(Z=>Z.type==="base").length,updateCount:A.filter(Z=>Z.type==="update").length,dlcCount:A.filter(Z=>Z.type==="dlc").length,withDatesCount:A.filter(Z=>uu(Z.releaseDate)).length,withoutDatesCount:A.filter(Z=>!uu(Z.releaseDate)).length})}catch(N){throw Je.error("Failed to load content data",{errorMessage:N instanceof Error?N.message:"Unknown error"}),a(!1),new Error("Failed to load content data")}})()},[]),l)return c.jsx("div",{className:"fixed inset-0 bg-background flex items-center justify-center",children:c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-4 border-primary border-t-transparent mx-auto"}),c.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading games..."})]})});const g=x.filter(_=>_.type===r),w=Math.ceil(g.length/n),P=g.slice((u-1)*n,u*n),S={base:s.filter(_=>_.type==="base").length,update:s.filter(_=>_.type==="update").length,dlc:s.filter(_=>_.type==="dlc").length};return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(qg,{onToggleTheme:()=>e(!t)}),c.jsxs("main",{className:"max-w-7xl mx-auto px-4 py-8",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Base Games"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.base.toLocaleString()})]}),c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Updates"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.update.toLocaleString()})]}),c.jsxs("div",{className:"w-full rounded-lg p-4 border bg-card border-border text-foreground select-none",children:[c.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"DLCs"}),c.jsx("p",{className:"mt-2 text-3xl font-bold",children:S.dlc.toLocaleString()})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx(Jg,{nameQuery:f,tidQuery:y,onNameChange:p,onTidChange:v,resultCount:g.length,totalCount:s.filter(_=>_.type===r).length}),c.jsx(Vg,{activeTab:r,onTabChange:i,counts:S}),c.jsx(Wg,{items:P,allItems:s,currentPage:u,totalPages:w,onPageChange:h,sortField:E,sortDirection:m,onSort:d})]})]})]})}class Vv extends I.Component{constructor(){super(...arguments);Dn(this,"state",{hasError:!1,error:null});Dn(this,"handleReset",()=>{const{resetDataSources:n}=tn.getState();n(),window.location.reload()})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){var n,r,i;if(this.state.hasError){const s=(r=(n=this.state.error)==null?void 0:n.message)==null?void 0:r.includes("Failed to load game data");return c.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-card p-6 rounded-lg shadow-lg border border-border max-w-md w-full",children:[c.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[c.jsx(es,{className:"h-6 w-6 text-red-500"}),c.jsx("h2",{className:"text-lg font-semibold",children:"Something went wrong"})]}),c.jsx("p",{className:"text-muted-foreground mb-6",children:((i=this.state.error)==null?void 0:i.message)||"An unexpected error occurred"}),c.jsxs("div",{className:"flex flex-col space-y-3",children:[s&&c.jsxs("button",{className:"w-full flex items-center justify-center space-x-2 bg-red-500/10 text-red-500 px-4 py-2 rounded-lg hover:bg-red-500/20 transition-colors",onClick:this.handleReset,children:[c.jsx(Wp,{className:"h-4 w-4"}),c.jsx("span",{children:"Reset Data Sources & Reload"})]}),c.jsx("button",{className:"w-full bg-primary text-primary-foreground px-4 py-2 rounded-lg hover:bg-primary/90 transition-colors",onClick:()=>window.location.reload(),children:"Reload Page"})]}),s&&c.jsxs("div",{className:"mt-4 p-3 bg-muted rounded-lg text-sm text-muted-foreground",children:[c.jsx("p",{className:"font-medium mb-1",children:"💡 Tip"}),c.jsx("p",{children:"If you've modified the data source URLs in settings, try resetting them to their default values. This often resolves loading issues."})]})]})})}return this.props.children}}Ts.createRoot(document.getElementById("root")).render(c.jsx(Ro.StrictMode,{children:c.jsx(Vv,{children:c.jsx(Wv,{})})})); diff --git a/index.html b/index.html index 9b1d0e2..45787a9 100644 --- a/index.html +++ b/index.html @@ -4,8 +4,8 @@ NX Working - - + +