PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.3.1
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.3.1
5.6.2 5.6.3 5.6.1 5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 3.0.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.51 3.0.60 3.0.61 3.0.62 All 38 releases
double-opt-in / admin-ui / build / index.js

index.js in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification 5.3.1, at admin-ui/build/index.js

458 lines 810.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(data:font/woff2;base64,d09GMgABAAAAALyAABUAAAAB4CAAALwFAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoZeG4KyRBzVcD9IVkFSi2k/TVZBUl4GYD9TVEFUgU4nJgCFNi9sEQgKgbtAgaEUC4gOADCCnD4BNgIkA5AYBCAFhi4HoQQMB1tzzZFCvBvP7u3DbGpQpdsQgMqps1L7r3ADN3ekcLpSd3VjDvdRxlSwXT24HeDivrPV7P/////PTiZjjG6zbhuAgIaVWf//oFG6m0fKpZa1GtEM3hHeiRiGTOHDNEtW1uphm9xD8Yfsc845xSOllI6MZ0bgBa6OXQbsGPkQKYlQqD3X9YVVvH2KntB6YJwvZMXkp+C5yraOrUrG4lPZsKGIy79I0v3UzBZt9SM6yqcJLyKfWogpGCTMhFHtxxQ74e+iXfmlkqJiNbeKZ4KLcfByGbnFit+pfrn4okou/l1zuyzDbEtoImSSXDLgSfrNakEiSjNkyuNXIhj2Rtg8HXFaJ1HMmcuGV+Se8CUCw/bq3NAqMQ78EUkhmkVBNNkIe66aFY24EF5FxJKmvYhLeZu+817KeHDRANVOdSZT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U0ktw/VU411pkVh8q/32PH77H8z9qVLwAAAA==) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}#doi-admin-root *,#doi-admin-root :before,#doi-admin-root :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: }#doi-admin-root ::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: }#doi-admin-root *,#doi-admin-root :before,#doi-admin-root :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}#doi-admin-root :before,#doi-admin-root :after{--tw-content: ""}html,#doi-admin-root :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter Variable,Inter,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}#doi-admin-root hr{height:0;color:inherit;border-top-width:1px}#doi-admin-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#doi-admin-root h1,#doi-admin-root h2,#doi-admin-root h3,#doi-admin-root h4,#doi-admin-root h5,#doi-admin-root h6{font-size:inherit;font-weight:inherit}#doi-admin-root a{color:inherit;text-decoration:inherit}#doi-admin-root b,#doi-admin-root strong{font-weight:bolder}#doi-admin-root code,#doi-admin-root kbd,#doi-admin-root samp,#doi-admin-root 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}#doi-admin-root small{font-size:80%}#doi-admin-root sub,#doi-admin-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}#doi-admin-root sub{bottom:-.25em}#doi-admin-root sup{top:-.5em}#doi-admin-root table{text-indent:0;border-color:inherit;border-collapse:collapse}#doi-admin-root button,#doi-admin-root input,#doi-admin-root optgroup,#doi-admin-root select,#doi-admin-root 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}#doi-admin-root button,#doi-admin-root select{text-transform:none}#doi-admin-root button,#doi-admin-root input:where([type=button]),#doi-admin-root input:where([type=reset]),#doi-admin-root input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}#doi-admin-root :-moz-focusring{outline:auto}#doi-admin-root :-moz-ui-invalid{box-shadow:none}#doi-admin-root progress{vertical-align:baseline}#doi-admin-root ::-webkit-inner-spin-button,#doi-admin-root ::-webkit-outer-spin-button{height:auto}#doi-admin-root [type=search]{-webkit-appearance:textfield;outline-offset:-2px}#doi-admin-root ::-webkit-search-decoration{-webkit-appearance:none}#doi-admin-root ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}#doi-admin-root summary{display:list-item}#doi-admin-root blockquote,#doi-admin-root dl,#doi-admin-root dd,#doi-admin-root h1,#doi-admin-root h2,#doi-admin-root h3,#doi-admin-root h4,#doi-admin-root h5,#doi-admin-root h6,#doi-admin-root hr,#doi-admin-root figure,#doi-admin-root p,#doi-admin-root pre{margin:0}#doi-admin-root fieldset{margin:0;padding:0}#doi-admin-root legend{padding:0}#doi-admin-root ol,#doi-admin-root ul,#doi-admin-root menu{list-style:none;margin:0;padding:0}#doi-admin-root dialog{padding:0}#doi-admin-root textarea{resize:vertical}#doi-admin-root input::-moz-placeholder,#doi-admin-root textarea::-moz-placeholder{opacity:1;color:#9ca3af}#doi-admin-root input::placeholder,#doi-admin-root textarea::placeholder{opacity:1;color:#9ca3af}#doi-admin-root button,#doi-admin-root [role=button]{cursor:pointer}#doi-admin-root :disabled{cursor:default}#doi-admin-root img,#doi-admin-root svg,#doi-admin-root video,#doi-admin-root canvas,#doi-admin-root audio,#doi-admin-root iframe,#doi-admin-root embed,#doi-admin-root object{display:block;vertical-align:middle}#doi-admin-root img,#doi-admin-root video{max-width:100%;height:auto}#doi-admin-root [hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 210 20% 98%;--foreground: 220 26% 14%;--card: 0 0% 100%;--card-foreground: 220 26% 14%;--popover: 0 0% 100%;--popover-foreground: 220 26% 14%;--primary: 207 90% 54%;--primary-foreground: 0 0% 100%;--secondary: 220 14% 96%;--secondary-foreground: 220 26% 14%;--muted: 220 14% 96%;--muted-foreground: 218 11% 45%;--accent: 220 14% 96%;--accent-foreground: 220 26% 14%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--border: 220 13% 91%;--input: 220 13% 83%;--ring: 207 90% 54%;--radius: .5rem;--success: 142 71% 45%;--success-foreground: 0 0% 100%;--warning: 38 92% 50%;--warning-foreground: 0 0% 100%;--info: 207 90% 54%;--info-foreground: 0 0% 100%;--pro-start: 42 79% 50%;--pro-end: 37 77% 47%;--chart-1: 207 90% 54%;--chart-2: 142 71% 45%;--chart-3: 0 84% 60%;--chart-4: 38 92% 50%;--chart-5: 270 60% 55%;--sidebar-background: 220 20% 97%;--sidebar-foreground: 220 26% 14%;--sidebar-primary: 207 90% 54%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 220 14% 93%;--sidebar-accent-foreground: 220 26% 14%;--sidebar-border: 220 13% 91%;--sidebar-ring: 207 90% 54%}#doi-admin-root *{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter Variable,Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#doi-admin-root .\\!container{width:100%!important;margin-right:auto!important;margin-left:auto!important;padding-right:2rem!important;padding-left:2rem!important}#doi-admin-root .container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){#doi-admin-root .\\!container{max-width:1400px!important}#doi-admin-root .container{max-width:1400px}}#doi-admin-root .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}#doi-admin-root .pointer-events-none{pointer-events:none}#doi-admin-root .pointer-events-auto{pointer-events:auto}#doi-admin-root .visible{visibility:visible}#doi-admin-root .invisible{visibility:hidden}#doi-admin-root .static{position:static}#doi-admin-root .fixed{position:fixed}#doi-admin-root .absolute{position:absolute}#doi-admin-root .relative{position:relative}#doi-admin-root .sticky{position:sticky}#doi-admin-root .inset-0{inset:0}#doi-admin-root .inset-x-0{left:0;right:0}#doi-admin-root .inset-y-0{top:0;bottom:0}#doi-admin-root .-bottom-12{bottom:-3rem}#doi-admin-root .-left-12{left:-3rem}#doi-admin-root .-right-12{right:-3rem}#doi-admin-root .-top-12{top:-3rem}#doi-admin-root .bottom-0{bottom:0}#doi-admin-root .left-0{left:0}#doi-admin-root .left-1{left:.25rem}#doi-admin-root .left-1\\/2{left:50%}#doi-admin-root .left-2{left:.5rem}#doi-admin-root .left-2\\.5{left:.625rem}#doi-admin-root .left-\\[50\\%\\]{left:50%}#doi-admin-root .right-0{right:0}#doi-admin-root .right-1{right:.25rem}#doi-admin-root .right-2{right:.5rem}#doi-admin-root .right-3{right:.75rem}#doi-admin-root .right-4{right:1rem}#doi-admin-root .top-0{top:0}#doi-admin-root .top-1\\.5{top:.375rem}#doi-admin-root .top-1\\/2{top:50%}#doi-admin-root .top-2{top:.5rem}#doi-admin-root .top-2\\.5{top:.625rem}#doi-admin-root .top-3\\.5{top:.875rem}#doi-admin-root .top-4{top:1rem}#doi-admin-root .top-\\[1px\\]{top:1px}#doi-admin-root .top-\\[50\\%\\]{top:50%}#doi-admin-root .top-\\[60\\%\\]{top:60%}#doi-admin-root .top-full{top:100%}#doi-admin-root .z-10{z-index:10}#doi-admin-root .z-20{z-index:20}#doi-admin-root .z-30{z-index:30}#doi-admin-root .z-50{z-index:50}#doi-admin-root .z-\\[100\\]{z-index:100}#doi-admin-root .z-\\[1\\]{z-index:1}#doi-admin-root .col-span-2{grid-column:span 2 / span 2}#doi-admin-root .-mx-1{margin-left:-.25rem;margin-right:-.25rem}#doi-admin-root .-mx-4{margin-left:-1rem;margin-right:-1rem}#doi-admin-root .mx-0\\.5{margin-left:.125rem;margin-right:.125rem}#doi-admin-root .mx-1{margin-left:.25rem;margin-right:.25rem}#doi-admin-root .mx-2{margin-left:.5rem;margin-right:.5rem}#doi-admin-root .mx-3\\.5{margin-left:.875rem;margin-right:.875rem}#doi-admin-root .mx-auto{margin-left:auto;margin-right:auto}#doi-admin-root .my-1{margin-top:.25rem;margin-bottom:.25rem}#doi-admin-root .\\!mt-12{margin-top:3rem!important}#doi-admin-root .\\!mt-20{margin-top:5rem!important}#doi-admin-root .-ml-4{margin-left:-1rem}#doi-admin-root .-mt-2{margin-top:-.5rem}#doi-admin-root .-mt-4{margin-top:-1rem}#doi-admin-root .mb-0\\.5{margin-bottom:.125rem}#doi-admin-root .mb-1{margin-bottom:.25rem}#doi-admin-root .mb-2{margin-bottom:.5rem}#doi-admin-root .mb-3{margin-bottom:.75rem}#doi-admin-root .mb-4{margin-bottom:1rem}#doi-admin-root .mb-6{margin-bottom:1.5rem}#doi-admin-root .ml-1{margin-left:.25rem}#doi-admin-root .ml-1\\.5{margin-left:.375rem}#doi-admin-root .ml-10{margin-left:2.5rem}#doi-admin-root .ml-auto{margin-left:auto}#doi-admin-root .mr-0\\.5{margin-right:.125rem}#doi-admin-root .mr-1{margin-right:.25rem}#doi-admin-root .mr-1\\.5{margin-right:.375rem}#doi-admin-root .mr-2{margin-right:.5rem}#doi-admin-root .mt-0\\.5{margin-top:.125rem}#doi-admin-root .mt-1{margin-top:.25rem}#doi-admin-root .mt-1\\.5{margin-top:.375rem}#doi-admin-root .mt-12{margin-top:3rem}#doi-admin-root .mt-2{margin-top:.5rem}#doi-admin-root .mt-24{margin-top:6rem}#doi-admin-root .mt-3{margin-top:.75rem}#doi-admin-root .mt-4{margin-top:1rem}#doi-admin-root .mt-6{margin-top:1.5rem}#doi-admin-root .mt-auto{margin-top:auto}#doi-admin-root .block{display:block}#doi-admin-root .inline-block{display:inline-block}#doi-admin-root .inline{display:inline}#doi-admin-root .flex{display:flex}#doi-admin-root .inline-flex{display:inline-flex}#doi-admin-root .table{display:table}#doi-admin-root .grid{display:grid}#doi-admin-root .contents{display:contents}#doi-admin-root .hidden{display:none}#doi-admin-root .aspect-square{aspect-ratio:1 / 1}#doi-admin-root .size-4{width:1rem;height:1rem}#doi-admin-root .h-1\\.5{height:.375rem}#doi-admin-root .h-10{height:2.5rem}#doi-admin-root .h-11{height:2.75rem}#doi-admin-root .h-12{height:3rem}#doi-admin-root .h-14{height:3.5rem}#doi-admin-root .h-16{height:4rem}#doi-admin-root .h-2{height:.5rem}#doi-admin-root .h-2\\.5{height:.625rem}#doi-admin-root .h-20{height:5rem}#doi-admin-root .h-24{height:6rem}#doi-admin-root .h-3{height:.75rem}#doi-admin-root .h-3\\.5{height:.875rem}#doi-admin-root .h-32{height:8rem}#doi-admin-root .h-4{height:1rem}#doi-admin-root .h-40{height:10rem}#doi-admin-root .h-44{height:11rem}#doi-admin-root .h-48{height:12rem}#doi-admin-root .h-5{height:1.25rem}#doi-admin-root .h-6{height:1.5rem}#doi-admin-root .h-64{height:16rem}#doi-admin-root .h-7{height:1.75rem}#doi-admin-root .h-8{height:2rem}#doi-admin-root .h-9{height:2.25rem}#doi-admin-root .h-96{height:24rem}#doi-admin-root .h-\\[1px\\]{height:1px}#doi-admin-root .h-\\[600px\\]{height:600px}#doi-admin-root .h-\\[calc\\(100svh-var\\(--wp-admin--admin-bar--height\\,32px\\)\\)\\]{height:calc(100svh - var(--wp-admin--admin-bar--height,32px))}#doi-admin-root .h-\\[var\\(--radix-navigation-menu-viewport-height\\)\\]{height:var(--radix-navigation-menu-viewport-height)}#doi-admin-root .h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}#doi-admin-root .h-auto{height:auto}#doi-admin-root .h-full{height:100%}#doi-admin-root .h-px{height:1px}#doi-admin-root .max-h-96{max-height:24rem}#doi-admin-root .max-h-\\[300px\\]{max-height:300px}#doi-admin-root .max-h-\\[400px\\]{max-height:400px}#doi-admin-root .max-h-screen{max-height:100vh}#doi-admin-root .min-h-0{min-height:0px}#doi-admin-root .min-h-\\[120px\\]{min-height:120px}#doi-admin-root .min-h-\\[300px\\]{min-height:300px}#doi-admin-root .min-h-\\[60px\\]{min-height:60px}#doi-admin-root .min-h-\\[60vh\\]{min-height:60vh}#doi-admin-root .min-h-\\[80px\\]{min-height:80px}#doi-admin-root .min-h-\\[calc\\(100vh-var\\(--wp-admin--admin-bar--height\\,32px\\)\\)\\]{min-height:calc(100vh - var(--wp-admin--admin-bar--height,32px))}#doi-admin-root .min-h-svh{min-height:100svh}#doi-admin-root .w-10{width:2.5rem}#doi-admin-root .w-11{width:2.75rem}#doi-admin-root .w-12{width:3rem}#doi-admin-root .w-16{width:4rem}#doi-admin-root .w-2{width:.5rem}#doi-admin-root .w-2\\.5{width:.625rem}#doi-admin-root .w-20{width:5rem}#doi-admin-root .w-24{width:6rem}#doi-admin-root .w-28{width:7rem}#doi-admin-root .w-3{width:.75rem}#doi-admin-root .w-3\\.5{width:.875rem}#doi-admin-root .w-3\\/4{width:75%}#doi-admin-root .w-32{width:8rem}#doi-admin-root .w-4{width:1rem}#doi-admin-root .w-40{width:10rem}#doi-admin-root .w-48{width:12rem}#doi-admin-root .w-5{width:1.25rem}#doi-admin-root .w-6{width:1.5rem}#doi-admin-root .w-64{width:16rem}#doi-admin-root .w-7{width:1.75rem}#doi-admin-root .w-72{width:18rem}#doi-admin-root .w-8{width:2rem}#doi-admin-root .w-9{width:2.25rem}#doi-admin-root .w-\\[--sidebar-width\\]{width:var(--sidebar-width)}#doi-admin-root .w-\\[100px\\]{width:100px}#doi-admin-root .w-\\[120px\\]{width:120px}#doi-admin-root .w-\\[130px\\]{width:130px}#doi-admin-root .w-\\[140px\\]{width:140px}#doi-admin-root .w-\\[150px\\]{width:150px}#doi-admin-root .w-\\[160px\\]{width:160px}#doi-admin-root .w-\\[1px\\]{width:1px}#doi-admin-root .w-\\[70px\\]{width:70px}#doi-admin-root .w-\\[90px\\]{width:90px}#doi-admin-root .w-auto{width:auto}#doi-admin-root .w-full{width:100%}#doi-admin-root .w-max{width:-moz-max-content;width:max-content}#doi-admin-root .w-px{width:1px}#doi-admin-root .min-w-0{min-width:0px}#doi-admin-root .min-w-5{min-width:1.25rem}#doi-admin-root .min-w-\\[12rem\\]{min-width:12rem}#doi-admin-root .min-w-\\[200px\\]{min-width:200px}#doi-admin-root .min-w-\\[8rem\\]{min-width:8rem}#doi-admin-root .min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}#doi-admin-root .max-w-\\[--skeleton-width\\]{max-width:var(--skeleton-width)}#doi-admin-root .max-w-\\[300px\\]{max-width:300px}#doi-admin-root .max-w-\\[400px\\]{max-width:400px}#doi-admin-root .max-w-\\[440px\\]{max-width:440px}#doi-admin-root .max-w-\\[480px\\]{max-width:480px}#doi-admin-root .max-w-\\[60\\%\\]{max-width:60%}#doi-admin-root .max-w-\\[600px\\]{max-width:600px}#doi-admin-root .max-w-\\[680px\\]{max-width:680px}#doi-admin-root .max-w-lg{max-width:32rem}#doi-admin-root .max-w-max{max-width:-moz-max-content;max-width:max-content}#doi-admin-root .max-w-md{max-width:28rem}#doi-admin-root .flex-1{flex:1 1 0%}#doi-admin-root .shrink-0{flex-shrink:0}#doi-admin-root .grow{flex-grow:1}#doi-admin-root .grow-0{flex-grow:0}#doi-admin-root .basis-full{flex-basis:100%}#doi-admin-root .caption-bottom{caption-side:bottom}#doi-admin-root .border-collapse{border-collapse:collapse}#doi-admin-root .-translate-x-1\\/2{--tw-translate-x: -50%;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))}#doi-admin-root .-translate-x-px{--tw-translate-x: -1px;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))}#doi-admin-root .-translate-y-1\\/2{--tw-translate-y: -50%;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))}#doi-admin-root .translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;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))}#doi-admin-root .translate-x-px{--tw-translate-x: 1px;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))}#doi-admin-root .translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;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))}#doi-admin-root .rotate-180{--tw-rotate: 180deg;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))}#doi-admin-root .rotate-45{--tw-rotate: 45deg;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))}#doi-admin-root .rotate-90{--tw-rotate: 90deg;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))}#doi-admin-root .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 pulse{50%{opacity:.5}}#doi-admin-root .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}#doi-admin-root .animate-spin{animation:spin 1s linear infinite}#doi-admin-root .cursor-default{cursor:default}#doi-admin-root .cursor-pointer{cursor:pointer}#doi-admin-root .touch-none{touch-action:none}#doi-admin-root .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}#doi-admin-root .list-inside{list-style-position:inside}#doi-admin-root .list-disc{list-style-type:disc}#doi-admin-root .list-none{list-style-type:none}#doi-admin-root .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#doi-admin-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .flex-row{flex-direction:row}#doi-admin-root .flex-col{flex-direction:column}#doi-admin-root .flex-col-reverse{flex-direction:column-reverse}#doi-admin-root .flex-wrap{flex-wrap:wrap}#doi-admin-root .items-start{align-items:flex-start}#doi-admin-root .items-end{align-items:flex-end}#doi-admin-root .items-center{align-items:center}#doi-admin-root .items-baseline{align-items:baseline}#doi-admin-root .justify-start{justify-content:flex-start}#doi-admin-root .justify-end{justify-content:flex-end}#doi-admin-root .justify-center{justify-content:center}#doi-admin-root .justify-between{justify-content:space-between}#doi-admin-root .gap-0{gap:0px}#doi-admin-root .gap-1{gap:.25rem}#doi-admin-root .gap-1\\.5{gap:.375rem}#doi-admin-root .gap-2{gap:.5rem}#doi-admin-root .gap-3{gap:.75rem}#doi-admin-root .gap-4{gap:1rem}#doi-admin-root .gap-5{gap:1.25rem}#doi-admin-root .gap-6{gap:1.5rem}#doi-admin-root .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#doi-admin-root .gap-y-1{row-gap:.25rem}#doi-admin-root :is(.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)))}#doi-admin-root :is(.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)))}#doi-admin-root :is(.space-y-0\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.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))}#doi-admin-root :is(.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))}#doi-admin-root :is(.space-y-5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.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))}#doi-admin-root :is(.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))}#doi-admin-root :is(.divide-border\\/50>:not([hidden])~:not([hidden])){border-color:hsl(var(--border) / .5)}#doi-admin-root .overflow-auto{overflow:auto}#doi-admin-root .overflow-hidden{overflow:hidden}#doi-admin-root .overflow-x-auto{overflow-x:auto}#doi-admin-root .overflow-y-auto{overflow-y:auto}#doi-admin-root .overflow-x-hidden{overflow-x:hidden}#doi-admin-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#doi-admin-root .whitespace-nowrap{white-space:nowrap}#doi-admin-root .whitespace-pre-wrap{white-space:pre-wrap}#doi-admin-root .break-words{overflow-wrap:break-word}#doi-admin-root .break-all{word-break:break-all}#doi-admin-root .rounded{border-radius:.25rem}#doi-admin-root .rounded-2xl{border-radius:1rem}#doi-admin-root .rounded-\\[inherit\\]{border-radius:inherit}#doi-admin-root .rounded-full{border-radius:9999px}#doi-admin-root .rounded-lg{border-radius:var(--radius)}#doi-admin-root .rounded-md{border-radius:calc(var(--radius) - 2px)}#doi-admin-root .rounded-sm{border-radius:calc(var(--radius) - 4px)}#doi-admin-root .rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}#doi-admin-root .rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}#doi-admin-root .border{border-width:1px}#doi-admin-root .border-0{border-width:0px}#doi-admin-root .border-2{border-width:2px}#doi-admin-root .border-y{border-top-width:1px;border-bottom-width:1px}#doi-admin-root .border-b{border-bottom-width:1px}#doi-admin-root .border-l{border-left-width:1px}#doi-admin-root .border-r{border-right-width:1px}#doi-admin-root .border-t{border-top-width:1px}#doi-admin-root .border-dashed{border-style:dashed}#doi-admin-root .border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}#doi-admin-root .border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}#doi-admin-root .border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}#doi-admin-root .border-blue-200\\/50{border-color:#bfdbfe80}#doi-admin-root .border-border{border-color:hsl(var(--border))}#doi-admin-root .border-border\\/50{border-color:hsl(var(--border) / .5)}#doi-admin-root .border-destructive{border-color:hsl(var(--destructive))}#doi-admin-root .border-destructive\\/30{border-color:hsl(var(--destructive) / .3)}#doi-admin-root .border-destructive\\/50{border-color:hsl(var(--destructive) / .5)}#doi-admin-root .border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}#doi-admin-root .border-input{border-color:hsl(var(--input))}#doi-admin-root .border-primary{border-color:hsl(var(--primary))}#doi-admin-root .border-primary\\/20{border-color:hsl(var(--primary) / .2)}#doi-admin-root .border-primary\\/30{border-color:hsl(var(--primary) / .3)}#doi-admin-root .border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}#doi-admin-root .border-sidebar-border{border-color:hsl(var(--sidebar-border))}#doi-admin-root .border-transparent{border-color:transparent}#doi-admin-root .border-warning{border-color:hsl(var(--warning))}#doi-admin-root .border-l-transparent{border-left-color:transparent}#doi-admin-root .border-t-transparent{border-top-color:transparent}#doi-admin-root .bg-accent{background-color:hsl(var(--accent))}#doi-admin-root .bg-accent\\/50{background-color:hsl(var(--accent) / .5)}#doi-admin-root .bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-background{background-color:hsl(var(--background))}#doi-admin-root .bg-background\\/95{background-color:hsl(var(--background) / .95)}#doi-admin-root .bg-black\\/80{background-color:#000c}#doi-admin-root .bg-blue-50\\/50{background-color:#eff6ff80}#doi-admin-root .bg-border{background-color:hsl(var(--border))}#doi-admin-root .bg-card{background-color:hsl(var(--card))}#doi-admin-root .bg-card\\/85{background-color:hsl(var(--card) / .85)}#doi-admin-root .bg-destructive{background-color:hsl(var(--destructive))}#doi-admin-root .bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-foreground{background-color:hsl(var(--foreground))}#doi-admin-root .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-muted{background-color:hsl(var(--muted))}#doi-admin-root .bg-muted\\/30{background-color:hsl(var(--muted) / .3)}#doi-admin-root .bg-muted\\/50{background-color:hsl(var(--muted) / .5)}#doi-admin-root .bg-popover{background-color:hsl(var(--popover))}#doi-admin-root .bg-primary{background-color:hsl(var(--primary))}#doi-admin-root .bg-primary-foreground\\/15{background-color:hsl(var(--primary-foreground) / .15)}#doi-admin-root .bg-primary\\/10{background-color:hsl(var(--primary) / .1)}#doi-admin-root .bg-primary\\/5{background-color:hsl(var(--primary) / .05)}#doi-admin-root .bg-primary\\/\\[0\\.03\\]{background-color:hsl(var(--primary) / .03)}#doi-admin-root .bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-secondary{background-color:hsl(var(--secondary))}#doi-admin-root .bg-sidebar{background-color:hsl(var(--sidebar-background))}#doi-admin-root .bg-sidebar-border{background-color:hsl(var(--sidebar-border))}#doi-admin-root .bg-success{background-color:hsl(var(--success))}#doi-admin-root .bg-success\\/15{background-color:hsl(var(--success) / .15)}#doi-admin-root .bg-transparent{background-color:transparent}#doi-admin-root .bg-warning\\/10{background-color:hsl(var(--warning) / .1)}#doi-admin-root .bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}#doi-admin-root .from-primary{--tw-gradient-from: hsl(var(--primary)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}#doi-admin-root .to-primary\\/70{--tw-gradient-to: hsl(var(--primary) / .7) var(--tw-gradient-to-position)}#doi-admin-root .fill-current{fill:currentColor}#doi-admin-root .p-0{padding:0}#doi-admin-root .p-1{padding:.25rem}#doi-admin-root .p-2{padding:.5rem}#doi-admin-root .p-3{padding:.75rem}#doi-admin-root .p-4{padding:1rem}#doi-admin-root .p-5{padding:1.25rem}#doi-admin-root .p-6{padding:1.5rem}#doi-admin-root .p-8{padding:2rem}#doi-admin-root .p-\\[1px\\]{padding:1px}#doi-admin-root .px-1{padding-left:.25rem;padding-right:.25rem}#doi-admin-root .px-1\\.5{padding-left:.375rem;padding-right:.375rem}#doi-admin-root .px-2{padding-left:.5rem;padding-right:.5rem}#doi-admin-root .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#doi-admin-root .px-3{padding-left:.75rem;padding-right:.75rem}#doi-admin-root .px-4{padding-left:1rem;padding-right:1rem}#doi-admin-root .px-5{padding-left:1.25rem;padding-right:1.25rem}#doi-admin-root .px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .px-8{padding-left:2rem;padding-right:2rem}#doi-admin-root .py-0{padding-top:0;padding-bottom:0}#doi-admin-root .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}#doi-admin-root .py-1{padding-top:.25rem;padding-bottom:.25rem}#doi-admin-root .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}#doi-admin-root .py-16{padding-top:4rem;padding-bottom:4rem}#doi-admin-root .py-2{padding-top:.5rem;padding-bottom:.5rem}#doi-admin-root .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}#doi-admin-root .py-3{padding-top:.75rem;padding-bottom:.75rem}#doi-admin-root .py-4{padding-top:1rem;padding-bottom:1rem}#doi-admin-root .py-6{padding-top:1.5rem;padding-bottom:1.5rem}#doi-admin-root .py-8{padding-top:2rem;padding-bottom:2rem}#doi-admin-root .pb-1{padding-bottom:.25rem}#doi-admin-root .pb-2{padding-bottom:.5rem}#doi-admin-root .pb-3{padding-bottom:.75rem}#doi-admin-root .pb-4{padding-bottom:1rem}#doi-admin-root .pl-2\\.5{padding-left:.625rem}#doi-admin-root .pl-4{padding-left:1rem}#doi-admin-root .pl-8{padding-left:2rem}#doi-admin-root .pr-2{padding-right:.5rem}#doi-admin-root .pr-2\\.5{padding-right:.625rem}#doi-admin-root .pr-3{padding-right:.75rem}#doi-admin-root .pr-8{padding-right:2rem}#doi-admin-root .pt-0{padding-top:0}#doi-admin-root .pt-1{padding-top:.25rem}#doi-admin-root .pt-2{padding-top:.5rem}#doi-admin-root .pt-3{padding-top:.75rem}#doi-admin-root .pt-4{padding-top:1rem}#doi-admin-root .pt-6{padding-top:1.5rem}#doi-admin-root .text-left{text-align:left}#doi-admin-root .text-center{text-align:center}#doi-admin-root .text-right{text-align:right}#doi-admin-root .align-top{vertical-align:top}#doi-admin-root .align-middle{vertical-align:middle}#doi-admin-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}#doi-admin-root .font-sans{font-family:Inter Variable,Inter,system-ui,sans-serif}#doi-admin-root .text-2xl{font-size:1.5rem;line-height:2rem}#doi-admin-root .text-4xl{font-size:2.25rem;line-height:2.5rem}#doi-admin-root .text-\\[0\\.8rem\\]{font-size:.8rem}#doi-admin-root .text-\\[10px\\]{font-size:10px}#doi-admin-root .text-\\[11px\\]{font-size:11px}#doi-admin-root .text-base{font-size:1rem;line-height:1.5rem}#doi-admin-root .text-lg{font-size:1.125rem;line-height:1.75rem}#doi-admin-root .text-sm{font-size:.875rem;line-height:1.25rem}#doi-admin-root .text-xs{font-size:.75rem;line-height:1rem}#doi-admin-root .font-bold{font-weight:700}#doi-admin-root .font-medium{font-weight:500}#doi-admin-root .font-normal{font-weight:400}#doi-admin-root .font-semibold{font-weight:600}#doi-admin-root .uppercase{text-transform:uppercase}#doi-admin-root .capitalize{text-transform:capitalize}#doi-admin-root .italic{font-style:italic}#doi-admin-root .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#doi-admin-root .leading-none{line-height:1}#doi-admin-root .leading-relaxed{line-height:1.625}#doi-admin-root .leading-tight{line-height:1.25}#doi-admin-root .tracking-tight{letter-spacing:-.025em}#doi-admin-root .tracking-wide{letter-spacing:.025em}#doi-admin-root .tracking-wider{letter-spacing:.05em}#doi-admin-root .tracking-widest{letter-spacing:.1em}#doi-admin-root .text-accent-foreground{color:hsl(var(--accent-foreground))}#doi-admin-root .text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}#doi-admin-root .text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}#doi-admin-root .text-blue-800\\/80{color:#1e40afcc}#doi-admin-root .text-blue-900\\/70{color:#1e3a8ab3}#doi-admin-root .text-card-foreground{color:hsl(var(--card-foreground))}#doi-admin-root .text-current{color:currentColor}#doi-admin-root .text-destructive{color:hsl(var(--destructive))}#doi-admin-root .text-destructive-foreground{color:hsl(var(--destructive-foreground))}#doi-admin-root .text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}#doi-admin-root .text-foreground{color:hsl(var(--foreground))}#doi-admin-root .text-foreground\\/50{color:hsl(var(--foreground) / .5)}#doi-admin-root .text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}#doi-admin-root .text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}#doi-admin-root .text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}#doi-admin-root .text-muted-foreground{color:hsl(var(--muted-foreground))}#doi-admin-root .text-muted-foreground\\/30{color:hsl(var(--muted-foreground) / .3)}#doi-admin-root .text-popover-foreground{color:hsl(var(--popover-foreground))}#doi-admin-root .text-primary{color:hsl(var(--primary))}#doi-admin-root .text-primary-foreground{color:hsl(var(--primary-foreground))}#doi-admin-root .text-primary-foreground\\/80{color:hsl(var(--primary-foreground) / .8)}#doi-admin-root .text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}#doi-admin-root .text-secondary-foreground{color:hsl(var(--secondary-foreground))}#doi-admin-root .text-sidebar-foreground{color:hsl(var(--sidebar-foreground))}#doi-admin-root .text-sidebar-foreground\\/70{color:hsl(var(--sidebar-foreground) / .7)}#doi-admin-root .text-success{color:hsl(var(--success))}#doi-admin-root .text-success-foreground{color:hsl(var(--success-foreground))}#doi-admin-root .text-warning{color:hsl(var(--warning))}#doi-admin-root .underline{text-decoration-line:underline}#doi-admin-root .underline-offset-4{text-underline-offset:4px}#doi-admin-root .opacity-0{opacity:0}#doi-admin-root .opacity-40{opacity:.4}#doi-admin-root .opacity-50{opacity:.5}#doi-admin-root .opacity-60{opacity:.6}#doi-admin-root .opacity-70{opacity:.7}#doi-admin-root .opacity-90{opacity:.9}#doi-admin-root .shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-border\\)\\)\\]{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-border));--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .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)}#doi-admin-root .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)}#doi-admin-root .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .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)}#doi-admin-root .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)}#doi-admin-root .outline-none{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .outline{outline-style:solid}#doi-admin-root .ring-0{--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(0px + 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)}#doi-admin-root .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)}#doi-admin-root .ring-green-500\\/20{--tw-ring-color: rgb(34 197 94 / .2)}#doi-admin-root .ring-red-500\\/20{--tw-ring-color: rgb(239 68 68 / .2)}#doi-admin-root .ring-ring{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .ring-sidebar-ring{--tw-ring-color: hsl(var(--sidebar-ring))}#doi-admin-root .ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}#doi-admin-root .blur-\\[3px\\]{--tw-blur: blur(3px);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)}#doi-admin-root .blur-sm{--tw-blur: blur(4px);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)}#doi-admin-root .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)}#doi-admin-root .backdrop-blur{--tw-backdrop-blur: blur(8px);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)}#doi-admin-root .backdrop-filter{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)}#doi-admin-root .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-\\[margin\\,opa\\]{transition-property:margin,opa;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-\\[width\\,height\\,padding\\]{transition-property:width,height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .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}#doi-admin-root .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .duration-1000{transition-duration:1s}#doi-admin-root .duration-200{transition-duration:.2s}#doi-admin-root .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#doi-admin-root .ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}#doi-admin-root .animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}#doi-admin-root .fade-in,#doi-admin-root .fade-in-0{--tw-enter-opacity: 0}#doi-admin-root .fade-in-80{--tw-enter-opacity: .8}#doi-admin-root .zoom-in-95{--tw-enter-scale: .95}#doi-admin-root .slide-in-from-top-1{--tw-enter-translate-y: -.25rem}#doi-admin-root .duration-1000{animation-duration:1s}#doi-admin-root .duration-200{animation-duration:.2s}#doi-admin-root .ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}#doi-admin-root .ease-linear{animation-timing-function:linear}#doi-admin-root .paused{animation-play-state:paused}#doi-admin-root .pro-gradient{background:linear-gradient(135deg,hsl(var(--pro-start)),hsl(var(--pro-end)))}#doi-admin-root .pro-badge{background:linear-gradient(135deg,hsl(var(--pro-start)),hsl(var(--pro-end)));color:#fff;font-size:10px;font-weight:700;text-transform:uppercase;padding:2px 6px;border-radius:3px;letter-spacing:.5px}#doi-admin-root .file\\:border-0::file-selector-button{border-width:0px}#doi-admin-root .file\\:bg-transparent::file-selector-button{background-color:transparent}#doi-admin-root .file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}#doi-admin-root .file\\:font-medium::file-selector-button{font-weight:500}#doi-admin-root .file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}#doi-admin-root .placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}#doi-admin-root .placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}#doi-admin-root .backdrop\\:bg-black\\/50::backdrop{background-color:#00000080}#doi-admin-root .backdrop\\:backdrop-blur-sm::backdrop{--tw-backdrop-blur: blur(4px);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)}#doi-admin-root .after\\:absolute:after{content:var(--tw-content);position:absolute}#doi-admin-root .after\\:-inset-2:after{content:var(--tw-content);inset:-.5rem}#doi-admin-root .after\\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}#doi-admin-root .after\\:left-1\\/2:after{content:var(--tw-content);left:50%}#doi-admin-root .after\\:w-1:after{content:var(--tw-content);width:.25rem}#doi-admin-root .after\\:w-\\[2px\\]:after{content:var(--tw-content);width:2px}#doi-admin-root .after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x: -50%;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))}#doi-admin-root .first\\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}#doi-admin-root .first\\:border-l:first-child{border-left-width:1px}#doi-admin-root .last\\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .focus-within\\:relative:focus-within{position:relative}#doi-admin-root .focus-within\\:z-20:focus-within{z-index:20}#doi-admin-root .hover\\:border-foreground\\/30:hover{border-color:hsl(var(--foreground) / .3)}#doi-admin-root .hover\\:bg-accent:hover{background-color:hsl(var(--accent))}#doi-admin-root .hover\\:bg-accent\\/30:hover{background-color:hsl(var(--accent) / .3)}#doi-admin-root .hover\\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-amber-50:hover{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-destructive\\/10:hover{background-color:hsl(var(--destructive) / .1)}#doi-admin-root .hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive) / .8)}#doi-admin-root .hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}#doi-admin-root .hover\\:bg-emerald-50:hover{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-muted:hover{background-color:hsl(var(--muted))}#doi-admin-root .hover\\:bg-muted\\/50:hover{background-color:hsl(var(--muted) / .5)}#doi-admin-root .hover\\:bg-primary:hover{background-color:hsl(var(--primary))}#doi-admin-root .hover\\:bg-primary\\/10:hover{background-color:hsl(var(--primary) / .1)}#doi-admin-root .hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary) / .8)}#doi-admin-root .hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}#doi-admin-root .hover\\:bg-secondary:hover{background-color:hsl(var(--secondary))}#doi-admin-root .hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}#doi-admin-root .hover\\:bg-sidebar-accent:hover{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .hover\\:bg-success\\/90:hover{background-color:hsl(var(--success) / .9)}#doi-admin-root .hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}#doi-admin-root .hover\\:text-foreground:hover{color:hsl(var(--foreground))}#doi-admin-root .hover\\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}#doi-admin-root .hover\\:text-primary:hover{color:hsl(var(--primary))}#doi-admin-root .hover\\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}#doi-admin-root .hover\\:text-sidebar-accent-foreground:hover{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .hover\\:underline:hover{text-decoration-line:underline}#doi-admin-root .hover\\:opacity-100:hover{opacity:1}#doi-admin-root .hover\\:opacity-90:hover{opacity:.9}#doi-admin-root .hover\\:shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-accent\\)\\)\\]:hover{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-accent));--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .hover\\:after\\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:hsl(var(--sidebar-border))}#doi-admin-root .focus\\:bg-accent:focus{background-color:hsl(var(--accent))}#doi-admin-root .focus\\:bg-primary:focus{background-color:hsl(var(--primary))}#doi-admin-root .focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}#doi-admin-root .focus\\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}#doi-admin-root .focus\\:opacity-100:focus{opacity:1}#doi-admin-root .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .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)}#doi-admin-root .focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}#doi-admin-root .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#doi-admin-root .focus-visible\\:ring-2:focus-visible{--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)}#doi-admin-root .focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .focus-visible\\:ring-sidebar-ring:focus-visible{--tw-ring-color: hsl(var(--sidebar-ring))}#doi-admin-root .focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}#doi-admin-root .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}#doi-admin-root .focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}#doi-admin-root .active\\:bg-sidebar-accent:active{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .active\\:text-sidebar-accent-foreground:active{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .disabled\\:pointer-events-none:disabled{pointer-events:none}#doi-admin-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#doi-admin-root .disabled\\:opacity-50:disabled{opacity:.5}#doi-admin-root :is(.group\\/menu-item:focus-within .group-focus-within\\/menu-item\\:opacity-100){opacity:1}#doi-admin-root :is(.group\\/menu-item:hover .group-hover\\/menu-item\\:opacity-100){opacity:1}#doi-admin-root :is(.group:hover .group-hover\\:opacity-100){opacity:1}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40){border-color:hsl(var(--muted) / .4)}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:border-border){border-color:hsl(var(--border))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:bg-muted){background-color:hsl(var(--muted))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:bg-primary){background-color:hsl(var(--primary))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:bg-background){background-color:hsl(var(--background))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:text-muted-foreground){color:hsl(var(--muted-foreground))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:text-primary-foreground){color:hsl(var(--primary-foreground))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:text-foreground){color:hsl(var(--foreground))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\: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)}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover){border-color:hsl(var(--destructive) / .3)}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover){background-color:hsl(var(--destructive))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover){color:hsl(var(--destructive-foreground))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover){--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus){--tw-ring-color: hsl(var(--destructive))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus){--tw-ring-offset-color: #dc2626}#doi-admin-root :is(.peer\\/menu-button:hover~.peer-hover\\/menu-button\\:text-sidebar-accent-foreground){color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.peer:disabled~.peer-disabled\\:cursor-not-allowed){cursor:not-allowed}#doi-admin-root :is(.peer:disabled~.peer-disabled\\:opacity-70){opacity:.7}#doi-admin-root .has-\\[\\[data-variant\\=inset\\]\\]\\:bg-sidebar:has([data-variant=inset]){background-color:hsl(var(--sidebar-background))}#doi-admin-root .has-\\[\\:disabled\\]\\:opacity-50:has(:disabled){opacity:.5}#doi-admin-root :is(.group\\/menu-item:has([data-sidebar=menu-action]) .group-has-\\[\\[data-sidebar\\=menu-action\\]\\]\\/menu-item\\:pr-8){padding-right:2rem}#doi-admin-root .aria-disabled\\:pointer-events-none[aria-disabled=true]{pointer-events:none}#doi-admin-root .aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}#doi-admin-root .aria-selected\\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}#doi-admin-root .aria-selected\\:bg-accent\\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .aria-selected\\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}#doi-admin-root .aria-selected\\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}#doi-admin-root .aria-selected\\:opacity-100[aria-selected=true]{opacity:1}#doi-admin-root .aria-selected\\:opacity-30[aria-selected=true]{opacity:.3}#doi-admin-root .data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true],#doi-admin-root .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction=vertical]{height:1px}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction=vertical]{width:100%}#doi-admin-root .data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y: .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))}#doi-admin-root .data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--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))}#doi-admin-root .data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--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))}#doi-admin-root .data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y: -.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))}#doi-admin-root .data-\\[state\\=checked\\]\\:translate-x-5[data-state=checked]{--tw-translate-x: 1.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))}#doi-admin-root .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked],#doi-admin-root .data-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;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))}#doi-admin-root .data-\\[swipe\\=end\\]\\:translate-x-\\[var\\(--radix-toast-swipe-end-x\\)\\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);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))}#doi-admin-root .data-\\[swipe\\=move\\]\\:translate-x-\\[var\\(--radix-toast-swipe-move-x\\)\\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);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 accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}#doi-admin-root .data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}#doi-admin-root .data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}#doi-admin-root .data-\\[active\\=true\\]\\:bg-sidebar-accent[data-active=true]{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .data-\\[active\\]\\:bg-accent\\/50[data-active]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .data-\\[selected\\=\\'true\\'\\]\\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}#doi-admin-root .data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:hsl(var(--background))}#doi-admin-root .data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}#doi-admin-root .data-\\[state\\=checked\\]\\:bg-success[data-state=checked]{background-color:hsl(var(--success))}#doi-admin-root .data-\\[state\\=on\\]\\:bg-accent[data-state=on],#doi-admin-root .data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}#doi-admin-root .data-\\[state\\=open\\]\\:bg-accent\\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .data-\\[state\\=open\\]\\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}#doi-admin-root .data-\\[state\\=selected\\]\\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}#doi-admin-root .data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}#doi-admin-root .data-\\[active\\=true\\]\\:font-medium[data-active=true]{font-weight:500}#doi-admin-root .data-\\[active\\=true\\]\\:text-sidebar-accent-foreground[data-active=true]{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}#doi-admin-root .data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:hsl(var(--foreground))}#doi-admin-root .data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}#doi-admin-root .data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on],#doi-admin-root .data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}#doi-admin-root .data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}#doi-admin-root .data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true],#doi-admin-root .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}#doi-admin-root .data-\\[state\\=open\\]\\:opacity-100[data-state=open]{opacity:1}#doi-admin-root .data-\\[state\\=active\\]\\:shadow-sm[data-state=active]{--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)}#doi-admin-root .data-\\[swipe\\=move\\]\\:transition-none[data-swipe=move]{transition-property:none}#doi-admin-root .data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{transition-duration:.3s}#doi-admin-root .data-\\[state\\=open\\]\\:duration-500[data-state=open]{transition-duration:.5s}#doi-admin-root .data-\\[motion\\^\\=from-\\]\\:animate-in[data-motion^=from-],#doi-admin-root .data-\\[state\\=open\\]\\:animate-in[data-state=open],#doi-admin-root .data-\\[state\\=visible\\]\\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}#doi-admin-root .data-\\[motion\\^\\=to-\\]\\:animate-out[data-motion^=to-],#doi-admin-root .data-\\[state\\=closed\\]\\:animate-out[data-state=closed],#doi-admin-root .data-\\[state\\=hidden\\]\\:animate-out[data-state=hidden],#doi-admin-root .data-\\[swipe\\=end\\]\\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}#doi-admin-root .data-\\[motion\\^\\=from-\\]\\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}#doi-admin-root .data-\\[motion\\^\\=to-\\]\\:fade-out[data-motion^=to-],#doi-admin-root .data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}#doi-admin-root .data-\\[state\\=closed\\]\\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}#doi-admin-root .data-\\[state\\=hidden\\]\\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}#doi-admin-root .data-\\[state\\=open\\]\\:fade-in-0[data-state=open],#doi-admin-root .data-\\[state\\=visible\\]\\:fade-in[data-state=visible]{--tw-enter-opacity: 0}#doi-admin-root .data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}#doi-admin-root .data-\\[state\\=open\\]\\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}#doi-admin-root .data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}#doi-admin-root .data-\\[motion\\=from-end\\]\\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}#doi-admin-root .data-\\[motion\\=from-start\\]\\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}#doi-admin-root .data-\\[motion\\=to-end\\]\\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}#doi-admin-root .data-\\[motion\\=to-start\\]\\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}#doi-admin-root .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}#doi-admin-root .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}#doi-admin-root .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}#doi-admin-root .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-right[data-state=closed],#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{animation-duration:.3s}#doi-admin-root .data-\\[state\\=open\\]\\:duration-500[data-state=open]{animation-duration:.5s}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;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))}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;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))}#doi-admin-root .data-\\[state\\=open\\]\\:hover\\:bg-sidebar-accent:hover[data-state=open]{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .data-\\[state\\=open\\]\\:hover\\:text-sidebar-accent-foreground:hover[data-state=open]{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.group[data-side=left] .group-data-\\[side\\=left\\]\\:-right-4){right:-1rem}#doi-admin-root :is(.group[data-side=right] .group-data-\\[side\\=right\\]\\:left-0){left:0}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:-mt-8){margin-top:-2rem}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:hidden){display:none}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!size-8){width:2rem!important;height:2rem!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[--sidebar-width-icon\\]){width:var(--sidebar-width-icon)}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[calc\\(var\\(--sidebar-width-icon\\)_\\+_theme\\(spacing\\.4\\)_\\+2px\\)\\]){width:calc(var(--sidebar-width-icon) + 1rem + 2px)}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:w-0){width:0px}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:translate-x-0){--tw-translate-x: 0px;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))}#doi-admin-root :is(.group[data-state=open] .group-data-\\[state\\=open\\]\\:rotate-180){--tw-rotate: 180deg;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))}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:overflow-hidden){overflow:hidden}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:overflow-hidden){overflow:hidden}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:rounded-lg){border-radius:var(--radius)}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:border){border-width:1px}#doi-admin-root :is(.group[data-side=left] .group-data-\\[side\\=left\\]\\:border-r){border-right-width:1px}#doi-admin-root :is(.group[data-side=right] .group-data-\\[side\\=right\\]\\:border-l){border-left-width:1px}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:border-sidebar-border){border-color:hsl(var(--sidebar-border))}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!p-0){padding:0!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!p-2){padding:.5rem!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:opacity-0){opacity:0}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:after\\:left-full):after{content:var(--tw-content);left:100%}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:hover\\:bg-sidebar:hover){background-color:hsl(var(--sidebar-background))}#doi-admin-root :is(.peer\\/menu-button[data-size=default]~.peer-data-\\[size\\=default\\]\\/menu-button\\:top-1\\.5){top:.375rem}#doi-admin-root :is(.peer\\/menu-button[data-size=lg]~.peer-data-\\[size\\=lg\\]\\/menu-button\\:top-2\\.5){top:.625rem}#doi-admin-root :is(.peer\\/menu-button[data-size=sm]~.peer-data-\\[size\\=sm\\]\\/menu-button\\:top-1){top:.25rem}#doi-admin-root :is(.peer[data-variant=inset]~.peer-data-\\[variant\\=inset\\]\\:min-h-\\[calc\\(100svh-theme\\(spacing\\.4\\)\\)\\]){min-height:calc(100svh - 1rem)}#doi-admin-root :is(.peer\\/menu-button[data-active=true]~.peer-data-\\[active\\=true\\]\\/menu-button\\:text-sidebar-accent-foreground){color:hsl(var(--sidebar-accent-foreground))}@supports (backdrop-filter: var(--tw)){#doi-admin-root .supports-\\[backdrop-filter\\]\\:bg-background\\/60{background-color:hsl(var(--background) / .6)}#doi-admin-root .supports-\\[backdrop-filter\\]\\:bg-background\\/80{background-color:hsl(var(--background) / .8)}}#doi-admin-root .dark\\:border-amber-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:border-amber-900\\/50:is(.dark *){border-color:#78350f80}#doi-admin-root .dark\\:border-blue-800\\/30:is(.dark *){border-color:#1e40af4d}#doi-admin-root .dark\\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}#doi-admin-root .dark\\:border-emerald-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(6 95 70 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:border-red-900\\/50:is(.dark *){border-color:#7f1d1d80}#doi-admin-root .dark\\:bg-amber-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:bg-amber-950\\/30:is(.dark *){background-color:#451a034d}#doi-admin-root .dark\\:bg-blue-950\\/20:is(.dark *){background-color:#17255433}#doi-admin-root .dark\\:bg-emerald-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 44 34 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:bg-red-950\\/30:is(.dark *){background-color:#450a0a4d}#doi-admin-root .dark\\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-blue-300\\/60:is(.dark *){color:#93c5fd99}#doi-admin-root .dark\\:text-blue-300\\/80:is(.dark *){color:#93c5fdcc}#doi-admin-root .dark\\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-emerald-400:is(.dark *){--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:hover\\:bg-amber-950:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){#doi-admin-root .sm\\:bottom-0{bottom:0}#doi-admin-root .sm\\:right-0{right:0}#doi-admin-root .sm\\:top-auto{top:auto}#doi-admin-root .sm\\:col-span-2{grid-column:span 2 / span 2}#doi-admin-root .sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}#doi-admin-root .sm\\:mt-0{margin-top:0}#doi-admin-root .sm\\:flex{display:flex}#doi-admin-root .sm\\:inline-flex{display:inline-flex}#doi-admin-root .sm\\:max-w-sm{max-width:24rem}#doi-admin-root .sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .sm\\:grid-cols-\\[1\\.2fr_1fr_1\\.2fr_1\\.5fr_0\\.6fr_auto\\]{grid-template-columns:1.2fr 1fr 1.2fr 1.5fr .6fr auto}#doi-admin-root .sm\\:grid-cols-\\[1fr_2fr\\]{grid-template-columns:1fr 2fr}#doi-admin-root .sm\\:flex-row{flex-direction:row}#doi-admin-root .sm\\:flex-col{flex-direction:column}#doi-admin-root .sm\\:justify-end{justify-content:flex-end}#doi-admin-root .sm\\:gap-2\\.5{gap:.625rem}#doi-admin-root :is(.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)))}#doi-admin-root :is(.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)))}#doi-admin-root :is(.sm\\:space-y-0>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}#doi-admin-root .sm\\:rounded-lg{border-radius:var(--radius)}#doi-admin-root .sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .sm\\:text-left{text-align:left}#doi-admin-root .data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){#doi-admin-root .md\\:absolute{position:absolute}#doi-admin-root .md\\:block{display:block}#doi-admin-root .md\\:flex{display:flex}#doi-admin-root .md\\:w-\\[var\\(--radix-navigation-menu-viewport-width\\)\\]{width:var(--radix-navigation-menu-viewport-width)}#doi-admin-root .md\\:w-auto{width:auto}#doi-admin-root .md\\:max-w-\\[420px\\]{max-width:420px}#doi-admin-root .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .md\\:p-6{padding:1.5rem}#doi-admin-root .md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .md\\:text-sm{font-size:.875rem;line-height:1.25rem}#doi-admin-root .md\\:opacity-0{opacity:0}#doi-admin-root .after\\:md\\:hidden:after{content:var(--tw-content);display:none}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:m-2){margin:.5rem}#doi-admin-root :is(.peer[data-state=collapsed][data-variant=inset]~.md\\:peer-data-\\[state\\=collapsed\\]\\:peer-data-\\[variant\\=inset\\]\\:ml-2){margin-left:.5rem}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:ml-0){margin-left:0}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:rounded-xl){border-radius:.75rem}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1024px){#doi-admin-root .lg\\:col-span-2{grid-column:span 2 / span 2}#doi-admin-root .lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .lg\\:grid-cols-\\[1fr_300px\\]{grid-template-columns:1fr 300px}}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}#doi-admin-root .first\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}#doi-admin-root .last\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\.day-outside\\)\\]\\:bg-accent\\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\.day-range-end\\)\\]\\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]){padding-right:0}#doi-admin-root :is(.\\[\\&\\>button\\]\\:hidden>button){display:none}#doi-admin-root :is(.\\[\\&\\>span\\:last-child\\]\\:truncate>span:last-child){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#doi-admin-root :is(.\\[\\&\\>span\\]\\:line-clamp-1>span){overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#doi-admin-root :is(.\\[\\&\\>svg\\+div\\]\\:translate-y-\\[-3px\\]>svg+div){--tw-translate-y: -3px;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))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:absolute>svg){position:absolute}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:left-4>svg){left:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:top-4>svg){top:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:size-3\\.5>svg){width:.875rem;height:.875rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:size-4>svg){width:1rem;height:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:shrink-0>svg){flex-shrink:0}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-destructive>svg){color:hsl(var(--destructive))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-foreground>svg){color:hsl(var(--foreground))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-sidebar-accent-foreground>svg){color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.\\[\\&\\>svg\\~\\*\\]\\:pl-7>svg~*){padding-left:1.75rem}#doi-admin-root :is(.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr){border-bottom-width:0px}#doi-admin-root :is(.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div){--tw-rotate: 90deg;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))}#doi-admin-root :is(.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg){--tw-rotate: 180deg;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))}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]){padding-top:.375rem;padding-bottom:.375rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]){font-weight:500}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]){color:hsl(var(--muted-foreground))}#doi-admin-root :is(.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}#doi-admin-root :is(.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg){height:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg){width:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]){height:3rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]){padding-top:.75rem;padding-bottom:.75rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg){height:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg){width:1.25rem}#doi-admin-root :is(.\\[\\&_p\\]\\:leading-relaxed p){line-height:1.625}#doi-admin-root :is(.\\[\\&_svg\\]\\:pointer-events-none svg){pointer-events:none}#doi-admin-root :is(.\\[\\&_svg\\]\\:size-4 svg){width:1rem;height:1rem}#doi-admin-root :is(.\\[\\&_svg\\]\\:shrink-0 svg){flex-shrink:0}#doi-admin-root :is(.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child){border-width:0px}#doi-admin-root :is(.\\[\\&_tr\\]\\:border-b tr){border-bottom-width:1px}#doi-admin-root :is([data-side=left][data-collapsible=offcanvas] .\\[\\[data-side\\=left\\]\\[data-collapsible\\=offcanvas\\]_\\&\\]\\:-right-2){right:-.5rem}#doi-admin-root :is([data-side=left][data-state=collapsed] .\\[\\[data-side\\=left\\]\\[data-state\\=collapsed\\]_\\&\\]\\:cursor-e-resize){cursor:e-resize}#doi-admin-root :is([data-side=left] .\\[\\[data-side\\=left\\]_\\&\\]\\:cursor-w-resize){cursor:w-resize}#doi-admin-root :is([data-side=right][data-collapsible=offcanvas] .\\[\\[data-side\\=right\\]\\[data-collapsible\\=offcanvas\\]_\\&\\]\\:-left-2){left:-.5rem}#doi-admin-root :is([data-side=right][data-state=collapsed] .\\[\\[data-side\\=right\\]\\[data-state\\=collapsed\\]_\\&\\]\\:cursor-w-resize){cursor:w-resize}#doi-admin-root :is([data-side=right] .\\[\\[data-side\\=right\\]_\\&\\]\\:cursor-e-resize){cursor:e-resize}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2 var d3=Object.defineProperty;var CN=Fe=>{throw TypeError(Fe)};var u3=(Fe,Ue,tt)=>Ue in Fe?d3(Fe,Ue,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Fe[Ue]=tt;var Li=(Fe,Ue,tt)=>u3(Fe,typeof Ue!="symbol"?Ue+"":Ue,tt),Sp=(Fe,Ue,tt)=>Ue.has(Fe)||CN("Cannot "+tt);var E=(Fe,Ue,tt)=>(Sp(Fe,Ue,"read from private field"),tt?tt.call(Fe):Ue.get(Fe)),ie=(Fe,Ue,tt)=>Ue.has(Fe)?CN("Cannot add the same private member more than once"):Ue instanceof WeakSet?Ue.add(Fe):Ue.set(Fe,tt),G=(Fe,Ue,tt,Ms)=>(Sp(Fe,Ue,"write to private field"),Ms?Ms.call(Fe,tt):Ue.set(Fe,tt),tt),ge=(Fe,Ue,tt)=>(Sp(Fe,Ue,"access private method"),tt);var Xd=(Fe,Ue,tt,Ms)=>({set _(So){G(Fe,Ue,So,tt)},get _(){return E(Fe,Ue,Ms)}});(function(Fe){"use strict";var fo,ys,bi,dN,bs,jp,uN,ji,js,wi,fN,mo,mN,ho,Ni,vn,po,pt,dl,xo,Jt,kN,Fr,hN,Ut,Ae,ul,Ot,go,Si,Tr,ws,fl,Ci,ki,vo,yo,Ns,Ei,Le,bl,Cp,kp,Ep,_p,Pp,Tp,Rp,EN,pN,ml,or,kt,bo,ir,Is,xN,Rr,Fn,hl,gN,Or,Ss,Bt,Ar,Ir,Yd,Op,vN,_i,en,Pi,Ti,yn,Cs,pl,xl,gl,vl,bt,Ap,Ip,Mp,Dp,Fp,yN,ar,bN,ot,ks,Es,Ri,Oi,_s,Ai,Ii,jN;function Ue(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(s,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ms={exports:{}},So={},Lp={exports:{}},Te={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var $i=Symbol.for("react.element"),_N=Symbol.for("react.portal"),PN=Symbol.for("react.fragment"),TN=Symbol.for("react.strict_mode"),RN=Symbol.for("react.profiler"),ON=Symbol.for("react.provider"),AN=Symbol.for("react.context"),IN=Symbol.for("react.forward_ref"),MN=Symbol.for("react.suspense"),DN=Symbol.for("react.memo"),FN=Symbol.for("react.lazy"),$p=Symbol.iterator;function LN(e){return e===null||typeof e!="object"?null:(e=$p&&e[$p]||e["@@iterator"],typeof e=="function"?e:null)}var zp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Up=Object.assign,Bp={};function Co(e,t,n){this.props=e,this.context=t,this.refs=Bp,this.updater=n||zp}Co.prototype.isReactComponent={},Co.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Co.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vp(){}Vp.prototype=Co.prototype;function Zd(e,t,n){this.props=e,this.context=t,this.refs=Bp,this.updater=n||zp}var Jd=Zd.prototype=new Vp;Jd.constructor=Zd,Up(Jd,Co.prototype),Jd.isPureReactComponent=!0;var Hp=Array.isArray,Wp=Object.prototype.hasOwnProperty,eu={current:null},qp={key:!0,ref:!0,__self:!0,__source:!0};function Kp(e,t,n){var s,o={},i=null,a=null;if(t!=null)for(s in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Wp.call(t,s)&&!qp.hasOwnProperty(s)&&(o[s]=t[s]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var d=Array(l),u=0;u<l;u++)d[u]=arguments[u+2];o.children=d}if(e&&e.defaultProps)for(s in l=e.defaultProps,l)o[s]===void 0&&(o[s]=l[s]);return{$$typeof:$i,type:e,key:i,ref:a,props:o,_owner:eu.current}}function $N(e,t){return{$$typeof:$i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tu(e){return typeof e=="object"&&e!==null&&e.$$typeof===$i}function zN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qp=/\/+/g;function nu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zN(""+e.key):t.toString(36)}function jl(e,t,n,s,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case $i:case _N:a=!0}}if(a)return a=e,o=o(a),e=s===""?"."+nu(a,0):s,Hp(o)?(n="",e!=null&&(n=e.replace(Qp,"$&/")+"/"),jl(o,t,n,"",function(u){return u})):o!=null&&(tu(o)&&(o=$N(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Qp,"$&/")+"/")+e)),t.push(o)),1;if(a=0,s=s===""?".":s+":",Hp(e))for(var l=0;l<e.length;l++){i=e[l];var d=s+nu(i,l);a+=jl(i,t,n,d,o)}else if(d=LN(e),typeof d=="function")for(e=d.call(e),l=0;!(i=e.next()).done;)i=i.value,d=s+nu(i,l++),a+=jl(i,t,n,d,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function wl(e,t,n){if(e==null)return e;var s=[],o=0;return jl(e,s,"","",function(i){return t.call(n,i,o++)}),s}function UN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _t={current:null},Nl={transition:null},BN={ReactCurrentDispatcher:_t,ReactCurrentBatchConfig:Nl,ReactCurrentOwner:eu};function Gp(){throw Error("act(...) is not supported in production builds of React.")}Te.Children={map:wl,forEach:function(e,t,n){wl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wl(e,function(){t++}),t},toArray:function(e){return wl(e,function(t){return t})||[]},only:function(e){if(!tu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Te.Component=Co,Te.Fragment=PN,Te.Profiler=RN,Te.PureComponent=Zd,Te.StrictMode=TN,Te.Suspense=MN,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BN,Te.act=Gp,Te.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=Up({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=eu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(d in t)Wp.call(t,d)&&!qp.hasOwnProperty(d)&&(s[d]=t[d]===void 0&&l!==void 0?l[d]:t[d])}var d=arguments.length-2;if(d===1)s.children=n;else if(1<d){l=Array(d);for(var u=0;u<d;u++)l[u]=arguments[u+2];s.children=l}return{$$typeof:$i,type:e.type,key:o,ref:i,props:s,_owner:a}},Te.createContext=function(e){return e={$$typeof:AN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ON,_context:e},e.Consumer=e},Te.createElement=Kp,Te.createFactory=function(e){var t=Kp.bind(null,e);return t.type=e,t},Te.createRef=function(){return{current:null}},Te.forwardRef=function(e){return{$$typeof:IN,render:e}},Te.isValidElement=tu,Te.lazy=function(e){return{$$typeof:FN,_payload:{_status:-1,_result:e},_init:UN}},Te.memo=function(e,t){return{$$typeof:DN,type:e,compare:t===void 0?null:t}},Te.startTransition=function(e){var t=Nl.transition;Nl.transition={};try{e()}finally{Nl.transition=t}},Te.unstable_act=Gp,Te.useCallback=function(e,t){return _t.current.useCallback(e,t)},Te.useContext=function(e){return _t.current.useContext(e)},Te.useDebugValue=function(){},Te.useDeferredValue=function(e){return _t.current.useDeferredValue(e)},Te.useEffect=function(e,t){return _t.current.useEffect(e,t)},Te.useId=function(){return _t.current.useId()},Te.useImperativeHandle=function(e,t,n){return _t.current.useImperativeHandle(e,t,n)},Te.useInsertionEffect=function(e,t){return _t.current.useInsertionEffect(e,t)},Te.useLayoutEffect=function(e,t){return _t.current.useLayoutEffect(e,t)},Te.useMemo=function(e,t){return _t.current.useMemo(e,t)},Te.useReducer=function(e,t,n){return _t.current.useReducer(e,t,n)},Te.useRef=function(e){return _t.current.useRef(e)},Te.useState=function(e){return _t.current.useState(e)},Te.useSyncExternalStore=function(e,t,n){return _t.current.useSyncExternalStore(e,t,n)},Te.useTransition=function(){return _t.current.useTransition()},Te.version="18.3.1",Lp.exports=Te;var f=Lp.exports;const V=tt(f),Sl=Ue({__proto__:null,default:V},[f]);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var VN=f,HN=Symbol.for("react.element"),WN=Symbol.for("react.fragment"),qN=Object.prototype.hasOwnProperty,KN=VN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,QN={key:!0,ref:!0,__self:!0,__source:!0};function Xp(e,t,n){var s,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(s in t)qN.call(t,s)&&!QN.hasOwnProperty(s)&&(o[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)o[s]===void 0&&(o[s]=t[s]);return{$$typeof:HN,type:e,key:i,ref:a,props:o,_owner:KN.current}}So.Fragment=WN,So.jsx=Xp,So.jsxs=Xp,Ms.exports=So;var r=Ms.exports,Yp={exports:{}},Vt={},Zp={exports:{}},Jp={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(e){function t(D,L){var J=D.length;D.push(L);e:for(;0<J;){var he=J-1>>>1,_=D[he];if(0<o(_,L))D[he]=L,D[J]=_,J=he;else break e}}function n(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var L=D[0],J=D.pop();if(J!==L){D[0]=J;e:for(var he=0,_=D.length,$=_>>>1;he<$;){var B=2*(he+1)-1,se=D[B],Ne=B+1,q=D[Ne];if(0>o(se,J))Ne<_&&0>o(q,se)?(D[he]=q,D[Ne]=J,he=Ne):(D[he]=se,D[B]=J,he=B);else if(Ne<_&&0>o(q,J))D[he]=q,D[Ne]=J,he=Ne;else break e}}return L}function o(D,L){var J=D.sortIndex-L.sortIndex;return J!==0?J:D.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var d=[],u=[],h=1,m=null,y=3,x=!1,w=!1,b=!1,j=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(D){for(var L=n(u);L!==null;){if(L.callback===null)s(u);else if(L.startTime<=D)s(u),L.sortIndex=L.expirationTime,t(d,L);else break;L=n(u)}}function N(D){if(b=!1,v(D),!w)if(n(d)!==null)w=!0,F(S);else{var L=n(u);L!==null&&X(N,L.startTime-D)}}function S(D,L){w=!1,b&&(b=!1,g(k),k=-1),x=!0;var J=y;try{for(v(L),m=n(d);m!==null&&(!(m.expirationTime>L)||D&&!A());){var he=m.callback;if(typeof he=="function"){m.callback=null,y=m.priorityLevel;var _=he(m.expirationTime<=L);L=e.unstable_now(),typeof _=="function"?m.callback=_:m===n(d)&&s(d),v(L)}else s(d);m=n(d)}if(m!==null)var $=!0;else{var B=n(u);B!==null&&X(N,B.startTime-L),$=!1}return $}finally{m=null,y=J,x=!1}}var C=!1,P=null,k=-1,O=5,T=-1;function A(){return!(e.unstable_now()-T<O)}function I(){if(P!==null){var D=e.unstable_now();T=D;var L=!0;try{L=P(!0,D)}finally{L?U():(C=!1,P=null)}}else C=!1}var U;if(typeof p=="function")U=function(){p(I)};else if(typeof MessageChannel!="undefined"){var M=new MessageChannel,re=M.port2;M.port1.onmessage=I,U=function(){re.postMessage(null)}}else U=function(){j(I,0)};function F(D){P=D,C||(C=!0,U())}function X(D,L){k=j(function(){D(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,F(S))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var L=3;break;default:L=y}var J=y;y=L;try{return D()}finally{y=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,L){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var J=y;y=D;try{return L()}finally{y=J}},e.unstable_scheduleCallback=function(D,L,J){var he=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?he+J:he):J=he,D){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=J+_,D={id:h++,callback:L,priorityLevel:D,startTime:J,expirationTime:_,sortIndex:-1},J>he?(D.sortIndex=J,t(u,D),n(d)===null&&D===n(u)&&(b?(g(k),k=-1):b=!0,X(N,J-he))):(D.sortIndex=_,t(d,D),w||x||(w=!0,F(S))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var L=y;return function(){var J=y;y=L;try{return D.apply(this,arguments)}finally{y=J}}}})(Jp),Zp.exports=Jp;var GN=Zp.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var XN=f,Ht=GN;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ex=new Set,zi={};function Ds(e,t){ko(e,t),ko(e+"Capture",t)}function ko(e,t){for(zi[e]=t,e=0;e<t.length;e++)ex.add(t[e])}var ur=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),ru=Object.prototype.hasOwnProperty,YN=/^[: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]*$/,tx={},nx={};function ZN(e){return ru.call(nx,e)?!0:ru.call(tx,e)?!1:YN.test(e)?nx[e]=!0:(tx[e]=!0,!1)}function JN(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eS(e,t,n,s){if(t===null||typeof t=="undefined"||JN(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pt(e,t,n,s,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xt[e]=new Pt(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xt[t]=new Pt(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){xt[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xt[e]=new Pt(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xt[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){xt[e]=new Pt(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){xt[e]=new Pt(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){xt[e]=new Pt(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){xt[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var su=/[\-:]([a-z])/g;function ou(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(su,ou);xt[t]=new Pt(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(su,ou);xt[t]=new Pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(su,ou);xt[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){xt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)}),xt.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){xt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function iu(e,t,n,s){var o=xt.hasOwnProperty(t)?xt[t]:null;(o!==null?o.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eS(t,n,o,s)&&(n=null),s||o===null?ZN(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,s=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var fr=XN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Cl=Symbol.for("react.element"),Eo=Symbol.for("react.portal"),_o=Symbol.for("react.fragment"),au=Symbol.for("react.strict_mode"),lu=Symbol.for("react.profiler"),rx=Symbol.for("react.provider"),sx=Symbol.for("react.context"),cu=Symbol.for("react.forward_ref"),du=Symbol.for("react.suspense"),uu=Symbol.for("react.suspense_list"),fu=Symbol.for("react.memo"),Lr=Symbol.for("react.lazy"),ox=Symbol.for("react.offscreen"),ix=Symbol.iterator;function Ui(e){return e===null||typeof e!="object"?null:(e=ix&&e[ix]||e["@@iterator"],typeof e=="function"?e:null)}var Xe=Object.assign,mu;function Bi(e){if(mu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mu=t&&t[1]||""}return`
35 `+mu+e}var hu=!1;function pu(e,t){if(!e||hu)return"";hu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var s=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){s=u}e.call(t.prototype)}else{try{throw Error()}catch(u){s=u}e()}}catch(u){if(u&&s&&typeof u.stack=="string"){for(var o=u.stack.split(`
36 `),i=s.stack.split(`
37 `),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var d=`
38 `+o[a].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=a&&0<=l);break}}}finally{hu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bi(e):""}function tS(e){switch(e.tag){case 5:return Bi(e.type);case 16:return Bi("Lazy");case 13:return Bi("Suspense");case 19:return Bi("SuspenseList");case 0:case 2:case 15:return e=pu(e.type,!1),e;case 11:return e=pu(e.type.render,!1),e;case 1:return e=pu(e.type,!0),e;default:return""}}function xu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _o:return"Fragment";case Eo:return"Portal";case lu:return"Profiler";case au:return"StrictMode";case du:return"Suspense";case uu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sx:return(e.displayName||"Context")+".Consumer";case rx:return(e._context.displayName||"Context")+".Provider";case cu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fu:return t=e.displayName||null,t!==null?t:xu(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return xu(e(t))}catch(n){}}return null}function nS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xu(t);case 8:return t===au?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ax(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rS(e){var t=ax(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){s=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(a){s=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kl(e){e._valueTracker||(e._valueTracker=rS(e))}function lx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=ax(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function El(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function gu(e,t){var n=t.checked;return Xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function cx(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=$r(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dx(e,t){t=t.checked,t!=null&&iu(e,"checked",t,!1)}function vu(e,t){dx(e,t);var n=$r(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yu(e,t.type,n):t.hasOwnProperty("defaultValue")&&yu(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ux(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yu(e,t,n){(t!=="number"||El(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vi=Array.isArray;function Po(e,t,n,s){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&s&&(e[n].defaultSelected=!0)}else{for(n=""+$r(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function bu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(Vi(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$r(n)}}function mx(e,t){var n=$r(t.value),s=$r(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function hx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function px(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ju(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?px(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _l,xx=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,s,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(_l=_l||document.createElement("div"),_l.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wi={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},sS=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(e){sS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wi[t]=Wi[e]})});function gx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wi.hasOwnProperty(e)&&Wi[e]?(""+t).trim():t+"px"}function vx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,o=gx(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,o):e[n]=o}}var oS=Xe({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 wu(e,t){if(t){if(oS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Nu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Su=null;function Cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ku=null,To=null,Ro=null;function yx(e){if(e=ma(e)){if(typeof ku!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Yl(t),ku(e.stateNode,e.type,t))}}function bx(e){To?Ro?Ro.push(e):Ro=[e]:To=e}function jx(){if(To){var e=To,t=Ro;if(Ro=To=null,yx(e),t)for(e=0;e<t.length;e++)yx(t[e])}}function wx(e,t){return e(t)}function Nx(){}var Eu=!1;function Sx(e,t,n){if(Eu)return e(t,n);Eu=!0;try{return wx(e,t,n)}finally{Eu=!1,(To!==null||Ro!==null)&&(Nx(),jx())}}function qi(e,t){var n=e.stateNode;if(n===null)return null;var s=Yl(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(W(231,t,typeof n));return n}var _u=!1;if(ur)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){_u=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch(e){_u=!1}function iS(e,t,n,s,o,i,a,l,d){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var Qi=!1,Pl=null,Tl=!1,Pu=null,aS={onError:function(e){Qi=!0,Pl=e}};function lS(e,t,n,s,o,i,a,l,d){Qi=!1,Pl=null,iS.apply(aS,arguments)}function cS(e,t,n,s,o,i,a,l,d){if(lS.apply(this,arguments),Qi){if(Qi){var u=Pl;Qi=!1,Pl=null}else throw Error(W(198));Tl||(Tl=!0,Pu=u)}}function Fs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Cx(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function kx(e){if(Fs(e)!==e)throw Error(W(188))}function dS(e){var t=e.alternate;if(!t){if(t=Fs(e),t===null)throw Error(W(188));return t!==e?null:e}for(var n=e,s=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(s=o.return,s!==null){n=s;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return kx(o),e;if(i===s)return kx(o),t;i=i.sibling}throw Error(W(188))}if(n.return!==s.return)n=o,s=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,s=i;break}if(l===s){a=!0,s=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,s=o;break}if(l===s){a=!0,s=i,n=o;break}l=l.sibling}if(!a)throw Error(W(189))}}if(n.alternate!==s)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function Ex(e){return e=dS(e),e!==null?_x(e):null}function _x(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_x(e);if(t!==null)return t;e=e.sibling}return null}var Px=Ht.unstable_scheduleCallback,Tx=Ht.unstable_cancelCallback,uS=Ht.unstable_shouldYield,fS=Ht.unstable_requestPaint,at=Ht.unstable_now,mS=Ht.unstable_getCurrentPriorityLevel,Tu=Ht.unstable_ImmediatePriority,Rx=Ht.unstable_UserBlockingPriority,Rl=Ht.unstable_NormalPriority,hS=Ht.unstable_LowPriority,Ox=Ht.unstable_IdlePriority,Ol=null,Un=null;function pS(e){if(Un&&typeof Un.onCommitFiberRoot=="function")try{Un.onCommitFiberRoot(Ol,e,void 0,(e.current.flags&128)===128)}catch(t){}}var jn=Math.clz32?Math.clz32:vS,xS=Math.log,gS=Math.LN2;function vS(e){return e>>>=0,e===0?32:31-(xS(e)/gS|0)|0}var Al=64,Il=4194304;function Gi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?s=Gi(l):(i&=a,i!==0&&(s=Gi(i)))}else a=n&~o,a!==0?s=Gi(a):i!==0&&(s=Gi(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&o)&&(o=s&-s,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-jn(t),o=1<<n,s|=e[n],t&=~o;return s}function yS(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bS(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-jn(i),l=1<<a,d=o[a];d===-1?(!(l&n)||l&s)&&(o[a]=yS(l,t)):d<=t&&(e.expiredLanes|=l),i&=~l}}function Ru(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ax(){var e=Al;return Al<<=1,!(Al&4194240)&&(Al=64),e}function Ou(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jn(t),e[t]=n}function jS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-jn(n),i=1<<o;t[o]=0,s[o]=-1,e[o]=-1,n&=~i}}function Au(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-jn(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}var $e=0;function Ix(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Mx,Iu,Dx,Fx,Lx,Mu=!1,Dl=[],zr=null,Ur=null,Br=null,Yi=new Map,Zi=new Map,Vr=[],wS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $x(e,t){switch(e){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":Yi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zi.delete(t.pointerId)}}function Ji(e,t,n,s,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[o]},t!==null&&(t=ma(t),t!==null&&Iu(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function NS(e,t,n,s,o){switch(t){case"focusin":return zr=Ji(zr,e,t,n,s,o),!0;case"dragenter":return Ur=Ji(Ur,e,t,n,s,o),!0;case"mouseover":return Br=Ji(Br,e,t,n,s,o),!0;case"pointerover":var i=o.pointerId;return Yi.set(i,Ji(Yi.get(i)||null,e,t,n,s,o)),!0;case"gotpointercapture":return i=o.pointerId,Zi.set(i,Ji(Zi.get(i)||null,e,t,n,s,o)),!0}return!1}function zx(e){var t=Ls(e.target);if(t!==null){var n=Fs(t);if(n!==null){if(t=n.tag,t===13){if(t=Cx(n),t!==null){e.blockedOn=t,Lx(e.priority,function(){Dx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Su=s,n.target.dispatchEvent(s),Su=null}else return t=ma(n),t!==null&&Iu(t),e.blockedOn=n,!1;t.shift()}return!0}function Ux(e,t,n){Fl(e)&&n.delete(t)}function SS(){Mu=!1,zr!==null&&Fl(zr)&&(zr=null),Ur!==null&&Fl(Ur)&&(Ur=null),Br!==null&&Fl(Br)&&(Br=null),Yi.forEach(Ux),Zi.forEach(Ux)}function ea(e,t){e.blockedOn===t&&(e.blockedOn=null,Mu||(Mu=!0,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,SS)))}function ta(e){function t(o){return ea(o,e)}if(0<Dl.length){ea(Dl[0],e);for(var n=1;n<Dl.length;n++){var s=Dl[n];s.blockedOn===e&&(s.blockedOn=null)}}for(zr!==null&&ea(zr,e),Ur!==null&&ea(Ur,e),Br!==null&&ea(Br,e),Yi.forEach(t),Zi.forEach(t),n=0;n<Vr.length;n++)s=Vr[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Vr.length&&(n=Vr[0],n.blockedOn===null);)zx(n),n.blockedOn===null&&Vr.shift()}var Oo=fr.ReactCurrentBatchConfig,Ll=!0;function CS(e,t,n,s){var o=$e,i=Oo.transition;Oo.transition=null;try{$e=1,Du(e,t,n,s)}finally{$e=o,Oo.transition=i}}function kS(e,t,n,s){var o=$e,i=Oo.transition;Oo.transition=null;try{$e=4,Du(e,t,n,s)}finally{$e=o,Oo.transition=i}}function Du(e,t,n,s){if(Ll){var o=Fu(e,t,n,s);if(o===null)ef(e,t,s,$l,n),$x(e,s);else if(NS(o,e,t,n,s))s.stopPropagation();else if($x(e,s),t&4&&-1<wS.indexOf(e)){for(;o!==null;){var i=ma(o);if(i!==null&&Mx(i),i=Fu(e,t,n,s),i===null&&ef(e,t,s,$l,n),i===o)break;o=i}o!==null&&s.stopPropagation()}else ef(e,t,s,null,n)}}var $l=null;function Fu(e,t,n,s){if($l=null,e=Cu(s),e=Ls(e),e!==null)if(t=Fs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Cx(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $l=e,null}function Bx(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mS()){case Tu:return 1;case Rx:return 4;case Rl:case hS:return 16;case Ox:return 536870912;default:return 16}default:return 16}}var Hr=null,Lu=null,zl=null;function Vx(){if(zl)return zl;var e,t=Lu,n=t.length,s,o="value"in Hr?Hr.value:Hr.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(s=1;s<=a&&t[n-s]===o[i-s];s++);return zl=o.slice(e,1<s?1-s:void 0)}function Ul(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bl(){return!0}function Hx(){return!1}function Wt(e){function t(n,s,o,i,a){this._reactName=n,this._targetInst=o,this.type=s,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Bl:Hx,this.isPropagationStopped=Hx,this}return Xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),t}var Ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$u=Wt(Ao),na=Xe({},Ao,{view:0,detail:0}),ES=Wt(na),zu,Uu,ra,Vl=Xe({},na,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ra&&(ra&&e.type==="mousemove"?(zu=e.screenX-ra.screenX,Uu=e.screenY-ra.screenY):Uu=zu=0,ra=e),zu)},movementY:function(e){return"movementY"in e?e.movementY:Uu}}),Wx=Wt(Vl),_S=Xe({},Vl,{dataTransfer:0}),PS=Wt(_S),TS=Xe({},na,{relatedTarget:0}),Bu=Wt(TS),RS=Xe({},Ao,{animationName:0,elapsedTime:0,pseudoElement:0}),OS=Wt(RS),AS=Xe({},Ao,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),IS=Wt(AS),MS=Xe({},Ao,{data:0}),qx=Wt(MS),DS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},LS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $S(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=LS[e])?!!t[e]:!1}function Vu(){return $S}var zS=Xe({},na,{key:function(e){if(e.key){var t=DS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ul(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,charCode:function(e){return e.type==="keypress"?Ul(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ul(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),US=Wt(zS),BS=Xe({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kx=Wt(BS),VS=Xe({},na,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),HS=Wt(VS),WS=Xe({},Ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),qS=Wt(WS),KS=Xe({},Vl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),QS=Wt(KS),GS=[9,13,27,32],Hu=ur&&"CompositionEvent"in window,sa=null;ur&&"documentMode"in document&&(sa=document.documentMode);var XS=ur&&"TextEvent"in window&&!sa,Qx=ur&&(!Hu||sa&&8<sa&&11>=sa),Gx=" ",Xx=!1;function Yx(e,t){switch(e){case"keyup":return GS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Io=!1;function YS(e,t){switch(e){case"compositionend":return Zx(t);case"keypress":return t.which!==32?null:(Xx=!0,Gx);case"textInput":return e=t.data,e===Gx&&Xx?null:e;default:return null}}function ZS(e,t){if(Io)return e==="compositionend"||!Hu&&Yx(e,t)?(e=Vx(),zl=Lu=Hr=null,Io=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qx&&t.locale!=="ko"?null:t.data;default:return null}}var JS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Jx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JS[e.type]:t==="textarea"}function eg(e,t,n,s){bx(s),t=Ql(t,"onChange"),0<t.length&&(n=new $u("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var oa=null,ia=null;function eC(e){vg(e,0)}function Hl(e){var t=$o(e);if(lx(t))return e}function tC(e,t){if(e==="change")return t}var tg=!1;if(ur){var Wu;if(ur){var qu="oninput"in document;if(!qu){var ng=document.createElement("div");ng.setAttribute("oninput","return;"),qu=typeof ng.oninput=="function"}Wu=qu}else Wu=!1;tg=Wu&&(!document.documentMode||9<document.documentMode)}function rg(){oa&&(oa.detachEvent("onpropertychange",sg),ia=oa=null)}function sg(e){if(e.propertyName==="value"&&Hl(ia)){var t=[];eg(t,ia,e,Cu(e)),Sx(eC,t)}}function nC(e,t,n){e==="focusin"?(rg(),oa=t,ia=n,oa.attachEvent("onpropertychange",sg)):e==="focusout"&&rg()}function rC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(ia)}function sC(e,t){if(e==="click")return Hl(t)}function oC(e,t){if(e==="input"||e==="change")return Hl(t)}function iC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wn=typeof Object.is=="function"?Object.is:iC;function aa(e,t){if(wn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var o=n[s];if(!ru.call(t,o)||!wn(e[o],t[o]))return!1}return!0}function og(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ig(e,t){var n=og(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=og(n)}}function ag(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ag(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lg(){for(var e=window,t=El();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(s){n=!1}if(n)e=t.contentWindow;else break;t=El(e.document)}return t}function Ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function aC(e){var t=lg(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ag(n.ownerDocument.documentElement,n)){if(s!==null&&Ku(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(s.start,o);s=s.end===void 0?i:Math.min(s.end,o),!e.extend&&i>s&&(o=s,s=i,i=o),o=ig(n,i);var a=ig(n,s);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lC=ur&&"documentMode"in document&&11>=document.documentMode,Mo=null,Qu=null,la=null,Gu=!1;function cg(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||Mo==null||Mo!==El(s)||(s=Mo,"selectionStart"in s&&Ku(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),la&&aa(la,s)||(la=s,s=Ql(Qu,"onSelect"),0<s.length&&(t=new $u("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Mo)))}function Wl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Do={animationend:Wl("Animation","AnimationEnd"),animationiteration:Wl("Animation","AnimationIteration"),animationstart:Wl("Animation","AnimationStart"),transitionend:Wl("Transition","TransitionEnd")},Xu={},dg={};ur&&(dg=document.createElement("div").style,"AnimationEvent"in window||(delete Do.animationend.animation,delete Do.animationiteration.animation,delete Do.animationstart.animation),"TransitionEvent"in window||delete Do.transitionend.transition);function ql(e){if(Xu[e])return Xu[e];if(!Do[e])return e;var t=Do[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in dg)return Xu[e]=t[n];return e}var ug=ql("animationend"),fg=ql("animationiteration"),mg=ql("animationstart"),hg=ql("transitionend"),pg=new Map,xg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wr(e,t){pg.set(e,t),Ds(t,[e])}for(var Yu=0;Yu<xg.length;Yu++){var Zu=xg[Yu],cC=Zu.toLowerCase(),dC=Zu[0].toUpperCase()+Zu.slice(1);Wr(cC,"on"+dC)}Wr(ug,"onAnimationEnd"),Wr(fg,"onAnimationIteration"),Wr(mg,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(hg,"onTransitionEnd"),ko("onMouseEnter",["mouseout","mouseover"]),ko("onMouseLeave",["mouseout","mouseover"]),ko("onPointerEnter",["pointerout","pointerover"]),ko("onPointerLeave",["pointerout","pointerover"]),Ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ds("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ca="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),uC=new Set("cancel close invalid load scroll toggle".split(" ").concat(ca));function gg(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,cS(s,t,void 0,e),e.currentTarget=null}function vg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],o=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var a=s.length-1;0<=a;a--){var l=s[a],d=l.instance,u=l.currentTarget;if(l=l.listener,d!==i&&o.isPropagationStopped())break e;gg(o,l,u),i=d}else for(a=0;a<s.length;a++){if(l=s[a],d=l.instance,u=l.currentTarget,l=l.listener,d!==i&&o.isPropagationStopped())break e;gg(o,l,u),i=d}}}if(Tl)throw e=Pu,Tl=!1,Pu=null,e}function He(e,t){var n=t[af];n===void 0&&(n=t[af]=new Set);var s=e+"__bubble";n.has(s)||(yg(t,e,2,!1),n.add(s))}function Ju(e,t,n){var s=0;t&&(s|=4),yg(n,e,s,t)}var Kl="_reactListening"+Math.random().toString(36).slice(2);function da(e){if(!e[Kl]){e[Kl]=!0,ex.forEach(function(n){n!=="selectionchange"&&(uC.has(n)||Ju(n,!1,e),Ju(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kl]||(t[Kl]=!0,Ju("selectionchange",!1,t))}}function yg(e,t,n,s){switch(Bx(t)){case 1:var o=CS;break;case 4:o=kS;break;default:o=Du}n=o.bind(null,t,n,e),o=void 0,!_u||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ef(e,t,n,s,o){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var a=s.tag;if(a===3||a===4){var l=s.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=s.return;a!==null;){var d=a.tag;if((d===3||d===4)&&(d=a.stateNode.containerInfo,d===o||d.nodeType===8&&d.parentNode===o))return;a=a.return}for(;l!==null;){if(a=Ls(l),a===null)return;if(d=a.tag,d===5||d===6){s=i=a;continue e}l=l.parentNode}}s=s.return}Sx(function(){var u=i,h=Cu(n),m=[];e:{var y=pg.get(e);if(y!==void 0){var x=$u,w=e;switch(e){case"keypress":if(Ul(n)===0)break e;case"keydown":case"keyup":x=US;break;case"focusin":w="focus",x=Bu;break;case"focusout":w="blur",x=Bu;break;case"beforeblur":case"afterblur":x=Bu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Wx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=PS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=HS;break;case ug:case fg:case mg:x=OS;break;case hg:x=qS;break;case"scroll":x=ES;break;case"wheel":x=QS;break;case"copy":case"cut":case"paste":x=IS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Kx}var b=(t&4)!==0,j=!b&&e==="scroll",g=b?y!==null?y+"Capture":null:y;b=[];for(var p=u,v;p!==null;){v=p;var N=v.stateNode;if(v.tag===5&&N!==null&&(v=N,g!==null&&(N=qi(p,g),N!=null&&b.push(ua(p,N,v)))),j)break;p=p.return}0<b.length&&(y=new x(y,w,null,n,h),m.push({event:y,listeners:b}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",y&&n!==Su&&(w=n.relatedTarget||n.fromElement)&&(Ls(w)||w[mr]))break e;if((x||y)&&(y=h.window===h?h:(y=h.ownerDocument)?y.defaultView||y.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=u,w=w?Ls(w):null,w!==null&&(j=Fs(w),w!==j||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=u),x!==w)){if(b=Wx,N="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(b=Kx,N="onPointerLeave",g="onPointerEnter",p="pointer"),j=x==null?y:$o(x),v=w==null?y:$o(w),y=new b(N,p+"leave",x,n,h),y.target=j,y.relatedTarget=v,N=null,Ls(h)===u&&(b=new b(g,p+"enter",w,n,h),b.target=v,b.relatedTarget=j,N=b),j=N,x&&w)t:{for(b=x,g=w,p=0,v=b;v;v=Fo(v))p++;for(v=0,N=g;N;N=Fo(N))v++;for(;0<p-v;)b=Fo(b),p--;for(;0<v-p;)g=Fo(g),v--;for(;p--;){if(b===g||g!==null&&b===g.alternate)break t;b=Fo(b),g=Fo(g)}b=null}else b=null;x!==null&&bg(m,y,x,b,!1),w!==null&&j!==null&&bg(m,j,w,b,!0)}}e:{if(y=u?$o(u):window,x=y.nodeName&&y.nodeName.toLowerCase(),x==="select"||x==="input"&&y.type==="file")var S=tC;else if(Jx(y))if(tg)S=oC;else{S=rC;var C=nC}else(x=y.nodeName)&&x.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(S=sC);if(S&&(S=S(e,u))){eg(m,S,n,h);break e}C&&C(e,y,u),e==="focusout"&&(C=y._wrapperState)&&C.controlled&&y.type==="number"&&yu(y,"number",y.value)}switch(C=u?$o(u):window,e){case"focusin":(Jx(C)||C.contentEditable==="true")&&(Mo=C,Qu=u,la=null);break;case"focusout":la=Qu=Mo=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,cg(m,n,h);break;case"selectionchange":if(lC)break;case"keydown":case"keyup":cg(m,n,h)}var P;if(Hu)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Io?Yx(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Qx&&n.locale!=="ko"&&(Io||k!=="onCompositionStart"?k==="onCompositionEnd"&&Io&&(P=Vx()):(Hr=h,Lu="value"in Hr?Hr.value:Hr.textContent,Io=!0)),C=Ql(u,k),0<C.length&&(k=new qx(k,e,null,n,h),m.push({event:k,listeners:C}),P?k.data=P:(P=Zx(n),P!==null&&(k.data=P)))),(P=XS?YS(e,n):ZS(e,n))&&(u=Ql(u,"onBeforeInput"),0<u.length&&(h=new qx("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:u}),h.data=P))}vg(m,t)})}function ua(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ql(e,t){for(var n=t+"Capture",s=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=qi(e,n),i!=null&&s.unshift(ua(e,i,o)),i=qi(e,t),i!=null&&s.push(ua(e,i,o))),e=e.return}return s}function Fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bg(e,t,n,s,o){for(var i=t._reactName,a=[];n!==null&&n!==s;){var l=n,d=l.alternate,u=l.stateNode;if(d!==null&&d===s)break;l.tag===5&&u!==null&&(l=u,o?(d=qi(n,i),d!=null&&a.unshift(ua(n,d,l))):o||(d=qi(n,i),d!=null&&a.push(ua(n,d,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var fC=/\r\n?/g,mC=/\u0000|\uFFFD/g;function jg(e){return(typeof e=="string"?e:""+e).replace(fC,`
39 `).replace(mC,"")}function Gl(e,t,n){if(t=jg(t),jg(e)!==t&&n)throw Error(W(425))}function Xl(){}var tf=null,nf=null;function rf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sf=typeof setTimeout=="function"?setTimeout:void 0,hC=typeof clearTimeout=="function"?clearTimeout:void 0,wg=typeof Promise=="function"?Promise:void 0,pC=typeof queueMicrotask=="function"?queueMicrotask:typeof wg!="undefined"?function(e){return wg.resolve(null).then(e).catch(xC)}:sf;function xC(e){setTimeout(function(){throw e})}function of(e,t){var n=t,s=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(s===0){e.removeChild(o),ta(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=o}while(n);ta(t)}function qr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ng(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Lo=Math.random().toString(36).slice(2),Bn="__reactFiber$"+Lo,fa="__reactProps$"+Lo,mr="__reactContainer$"+Lo,af="__reactEvents$"+Lo,gC="__reactListeners$"+Lo,vC="__reactHandles$"+Lo;function Ls(e){var t=e[Bn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mr]||n[Bn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ng(e);e!==null;){if(n=e[Bn])return n;e=Ng(e)}return t}e=n,n=e.parentNode}return null}function ma(e){return e=e[Bn]||e[mr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $o(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function Yl(e){return e[fa]||null}var lf=[],zo=-1;function Kr(e){return{current:e}}function We(e){0>zo||(e.current=lf[zo],lf[zo]=null,zo--)}function Be(e,t){zo++,lf[zo]=e.current,e.current=t}var Qr={},jt=Kr(Qr),It=Kr(!1),$s=Qr;function Uo(e,t){var n=e.type.contextTypes;if(!n)return Qr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mt(e){return e=e.childContextTypes,e!=null}function Zl(){We(It),We(jt)}function Sg(e,t,n){if(jt.current!==Qr)throw Error(W(168));Be(jt,t),Be(It,n)}function Cg(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var o in s)if(!(o in t))throw Error(W(108,nS(e)||"Unknown",o));return Xe({},n,s)}function Jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qr,$s=jt.current,Be(jt,e),Be(It,It.current),!0}function kg(e,t,n){var s=e.stateNode;if(!s)throw Error(W(169));n?(e=Cg(e,t,$s),s.__reactInternalMemoizedMergedChildContext=e,We(It),We(jt),Be(jt,e)):We(It),Be(It,n)}var hr=null,ec=!1,cf=!1;function Eg(e){hr===null?hr=[e]:hr.push(e)}function yC(e){ec=!0,Eg(e)}function Gr(){if(!cf&&hr!==null){cf=!0;var e=0,t=$e;try{var n=hr;for($e=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}hr=null,ec=!1}catch(o){throw hr!==null&&(hr=hr.slice(e+1)),Px(Tu,Gr),o}finally{$e=t,cf=!1}}return null}var Bo=[],Vo=0,tc=null,nc=0,rn=[],sn=0,zs=null,pr=1,xr="";function Us(e,t){Bo[Vo++]=nc,Bo[Vo++]=tc,tc=e,nc=t}function _g(e,t,n){rn[sn++]=pr,rn[sn++]=xr,rn[sn++]=zs,zs=e;var s=pr;e=xr;var o=32-jn(s)-1;s&=~(1<<o),n+=1;var i=32-jn(t)+o;if(30<i){var a=o-o%5;i=(s&(1<<a)-1).toString(32),s>>=a,o-=a,pr=1<<32-jn(t)+o|n<<o|s,xr=i+e}else pr=1<<i|n<<o|s,xr=e}function df(e){e.return!==null&&(Us(e,1),_g(e,1,0))}function uf(e){for(;e===tc;)tc=Bo[--Vo],Bo[Vo]=null,nc=Bo[--Vo],Bo[Vo]=null;for(;e===zs;)zs=rn[--sn],rn[sn]=null,xr=rn[--sn],rn[sn]=null,pr=rn[--sn],rn[sn]=null}var qt=null,Kt=null,Ke=!1,Nn=null;function Pg(e,t){var n=cn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Tg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,qt=e,Kt=qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qt=e,Kt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zs!==null?{id:pr,overflow:xr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=cn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qt=e,Kt=null,!0):!1;default:return!1}}function ff(e){return(e.mode&1)!==0&&(e.flags&128)===0}function mf(e){if(Ke){var t=Kt;if(t){var n=t;if(!Tg(e,t)){if(ff(e))throw Error(W(418));t=qr(n.nextSibling);var s=qt;t&&Tg(e,t)?Pg(s,n):(e.flags=e.flags&-4097|2,Ke=!1,qt=e)}}else{if(ff(e))throw Error(W(418));e.flags=e.flags&-4097|2,Ke=!1,qt=e}}}function Rg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qt=e}function rc(e){if(e!==qt)return!1;if(!Ke)return Rg(e),Ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!rf(e.type,e.memoizedProps)),t&&(t=Kt)){if(ff(e))throw Og(),Error(W(418));for(;t;)Pg(e,t),t=qr(t.nextSibling)}if(Rg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Kt=qr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Kt=null}}else Kt=qt?qr(e.stateNode.nextSibling):null;return!0}function Og(){for(var e=Kt;e;)e=qr(e.nextSibling)}function Ho(){Kt=qt=null,Ke=!1}function hf(e){Nn===null?Nn=[e]:Nn.push(e)}var bC=fr.ReactCurrentBatchConfig;function ha(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(W(309));var s=n.stateNode}if(!s)throw Error(W(147,e));var o=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,e))}return e}function sc(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ag(e){var t=e._init;return t(e._payload)}function Ig(e){function t(g,p){if(e){var v=g.deletions;v===null?(g.deletions=[p],g.flags|=16):v.push(p)}}function n(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function s(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function o(g,p){return g=rs(g,p),g.index=0,g.sibling=null,g}function i(g,p,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<p?(g.flags|=2,p):v):(g.flags|=2,p)):(g.flags|=1048576,p)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,p,v,N){return p===null||p.tag!==6?(p=om(v,g.mode,N),p.return=g,p):(p=o(p,v),p.return=g,p)}function d(g,p,v,N){var S=v.type;return S===_o?h(g,p,v.props.children,N,v.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lr&&Ag(S)===p.type)?(N=o(p,v.props),N.ref=ha(g,p,v),N.return=g,N):(N=_c(v.type,v.key,v.props,null,g.mode,N),N.ref=ha(g,p,v),N.return=g,N)}function u(g,p,v,N){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=im(v,g.mode,N),p.return=g,p):(p=o(p,v.children||[]),p.return=g,p)}function h(g,p,v,N,S){return p===null||p.tag!==7?(p=Gs(v,g.mode,N,S),p.return=g,p):(p=o(p,v),p.return=g,p)}function m(g,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=om(""+p,g.mode,v),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Cl:return v=_c(p.type,p.key,p.props,null,g.mode,v),v.ref=ha(g,null,p),v.return=g,v;case Eo:return p=im(p,g.mode,v),p.return=g,p;case Lr:var N=p._init;return m(g,N(p._payload),v)}if(Vi(p)||Ui(p))return p=Gs(p,g.mode,v,null),p.return=g,p;sc(g,p)}return null}function y(g,p,v,N){var S=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:l(g,p,""+v,N);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Cl:return v.key===S?d(g,p,v,N):null;case Eo:return v.key===S?u(g,p,v,N):null;case Lr:return S=v._init,y(g,p,S(v._payload),N)}if(Vi(v)||Ui(v))return S!==null?null:h(g,p,v,N,null);sc(g,v)}return null}function x(g,p,v,N,S){if(typeof N=="string"&&N!==""||typeof N=="number")return g=g.get(v)||null,l(p,g,""+N,S);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Cl:return g=g.get(N.key===null?v:N.key)||null,d(p,g,N,S);case Eo:return g=g.get(N.key===null?v:N.key)||null,u(p,g,N,S);case Lr:var C=N._init;return x(g,p,v,C(N._payload),S)}if(Vi(N)||Ui(N))return g=g.get(v)||null,h(p,g,N,S,null);sc(p,N)}return null}function w(g,p,v,N){for(var S=null,C=null,P=p,k=p=0,O=null;P!==null&&k<v.length;k++){P.index>k?(O=P,P=null):O=P.sibling;var T=y(g,P,v[k],N);if(T===null){P===null&&(P=O);break}e&&P&&T.alternate===null&&t(g,P),p=i(T,p,k),C===null?S=T:C.sibling=T,C=T,P=O}if(k===v.length)return n(g,P),Ke&&Us(g,k),S;if(P===null){for(;k<v.length;k++)P=m(g,v[k],N),P!==null&&(p=i(P,p,k),C===null?S=P:C.sibling=P,C=P);return Ke&&Us(g,k),S}for(P=s(g,P);k<v.length;k++)O=x(P,g,k,v[k],N),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?k:O.key),p=i(O,p,k),C===null?S=O:C.sibling=O,C=O);return e&&P.forEach(function(A){return t(g,A)}),Ke&&Us(g,k),S}function b(g,p,v,N){var S=Ui(v);if(typeof S!="function")throw Error(W(150));if(v=S.call(v),v==null)throw Error(W(151));for(var C=S=null,P=p,k=p=0,O=null,T=v.next();P!==null&&!T.done;k++,T=v.next()){P.index>k?(O=P,P=null):O=P.sibling;var A=y(g,P,T.value,N);if(A===null){P===null&&(P=O);break}e&&P&&A.alternate===null&&t(g,P),p=i(A,p,k),C===null?S=A:C.sibling=A,C=A,P=O}if(T.done)return n(g,P),Ke&&Us(g,k),S;if(P===null){for(;!T.done;k++,T=v.next())T=m(g,T.value,N),T!==null&&(p=i(T,p,k),C===null?S=T:C.sibling=T,C=T);return Ke&&Us(g,k),S}for(P=s(g,P);!T.done;k++,T=v.next())T=x(P,g,k,T.value,N),T!==null&&(e&&T.alternate!==null&&P.delete(T.key===null?k:T.key),p=i(T,p,k),C===null?S=T:C.sibling=T,C=T);return e&&P.forEach(function(I){return t(g,I)}),Ke&&Us(g,k),S}function j(g,p,v,N){if(typeof v=="object"&&v!==null&&v.type===_o&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Cl:e:{for(var S=v.key,C=p;C!==null;){if(C.key===S){if(S=v.type,S===_o){if(C.tag===7){n(g,C.sibling),p=o(C,v.props.children),p.return=g,g=p;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lr&&Ag(S)===C.type){n(g,C.sibling),p=o(C,v.props),p.ref=ha(g,C,v),p.return=g,g=p;break e}n(g,C);break}else t(g,C);C=C.sibling}v.type===_o?(p=Gs(v.props.children,g.mode,N,v.key),p.return=g,g=p):(N=_c(v.type,v.key,v.props,null,g.mode,N),N.ref=ha(g,p,v),N.return=g,g=N)}return a(g);case Eo:e:{for(C=v.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(g,p.sibling),p=o(p,v.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=im(v,g.mode,N),p.return=g,g=p}return a(g);case Lr:return C=v._init,j(g,p,C(v._payload),N)}if(Vi(v))return w(g,p,v,N);if(Ui(v))return b(g,p,v,N);sc(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,v),p.return=g,g=p):(n(g,p),p=om(v,g.mode,N),p.return=g,g=p),a(g)):n(g,p)}return j}var Wo=Ig(!0),Mg=Ig(!1),oc=Kr(null),ic=null,qo=null,pf=null;function xf(){pf=qo=ic=null}function gf(e){var t=oc.current;We(oc),e._currentValue=t}function vf(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Ko(e,t){ic=e,pf=qo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Dt=!0),e.firstContext=null)}function on(e){var t=e._currentValue;if(pf!==e)if(e={context:e,memoizedValue:t,next:null},qo===null){if(ic===null)throw Error(W(308));qo=e,ic.dependencies={lanes:0,firstContext:e}}else qo=qo.next=e;return t}var Bs=null;function yf(e){Bs===null?Bs=[e]:Bs.push(e)}function Dg(e,t,n,s){var o=t.interleaved;return o===null?(n.next=n,yf(t)):(n.next=o.next,o.next=n),t.interleaved=n,gr(e,s)}function gr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xr=!1;function bf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yr(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Me&2){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,gr(e,n)}return o=s.interleaved,o===null?(t.next=t,yf(s)):(t.next=o.next,o.next=t),s.interleaved=t,gr(e,n)}function ac(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Au(e,n)}}function Lg(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function lc(e,t,n,s){var o=e.updateQueue;Xr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var d=l,u=d.next;d.next=null,a===null?i=u:a.next=u,a=d;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==a&&(l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=d))}if(i!==null){var m=o.baseState;a=0,h=u=d=null,l=i;do{var y=l.lane,x=l.eventTime;if((s&y)===y){h!==null&&(h=h.next={eventTime:x,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,b=l;switch(y=t,x=n,b.tag){case 1:if(w=b.payload,typeof w=="function"){m=w.call(x,m,y);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=b.payload,y=typeof w=="function"?w.call(x,m,y):w,y==null)break e;m=Xe({},m,y);break e;case 2:Xr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[l]:y.push(l))}else x={eventTime:x,lane:y,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(u=h=x,d=m):h=h.next=x,a|=y;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;y=l,l=y.next,y.next=null,o.lastBaseUpdate=y,o.shared.pending=null}}while(!0);if(h===null&&(d=m),o.baseState=d,o.firstBaseUpdate=u,o.lastBaseUpdate=h,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ws|=a,e.lanes=a,e.memoizedState=m}}function $g(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],o=s.callback;if(o!==null){if(s.callback=null,s=n,typeof o!="function")throw Error(W(191,o));o.call(s)}}}var pa={},Vn=Kr(pa),xa=Kr(pa),ga=Kr(pa);function Vs(e){if(e===pa)throw Error(W(174));return e}function jf(e,t){switch(Be(ga,t),Be(xa,e),Be(Vn,pa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ju(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ju(t,e)}We(Vn),Be(Vn,t)}function Qo(){We(Vn),We(xa),We(ga)}function zg(e){Vs(ga.current);var t=Vs(Vn.current),n=ju(t,e.type);t!==n&&(Be(xa,e),Be(Vn,n))}function wf(e){xa.current===e&&(We(Vn),We(xa))}var Ye=Kr(0);function cc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Nf=[];function Sf(){for(var e=0;e<Nf.length;e++)Nf[e]._workInProgressVersionPrimary=null;Nf.length=0}var dc=fr.ReactCurrentDispatcher,Cf=fr.ReactCurrentBatchConfig,Hs=0,Ze=null,ct=null,ft=null,uc=!1,va=!1,ya=0,jC=0;function wt(){throw Error(W(321))}function kf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wn(e[n],t[n]))return!1;return!0}function Ef(e,t,n,s,o,i){if(Hs=i,Ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,dc.current=e===null||e.memoizedState===null?CC:kC,e=n(s,o),va){i=0;do{if(va=!1,ya=0,25<=i)throw Error(W(301));i+=1,ft=ct=null,t.updateQueue=null,dc.current=EC,e=n(s,o)}while(va)}if(dc.current=hc,t=ct!==null&&ct.next!==null,Hs=0,ft=ct=Ze=null,uc=!1,t)throw Error(W(300));return e}function _f(){var e=ya!==0;return ya=0,e}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Ze.memoizedState=ft=e:ft=ft.next=e,ft}function an(){if(ct===null){var e=Ze.alternate;e=e!==null?e.memoizedState:null}else e=ct.next;var t=ft===null?Ze.memoizedState:ft.next;if(t!==null)ft=t,ct=e;else{if(e===null)throw Error(W(310));ct=e,e={memoizedState:ct.memoizedState,baseState:ct.baseState,baseQueue:ct.baseQueue,queue:ct.queue,next:null},ft===null?Ze.memoizedState=ft=e:ft=ft.next=e}return ft}function ba(e,t){return typeof t=="function"?t(e):t}function Pf(e){var t=an(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var s=ct,o=s.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}s.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,s=s.baseState;var l=a=null,d=null,u=i;do{var h=u.lane;if((Hs&h)===h)d!==null&&(d=d.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var m={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};d===null?(l=d=m,a=s):d=d.next=m,Ze.lanes|=h,Ws|=h}u=u.next}while(u!==null&&u!==i);d===null?a=s:d.next=l,wn(s,t.memoizedState)||(Dt=!0),t.memoizedState=s,t.baseState=a,t.baseQueue=d,n.lastRenderedState=s}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Ze.lanes|=i,Ws|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Tf(e){var t=an(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var s=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);wn(i,t.memoizedState)||(Dt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,s]}function Ug(){}function Bg(e,t){var n=Ze,s=an(),o=t(),i=!wn(s.memoizedState,o);if(i&&(s.memoizedState=o,Dt=!0),s=s.queue,Rf(Wg.bind(null,n,s,e),[e]),s.getSnapshot!==t||i||ft!==null&&ft.memoizedState.tag&1){if(n.flags|=2048,ja(9,Hg.bind(null,n,s,o,t),void 0,null),mt===null)throw Error(W(349));Hs&30||Vg(n,t,o)}return o}function Vg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hg(e,t,n,s){t.value=n,t.getSnapshot=s,qg(t)&&Kg(e)}function Wg(e,t,n){return n(function(){qg(t)&&Kg(e)})}function qg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wn(e,n)}catch(s){return!0}}function Kg(e){var t=gr(e,1);t!==null&&En(t,e,1,-1)}function Qg(e){var t=Hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t.queue=e,e=e.dispatch=SC.bind(null,Ze,e),[t.memoizedState,e]}function ja(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=Ze.updateQueue,t===null?(t={lastEffect:null,stores:null},Ze.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Gg(){return an().memoizedState}function fc(e,t,n,s){var o=Hn();Ze.flags|=e,o.memoizedState=ja(1|t,n,void 0,s===void 0?null:s)}function mc(e,t,n,s){var o=an();s=s===void 0?null:s;var i=void 0;if(ct!==null){var a=ct.memoizedState;if(i=a.destroy,s!==null&&kf(s,a.deps)){o.memoizedState=ja(t,n,i,s);return}}Ze.flags|=e,o.memoizedState=ja(1|t,n,i,s)}function Xg(e,t){return fc(8390656,8,e,t)}function Rf(e,t){return mc(2048,8,e,t)}function Yg(e,t){return mc(4,2,e,t)}function Zg(e,t){return mc(4,4,e,t)}function Jg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ev(e,t,n){return n=n!=null?n.concat([e]):null,mc(4,4,Jg.bind(null,t,e),n)}function Of(){}function tv(e,t){var n=an();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&kf(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function nv(e,t){var n=an();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&kf(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function rv(e,t,n){return Hs&21?(wn(n,t)||(n=Ax(),Ze.lanes|=n,Ws|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Dt=!0),e.memoizedState=n)}function wC(e,t){var n=$e;$e=n!==0&&4>n?n:4,e(!0);var s=Cf.transition;Cf.transition={};try{e(!1),t()}finally{$e=n,Cf.transition=s}}function sv(){return an().memoizedState}function NC(e,t,n){var s=ts(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},ov(e))iv(t,n);else if(n=Dg(e,t,n,s),n!==null){var o=Rt();En(n,e,s,o),av(n,t,s)}}function SC(e,t,n){var s=ts(e),o={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(ov(e))iv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,wn(l,a)){var d=t.interleaved;d===null?(o.next=o,yf(t)):(o.next=d.next,d.next=o),t.interleaved=o;return}}catch(u){}finally{}n=Dg(e,t,o,s),n!==null&&(o=Rt(),En(n,e,s,o),av(n,t,s))}}function ov(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function iv(e,t){va=uc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function av(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Au(e,n)}}var hc={readContext:on,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},CC={readContext:on,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:on,useEffect:Xg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fc(4194308,4,Jg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fc(4194308,4,e,t)},useInsertionEffect:function(e,t){return fc(4,2,e,t)},useMemo:function(e,t){var n=Hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Hn();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=NC.bind(null,Ze,e),[s.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:Qg,useDebugValue:Of,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=Qg(!1),t=e[0];return e=wC.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ze,o=Hn();if(Ke){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),mt===null)throw Error(W(349));Hs&30||Vg(s,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Xg(Wg.bind(null,s,i,e),[e]),s.flags|=2048,ja(9,Hg.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=Hn(),t=mt.identifierPrefix;if(Ke){var n=xr,s=pr;n=(s&~(1<<32-jn(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=ya++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=jC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kC={readContext:on,useCallback:tv,useContext:on,useEffect:Rf,useImperativeHandle:ev,useInsertionEffect:Yg,useLayoutEffect:Zg,useMemo:nv,useReducer:Pf,useRef:Gg,useState:function(){return Pf(ba)},useDebugValue:Of,useDeferredValue:function(e){var t=an();return rv(t,ct.memoizedState,e)},useTransition:function(){var e=Pf(ba)[0],t=an().memoizedState;return[e,t]},useMutableSource:Ug,useSyncExternalStore:Bg,useId:sv,unstable_isNewReconciler:!1},EC={readContext:on,useCallback:tv,useContext:on,useEffect:Rf,useImperativeHandle:ev,useInsertionEffect:Yg,useLayoutEffect:Zg,useMemo:nv,useReducer:Tf,useRef:Gg,useState:function(){return Tf(ba)},useDebugValue:Of,useDeferredValue:function(e){var t=an();return ct===null?t.memoizedState=e:rv(t,ct.memoizedState,e)},useTransition:function(){var e=Tf(ba)[0],t=an().memoizedState;return[e,t]},useMutableSource:Ug,useSyncExternalStore:Bg,useId:sv,unstable_isNewReconciler:!1};function Sn(e,t){if(e&&e.defaultProps){t=Xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Af(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pc={isMounted:function(e){return(e=e._reactInternals)?Fs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Rt(),o=ts(e),i=vr(s,o);i.payload=t,n!=null&&(i.callback=n),t=Yr(e,i,o),t!==null&&(En(t,e,o,s),ac(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Rt(),o=ts(e),i=vr(s,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Yr(e,i,o),t!==null&&(En(t,e,o,s),ac(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),s=ts(e),o=vr(n,s);o.tag=2,t!=null&&(o.callback=t),t=Yr(e,o,s),t!==null&&(En(t,e,s,n),ac(t,e,s))}};function lv(e,t,n,s,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,a):t.prototype&&t.prototype.isPureReactComponent?!aa(n,s)||!aa(o,i):!0}function cv(e,t,n){var s=!1,o=Qr,i=t.contextType;return typeof i=="object"&&i!==null?i=on(i):(o=Mt(t)?$s:jt.current,s=t.contextTypes,i=(s=s!=null)?Uo(e,o):Qr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=pc,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function dv(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&pc.enqueueReplaceState(t,t.state,null)}function If(e,t,n,s){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},bf(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=on(i):(i=Mt(t)?$s:jt.current,o.context=Uo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Af(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&pc.enqueueReplaceState(o,o.state,null),lc(e,n,o,s),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Go(e,t){try{var n="",s=t;do n+=tS(s),s=s.return;while(s);var o=n}catch(i){o=`
40 Error generating stack: `+i.message+`
41 `+i.stack}return{value:e,source:t,stack:o,digest:null}}function Mf(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Df(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _C=typeof WeakMap=="function"?WeakMap:Map;function uv(e,t,n){n=vr(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){wc||(wc=!0,Yf=s),Df(e,t)},n}function fv(e,t,n){n=vr(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var o=t.value;n.payload=function(){return s(o)},n.callback=function(){Df(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Df(e,t),typeof s!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function mv(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new _C;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(n)||(o.add(n),e=BC.bind(null,e,t,n),t.then(e,e))}function hv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pv(e,t,n,s,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=vr(-1,1),t.tag=2,Yr(n,t,1))),n.lanes|=1),e)}var PC=fr.ReactCurrentOwner,Dt=!1;function Tt(e,t,n,s){t.child=e===null?Mg(t,null,n,s):Wo(t,e.child,n,s)}function xv(e,t,n,s,o){n=n.render;var i=t.ref;return Ko(t,o),s=Ef(e,t,n,s,i,o),n=_f(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yr(e,t,o)):(Ke&&n&&df(t),t.flags|=1,Tt(e,t,s,o),t.child)}function gv(e,t,n,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!sm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,vv(e,t,i,s,o)):(e=_c(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:aa,n(a,s)&&e.ref===t.ref)return yr(e,t,o)}return t.flags|=1,e=rs(i,s),e.ref=t.ref,e.return=t,t.child=e}function vv(e,t,n,s,o){if(e!==null){var i=e.memoizedProps;if(aa(i,s)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=s=i,(e.lanes&o)!==0)e.flags&131072&&(Dt=!0);else return t.lanes=e.lanes,yr(e,t,o)}return Ff(e,t,n,s,o)}function yv(e,t,n){var s=t.pendingProps,o=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Be(Yo,Qt),Qt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Be(Yo,Qt),Qt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:n,Be(Yo,Qt),Qt|=s}else i!==null?(s=i.baseLanes|n,t.memoizedState=null):s=n,Be(Yo,Qt),Qt|=s;return Tt(e,t,o,n),t.child}function bv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ff(e,t,n,s,o){var i=Mt(n)?$s:jt.current;return i=Uo(t,i),Ko(t,o),n=Ef(e,t,n,s,i,o),s=_f(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yr(e,t,o)):(Ke&&s&&df(t),t.flags|=1,Tt(e,t,n,o),t.child)}function jv(e,t,n,s,o){if(Mt(n)){var i=!0;Jl(t)}else i=!1;if(Ko(t,o),t.stateNode===null)gc(e,t),cv(t,n,s),If(t,n,s,o),s=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var d=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=on(u):(u=Mt(n)?$s:jt.current,u=Uo(t,u));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";m||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==s||d!==u)&&dv(t,a,s,u),Xr=!1;var y=t.memoizedState;a.state=y,lc(t,s,a,o),d=t.memoizedState,l!==s||y!==d||It.current||Xr?(typeof h=="function"&&(Af(t,n,h,s),d=t.memoizedState),(l=Xr||lv(t,n,l,s,y,d,u))?(m||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),a.props=s,a.state=d,a.context=u,s=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{a=t.stateNode,Fg(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Sn(t.type,l),a.props=u,m=t.pendingProps,y=a.context,d=n.contextType,typeof d=="object"&&d!==null?d=on(d):(d=Mt(n)?$s:jt.current,d=Uo(t,d));var x=n.getDerivedStateFromProps;(h=typeof x=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==m||y!==d)&&dv(t,a,s,d),Xr=!1,y=t.memoizedState,a.state=y,lc(t,s,a,o);var w=t.memoizedState;l!==m||y!==w||It.current||Xr?(typeof x=="function"&&(Af(t,n,x,s),w=t.memoizedState),(u=Xr||lv(t,n,u,s,y,w,d)||!1)?(h||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(s,w,d),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(s,w,d)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=w),a.props=s,a.state=w,a.context=d,s=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),s=!1)}return Lf(e,t,n,s,i,o)}function Lf(e,t,n,s,o,i){bv(e,t);var a=(t.flags&128)!==0;if(!s&&!a)return o&&kg(t,n,!1),yr(e,t,i);s=t.stateNode,PC.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&a?(t.child=Wo(t,e.child,null,i),t.child=Wo(t,null,l,i)):Tt(e,t,l,i),t.memoizedState=s.state,o&&kg(t,n,!0),t.child}function wv(e){var t=e.stateNode;t.pendingContext?Sg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sg(e,t.context,!1),jf(e,t.containerInfo)}function Nv(e,t,n,s,o){return Ho(),hf(o),t.flags|=256,Tt(e,t,n,s),t.child}var $f={dehydrated:null,treeContext:null,retryLane:0};function zf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sv(e,t,n){var s=t.pendingProps,o=Ye.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Be(Ye,o&1),e===null)return mf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=s.children,e=s.fallback,i?(s=t.mode,i=t.child,a={mode:"hidden",children:a},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Pc(a,s,0,null),e=Gs(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=zf(n),t.memoizedState=$f,e):Uf(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return TC(e,t,a,s,l,o,n);if(i){i=s.fallback,a=t.mode,o=e.child,l=o.sibling;var d={mode:"hidden",children:s.children};return!(a&1)&&t.child!==o?(s=t.child,s.childLanes=0,s.pendingProps=d,t.deletions=null):(s=rs(o,d),s.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=rs(l,i):(i=Gs(i,a,n,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,a=e.child.memoizedState,a=a===null?zf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=$f,s}return i=e.child,e=i.sibling,s=rs(i,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Uf(e,t){return t=Pc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xc(e,t,n,s){return s!==null&&hf(s),Wo(t,e.child,null,n),e=Uf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function TC(e,t,n,s,o,i,a){if(n)return t.flags&256?(t.flags&=-257,s=Mf(Error(W(422))),xc(e,t,a,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,o=t.mode,s=Pc({mode:"visible",children:s.children},o,0,null),i=Gs(i,o,a,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&Wo(t,e.child,null,a),t.child.memoizedState=zf(a),t.memoizedState=$f,i);if(!(t.mode&1))return xc(e,t,a,null);if(o.data==="$!"){if(s=o.nextSibling&&o.nextSibling.dataset,s)var l=s.dgst;return s=l,i=Error(W(419)),s=Mf(i,s,void 0),xc(e,t,a,s)}if(l=(a&e.childLanes)!==0,Dt||l){if(s=mt,s!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(s.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,gr(e,o),En(s,e,o,-1))}return rm(),s=Mf(Error(W(421))),xc(e,t,a,s)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=VC.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Kt=qr(o.nextSibling),qt=t,Ke=!0,Nn=null,e!==null&&(rn[sn++]=pr,rn[sn++]=xr,rn[sn++]=zs,pr=e.id,xr=e.overflow,zs=t),t=Uf(t,s.children),t.flags|=4096,t)}function Cv(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),vf(e.return,t,n)}function Bf(e,t,n,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=o)}function kv(e,t,n){var s=t.pendingProps,o=s.revealOrder,i=s.tail;if(Tt(e,t,s.children,n),s=Ye.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cv(e,n,t);else if(e.tag===19)Cv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Be(Ye,s),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&cc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bf(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bf(t,!0,n,null,i);break;case"together":Bf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ws|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=rs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function RC(e,t,n){switch(t.tag){case 3:wv(t),Ho();break;case 5:zg(t);break;case 1:Mt(t.type)&&Jl(t);break;case 4:jf(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,o=t.memoizedProps.value;Be(oc,s._currentValue),s._currentValue=o;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Be(Ye,Ye.current&1),t.flags|=128,null):n&t.child.childLanes?Sv(e,t,n):(Be(Ye,Ye.current&1),e=yr(e,t,n),e!==null?e.sibling:null);Be(Ye,Ye.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return kv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Be(Ye,Ye.current),s)break;return null;case 22:case 23:return t.lanes=0,yv(e,t,n)}return yr(e,t,n)}var Ev,Vf,_v,Pv;Ev=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Vf=function(){},_v=function(e,t,n,s){var o=e.memoizedProps;if(o!==s){e=t.stateNode,Vs(Vn.current);var i=null;switch(n){case"input":o=gu(e,o),s=gu(e,s),i=[];break;case"select":o=Xe({},o,{value:void 0}),s=Xe({},s,{value:void 0}),i=[];break;case"textarea":o=bu(e,o),s=bu(e,s),i=[];break;default:typeof o.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Xl)}wu(n,s);var a;n=null;for(u in o)if(!s.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in s){var d=s[u];if(l=o!=null?o[u]:void 0,s.hasOwnProperty(u)&&d!==l&&(d!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||d&&d.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in d)d.hasOwnProperty(a)&&l[a]!==d[a]&&(n||(n={}),n[a]=d[a])}else n||(i||(i=[]),i.push(u,n)),n=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,l=l?l.__html:void 0,d!=null&&l!==d&&(i=i||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(i=i||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zi.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&He("scroll",e),i||l===d||(i=[])):(i=i||[]).push(u,d))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Pv=function(e,t,n,s){n!==s&&(t.flags|=4)};function wa(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&14680064,s|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function OC(e,t,n){var s=t.pendingProps;switch(uf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(t),null;case 1:return Mt(t.type)&&Zl(),Nt(t),null;case 3:return s=t.stateNode,Qo(),We(It),We(jt),Sf(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(rc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nn!==null&&(em(Nn),Nn=null))),Vf(e,t),Nt(t),null;case 5:wf(t);var o=Vs(ga.current);if(n=t.type,e!==null&&t.stateNode!=null)_v(e,t,n,s,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(W(166));return Nt(t),null}if(e=Vs(Vn.current),rc(t)){s=t.stateNode,n=t.type;var i=t.memoizedProps;switch(s[Bn]=t,s[fa]=i,e=(t.mode&1)!==0,n){case"dialog":He("cancel",s),He("close",s);break;case"iframe":case"object":case"embed":He("load",s);break;case"video":case"audio":for(o=0;o<ca.length;o++)He(ca[o],s);break;case"source":He("error",s);break;case"img":case"image":case"link":He("error",s),He("load",s);break;case"details":He("toggle",s);break;case"input":cx(s,i),He("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},He("invalid",s);break;case"textarea":fx(s,i),He("invalid",s)}wu(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?s.textContent!==l&&(i.suppressHydrationWarning!==!0&&Gl(s.textContent,l,e),o=["children",l]):typeof l=="number"&&s.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Gl(s.textContent,l,e),o=["children",""+l]):zi.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&He("scroll",s)}switch(n){case"input":kl(s),ux(s,i,!0);break;case"textarea":kl(s),hx(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=Xl)}s=o,t.updateQueue=s,s!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=px(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=a.createElement(n,{is:s.is}):(e=a.createElement(n),n==="select"&&(a=e,s.multiple?a.multiple=!0:s.size&&(a.size=s.size))):e=a.createElementNS(e,n),e[Bn]=t,e[fa]=s,Ev(e,t,!1,!1),t.stateNode=e;e:{switch(a=Nu(n,s),n){case"dialog":He("cancel",e),He("close",e),o=s;break;case"iframe":case"object":case"embed":He("load",e),o=s;break;case"video":case"audio":for(o=0;o<ca.length;o++)He(ca[o],e);o=s;break;case"source":He("error",e),o=s;break;case"img":case"image":case"link":He("error",e),He("load",e),o=s;break;case"details":He("toggle",e),o=s;break;case"input":cx(e,s),o=gu(e,s),He("invalid",e);break;case"option":o=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},o=Xe({},s,{value:void 0}),He("invalid",e);break;case"textarea":fx(e,s),o=bu(e,s),He("invalid",e);break;default:o=s}wu(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var d=l[i];i==="style"?vx(e,d):i==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&xx(e,d)):i==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&Hi(e,d):typeof d=="number"&&Hi(e,""+d):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(zi.hasOwnProperty(i)?d!=null&&i==="onScroll"&&He("scroll",e):d!=null&&iu(e,i,d,a))}switch(n){case"input":kl(e),ux(e,s,!1);break;case"textarea":kl(e),hx(e);break;case"option":s.value!=null&&e.setAttribute("value",""+$r(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?Po(e,!!s.multiple,i,!1):s.defaultValue!=null&&Po(e,!!s.multiple,s.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Xl)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Nt(t),null;case 6:if(e&&t.stateNode!=null)Pv(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(W(166));if(n=Vs(ga.current),Vs(Vn.current),rc(t)){if(s=t.stateNode,n=t.memoizedProps,s[Bn]=t,(i=s.nodeValue!==n)&&(e=qt,e!==null))switch(e.tag){case 3:Gl(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gl(s.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Bn]=t,t.stateNode=s}return Nt(t),null;case 13:if(We(Ye),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ke&&Kt!==null&&t.mode&1&&!(t.flags&128))Og(),Ho(),t.flags|=98560,i=!1;else if(i=rc(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(W(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(W(317));i[Bn]=t}else Ho(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nt(t),i=!1}else Nn!==null&&(em(Nn),Nn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||Ye.current&1?dt===0&&(dt=3):rm())),t.updateQueue!==null&&(t.flags|=4),Nt(t),null);case 4:return Qo(),Vf(e,t),e===null&&da(t.stateNode.containerInfo),Nt(t),null;case 10:return gf(t.type._context),Nt(t),null;case 17:return Mt(t.type)&&Zl(),Nt(t),null;case 19:if(We(Ye),i=t.memoizedState,i===null)return Nt(t),null;if(s=(t.flags&128)!==0,a=i.rendering,a===null)if(s)wa(i,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=cc(e),a!==null){for(t.flags|=128,wa(i,!1),s=a.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)i=n,e=s,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Be(Ye,Ye.current&1|2),t.child}e=e.sibling}i.tail!==null&&at()>Zo&&(t.flags|=128,s=!0,wa(i,!1),t.lanes=4194304)}else{if(!s)if(e=cc(a),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ke)return Nt(t),null}else 2*at()-i.renderingStartTime>Zo&&n!==1073741824&&(t.flags|=128,s=!0,wa(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=at(),t.sibling=null,n=Ye.current,Be(Ye,s?n&1|2:n&1),t):(Nt(t),null);case 22:case 23:return nm(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?Qt&1073741824&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function AC(e,t){switch(uf(t),t.tag){case 1:return Mt(t.type)&&Zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qo(),We(It),We(jt),Sf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wf(t),null;case 13:if(We(Ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return We(Ye),null;case 4:return Qo(),null;case 10:return gf(t.type._context),null;case 22:case 23:return nm(),null;case 24:return null;default:return null}}var vc=!1,St=!1,IC=typeof WeakSet=="function"?WeakSet:Set,ae=null;function Xo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){nt(e,t,s)}else n.current=null}function Hf(e,t,n){try{n()}catch(s){nt(e,t,s)}}var Tv=!1;function MC(e,t){if(tf=Ll,e=lg(),Ku(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var o=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch(N){n=null;break e}var a=0,l=-1,d=-1,u=0,h=0,m=e,y=null;t:for(;;){for(var x;m!==n||o!==0&&m.nodeType!==3||(l=a+o),m!==i||s!==0&&m.nodeType!==3||(d=a+s),m.nodeType===3&&(a+=m.nodeValue.length),(x=m.firstChild)!==null;)y=m,m=x;for(;;){if(m===e)break t;if(y===n&&++u===o&&(l=a),y===i&&++h===s&&(d=a),(x=m.nextSibling)!==null)break;m=y,y=m.parentNode}m=x}n=l===-1||d===-1?null:{start:l,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(nf={focusedElem:e,selectionRange:n},Ll=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var b=w.memoizedProps,j=w.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:Sn(t.type,b),j);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(N){nt(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return w=Tv,Tv=!1,w}function Na(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Hf(t,n,i)}o=o.next}while(o!==s)}}function yc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Wf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rv(e){var t=e.alternate;t!==null&&(e.alternate=null,Rv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bn],delete t[fa],delete t[af],delete t[gC],delete t[vC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ov(e){return e.tag===5||e.tag===3||e.tag===4}function Av(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ov(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qf(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xl));else if(s!==4&&(e=e.child,e!==null))for(qf(e,t,n),e=e.sibling;e!==null;)qf(e,t,n),e=e.sibling}function Kf(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Kf(e,t,n),e=e.sibling;e!==null;)Kf(e,t,n),e=e.sibling}var gt=null,Cn=!1;function Zr(e,t,n){for(n=n.child;n!==null;)Iv(e,t,n),n=n.sibling}function Iv(e,t,n){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(Ol,n)}catch(l){}switch(n.tag){case 5:St||Xo(n,t);case 6:var s=gt,o=Cn;gt=null,Zr(e,t,n),gt=s,Cn=o,gt!==null&&(Cn?(e=gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):gt.removeChild(n.stateNode));break;case 18:gt!==null&&(Cn?(e=gt,n=n.stateNode,e.nodeType===8?of(e.parentNode,n):e.nodeType===1&&of(e,n),ta(e)):of(gt,n.stateNode));break;case 4:s=gt,o=Cn,gt=n.stateNode.containerInfo,Cn=!0,Zr(e,t,n),gt=s,Cn=o;break;case 0:case 11:case 14:case 15:if(!St&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){o=s=s.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Hf(n,t,a),o=o.next}while(o!==s)}Zr(e,t,n);break;case 1:if(!St&&(Xo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){nt(n,t,l)}Zr(e,t,n);break;case 21:Zr(e,t,n);break;case 22:n.mode&1?(St=(s=St)||n.memoizedState!==null,Zr(e,t,n),St=s):Zr(e,t,n);break;default:Zr(e,t,n)}}function Mv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new IC),t.forEach(function(s){var o=HC.bind(null,e,s);n.has(s)||(n.add(s),s.then(o,o))})}}function kn(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var o=n[s];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:gt=l.stateNode,Cn=!1;break e;case 3:gt=l.stateNode.containerInfo,Cn=!0;break e;case 4:gt=l.stateNode.containerInfo,Cn=!0;break e}l=l.return}if(gt===null)throw Error(W(160));Iv(i,a,o),gt=null,Cn=!1;var d=o.alternate;d!==null&&(d.return=null),o.return=null}catch(u){nt(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dv(t,e),t=t.sibling}function Dv(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kn(t,e),Wn(e),s&4){try{Na(3,e,e.return),yc(3,e)}catch(b){nt(e,e.return,b)}try{Na(5,e,e.return)}catch(b){nt(e,e.return,b)}}break;case 1:kn(t,e),Wn(e),s&512&&n!==null&&Xo(n,n.return);break;case 5:if(kn(t,e),Wn(e),s&512&&n!==null&&Xo(n,n.return),e.flags&32){var o=e.stateNode;try{Hi(o,"")}catch(b){nt(e,e.return,b)}}if(s&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&dx(o,i),Nu(l,a);var u=Nu(l,i);for(a=0;a<d.length;a+=2){var h=d[a],m=d[a+1];h==="style"?vx(o,m):h==="dangerouslySetInnerHTML"?xx(o,m):h==="children"?Hi(o,m):iu(o,h,m,u)}switch(l){case"input":vu(o,i);break;case"textarea":mx(o,i);break;case"select":var y=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var x=i.value;x!=null?Po(o,!!i.multiple,x,!1):y!==!!i.multiple&&(i.defaultValue!=null?Po(o,!!i.multiple,i.defaultValue,!0):Po(o,!!i.multiple,i.multiple?[]:"",!1))}o[fa]=i}catch(b){nt(e,e.return,b)}}break;case 6:if(kn(t,e),Wn(e),s&4){if(e.stateNode===null)throw Error(W(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(b){nt(e,e.return,b)}}break;case 3:if(kn(t,e),Wn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ta(t.containerInfo)}catch(b){nt(e,e.return,b)}break;case 4:kn(t,e),Wn(e);break;case 13:kn(t,e),Wn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Xf=at())),s&4&&Mv(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(St=(u=St)||h,kn(t,e),St=u):kn(t,e),Wn(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&e.mode&1)for(ae=e,h=e.child;h!==null;){for(m=ae=h;ae!==null;){switch(y=ae,x=y.child,y.tag){case 0:case 11:case 14:case 15:Na(4,y,y.return);break;case 1:Xo(y,y.return);var w=y.stateNode;if(typeof w.componentWillUnmount=="function"){s=y,n=y.return;try{t=s,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(b){nt(s,n,b)}}break;case 5:Xo(y,y.return);break;case 22:if(y.memoizedState!==null){$v(m);continue}}x!==null?(x.return=y,ae=x):$v(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{o=m.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=m.stateNode,d=m.memoizedProps.style,a=d!=null&&d.hasOwnProperty("display")?d.display:null,l.style.display=gx("display",a))}catch(b){nt(e,e.return,b)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(b){nt(e,e.return,b)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:kn(t,e),Wn(e),s&4&&Mv(e);break;case 21:break;default:kn(t,e),Wn(e)}}function Wn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ov(n)){var s=n;break e}n=n.return}throw Error(W(160))}switch(s.tag){case 5:var o=s.stateNode;s.flags&32&&(Hi(o,""),s.flags&=-33);var i=Av(e);Kf(e,i,o);break;case 3:case 4:var a=s.stateNode.containerInfo,l=Av(e);qf(e,l,a);break;default:throw Error(W(161))}}catch(d){nt(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function DC(e,t,n){ae=e,Fv(e)}function Fv(e,t,n){for(var s=(e.mode&1)!==0;ae!==null;){var o=ae,i=o.child;if(o.tag===22&&s){var a=o.memoizedState!==null||vc;if(!a){var l=o.alternate,d=l!==null&&l.memoizedState!==null||St;l=vc;var u=St;if(vc=a,(St=d)&&!u)for(ae=o;ae!==null;)a=ae,d=a.child,a.tag===22&&a.memoizedState!==null?zv(o):d!==null?(d.return=a,ae=d):zv(o);for(;i!==null;)ae=i,Fv(i),i=i.sibling;ae=o,vc=l,St=u}Lv(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,ae=i):Lv(e)}}function Lv(e){for(;ae!==null;){var t=ae;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:St||yc(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!St)if(n===null)s.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Sn(t.type,n.memoizedProps);s.componentDidUpdate(o,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&$g(t,i,s);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}$g(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&ta(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}St||t.flags&512&&Wf(t)}catch(y){nt(t,t.return,y)}}if(t===e){ae=null;break}if(n=t.sibling,n!==null){n.return=t.return,ae=n;break}ae=t.return}}function $v(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ae=n;break}ae=t.return}}function zv(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yc(4,t)}catch(d){nt(t,n,d)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var o=t.return;try{s.componentDidMount()}catch(d){nt(t,o,d)}}var i=t.return;try{Wf(t)}catch(d){nt(t,i,d)}break;case 5:var a=t.return;try{Wf(t)}catch(d){nt(t,a,d)}}}catch(d){nt(t,t.return,d)}if(t===e){ae=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ae=l;break}ae=t.return}}var FC=Math.ceil,bc=fr.ReactCurrentDispatcher,Qf=fr.ReactCurrentOwner,ln=fr.ReactCurrentBatchConfig,Me=0,mt=null,lt=null,vt=0,Qt=0,Yo=Kr(0),dt=0,Sa=null,Ws=0,jc=0,Gf=0,Ca=null,Ft=null,Xf=0,Zo=1/0,br=null,wc=!1,Yf=null,Jr=null,Nc=!1,es=null,Sc=0,ka=0,Zf=null,Cc=-1,kc=0;function Rt(){return Me&6?at():Cc!==-1?Cc:Cc=at()}function ts(e){return e.mode&1?Me&2&&vt!==0?vt&-vt:bC.transition!==null?(kc===0&&(kc=Ax()),kc):(e=$e,e!==0||(e=window.event,e=e===void 0?16:Bx(e.type)),e):1}function En(e,t,n,s){if(50<ka)throw ka=0,Zf=null,Error(W(185));Xi(e,n,s),(!(Me&2)||e!==mt)&&(e===mt&&(!(Me&2)&&(jc|=n),dt===4&&ns(e,vt)),Lt(e,s),n===1&&Me===0&&!(t.mode&1)&&(Zo=at()+500,ec&&Gr()))}function Lt(e,t){var n=e.callbackNode;bS(e,t);var s=Ml(e,e===mt?vt:0);if(s===0)n!==null&&Tx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Tx(n),t===1)e.tag===0?yC(Bv.bind(null,e)):Eg(Bv.bind(null,e)),pC(function(){!(Me&6)&&Gr()}),n=null;else{switch(Ix(s)){case 1:n=Tu;break;case 4:n=Rx;break;case 16:n=Rl;break;case 536870912:n=Ox;break;default:n=Rl}n=Xv(n,Uv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Uv(e,t){if(Cc=-1,kc=0,Me&6)throw Error(W(327));var n=e.callbackNode;if(Jo()&&e.callbackNode!==n)return null;var s=Ml(e,e===mt?vt:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=Ec(e,s);else{t=s;var o=Me;Me|=2;var i=Hv();(mt!==e||vt!==t)&&(br=null,Zo=at()+500,Ks(e,t));do try{zC();break}catch(l){Vv(e,l)}while(!0);xf(),bc.current=i,Me=o,lt!==null?t=0:(mt=null,vt=0,t=dt)}if(t!==0){if(t===2&&(o=Ru(e),o!==0&&(s=o,t=Jf(e,o))),t===1)throw n=Sa,Ks(e,0),ns(e,s),Lt(e,at()),n;if(t===6)ns(e,s);else{if(o=e.current.alternate,!(s&30)&&!LC(o)&&(t=Ec(e,s),t===2&&(i=Ru(e),i!==0&&(s=i,t=Jf(e,i))),t===1))throw n=Sa,Ks(e,0),ns(e,s),Lt(e,at()),n;switch(e.finishedWork=o,e.finishedLanes=s,t){case 0:case 1:throw Error(W(345));case 2:Qs(e,Ft,br);break;case 3:if(ns(e,s),(s&130023424)===s&&(t=Xf+500-at(),10<t)){if(Ml(e,0)!==0)break;if(o=e.suspendedLanes,(o&s)!==s){Rt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=sf(Qs.bind(null,e,Ft,br),t);break}Qs(e,Ft,br);break;case 4:if(ns(e,s),(s&4194240)===s)break;for(t=e.eventTimes,o=-1;0<s;){var a=31-jn(s);i=1<<a,a=t[a],a>o&&(o=a),s&=~i}if(s=o,s=at()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*FC(s/1960))-s,10<s){e.timeoutHandle=sf(Qs.bind(null,e,Ft,br),s);break}Qs(e,Ft,br);break;case 5:Qs(e,Ft,br);break;default:throw Error(W(329))}}}return Lt(e,at()),e.callbackNode===n?Uv.bind(null,e):null}function Jf(e,t){var n=Ca;return e.current.memoizedState.isDehydrated&&(Ks(e,t).flags|=256),e=Ec(e,t),e!==2&&(t=Ft,Ft=n,t!==null&&em(t)),e}function em(e){Ft===null?Ft=e:Ft.push.apply(Ft,e)}function LC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var o=n[s],i=o.getSnapshot;o=o.value;try{if(!wn(i(),o))return!1}catch(a){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ns(e,t){for(t&=~Gf,t&=~jc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jn(t),s=1<<n;e[n]=-1,t&=~s}}function Bv(e){if(Me&6)throw Error(W(327));Jo();var t=Ml(e,0);if(!(t&1))return Lt(e,at()),null;var n=Ec(e,t);if(e.tag!==0&&n===2){var s=Ru(e);s!==0&&(t=s,n=Jf(e,s))}if(n===1)throw n=Sa,Ks(e,0),ns(e,t),Lt(e,at()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qs(e,Ft,br),Lt(e,at()),null}function tm(e,t){var n=Me;Me|=1;try{return e(t)}finally{Me=n,Me===0&&(Zo=at()+500,ec&&Gr())}}function qs(e){es!==null&&es.tag===0&&!(Me&6)&&Jo();var t=Me;Me|=1;var n=ln.transition,s=$e;try{if(ln.transition=null,$e=1,e)return e()}finally{$e=s,ln.transition=n,Me=t,!(Me&6)&&Gr()}}function nm(){Qt=Yo.current,We(Yo)}function Ks(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hC(n)),lt!==null)for(n=lt.return;n!==null;){var s=n;switch(uf(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Zl();break;case 3:Qo(),We(It),We(jt),Sf();break;case 5:wf(s);break;case 4:Qo();break;case 13:We(Ye);break;case 19:We(Ye);break;case 10:gf(s.type._context);break;case 22:case 23:nm()}n=n.return}if(mt=e,lt=e=rs(e.current,null),vt=Qt=t,dt=0,Sa=null,Gf=jc=Ws=0,Ft=Ca=null,Bs!==null){for(t=0;t<Bs.length;t++)if(n=Bs[t],s=n.interleaved,s!==null){n.interleaved=null;var o=s.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,s.next=a}n.pending=s}Bs=null}return e}function Vv(e,t){do{var n=lt;try{if(xf(),dc.current=hc,uc){for(var s=Ze.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}uc=!1}if(Hs=0,ft=ct=Ze=null,va=!1,ya=0,Qf.current=null,n===null||n.return===null){dt=1,Sa=t,lt=null;break}e:{var i=e,a=n.return,l=n,d=t;if(t=vt,l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var u=d,h=l,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var y=h.alternate;y?(h.updateQueue=y.updateQueue,h.memoizedState=y.memoizedState,h.lanes=y.lanes):(h.updateQueue=null,h.memoizedState=null)}var x=hv(a);if(x!==null){x.flags&=-257,pv(x,a,l,i,t),x.mode&1&&mv(i,u,t),t=x,d=u;var w=t.updateQueue;if(w===null){var b=new Set;b.add(d),t.updateQueue=b}else w.add(d);break e}else{if(!(t&1)){mv(i,u,t),rm();break e}d=Error(W(426))}}else if(Ke&&l.mode&1){var j=hv(a);if(j!==null){!(j.flags&65536)&&(j.flags|=256),pv(j,a,l,i,t),hf(Go(d,l));break e}}i=d=Go(d,l),dt!==4&&(dt=2),Ca===null?Ca=[i]:Ca.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=uv(i,d,t);Lg(i,g);break e;case 1:l=d;var p=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Jr===null||!Jr.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=fv(i,l,t);Lg(i,N);break e}}i=i.return}while(i!==null)}qv(n)}catch(S){t=S,lt===n&&n!==null&&(lt=n=n.return);continue}break}while(!0)}function Hv(){var e=bc.current;return bc.current=hc,e===null?hc:e}function rm(){(dt===0||dt===3||dt===2)&&(dt=4),mt===null||!(Ws&268435455)&&!(jc&268435455)||ns(mt,vt)}function Ec(e,t){var n=Me;Me|=2;var s=Hv();(mt!==e||vt!==t)&&(br=null,Ks(e,t));do try{$C();break}catch(o){Vv(e,o)}while(!0);if(xf(),Me=n,bc.current=s,lt!==null)throw Error(W(261));return mt=null,vt=0,dt}function $C(){for(;lt!==null;)Wv(lt)}function zC(){for(;lt!==null&&!uS();)Wv(lt)}function Wv(e){var t=Gv(e.alternate,e,Qt);e.memoizedProps=e.pendingProps,t===null?qv(e):lt=t,Qf.current=null}function qv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=AC(n,t),n!==null){n.flags&=32767,lt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{dt=6,lt=null;return}}else if(n=OC(n,t,Qt),n!==null){lt=n;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);dt===0&&(dt=5)}function Qs(e,t,n){var s=$e,o=ln.transition;try{ln.transition=null,$e=1,UC(e,t,n,s)}finally{ln.transition=o,$e=s}return null}function UC(e,t,n,s){do Jo();while(es!==null);if(Me&6)throw Error(W(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(jS(e,i),e===mt&&(lt=mt=null,vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nc||(Nc=!0,Xv(Rl,function(){return Jo(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ln.transition,ln.transition=null;var a=$e;$e=1;var l=Me;Me|=4,Qf.current=null,MC(e,n),Dv(n,e),aC(nf),Ll=!!tf,nf=tf=null,e.current=n,DC(n),fS(),Me=l,$e=a,ln.transition=i}else e.current=n;if(Nc&&(Nc=!1,es=e,Sc=o),i=e.pendingLanes,i===0&&(Jr=null),pS(n.stateNode),Lt(e,at()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],s(o.value,{componentStack:o.stack,digest:o.digest});if(wc)throw wc=!1,e=Yf,Yf=null,e;return Sc&1&&e.tag!==0&&Jo(),i=e.pendingLanes,i&1?e===Zf?ka++:(ka=0,Zf=e):ka=0,Gr(),null}function Jo(){if(es!==null){var e=Ix(Sc),t=ln.transition,n=$e;try{if(ln.transition=null,$e=16>e?16:e,es===null)var s=!1;else{if(e=es,es=null,Sc=0,Me&6)throw Error(W(331));var o=Me;for(Me|=4,ae=e.current;ae!==null;){var i=ae,a=i.child;if(ae.flags&16){var l=i.deletions;if(l!==null){for(var d=0;d<l.length;d++){var u=l[d];for(ae=u;ae!==null;){var h=ae;switch(h.tag){case 0:case 11:case 15:Na(8,h,i)}var m=h.child;if(m!==null)m.return=h,ae=m;else for(;ae!==null;){h=ae;var y=h.sibling,x=h.return;if(Rv(h),h===u){ae=null;break}if(y!==null){y.return=x,ae=y;break}ae=x}}}var w=i.alternate;if(w!==null){var b=w.child;if(b!==null){w.child=null;do{var j=b.sibling;b.sibling=null,b=j}while(b!==null)}}ae=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,ae=a;else e:for(;ae!==null;){if(i=ae,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Na(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,ae=g;break e}ae=i.return}}var p=e.current;for(ae=p;ae!==null;){a=ae;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,ae=v;else e:for(a=p;ae!==null;){if(l=ae,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:yc(9,l)}}catch(S){nt(l,l.return,S)}if(l===a){ae=null;break e}var N=l.sibling;if(N!==null){N.return=l.return,ae=N;break e}ae=l.return}}if(Me=o,Gr(),Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot(Ol,e)}catch(S){}s=!0}return s}finally{$e=n,ln.transition=t}}return!1}function Kv(e,t,n){t=Go(n,t),t=uv(e,t,1),e=Yr(e,t,1),t=Rt(),e!==null&&(Xi(e,1,t),Lt(e,t))}function nt(e,t,n){if(e.tag===3)Kv(e,e,n);else for(;t!==null;){if(t.tag===3){Kv(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Jr===null||!Jr.has(s))){e=Go(n,e),e=fv(t,e,1),t=Yr(t,e,1),e=Rt(),t!==null&&(Xi(t,1,e),Lt(t,e));break}}t=t.return}}function BC(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=Rt(),e.pingedLanes|=e.suspendedLanes&n,mt===e&&(vt&n)===n&&(dt===4||dt===3&&(vt&130023424)===vt&&500>at()-Xf?Ks(e,0):Gf|=n),Lt(e,t)}function Qv(e,t){t===0&&(e.mode&1?(t=Il,Il<<=1,!(Il&130023424)&&(Il=4194304)):t=1);var n=Rt();e=gr(e,t),e!==null&&(Xi(e,t,n),Lt(e,n))}function VC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qv(e,n)}function HC(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(W(314))}s!==null&&s.delete(t),Qv(e,n)}var Gv;Gv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||It.current)Dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Dt=!1,RC(e,t,n);Dt=!!(e.flags&131072)}else Dt=!1,Ke&&t.flags&1048576&&_g(t,nc,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;gc(e,t),e=t.pendingProps;var o=Uo(t,jt.current);Ko(t,n),o=Ef(null,t,s,e,o,n);var i=_f();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(s)?(i=!0,Jl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bf(t),o.updater=pc,t.stateNode=o,o._reactInternals=t,If(t,s,e,n),t=Lf(null,t,s,!0,i,n)):(t.tag=0,Ke&&i&&df(t),Tt(null,t,o,n),t=t.child),t;case 16:s=t.elementType;e:{switch(gc(e,t),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=qC(s),e=Sn(s,e),o){case 0:t=Ff(null,t,s,e,n);break e;case 1:t=jv(null,t,s,e,n);break e;case 11:t=xv(null,t,s,e,n);break e;case 14:t=gv(null,t,s,Sn(s.type,e),n);break e}throw Error(W(306,s,""))}return t;case 0:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Sn(s,o),Ff(e,t,s,o,n);case 1:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Sn(s,o),jv(e,t,s,o,n);case 3:e:{if(wv(t),e===null)throw Error(W(387));s=t.pendingProps,i=t.memoizedState,o=i.element,Fg(e,t),lc(t,s,null,n);var a=t.memoizedState;if(s=a.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Go(Error(W(423)),t),t=Nv(e,t,s,n,o);break e}else if(s!==o){o=Go(Error(W(424)),t),t=Nv(e,t,s,n,o);break e}else for(Kt=qr(t.stateNode.containerInfo.firstChild),qt=t,Ke=!0,Nn=null,n=Mg(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ho(),s===o){t=yr(e,t,n);break e}Tt(e,t,s,n)}t=t.child}return t;case 5:return zg(t),e===null&&mf(t),s=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,rf(s,o)?a=null:i!==null&&rf(s,i)&&(t.flags|=32),bv(e,t),Tt(e,t,a,n),t.child;case 6:return e===null&&mf(t),null;case 13:return Sv(e,t,n);case 4:return jf(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Wo(t,null,s,n):Tt(e,t,s,n),t.child;case 11:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Sn(s,o),xv(e,t,s,o,n);case 7:return Tt(e,t,t.pendingProps,n),t.child;case 8:return Tt(e,t,t.pendingProps.children,n),t.child;case 12:return Tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Be(oc,s._currentValue),s._currentValue=a,i!==null)if(wn(i.value,a)){if(i.children===o.children&&!It.current){t=yr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var d=l.firstContext;d!==null;){if(d.context===s){if(i.tag===1){d=vr(-1,n&-n),d.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?d.next=d:(d.next=h.next,h.next=d),u.pending=d}}i.lanes|=n,d=i.alternate,d!==null&&(d.lanes|=n),vf(i.return,n,t),l.lanes|=n;break}d=d.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(W(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),vf(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Tt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,s=t.pendingProps.children,Ko(t,n),o=on(o),s=s(o),t.flags|=1,Tt(e,t,s,n),t.child;case 14:return s=t.type,o=Sn(s,t.pendingProps),o=Sn(s.type,o),gv(e,t,s,o,n);case 15:return vv(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Sn(s,o),gc(e,t),t.tag=1,Mt(s)?(e=!0,Jl(t)):e=!1,Ko(t,n),cv(t,s,o),If(t,s,o,n),Lf(null,t,s,!0,e,n);case 19:return kv(e,t,n);case 22:return yv(e,t,n)}throw Error(W(156,t.tag))};function Xv(e,t){return Px(e,t)}function WC(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cn(e,t,n,s){return new WC(e,t,n,s)}function sm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qC(e){if(typeof e=="function")return sm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cu)return 11;if(e===fu)return 14}return 2}function rs(e,t){var n=e.alternate;return n===null?(n=cn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _c(e,t,n,s,o,i){var a=2;if(s=e,typeof e=="function")sm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case _o:return Gs(n.children,o,i,t);case au:a=8,o|=8;break;case lu:return e=cn(12,n,t,o|2),e.elementType=lu,e.lanes=i,e;case du:return e=cn(13,n,t,o),e.elementType=du,e.lanes=i,e;case uu:return e=cn(19,n,t,o),e.elementType=uu,e.lanes=i,e;case ox:return Pc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rx:a=10;break e;case sx:a=9;break e;case cu:a=11;break e;case fu:a=14;break e;case Lr:a=16,s=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=cn(a,n,t,o),t.elementType=e,t.type=s,t.lanes=i,t}function Gs(e,t,n,s){return e=cn(7,e,s,t),e.lanes=n,e}function Pc(e,t,n,s){return e=cn(22,e,s,t),e.elementType=ox,e.lanes=n,e.stateNode={isHidden:!1},e}function om(e,t,n){return e=cn(6,e,null,t),e.lanes=n,e}function im(e,t,n){return t=cn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KC(e,t,n,s,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ou(0),this.expirationTimes=Ou(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ou(0),this.identifierPrefix=s,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function am(e,t,n,s,o,i,a,l,d){return e=new KC(e,t,n,l,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=cn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bf(i),e}function QC(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Eo,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Yv(e){if(!e)return Qr;e=e._reactInternals;e:{if(Fs(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(Mt(n))return Cg(e,n,t)}return t}function Zv(e,t,n,s,o,i,a,l,d){return e=am(n,s,!0,e,o,i,a,l,d),e.context=Yv(null),n=e.current,s=Rt(),o=ts(n),i=vr(s,o),i.callback=t!=null?t:null,Yr(n,i,o),e.current.lanes=o,Xi(e,o,s),Lt(e,s),e}function Tc(e,t,n,s){var o=t.current,i=Rt(),a=ts(o);return n=Yv(n),t.context===null?t.context=n:t.pendingContext=n,t=vr(i,a),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Yr(o,t,a),e!==null&&(En(e,o,a,i),ac(e,o,a)),a}function Rc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Jv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lm(e,t){Jv(e,t),(e=e.alternate)&&Jv(e,t)}function GC(){return null}var ey=typeof reportError=="function"?reportError:function(e){console.error(e)};function cm(e){this._internalRoot=e}Oc.prototype.render=cm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));Tc(e,t,null,null)},Oc.prototype.unmount=cm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qs(function(){Tc(null,e,null,null)}),t[mr]=null}};function Oc(e){this._internalRoot=e}Oc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vr.length&&t!==0&&t<Vr[n].priority;n++);Vr.splice(n,0,e),n===0&&zx(e)}};function dm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ac(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ty(){}function XC(e,t,n,s,o){if(o){if(typeof s=="function"){var i=s;s=function(){var u=Rc(a);i.call(u)}}var a=Zv(t,s,e,0,null,!1,!1,"",ty);return e._reactRootContainer=a,e[mr]=a.current,da(e.nodeType===8?e.parentNode:e),qs(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof s=="function"){var l=s;s=function(){var u=Rc(d);l.call(u)}}var d=am(e,0,!1,null,null,!1,!1,"",ty);return e._reactRootContainer=d,e[mr]=d.current,da(e.nodeType===8?e.parentNode:e),qs(function(){Tc(t,d,n,s)}),d}function Ic(e,t,n,s,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var d=Rc(a);l.call(d)}}Tc(t,a,e,o)}else a=XC(n,t,e,o,s);return Rc(a)}Mx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Gi(t.pendingLanes);n!==0&&(Au(t,n|1),Lt(t,at()),!(Me&6)&&(Zo=at()+500,Gr()))}break;case 13:qs(function(){var s=gr(e,1);if(s!==null){var o=Rt();En(s,e,1,o)}}),lm(e,1)}},Iu=function(e){if(e.tag===13){var t=gr(e,134217728);if(t!==null){var n=Rt();En(t,e,134217728,n)}lm(e,134217728)}},Dx=function(e){if(e.tag===13){var t=ts(e),n=gr(e,t);if(n!==null){var s=Rt();En(n,e,t,s)}lm(e,t)}},Fx=function(){return $e},Lx=function(e,t){var n=$e;try{return $e=e,t()}finally{$e=n}},ku=function(e,t,n){switch(t){case"input":if(vu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var o=Yl(s);if(!o)throw Error(W(90));lx(s),vu(s,o)}}}break;case"textarea":mx(e,n);break;case"select":t=n.value,t!=null&&Po(e,!!n.multiple,t,!1)}},wx=tm,Nx=qs;var YC={usingClientEntryPoint:!1,Events:[ma,$o,Yl,bx,jx,tm]},Ea={findFiberByHostInstance:Ls,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ZC={bundleType:Ea.bundleType,version:Ea.version,rendererPackageName:Ea.rendererPackageName,rendererConfig:Ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ex(e),e===null?null:e.stateNode},findFiberByHostInstance:Ea.findFiberByHostInstance||GC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Mc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mc.isDisabled&&Mc.supportsFiber)try{Ol=Mc.inject(ZC),Un=Mc}catch(e){}}Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YC,Vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dm(t))throw Error(W(200));return QC(e,t,null,n)},Vt.createRoot=function(e,t){if(!dm(e))throw Error(W(299));var n=!1,s="",o=ey;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=am(e,1,!1,null,null,n,!1,s,o),e[mr]=t.current,da(e.nodeType===8?e.parentNode:e),new cm(t)},Vt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=Ex(t),e=e===null?null:e.stateNode,e},Vt.flushSync=function(e){return qs(e)},Vt.hydrate=function(e,t,n){if(!Ac(t))throw Error(W(200));return Ic(null,e,t,!0,n)},Vt.hydrateRoot=function(e,t,n){if(!dm(e))throw Error(W(405));var s=n!=null&&n.hydratedSources||null,o=!1,i="",a=ey;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Zv(t,null,e,1,n!=null?n:null,o,!1,i,a),e[mr]=t.current,da(e),s)for(e=0;e<s.length;e++)n=s[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Oc(t)},Vt.render=function(e,t,n){if(!Ac(t))throw Error(W(200));return Ic(null,e,t,!1,n)},Vt.unmountComponentAtNode=function(e){if(!Ac(e))throw Error(W(40));return e._reactRootContainer?(qs(function(){Ic(null,null,e,!1,function(){e._reactRootContainer=null,e[mr]=null})}),!0):!1},Vt.unstable_batchedUpdates=tm,Vt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Ac(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return Ic(e,t,n,!1,s)},Vt.version="18.3.1-next-f1338f8080-20240426";function ny(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ny)}catch(e){console.error(e)}}ny(),Yp.exports=Vt;var Xs=Yp.exports;const ry=tt(Xs);var sy,oy=Xs;sy=oy.createRoot,oy.hydrateRoot;var Ys=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},JC=(dN=class extends Ys{constructor(){super();ie(this,fo);ie(this,ys);ie(this,bi);G(this,bi,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){E(this,ys)||this.setEventListener(E(this,bi))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,ys))==null||t.call(this),G(this,ys,void 0))}setEventListener(t){var n;G(this,bi,t),(n=E(this,ys))==null||n.call(this),G(this,ys,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){E(this,fo)!==t&&(G(this,fo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof E(this,fo)=="boolean"?E(this,fo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},fo=new WeakMap,ys=new WeakMap,bi=new WeakMap,dN),um=new JC,ek={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},tk=(uN=class{constructor(){ie(this,bs,ek);ie(this,jp,!1)}setTimeoutProvider(e){G(this,bs,e)}setTimeout(e,t){return E(this,bs).setTimeout(e,t)}clearTimeout(e){E(this,bs).clearTimeout(e)}setInterval(e,t){return E(this,bs).setInterval(e,t)}clearInterval(e){E(this,bs).clearInterval(e)}},bs=new WeakMap,jp=new WeakMap,uN),Zs=new tk;function nk(e){setTimeout(e,0)}var rk=typeof window=="undefined"||"Deno"in globalThis;function Ct(){}function sk(e,t){return typeof e=="function"?e(t):e}function fm(e){return typeof e=="number"&&e>=0&&e!==1/0}function iy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ss(e,t){return typeof e=="function"?e(t):e}function dn(e,t){return typeof e=="function"?e(t):e}function ay(e,t){const{type:n="all",exact:s,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if(a){if(s){if(t.queryHash!==mm(a,t.options))return!1}else if(!_a(t.queryKey,a))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function ly(e,t){const{exact:n,status:s,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Js(t.options.mutationKey)!==Js(i))return!1}else if(!_a(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function mm(e,t){return((t==null?void 0:t.queryKeyHashFn)||Js)(e)}function Js(e){return JSON.stringify(e,(t,n)=>pm(n)?Object.keys(n).sort().reduce((s,o)=>(s[o]=n[o],s),{}):n)}function _a(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>_a(e[n],t[n])):!1}var ok=Object.prototype.hasOwnProperty;function hm(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=cy(e)&&cy(t);if(!s&&!(pm(e)&&pm(t)))return t;const i=(s?e:Object.keys(e)).length,a=s?t:Object.keys(t),l=a.length,d=s?new Array(l):{};let u=0;for(let h=0;h<l;h++){const m=s?h:a[h],y=e[m],x=t[m];if(y===x){d[m]=y,(s?h<i:ok.call(e,m))&&u++;continue}if(y===null||x===null||typeof y!="object"||typeof x!="object"){d[m]=x;continue}const w=hm(y,x,n+1);d[m]=w,w===y&&u++}return i===l&&u===i?e:d}function Pa(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function cy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pm(e){if(!dy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!dy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function dy(e){return Object.prototype.toString.call(e)==="[object Object]"}function ik(e){return new Promise(t=>{Zs.setTimeout(t,e)})}function xm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?hm(e,t):t}function ak(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function lk(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var gm=Symbol();function uy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===gm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vm(e,t){return typeof e=="function"?e(...t):!!e}function ck(e,t,n){let s=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o!=null||(o=t()),s||(s=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Ta=(()=>{let e=()=>rk;return{isServer(){return e()},setIsServer(t){e=t}}})();function ym(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function s(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},n.reject=o=>{s({status:"rejected",reason:o}),t(o)},n}var dk=nk;function uk(){let e=[],t=0,n=l=>{l()},s=l=>{l()},o=dk;const i=l=>{t?e.push(l):o(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&o(()=>{s(()=>{l.forEach(d=>{n(d)})})})};return{batch:l=>{let d;t++;try{d=l()}finally{t--,t||a()}return d},batchCalls:l=>(...d)=>{i(()=>{l(...d)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{s=l},setScheduler:l=>{o=l}}}var rt=uk(),fk=(fN=class extends Ys{constructor(){super();ie(this,ji,!0);ie(this,js);ie(this,wi);G(this,wi,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){E(this,js)||this.setEventListener(E(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,js))==null||t.call(this),G(this,js,void 0))}setEventListener(t){var n;G(this,wi,t),(n=E(this,js))==null||n.call(this),G(this,js,t(this.setOnline.bind(this)))}setOnline(t){E(this,ji)!==t&&(G(this,ji,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return E(this,ji)}},ji=new WeakMap,js=new WeakMap,wi=new WeakMap,fN),Dc=new fk;function mk(e){return Math.min(1e3*2**e,3e4)}function fy(e){return(e!=null?e:"online")==="online"?Dc.isOnline():!0}var bm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function my(e){let t=!1,n=0,s;const o=ym(),i=()=>o.status!=="pending",a=b=>{var j;if(!i()){const g=new bm(b);y(g),(j=e.onCancel)==null||j.call(e,g)}},l=()=>{t=!0},d=()=>{t=!1},u=()=>um.isFocused()&&(e.networkMode==="always"||Dc.isOnline())&&e.canRun(),h=()=>fy(e.networkMode)&&e.canRun(),m=b=>{i()||(s==null||s(),o.resolve(b))},y=b=>{i()||(s==null||s(),o.reject(b))},x=()=>new Promise(b=>{var j;s=g=>{(i()||u())&&b(g)},(j=e.onPause)==null||j.call(e)}).then(()=>{var b;s=void 0,i()||(b=e.onContinue)==null||b.call(e)}),w=()=>{if(i())return;let b;const j=n===0?e.initialPromise:void 0;try{b=j!=null?j:e.fn()}catch(g){b=Promise.reject(g)}Promise.resolve(b).then(m).catch(g=>{var C,P,k;if(i())return;const p=(C=e.retry)!=null?C:Ta.isServer()?0:3,v=(P=e.retryDelay)!=null?P:mk,N=typeof v=="function"?v(n,g):v,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,g);if(t||!S){y(g);return}n++,(k=e.onFail)==null||k.call(e,n,g),ik(N).then(()=>u()?void 0:x()).then(()=>{t?y(g):w()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(s==null||s(),o),cancelRetry:l,continueRetry:d,canStart:h,start:()=>(h()?w():x().then(w),o)}}var hy=(mN=class{constructor(){ie(this,mo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fm(this.gcTime)&&G(this,mo,Zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Ta.isServer()?1/0:5*60*1e3)}clearGcTimeout(){E(this,mo)!==void 0&&(Zs.clearTimeout(E(this,mo)),G(this,mo,void 0))}},mo=new WeakMap,mN),hk=(hN=class extends hy{constructor(t){var n;super();ie(this,Jt);ie(this,ho);ie(this,Ni);ie(this,vn);ie(this,po);ie(this,pt);ie(this,dl);ie(this,xo);G(this,xo,!1),G(this,dl,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,po,t.client),G(this,vn,E(this,po).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,ho,gy(this.options)),this.state=(n=t.state)!=null?n:E(this,ho),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,pt))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,dl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=gy(this.options);n.data!==void 0&&(this.setState(xy(n.data,n.dataUpdatedAt)),G(this,ho,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,vn).remove(this)}setData(t,n){const s=xm(this.state.data,t,this.options);return ge(this,Jt,Fr).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){ge(this,Jt,Fr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,o;const n=(s=E(this,pt))==null?void 0:s.promise;return(o=E(this,pt))==null||o.cancel(t),n?n.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,ho)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>dn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ss(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!iy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,pt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,pt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,vn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(E(this,pt)&&(E(this,xo)||ge(this,Jt,kN).call(this)?E(this,pt).cancel({revert:!0}):E(this,pt).cancelRetry()),this.scheduleGc()),E(this,vn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ge(this,Jt,Fr).call(this,{type:"invalidate"})}async fetch(t,n){var d,u,h,m,y,x,w,b,j,g,p,v;if(this.state.fetchStatus!=="idle"&&((d=E(this,pt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(E(this,pt))return E(this,pt).continueRetry(),E(this,pt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const N=this.observers.find(S=>S.options.queryFn);N&&this.setOptions(N.options)}const s=new AbortController,o=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(G(this,xo,!0),s.signal)})},i=()=>{const N=uy(this.options,n),C=(()=>{const P={client:E(this,po),queryKey:this.queryKey,meta:this.meta};return o(P),P})();return G(this,xo,!1),this.options.persister?this.options.persister(N,C,this):N(C)},l=(()=>{const N={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:E(this,po),state:this.state,fetchFn:i};return o(N),N})();(u=this.options.behavior)==null||u.onFetch(l,this),G(this,Ni,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=l.fetchOptions)==null?void 0:h.meta))&&ge(this,Jt,Fr).call(this,{type:"fetch",meta:(m=l.fetchOptions)==null?void 0:m.meta}),G(this,pt,my({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:N=>{N instanceof bm&&N.revert&&this.setState({...E(this,Ni),fetchStatus:"idle"}),s.abort()},onFail:(N,S)=>{ge(this,Jt,Fr).call(this,{type:"failed",failureCount:N,error:S})},onPause:()=>{ge(this,Jt,Fr).call(this,{type:"pause"})},onContinue:()=>{ge(this,Jt,Fr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const N=await E(this,pt).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(x=(y=E(this,vn).config).onSuccess)==null||x.call(y,N,this),(b=(w=E(this,vn).config).onSettled)==null||b.call(w,N,this.state.error,this),N}catch(N){if(N instanceof bm){if(N.silent)return E(this,pt).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw ge(this,Jt,Fr).call(this,{type:"error",error:N}),(g=(j=E(this,vn).config).onError)==null||g.call(j,N,this),(v=(p=E(this,vn).config).onSettled)==null||v.call(p,this.state.data,N,this),N}finally{this.scheduleGc()}}},ho=new WeakMap,Ni=new WeakMap,vn=new WeakMap,po=new WeakMap,pt=new WeakMap,dl=new WeakMap,xo=new WeakMap,Jt=new WeakSet,kN=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Fr=function(t){const n=s=>{var o;switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...py(s.data,this.options),fetchMeta:(o=t.meta)!=null?o:null};case"success":const i={...s,...xy(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return G(this,Ni,t.manual?i:void 0),i;case"error":const a=t.error;return{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),rt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),E(this,vn).notify({query:this,type:"updated",action:t})})},hN);function py(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xy(e,t){return{data:e,dataUpdatedAt:t!=null?t:Date.now(),error:null,isInvalidated:!1,status:"success"}}function gy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s!=null?s:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var jm=(pN=class extends Ys{constructor(t,n){super();ie(this,Le);ie(this,Ut);ie(this,Ae);ie(this,ul);ie(this,Ot);ie(this,go);ie(this,Si);ie(this,Tr);ie(this,ws);ie(this,fl);ie(this,Ci);ie(this,ki);ie(this,vo);ie(this,yo);ie(this,Ns);ie(this,Ei,new Set);this.options=n,G(this,Ut,t),G(this,ws,null),G(this,Tr,ym()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Ae).addObserver(this),vy(E(this,Ae),this.options)?ge(this,Le,bl).call(this):this.updateResult(),ge(this,Le,_p).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wm(E(this,Ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wm(E(this,Ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ge(this,Le,Pp).call(this),ge(this,Le,Tp).call(this),E(this,Ae).removeObserver(this)}setOptions(t){const n=this.options,s=E(this,Ae);if(this.options=E(this,Ut).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof dn(this.options.enabled,E(this,Ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ge(this,Le,Rp).call(this),E(this,Ae).setOptions(this.options),n._defaulted&&!Pa(this.options,n)&&E(this,Ut).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Ae),observer:this});const o=this.hasListeners();o&&yy(E(this,Ae),s,this.options,n)&&ge(this,Le,bl).call(this),this.updateResult(),o&&(E(this,Ae)!==s||dn(this.options.enabled,E(this,Ae))!==dn(n.enabled,E(this,Ae))||ss(this.options.staleTime,E(this,Ae))!==ss(n.staleTime,E(this,Ae)))&&ge(this,Le,Cp).call(this);const i=ge(this,Le,kp).call(this);o&&(E(this,Ae)!==s||dn(this.options.enabled,E(this,Ae))!==dn(n.enabled,E(this,Ae))||i!==E(this,Ns))&&ge(this,Le,Ep).call(this,i)}getOptimisticResult(t){const n=E(this,Ut).getQueryCache().build(E(this,Ut),t),s=this.createResult(n,t);return xk(this,s)&&(G(this,Ot,s),G(this,Si,this.options),G(this,go,E(this,Ae).state)),s}getCurrentResult(){return E(this,Ot)}trackResult(t,n){return new Proxy(t,{get:(s,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Tr).status==="pending"&&E(this,Tr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(t){E(this,Ei).add(t)}getCurrentQuery(){return E(this,Ae)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=E(this,Ut).defaultQueryOptions(t),s=E(this,Ut).getQueryCache().build(E(this,Ut),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){var n;return ge(this,Le,bl).call(this,{...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),E(this,Ot)))}createResult(t,n){var O;const s=E(this,Ae),o=this.options,i=E(this,Ot),a=E(this,go),l=E(this,Si),u=t!==s?t.state:E(this,ul),{state:h}=t;let m={...h},y=!1,x;if(n._optimisticResults){const T=this.hasListeners(),A=!T&&vy(t,n),I=T&&yy(t,s,n,o);(A||I)&&(m={...m,...py(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:j}=m;x=m.data;let g=!1;if(n.placeholderData!==void 0&&x===void 0&&j==="pending"){let T;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(T=i.data,g=!0):T=typeof n.placeholderData=="function"?n.placeholderData((O=E(this,ki))==null?void 0:O.state.data,E(this,ki)):n.placeholderData,T!==void 0&&(j="success",x=xm(i==null?void 0:i.data,T,n),y=!0)}if(n.select&&x!==void 0&&!g)if(i&&x===(a==null?void 0:a.data)&&n.select===E(this,fl))x=E(this,Ci);else try{G(this,fl,n.select),x=n.select(x),x=xm(i==null?void 0:i.data,x,n),G(this,Ci,x),G(this,ws,null)}catch(T){G(this,ws,T)}E(this,ws)&&(w=E(this,ws),x=E(this,Ci),b=Date.now(),j="error");const p=m.fetchStatus==="fetching",v=j==="pending",N=j==="error",S=v&&p,C=x!==void 0,k={status:j,fetchStatus:m.fetchStatus,isPending:v,isSuccess:j==="success",isError:N,isInitialLoading:S,isLoading:S,data:x,dataUpdatedAt:m.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:m.dataUpdateCount>u.dataUpdateCount||m.errorUpdateCount>u.errorUpdateCount,isFetching:p,isRefetching:p&&!v,isLoadingError:N&&!C,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:N&&C,isStale:Nm(t,n),refetch:this.refetch,promise:E(this,Tr),isEnabled:dn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=k.data!==void 0,A=k.status==="error"&&!T,I=re=>{A?re.reject(k.error):T&&re.resolve(k.data)},U=()=>{const re=G(this,Tr,k.promise=ym());I(re)},M=E(this,Tr);switch(M.status){case"pending":t.queryHash===s.queryHash&&I(M);break;case"fulfilled":(A||k.data!==M.value)&&U();break;case"rejected":(!A||k.error!==M.reason)&&U();break}}return k}updateResult(){const t=E(this,Ot),n=this.createResult(E(this,Ae),this.options);if(G(this,go,E(this,Ae).state),G(this,Si,this.options),E(this,go).data!==void 0&&G(this,ki,E(this,Ae)),Pa(n,t))return;G(this,Ot,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!E(this,Ei).size)return!0;const a=new Set(i!=null?i:E(this,Ei));return this.options.throwOnError&&a.add("error"),Object.keys(E(this,Ot)).some(l=>{const d=l;return E(this,Ot)[d]!==t[d]&&a.has(d)})};ge(this,Le,EN).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ge(this,Le,_p).call(this)}},Ut=new WeakMap,Ae=new WeakMap,ul=new WeakMap,Ot=new WeakMap,go=new WeakMap,Si=new WeakMap,Tr=new WeakMap,ws=new WeakMap,fl=new WeakMap,Ci=new WeakMap,ki=new WeakMap,vo=new WeakMap,yo=new WeakMap,Ns=new WeakMap,Ei=new WeakMap,Le=new WeakSet,bl=function(t){ge(this,Le,Rp).call(this);let n=E(this,Ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ct)),n},Cp=function(){ge(this,Le,Pp).call(this);const t=ss(this.options.staleTime,E(this,Ae));if(Ta.isServer()||E(this,Ot).isStale||!fm(t))return;const s=iy(E(this,Ot).dataUpdatedAt,t)+1;G(this,vo,Zs.setTimeout(()=>{E(this,Ot).isStale||this.updateResult()},s))},kp=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Ae)):this.options.refetchInterval)!=null?t:!1},Ep=function(t){ge(this,Le,Tp).call(this),G(this,Ns,t),!(Ta.isServer()||dn(this.options.enabled,E(this,Ae))===!1||!fm(E(this,Ns))||E(this,Ns)===0)&&G(this,yo,Zs.setInterval(()=>{(this.options.refetchIntervalInBackground||um.isFocused())&&ge(this,Le,bl).call(this)},E(this,Ns)))},_p=function(){ge(this,Le,Cp).call(this),ge(this,Le,Ep).call(this,ge(this,Le,kp).call(this))},Pp=function(){E(this,vo)!==void 0&&(Zs.clearTimeout(E(this,vo)),G(this,vo,void 0))},Tp=function(){E(this,yo)!==void 0&&(Zs.clearInterval(E(this,yo)),G(this,yo,void 0))},Rp=function(){const t=E(this,Ut).getQueryCache().build(E(this,Ut),this.options);if(t===E(this,Ae))return;const n=E(this,Ae);G(this,Ae,t),G(this,ul,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},EN=function(t){rt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(E(this,Ot))}),E(this,Ut).getQueryCache().notify({query:E(this,Ae),type:"observerResultsUpdated"})})},pN);function pk(e,t){return dn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function vy(e,t){return pk(e,t)||e.state.data!==void 0&&wm(e,t,t.refetchOnMount)}function wm(e,t,n){if(dn(t.enabled,e)!==!1&&ss(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Nm(e,t)}return!1}function yy(e,t,n,s){return(e!==t||dn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Nm(e,n)}function Nm(e,t){return dn(t.enabled,e)!==!1&&e.isStaleByTime(ss(t.staleTime,e))}function xk(e,t){return!Pa(e.getCurrentResult(),t)}function by(e){return{onFetch:(t,n)=>{var h,m,y,x,w;const s=t.options,o=(y=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,i=((x=t.state.data)==null?void 0:x.pages)||[],a=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},d=0;const u=async()=>{var v;let b=!1;const j=N=>{ck(N,()=>t.signal,()=>b=!0)},g=uy(t.options,t.fetchOptions),p=async(N,S,C)=>{if(b)return Promise.reject();if(S==null&&N.pages.length)return Promise.resolve(N);const k=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return j(I),I})(),O=await g(k),{maxPages:T}=t.options,A=C?lk:ak;return{pages:A(N.pages,O,T),pageParams:A(N.pageParams,S,T)}};if(o&&i.length){const N=o==="backward",S=N?gk:jy,C={pages:i,pageParams:a},P=S(s,C);l=await p(C,P,N)}else{const N=e!=null?e:i.length;do{const S=d===0?(v=a[0])!=null?v:s.initialPageParam:jy(s,l);if(d>0&&S==null)break;l=await p(l,S),d++}while(d<N)}return l};t.options.persister?t.fetchFn=()=>{var b,j;return(j=(b=t.options).persister)==null?void 0:j.call(b,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function jy(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function gk(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var vk=(xN=class extends hy{constructor(t){super();ie(this,ir);ie(this,ml);ie(this,or);ie(this,kt);ie(this,bo);G(this,ml,t.client),this.mutationId=t.mutationId,G(this,kt,t.mutationCache),G(this,or,[]),this.state=t.state||wy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,or).includes(t)||(E(this,or).push(t),this.clearGcTimeout(),E(this,kt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,or,E(this,or).filter(n=>n!==t)),this.scheduleGc(),E(this,kt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,or).length||(this.state.status==="pending"?this.scheduleGc():E(this,kt).remove(this))}continue(){var t,n;return(n=(t=E(this,bo))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}async execute(t){var a,l,d,u,h,m,y,x,w,b,j,g,p,v,N,S,C,P,k;const n=()=>{ge(this,ir,Is).call(this,{type:"continue"})},s={client:E(this,ml),meta:this.options.meta,mutationKey:this.options.mutationKey};G(this,bo,my({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(O,T)=>{ge(this,ir,Is).call(this,{type:"failed",failureCount:O,error:T})},onPause:()=>{ge(this,ir,Is).call(this,{type:"pause"})},onContinue:n,retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,kt).canRun(this)}));const o=this.state.status==="pending",i=!E(this,bo).canStart();try{if(o)n();else{ge(this,ir,Is).call(this,{type:"pending",variables:t,isPaused:i}),E(this,kt).config.onMutate&&await E(this,kt).config.onMutate(t,this,s);const T=await((d=(l=this.options).onMutate)==null?void 0:d.call(l,t,s));T!==this.state.context&&ge(this,ir,Is).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const O=await E(this,bo).start();return await((h=(u=E(this,kt).config).onSuccess)==null?void 0:h.call(u,O,t,this.state.context,this,s)),await((y=(m=this.options).onSuccess)==null?void 0:y.call(m,O,t,this.state.context,s)),await((w=(x=E(this,kt).config).onSettled)==null?void 0:w.call(x,O,null,this.state.variables,this.state.context,this,s)),await((j=(b=this.options).onSettled)==null?void 0:j.call(b,O,null,t,this.state.context,s)),ge(this,ir,Is).call(this,{type:"success",data:O}),O}catch(O){try{await((p=(g=E(this,kt).config).onError)==null?void 0:p.call(g,O,t,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((N=(v=this.options).onError)==null?void 0:N.call(v,O,t,this.state.context,s))}catch(T){Promise.reject(T)}try{await((C=(S=E(this,kt).config).onSettled)==null?void 0:C.call(S,void 0,O,this.state.variables,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((k=(P=this.options).onSettled)==null?void 0:k.call(P,void 0,O,t,this.state.context,s))}catch(T){Promise.reject(T)}throw ge(this,ir,Is).call(this,{type:"error",error:O}),O}finally{E(this,kt).runNext(this)}}},ml=new WeakMap,or=new WeakMap,kt=new WeakMap,bo=new WeakMap,ir=new WeakSet,Is=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),rt.batch(()=>{E(this,or).forEach(s=>{s.onMutationUpdate(t)}),E(this,kt).notify({mutation:this,type:"updated",action:t})})},xN);function wy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yk=(gN=class extends Ys{constructor(t={}){super();ie(this,Rr);ie(this,Fn);ie(this,hl);this.config=t,G(this,Rr,new Set),G(this,Fn,new Map),G(this,hl,0)}build(t,n,s){const o=new vk({client:t,mutationCache:this,mutationId:++Xd(this,hl)._,options:t.defaultMutationOptions(n),state:s});return this.add(o),o}add(t){E(this,Rr).add(t);const n=Fc(t);if(typeof n=="string"){const s=E(this,Fn).get(n);s?s.push(t):E(this,Fn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,Rr).delete(t)){const n=Fc(t);if(typeof n=="string"){const s=E(this,Fn).get(n);if(s)if(s.length>1){const o=s.indexOf(t);o!==-1&&s.splice(o,1)}else s[0]===t&&E(this,Fn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Fc(t);if(typeof n=="string"){const s=E(this,Fn).get(n),o=s==null?void 0:s.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var s,o;const n=Fc(t);if(typeof n=="string"){const i=(s=E(this,Fn).get(n))==null?void 0:s.find(a=>a!==t&&a.state.isPaused);return(o=i==null?void 0:i.continue())!=null?o:Promise.resolve()}else return Promise.resolve()}clear(){rt.batch(()=>{E(this,Rr).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,Rr).clear(),E(this,Fn).clear()})}getAll(){return Array.from(E(this,Rr))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>ly(n,s))}findAll(t={}){return this.getAll().filter(n=>ly(t,n))}notify(t){rt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return rt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ct))))}},Rr=new WeakMap,Fn=new WeakMap,hl=new WeakMap,gN);function Fc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var bk=(vN=class extends Ys{constructor(n,s){super();ie(this,Ir);ie(this,Or);ie(this,Ss);ie(this,Bt);ie(this,Ar);G(this,Or,n),this.setOptions(s),this.bindMethods(),ge(this,Ir,Yd).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const s=this.options;this.options=E(this,Or).defaultMutationOptions(n),Pa(this.options,s)||E(this,Or).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Bt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Js(s.mutationKey)!==Js(this.options.mutationKey)?this.reset():((o=E(this,Bt))==null?void 0:o.state.status)==="pending"&&E(this,Bt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=E(this,Bt))==null||n.removeObserver(this)}onMutationUpdate(n){ge(this,Ir,Yd).call(this),ge(this,Ir,Op).call(this,n)}getCurrentResult(){return E(this,Ss)}reset(){var n;(n=E(this,Bt))==null||n.removeObserver(this),G(this,Bt,void 0),ge(this,Ir,Yd).call(this),ge(this,Ir,Op).call(this)}mutate(n,s){var o;return G(this,Ar,s),(o=E(this,Bt))==null||o.removeObserver(this),G(this,Bt,E(this,Or).getMutationCache().build(E(this,Or),this.options)),E(this,Bt).addObserver(this),E(this,Bt).execute(n)}},Or=new WeakMap,Ss=new WeakMap,Bt=new WeakMap,Ar=new WeakMap,Ir=new WeakSet,Yd=function(){var s,o;const n=(o=(s=E(this,Bt))==null?void 0:s.state)!=null?o:wy();G(this,Ss,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Op=function(n){rt.batch(()=>{var s,o,i,a,l,d,u,h;if(E(this,Ar)&&this.hasListeners()){const m=E(this,Ss).variables,y=E(this,Ss).context,x={client:E(this,Or),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(s=E(this,Ar)).onSuccess)==null||o.call(s,n.data,m,y,x)}catch(w){Promise.reject(w)}try{(a=(i=E(this,Ar)).onSettled)==null||a.call(i,n.data,null,m,y,x)}catch(w){Promise.reject(w)}}else if((n==null?void 0:n.type)==="error"){try{(d=(l=E(this,Ar)).onError)==null||d.call(l,n.error,m,y,x)}catch(w){Promise.reject(w)}try{(h=(u=E(this,Ar)).onSettled)==null||h.call(u,void 0,n.error,m,y,x)}catch(w){Promise.reject(w)}}}this.listeners.forEach(m=>{m(E(this,Ss))})})},vN);function Ny(e,t){const n=new Set(t);return e.filter(s=>!n.has(s))}function jk(e,t,n){const s=e.slice(0);return s[t]=n,s}var wk=(yN=class extends Ys{constructor(t,n,s){super();ie(this,bt);ie(this,_i);ie(this,en);ie(this,Pi);ie(this,Ti);ie(this,yn);ie(this,Cs);ie(this,pl);ie(this,xl);ie(this,gl);ie(this,vl,[]);G(this,_i,t),G(this,Ti,s),G(this,Pi,[]),G(this,yn,[]),G(this,en,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&E(this,yn).forEach(t=>{t.subscribe(n=>{ge(this,bt,Dp).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,E(this,yn).forEach(t=>{t.destroy()})}setQueries(t,n){G(this,Pi,t),G(this,Ti,n),rt.batch(()=>{const s=E(this,yn),o=ge(this,bt,Mp).call(this,E(this,Pi));o.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const i=o.map(m=>m.observer),a=i.map(m=>m.getCurrentResult()),l=s.length!==i.length,d=i.some((m,y)=>m!==s[y]),u=l||d,h=u?!0:a.some((m,y)=>{const x=E(this,en)[y];return!x||!Pa(m,x)});!u&&!h||(u&&(G(this,vl,o),G(this,yn,i)),G(this,en,a),this.hasListeners()&&(u&&(Ny(s,i).forEach(m=>{m.destroy()}),Ny(i,s).forEach(m=>{m.subscribe(y=>{ge(this,bt,Dp).call(this,m,y)})})),ge(this,bt,Fp).call(this)))})}getCurrentResult(){return E(this,en)}getQueries(){return E(this,yn).map(t=>t.getCurrentQuery())}getObservers(){return E(this,yn)}getOptimisticResult(t,n){const s=ge(this,bt,Mp).call(this,t),o=s.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions)),i=s.map(a=>a.defaultedQueryOptions.queryHash);return[o,a=>ge(this,bt,Ip).call(this,a!=null?a:o,n,i),()=>ge(this,bt,Ap).call(this,o,s)]}},_i=new WeakMap,en=new WeakMap,Pi=new WeakMap,Ti=new WeakMap,yn=new WeakMap,Cs=new WeakMap,pl=new WeakMap,xl=new WeakMap,gl=new WeakMap,vl=new WeakMap,bt=new WeakSet,Ap=function(t,n){return n.map((s,o)=>{const i=t[o];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,a=>{n.forEach(l=>{l.observer.trackProp(a)})})})},Ip=function(t,n,s){if(n){const o=E(this,gl),i=s!==void 0&&o!==void 0&&(o.length!==s.length||s.some((a,l)=>a!==o[l]));return(!E(this,Cs)||E(this,en)!==E(this,xl)||i||n!==E(this,pl))&&(G(this,pl,n),G(this,xl,E(this,en)),s!==void 0&&G(this,gl,s),G(this,Cs,hm(E(this,Cs),n(t)))),E(this,Cs)}return t},Mp=function(t){const n=new Map;E(this,yn).forEach(o=>{const i=o.options.queryHash;if(!i)return;const a=n.get(i);a?a.push(o):n.set(i,[o])});const s=[];return t.forEach(o=>{var d;const i=E(this,_i).defaultQueryOptions(o),a=(d=n.get(i.queryHash))==null?void 0:d.shift(),l=a!=null?a:new jm(E(this,_i),i);s.push({defaultedQueryOptions:i,observer:l})}),s},Dp=function(t,n){const s=E(this,yn).indexOf(t);s!==-1&&(G(this,en,jk(E(this,en),s,n)),ge(this,bt,Fp).call(this))},Fp=function(){var t;if(this.hasListeners()){const n=E(this,Cs),s=ge(this,bt,Ap).call(this,E(this,en),E(this,vl)),o=ge(this,bt,Ip).call(this,s,(t=E(this,Ti))==null?void 0:t.combine);n!==o&&rt.batch(()=>{this.listeners.forEach(i=>{i(E(this,en))})})}},yN),Nk=(bN=class extends Ys{constructor(t={}){super();ie(this,ar);this.config=t,G(this,ar,new Map)}build(t,n,s){var l;const o=n.queryKey,i=(l=n.queryHash)!=null?l:mm(o,n);let a=this.get(i);return a||(a=new hk({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){E(this,ar).has(t.queryHash)||(E(this,ar).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=E(this,ar).get(t.queryHash);n&&(t.destroy(),n===t&&E(this,ar).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){rt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,ar).get(t)}getAll(){return[...E(this,ar).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>ay(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>ay(t,s)):n}notify(t){rt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ar=new WeakMap,bN),Sk=(jN=class{constructor(e={}){ie(this,ot);ie(this,ks);ie(this,Es);ie(this,Ri);ie(this,Oi);ie(this,_s);ie(this,Ai);ie(this,Ii);G(this,ot,e.queryCache||new Nk),G(this,ks,e.mutationCache||new yk),G(this,Es,e.defaultOptions||{}),G(this,Ri,new Map),G(this,Oi,new Map),G(this,_s,0)}mount(){Xd(this,_s)._++,E(this,_s)===1&&(G(this,Ai,um.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,ot).onFocus())})),G(this,Ii,Dc.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,ot).onOnline())})))}unmount(){var e,t;Xd(this,_s)._--,E(this,_s)===0&&((e=E(this,Ai))==null||e.call(this),G(this,Ai,void 0),(t=E(this,Ii))==null||t.call(this),G(this,Ii,void 0))}isFetching(e){return E(this,ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,ks).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,ot).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=E(this,ot).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ss(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return E(this,ot).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),o=E(this,ot).get(s.queryHash),i=o==null?void 0:o.state.data,a=sk(t,i);if(a!==void 0)return E(this,ot).build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return rt.batch(()=>E(this,ot).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,ot).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=E(this,ot);rt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=E(this,ot);return rt.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=rt.batch(()=>E(this,ot).findAll(e).map(o=>o.cancel(n)));return Promise.all(s).then(Ct).catch(Ct)}invalidateQueries(e,t={}){return rt.batch(()=>{var n,s;return E(this,ot).findAll(e).forEach(o=>{o.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(s=(n=e==null?void 0:e.refetchType)!=null?n:e==null?void 0:e.type)!=null?s:"active"},t)})}refetchQueries(e,t={}){var o;const n={...t,cancelRefetch:(o=t.cancelRefetch)!=null?o:!0},s=rt.batch(()=>E(this,ot).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Ct)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(Ct)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=E(this,ot).build(this,t);return n.isStaleByTime(ss(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ct).catch(Ct)}fetchInfiniteQuery(e){return e.behavior=by(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e.behavior=by(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dc.isOnline()?E(this,ks).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,ot)}getMutationCache(){return E(this,ks)}getDefaultOptions(){return E(this,Es)}setDefaultOptions(e){G(this,Es,e)}setQueryDefaults(e,t){E(this,Ri).set(Js(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,Ri).values()],n={};return t.forEach(s=>{_a(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){E(this,Oi).set(Js(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,Oi).values()],n={};return t.forEach(s=>{_a(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,Es).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===gm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,Es).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,ot).clear(),E(this,ks).clear()}},ot=new WeakMap,ks=new WeakMap,Es=new WeakMap,Ri=new WeakMap,Oi=new WeakMap,_s=new WeakMap,Ai=new WeakMap,Ii=new WeakMap,jN),Sy=f.createContext(void 0),Je=e=>{const t=f.useContext(Sy);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ck=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(Sy.Provider,{value:e,children:t})),Cy=f.createContext(!1),ky=()=>f.useContext(Cy);Cy.Provider;function kk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ek=f.createContext(kk()),Ey=()=>f.useContext(Ek),_y=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?vm(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},Py=e=>{f.useEffect(()=>{e.clearReset()},[e])},Ty=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||vm(n,[e.error,s])),Ry=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o!=null?o:1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>n(s(...o)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_k=(e,t)=>e.isLoading&&e.isFetching&&!t,Sm=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Cm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Pk({queries:e,...t},n){const s=Je(),o=ky(),i=Ey(),a=f.useMemo(()=>e.map(b=>{const j=s.defaultQueryOptions(b);return j._optimisticResults=o?"isRestoring":"optimistic",j}),[e,s,o]);a.forEach(b=>{Ry(b);const j=s.getQueryCache().get(b.queryHash);_y(b,i,j)}),Py(i);const[l]=f.useState(()=>new wk(s,a,t)),[d,u,h]=l.getOptimisticResult(a,t.combine),m=!o&&t.subscribed!==!1;f.useSyncExternalStore(f.useCallback(b=>m?l.subscribe(rt.batchCalls(b)):Ct,[l,m]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f.useEffect(()=>{l.setQueries(a,t)},[a,t,l]);const x=d.some((b,j)=>Sm(a[j],b))?d.flatMap((b,j)=>{const g=a[j];if(g&&Sm(g,b)){const p=new jm(s,g);return Cm(g,p,i)}return[]}):[];if(x.length>0)throw Promise.all(x);const w=d.find((b,j)=>{const g=a[j];return g&&Ty({result:b,errorResetBoundary:i,throwOnError:g.throwOnError,query:s.getQueryCache().get(g.queryHash),suspense:g.suspense})});if(w!=null&&w.error)throw w.error;return u(h())}function Tk(e,t,n){var y,x,w,b;const s=ky(),o=Ey(),i=Je(),a=i.defaultQueryOptions(e);(x=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||x.call(y,a);const l=i.getQueryCache().get(a.queryHash);a._optimisticResults=s?"isRestoring":"optimistic",Ry(a),_y(a,o,l),Py(o);const d=!i.getQueryCache().get(a.queryHash),[u]=f.useState(()=>new t(i,a)),h=u.getOptimisticResult(a),m=!s&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(j=>{const g=m?u.subscribe(rt.batchCalls(j)):Ct;return u.updateResult(),g},[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f.useEffect(()=>{u.setOptions(a)},[a,u]),Sm(a,h))throw Cm(a,u,o);if(Ty({result:h,errorResetBoundary:o,throwOnError:a.throwOnError,query:l,suspense:a.suspense}))throw h.error;if((b=(w=i.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||b.call(w,a,h),a.experimental_prefetchInRender&&!Ta.isServer()&&_k(h,s)){const j=d?Cm(a,u,o):l==null?void 0:l.promise;j==null||j.catch(Ct).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?h:u.trackResult(h)}function Se(e,t){return Tk(e,jm)}function Re(e,t){const n=Je(),[s]=f.useState(()=>new bk(n,e));f.useEffect(()=>{s.setOptions(e)},[s,e]);const o=f.useSyncExternalStore(f.useCallback(a=>s.subscribe(rt.batchCalls(a)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i=f.useCallback((a,l)=>{s.mutate(a,l).catch(Ct)},[s]);if(o.error&&vm(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}/**
42 * @remix-run/router v1.23.2
43 *
44 * Copyright (c) Remix Software Inc.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE.md file in the root directory of this source tree.
48 *
49 * @license MIT
50 */function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Ra.apply(this,arguments)}var os;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(os||(os={}));const Oy="popstate";function Rk(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:l="",hash:d=""}=eo(o.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),km("",{pathname:a,search:l,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),l="";if(a&&a.getAttribute("href")){let d=o.location.href,u=d.indexOf("#");l=u===-1?d:d.slice(0,u)}return l+"#"+(typeof i=="string"?i:$c(i))}function s(o,i){Lc(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Ak(t,n,s,e)}function st(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Lc(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function Ok(){return Math.random().toString(36).substr(2,8)}function Ay(e,t){return{usr:e.state,key:e.key,idx:t}}function km(e,t,n,s){return n===void 0&&(n=null),Ra({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?eo(t):t,{state:n,key:t&&t.key||s||Ok()})}function $c(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function eo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function Ak(e,t,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:i=!1}=s,a=o.history,l=os.Pop,d=null,u=h();u==null&&(u=0,a.replaceState(Ra({},a.state,{idx:u}),""));function h(){return(a.state||{idx:null}).idx}function m(){l=os.Pop;let j=h(),g=j==null?null:j-u;u=j,d&&d({action:l,location:b.location,delta:g})}function y(j,g){l=os.Push;let p=km(b.location,j,g);n&&n(p,j),u=h()+1;let v=Ay(p,u),N=b.createHref(p);try{a.pushState(v,"",N)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(N)}i&&d&&d({action:l,location:b.location,delta:1})}function x(j,g){l=os.Replace;let p=km(b.location,j,g);n&&n(p,j),u=h();let v=Ay(p,u),N=b.createHref(p);a.replaceState(v,"",N),i&&d&&d({action:l,location:b.location,delta:0})}function w(j){let g=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof j=="string"?j:$c(j);return p=p.replace(/ $/,"%20"),st(g,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,g)}let b={get action(){return l},get location(){return e(o,a)},listen(j){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(Oy,m),d=j,()=>{o.removeEventListener(Oy,m),d=null}},createHref(j){return t(o,j)},createURL:w,encodeLocation(j){let g=w(j);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:y,replace:x,go(j){return a.go(j)}};return b}var Iy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Iy||(Iy={}));function Ik(e,t,n){return n===void 0&&(n="/"),Mk(e,t,n)}function Mk(e,t,n,s){let o=typeof t=="string"?eo(t):t,i=ei(o.pathname||"/",n);if(i==null)return null;let a=My(e);Dk(a);let l=null;for(let d=0;l==null&&d<a.length;++d){let u=Kk(i);l=Wk(a[d],u)}return l}function My(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let o=(i,a,l)=>{let d={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};d.relativePath.startsWith("/")&&(st(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let u=is([s,d.relativePath]),h=n.concat(d);i.children&&i.children.length>0&&(st(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),My(i.children,t,h,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Vk(u,i.index),routesMeta:h})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let d of Dy(i.path))o(i,a,d)}),t}function Dy(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(s.length===0)return o?[i,""]:[i];let a=Dy(s.join("/")),l=[];return l.push(...a.map(d=>d===""?i:[i,d].join("/"))),o&&l.push(...a),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function Dk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hk(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const Fk=/^:[\w-]+$/,Lk=3,$k=2,zk=1,Uk=10,Bk=-2,Fy=e=>e==="*";function Vk(e,t){let n=e.split("/"),s=n.length;return n.some(Fy)&&(s+=Bk),t&&(s+=$k),n.filter(o=>!Fy(o)).reduce((o,i)=>o+(Fk.test(i)?Lk:i===""?zk:Uk),s)}function Hk(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function Wk(e,t,n){let{routesMeta:s}=e,o={},i="/",a=[];for(let l=0;l<s.length;++l){let d=s[l],u=l===s.length-1,h=i==="/"?t:t.slice(i.length)||"/",m=Em({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},h),y=d.route;if(!m)return null;Object.assign(o,m.params),a.push({params:o,pathname:is([i,m.pathname]),pathnameBase:Zk(is([i,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(i=is([i,m.pathnameBase]))}return a}function Em(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=qk(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:s.reduce((u,h,m)=>{let{paramName:y,isOptional:x}=h;if(y==="*"){let b=l[m]||"";a=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const w=l[m];return x&&!w?u[y]=void 0:u[y]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function qk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Lc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,d)=>(s.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function Kk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Lc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ei(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}const Qk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gk=e=>Qk.test(e);function Xk(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?eo(e):e,i;if(n)if(Gk(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Lc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=Ly(n.substring(1),"/"):i=Ly(n,t)}else i=t;return{pathname:i,search:Jk(s),hash:e2(o)}}function Ly(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function _m(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Yk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $y(e,t){let n=Yk(e);return t?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function zy(e,t,n,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=eo(e):(o=Ra({},e),st(!o.pathname||!o.pathname.includes("?"),_m("?","pathname","search",o)),st(!o.pathname||!o.pathname.includes("#"),_m("#","pathname","hash",o)),st(!o.search||!o.search.includes("#"),_m("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let m=t.length-1;if(!s&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),m-=1;o.pathname=y.join("/")}l=m>=0?t[m]:"/"}let d=Xk(o,l),u=a&&a!=="/"&&a.endsWith("/"),h=(i||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||h)&&(d.pathname+="/"),d}const is=e=>e.join("/").replace(/\/\/+/g,"/"),Zk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Jk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,e2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function t2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Uy=["post","put","patch","delete"];new Set(Uy);const n2=["get",...Uy];new Set(n2);/**
51 * React Router v6.30.3
52 *
53 * Copyright (c) Remix Software Inc.
54 *
55 * This source code is licensed under the MIT license found in the
56 * LICENSE.md file in the root directory of this source tree.
57 *
58 * @license MIT
59 */function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Oa.apply(this,arguments)}const zc=f.createContext(null),By=f.createContext(null),as=f.createContext(null),Uc=f.createContext(null),jr=f.createContext({outlet:null,matches:[],isDataRoute:!1}),Vy=f.createContext(null);function r2(e,t){let{relative:n}=t===void 0?{}:t;Aa()||st(!1);let{basename:s,navigator:o}=f.useContext(as),{hash:i,pathname:a,search:l}=Vc(e,{relative:n}),d=a;return s!=="/"&&(d=a==="/"?s:is([s,a])),o.createHref({pathname:d,search:l,hash:i})}function Aa(){return f.useContext(Uc)!=null}function ls(){return Aa()||st(!1),f.useContext(Uc).location}function Hy(e){f.useContext(as).static||f.useLayoutEffect(e)}function qn(){let{isDataRoute:e}=f.useContext(jr);return e?v2():s2()}function s2(){Aa()||st(!1);let e=f.useContext(zc),{basename:t,future:n,navigator:s}=f.useContext(as),{matches:o}=f.useContext(jr),{pathname:i}=ls(),a=JSON.stringify($y(o,n.v7_relativeSplatPath)),l=f.useRef(!1);return Hy(()=>{l.current=!0}),f.useCallback(function(u,h){if(h===void 0&&(h={}),!l.current)return;if(typeof u=="number"){s.go(u);return}let m=zy(u,JSON.parse(a),i,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:is([t,m.pathname])),(h.replace?s.replace:s.push)(m,h.state,h)},[t,s,a,i,e])}const o2=f.createContext(null);function i2(e){let t=f.useContext(jr).outlet;return t&&f.createElement(o2.Provider,{value:e},t)}function Bc(){let{matches:e}=f.useContext(jr),t=e[e.length-1];return t?t.params:{}}function Vc(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=f.useContext(as),{matches:o}=f.useContext(jr),{pathname:i}=ls(),a=JSON.stringify($y(o,s.v7_relativeSplatPath));return f.useMemo(()=>zy(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function a2(e,t){return l2(e,t)}function l2(e,t,n,s){Aa()||st(!1);let{navigator:o}=f.useContext(as),{matches:i}=f.useContext(jr),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let d=a?a.pathnameBase:"/";a&&a.route;let u=ls(),h;if(t){var m;let j=typeof t=="string"?eo(t):t;d==="/"||(m=j.pathname)!=null&&m.startsWith(d)||st(!1),h=j}else h=u;let y=h.pathname||"/",x=y;if(d!=="/"){let j=d.replace(/^\//,"").split("/");x="/"+y.replace(/^\//,"").split("/").slice(j.length).join("/")}let w=Ik(e,{pathname:x}),b=m2(w&&w.map(j=>Object.assign({},j,{params:Object.assign({},l,j.params),pathname:is([d,o.encodeLocation?o.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?d:is([d,o.encodeLocation?o.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),i,n,s);return t&&b?f.createElement(Uc.Provider,{value:{location:Oa({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:os.Pop}},b):b}function c2(){let e=g2(),t=t2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,null)}const d2=f.createElement(c2,null);class u2 extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?f.createElement(jr.Provider,{value:this.props.routeContext},f.createElement(Vy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function f2(e){let{routeContext:t,match:n,children:s}=e,o=f.useContext(zc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(jr.Provider,{value:t},s)}function m2(e,t,n,s){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let h=a.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);h>=0||st(!1),a=a.slice(0,Math.min(a.length,h+1))}let d=!1,u=-1;if(n&&s&&s.v7_partialHydration)for(let h=0;h<a.length;h++){let m=a[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=h),m.route.id){let{loaderData:y,errors:x}=n,w=m.route.loader&&y[m.route.id]===void 0&&(!x||x[m.route.id]===void 0);if(m.route.lazy||w){d=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((h,m,y)=>{let x,w=!1,b=null,j=null;n&&(x=l&&m.route.id?l[m.route.id]:void 0,b=m.route.errorElement||d2,d&&(u<0&&y===0?(y2("route-fallback"),w=!0,j=null):u===y&&(w=!0,j=m.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,y+1)),p=()=>{let v;return x?v=b:w?v=j:m.route.Component?v=f.createElement(m.route.Component,null):m.route.element?v=m.route.element:v=h,f.createElement(f2,{match:m,routeContext:{outlet:h,matches:g,isDataRoute:n!=null},children:v})};return n&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?f.createElement(u2,{location:n.location,revalidation:n.revalidation,component:b,error:x,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()},null)}var Wy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Wy||{}),qy=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(qy||{});function h2(e){let t=f.useContext(zc);return t||st(!1),t}function p2(e){let t=f.useContext(By);return t||st(!1),t}function x2(e){let t=f.useContext(jr);return t||st(!1),t}function Ky(e){let t=x2(),n=t.matches[t.matches.length-1];return n.route.id||st(!1),n.route.id}function g2(){var e;let t=f.useContext(Vy),n=p2(),s=Ky();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function v2(){let{router:e}=h2(Wy.UseNavigateStable),t=Ky(qy.UseNavigateStable),n=f.useRef(!1);return Hy(()=>{n.current=!0}),f.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Oa({fromRouteId:t},i)))},[e,t])}const Qy={};function y2(e,t,n){Qy[e]||(Qy[e]=!0)}function b2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function j2(e){return i2(e.context)}function et(e){st(!1)}function w2(e){let{basename:t="/",children:n=null,location:s,navigationType:o=os.Pop,navigator:i,static:a=!1,future:l}=e;Aa()&&st(!1);let d=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:d,navigator:i,static:a,future:Oa({v7_relativeSplatPath:!1},l)}),[d,l,i,a]);typeof s=="string"&&(s=eo(s));let{pathname:h="/",search:m="",hash:y="",state:x=null,key:w="default"}=s,b=f.useMemo(()=>{let j=ei(h,d);return j==null?null:{location:{pathname:j,search:m,hash:y,state:x,key:w},navigationType:o}},[d,h,m,y,x,w,o]);return b==null?null:f.createElement(as.Provider,{value:u},f.createElement(Uc.Provider,{children:n,value:b}))}function N2(e){let{children:t,location:n}=e;return a2(Pm(t),n)}new Promise(()=>{});function Pm(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(s,o)=>{if(!f.isValidElement(s))return;let i=[...t,o];if(s.type===f.Fragment){n.push.apply(n,Pm(s.props.children,i));return}s.type!==et&&st(!1),!s.props.index||!s.props.children||st(!1);let a={id:s.props.id||i.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(a.children=Pm(s.props.children,i)),n.push(a)}),n}/**
60 * React Router DOM v6.30.3
61 *
62 * Copyright (c) Remix Software Inc.
63 *
64 * This source code is licensed under the MIT license found in the
65 * LICENSE.md file in the root directory of this source tree.
66 *
67 * @license MIT
68 */function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Hc.apply(this,arguments)}function Gy(e,t){if(e==null)return{};var n={},s=Object.keys(e),o,i;for(i=0;i<s.length;i++)o=s[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function S2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function C2(e,t){return e.button===0&&(!t||t==="_self")&&!S2(e)}function Tm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let s=e[n];return t.concat(Array.isArray(s)?s.map(o=>[n,o]):[[n,s]])},[]))}function k2(e,t){let n=Tm(e);return t&&t.forEach((s,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const E2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_2=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],P2="6";try{window.__reactRouterVersion=P2}catch(e){}const T2=f.createContext({isTransitioning:!1}),Xy=Sl["startTransition"];function R2(e){let{basename:t,children:n,future:s,window:o}=e,i=f.useRef();i.current==null&&(i.current=Rk({window:o,v5Compat:!0}));let a=i.current,[l,d]=f.useState({action:a.action,location:a.location}),{v7_startTransition:u}=s||{},h=f.useCallback(m=>{u&&Xy?Xy(()=>d(m)):d(m)},[d,u]);return f.useLayoutEffect(()=>a.listen(h),[a,h]),f.useEffect(()=>b2(s),[s]),f.createElement(w2,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}const O2=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",A2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,un=f.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:i,replace:a,state:l,target:d,to:u,preventScrollReset:h,viewTransition:m}=t,y=Gy(t,E2),{basename:x}=f.useContext(as),w,b=!1;if(typeof u=="string"&&A2.test(u)&&(w=u,O2))try{let v=new URL(window.location.href),N=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=ei(N.pathname,x);N.origin===v.origin&&S!=null?u=S+N.search+N.hash:b=!0}catch(v){}let j=r2(u,{relative:o}),g=D2(u,{replace:a,state:l,target:d,preventScrollReset:h,relative:o,viewTransition:m});function p(v){s&&s(v),v.defaultPrevented||g(v)}return f.createElement("a",Hc({},y,{href:w||j,onClick:b||i?s:p,ref:n,target:d}))}),I2=f.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:o=!1,className:i="",end:a=!1,style:l,to:d,viewTransition:u,children:h}=t,m=Gy(t,_2),y=Vc(d,{relative:m.relative}),x=ls(),w=f.useContext(By),{navigator:b,basename:j}=f.useContext(as),g=w!=null&&L2(y)&&u===!0,p=b.encodeLocation?b.encodeLocation(y).pathname:y.pathname,v=x.pathname,N=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;o||(v=v.toLowerCase(),N=N?N.toLowerCase():null,p=p.toLowerCase()),N&&j&&(N=ei(N,j)||N);const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let C=v===p||!a&&v.startsWith(p)&&v.charAt(S)==="/",P=N!=null&&(N===p||!a&&N.startsWith(p)&&N.charAt(p.length)==="/"),k={isActive:C,isPending:P,isTransitioning:g},O=C?s:void 0,T;typeof i=="function"?T=i(k):T=[i,C?"active":null,P?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let A=typeof l=="function"?l(k):l;return f.createElement(un,Hc({},m,{"aria-current":O,className:T,ref:n,style:A,to:d,viewTransition:u}),typeof h=="function"?h(k):h)});var Rm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Rm||(Rm={}));var Yy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yy||(Yy={}));function M2(e){let t=f.useContext(zc);return t||st(!1),t}function D2(e,t){let{target:n,replace:s,state:o,preventScrollReset:i,relative:a,viewTransition:l}=t===void 0?{}:t,d=qn(),u=ls(),h=Vc(e,{relative:a});return f.useCallback(m=>{if(C2(m,n)){m.preventDefault();let y=s!==void 0?s:$c(u)===$c(h);d(e,{replace:y,state:o,preventScrollReset:i,relative:a,viewTransition:l})}},[u,d,h,s,o,n,e,i,a,l])}function F2(e){let t=f.useRef(Tm(e)),n=f.useRef(!1),s=ls(),o=f.useMemo(()=>k2(s.search,n.current?null:t.current),[s.search]),i=qn(),a=f.useCallback((l,d)=>{const u=Tm(typeof l=="function"?l(o):l);n.current=!0,i("?"+u,d)},[i,o]);return[o,a]}function L2(e,t){t===void 0&&(t={});let n=f.useContext(T2);n==null&&st(!1);let{basename:s}=M2(Rm.useViewTransitionState),o=Vc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ei(n.currentLocation.pathname,s)||n.currentLocation.pathname,a=ei(n.nextLocation.pathname,s)||n.nextLocation.pathname;return Em(o.pathname,a)!=null||Em(o.pathname,i)!=null}function $t(){var e;return(e=window.doiAdmin)!=null?e:{restUrl:"/wp-json/f12-doi/v1/",nonce:"",isProActive:!1,isProInstalled:!1,loadedAddons:[],registeredAddons:[],version:"0.0.0",emailEditorUrl:"",upgradeUrl:"https://www.forge12.com",supportUrl:"",feedbackUrl:"",adminUrl:"/wp-admin/",consentExportNonce:""}}function ti(e){return $t().loadedAddons.includes(e)}class Om extends Error{constructor(n,s,o){var i,a,l,d;super(n);Li(this,"status");Li(this,"code");Li(this,"missing");Li(this,"body");this.name="ApiError",this.status=s,this.body=o,this.code=(a=o==null?void 0:o.code)!=null?a:(i=o==null?void 0:o.data)==null?void 0:i.code,this.missing=(d=o==null?void 0:o.missing)!=null?d:(l=o==null?void 0:o.data)==null?void 0:l.missing}}async function Z(e,t={}){var l;const n=$t(),s=n.restUrl.replace(/\/+$/,""),o=e.replace(/^\/+/,""),i=`${s}/${o}`,a=await fetch(i,{...t,headers:{"Content-Type":"application/json","X-WP-Nonce":n.nonce,...t.headers}});if(!a.ok){const d=await a.json().catch(()=>({message:a.statusText})),u=(d==null?void 0:d.message)||((l=d==null?void 0:d.data)==null?void 0:l.message)||a.statusText;throw new Om(u,a.status,d)}return a.json()}const Ia={},Am=new Set,$2=Object.freeze([]);function z2(){Am.forEach(e=>e())}function U2(e,t,n){typeof e!="string"||e===""||typeof t!="string"||t===""||typeof n!="function"&&typeof n!="object"||(Ia[e]||(Ia[e]=[]),!Ia[e].some(s=>s.name===t)&&(Ia[e].push({name:t,Component:n}),z2()))}function Zy(e){return Am.add(e),()=>{Am.delete(e)}}function Jy(e){var t;return(t=Ia[e])!=null?t:$2}let Wc=null;function B2(){return Wc||(typeof window!="undefined"&&!window.f12DoiRegisterComponent&&(window.f12DoiRegisterComponent=(e,t,n)=>{U2(e,t,n)}),Wc=(async()=>{let e;try{e=await Z("addons")}catch(s){return console.error("[f12-doi] Failed to fetch /addons manifest",s),[]}const t=Array.isArray(e==null?void 0:e.addons)?e.addons:[],n=t.flatMap(s=>{var o,i;return(i=(o=s.ui)==null?void 0:o.bundles)!=null?i:[]}).filter(s=>s&&typeof s.url=="string"&&s.url!=="");return await Promise.allSettled(n.map(async s=>{try{await import(s.url)}catch(o){console.error(`[f12-doi] Failed to load addon bundle "${s.handle}" from ${s.url}`,o)}})),t})(),Wc)}const V2=1,H2=1e6;let Im=0;function W2(){return Im=(Im+1)%Number.MAX_SAFE_INTEGER,Im.toString()}const Mm=new Map,e0=e=>{if(Mm.has(e))return;const t=setTimeout(()=>{Mm.delete(e),Ma({type:"REMOVE_TOAST",toastId:e})},H2);Mm.set(e,t)},q2=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,V2)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?e0(n):e.toasts.forEach(s=>{e0(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},qc=[];let Kc={toasts:[]};function Ma(e){Kc=q2(Kc,e),qc.forEach(t=>{t(Kc)})}function K2({...e}){const t=W2(),n=o=>Ma({type:"UPDATE_TOAST",toast:{...o,id:t}}),s=()=>Ma({type:"DISMISS_TOAST",toastId:t});return Ma({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||s()}}}),{id:t,dismiss:s,update:n}}function Q2(){const[e,t]=f.useState(Kc);return f.useEffect(()=>(qc.push(t),()=>{const n=qc.indexOf(t);n>-1&&qc.splice(n,1)}),[e]),{...e,toast:K2,dismiss:n=>Ma({type:"DISMISS_TOAST",toastId:n})}}function me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function t0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ni(...e){return t=>{let n=!1;const s=e.map(o=>{const i=t0(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<s.length;o++){const i=s[o];typeof i=="function"?i():t0(e[o],null)}}}}function De(...e){return f.useCallback(ni(...e),e)}function G2(e,t){const n=f.createContext(t),s=i=>{const{children:a,...l}=i,d=f.useMemo(()=>l,Object.values(l));return r.jsx(n.Provider,{value:d,children:a})};s.displayName=e+"Provider";function o(i){const a=f.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,o]}function fn(e,t=[]){let n=[];function s(i,a){const l=f.createContext(a),d=n.length;n=[...n,a];const u=m=>{var g;const{scope:y,children:x,...w}=m,b=((g=y==null?void 0:y[e])==null?void 0:g[d])||l,j=f.useMemo(()=>w,Object.values(w));return r.jsx(b.Provider,{value:j,children:x})};u.displayName=i+"Provider";function h(m,y){var b;const x=((b=y==null?void 0:y[e])==null?void 0:b[d])||l,w=f.useContext(x);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[u,h]}const o=()=>{const i=n.map(a=>f.createContext(a));return function(l){const d=(l==null?void 0:l[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return o.scopeName=e,[s,X2(o,...t)]}function X2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=s.reduce((l,{useScope:d,scopeName:u})=>{const m=d(i)[`__scope${u}`];return{...l,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function n0(e){const t=Y2(e),n=f.forwardRef((s,o)=>{const{children:i,...a}=s,l=f.Children.toArray(i),d=l.find(J2);if(d){const u=d.props.children,h=l.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Y2(e){const t=f.forwardRef((n,s)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const a=tE(o),l=eE(i,o.props);return o.type!==f.Fragment&&(l.ref=s?ni(s,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Z2=Symbol("radix.slottable");function J2(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Z2}function eE(e,t){const n={...t};for(const s in t){const o=e[s],i=t[s];/^on[A-Z]/.test(s)?o&&i?n[s]=(...l)=>{const d=i(...l);return o(...l),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...i}:s==="className"&&(n[s]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function tE(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Qc(e){const t=e+"CollectionProvider",[n,s]=fn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=b=>{const{scope:j,children:g}=b,p=V.useRef(null),v=V.useRef(new Map).current;return r.jsx(o,{scope:j,itemMap:v,collectionRef:p,children:g})};a.displayName=t;const l=e+"CollectionSlot",d=n0(l),u=V.forwardRef((b,j)=>{const{scope:g,children:p}=b,v=i(l,g),N=De(j,v.collectionRef);return r.jsx(d,{ref:N,children:p})});u.displayName=l;const h=e+"CollectionItemSlot",m="data-radix-collection-item",y=n0(h),x=V.forwardRef((b,j)=>{const{scope:g,children:p,...v}=b,N=V.useRef(null),S=De(j,N),C=i(h,g);return V.useEffect(()=>(C.itemMap.set(N,{ref:N,...v}),()=>void C.itemMap.delete(N))),r.jsx(y,{[m]:"",ref:S,children:p})});x.displayName=h;function w(b){const j=i(e+"CollectionConsumer",b);return V.useCallback(()=>{const p=j.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${m}]`));return Array.from(j.itemMap.values()).sort((C,P)=>v.indexOf(C.ref.current)-v.indexOf(P.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:a,Slot:u,ItemSlot:x},w,s]}function nE(e){const t=rE(e),n=f.forwardRef((s,o)=>{const{children:i,...a}=s,l=f.Children.toArray(i),d=l.find(oE);if(d){const u=d.props.children,h=l.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function rE(e){const t=f.forwardRef((n,s)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const a=aE(o),l=iE(i,o.props);return o.type!==f.Fragment&&(l.ref=s?ni(s,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sE=Symbol("radix.slottable");function oE(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sE}function iE(e,t){const n={...t};for(const s in t){const o=e[s],i=t[s];/^on[A-Z]/.test(s)?o&&i?n[s]=(...l)=>{const d=i(...l);return o(...l),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...i}:s==="className"&&(n[s]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function aE(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var lE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],be=lE.reduce((e,t)=>{const n=nE(`Primitive.${t}`),s=f.forwardRef((o,i)=>{const{asChild:a,...l}=o,d=a?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...l,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function r0(e,t){e&&Xs.flushSync(()=>e.dispatchEvent(t))}function mn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function cE(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e);f.useEffect(()=>{const s=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var dE="DismissableLayer",Dm="dismissableLayer.update",uE="dismissableLayer.pointerDownOutside",fE="dismissableLayer.focusOutside",s0,o0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Da=f.forwardRef((e,t)=>{var P;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...d}=e,u=f.useContext(o0),[h,m]=f.useState(null),y=(P=h==null?void 0:h.ownerDocument)!=null?P:globalThis==null?void 0:globalThis.document,[,x]=f.useState({}),w=De(t,k=>m(k)),b=Array.from(u.layers),[j]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=b.indexOf(j),p=h?b.indexOf(h):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,N=p>=g,S=hE(k=>{const O=k.target,T=[...u.branches].some(A=>A.contains(O));!N||T||(o==null||o(k),a==null||a(k),k.defaultPrevented||l==null||l())},y),C=pE(k=>{const O=k.target;[...u.branches].some(A=>A.contains(O))||(i==null||i(k),a==null||a(k),k.defaultPrevented||l==null||l())},y);return cE(k=>{p===u.layers.size-1&&(s==null||s(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},y),f.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(s0=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),a0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=s0)}},[h,y,n,u]),f.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),a0())},[h,u]),f.useEffect(()=>{const k=()=>x({});return document.addEventListener(Dm,k),()=>document.removeEventListener(Dm,k)},[]),r.jsx(be.div,{...d,ref:w,style:{pointerEvents:v?N?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,C.onFocusCapture),onBlurCapture:me(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,S.onPointerDownCapture)})});Da.displayName=dE;var mE="DismissableLayerBranch",i0=f.forwardRef((e,t)=>{const n=f.useContext(o0),s=f.useRef(null),o=De(t,s);return f.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),r.jsx(be.div,{...e,ref:o})});i0.displayName=mE;function hE(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e),s=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=l=>{if(l.target&&!s.current){let d=function(){l0(uE,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);s.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function pE(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e),s=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!s.current&&l0(fE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function a0(){const e=new CustomEvent(Dm);document.dispatchEvent(e)}function l0(e,t,n,{discrete:s}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?r0(o,i):o.dispatchEvent(i)}var xE=Da,gE=i0,ht=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},vE="Portal",Fa=f.forwardRef((e,t)=>{var l;const{container:n,...s}=e,[o,i]=f.useState(!1);ht(()=>i(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?ry.createPortal(r.jsx(be.div,{...s,ref:t}),a):null});Fa.displayName=vE;function yE(e,t){return f.useReducer((n,s)=>{const o=t[n][s];return o!=null?o:n},e)}var Kn=e=>{const{present:t,children:n}=e,s=bE(t),o=typeof n=="function"?n({present:s.isPresent}):f.Children.only(n),i=De(s.ref,jE(o));return typeof n=="function"||s.isPresent?f.cloneElement(o,{ref:i}):null};Kn.displayName="Presence";function bE(e){const[t,n]=f.useState(),s=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[l,d]=yE(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=Gc(s.current);i.current=l==="mounted"?u:"none"},[l]),ht(()=>{const u=s.current,h=o.current;if(h!==e){const y=i.current,x=Gc(u);e?d("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(h&&y!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ht(()=>{var u;if(t){let h;const m=(u=t.ownerDocument.defaultView)!=null?u:window,y=w=>{const j=Gc(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&j&&(d("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},x=w=>{w.target===t&&(i.current=Gc(s.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{s.current=u?getComputedStyle(u):null,n(u)},[])}}function Gc(e){return(e==null?void 0:e.animationName)||"none"}function jE(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wE=Sl[" useInsertionEffect ".trim().toString()]||ht;function hn({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[o,i,a]=NE({defaultProp:t,onChange:n}),l=e!==void 0,d=l?e:o;{const h=f.useRef(e!==void 0);f.useEffect(()=>{const m=h.current;m!==l&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=l},[l,s])}const u=f.useCallback(h=>{var m;if(l){const y=SE(h)?h(e):h;y!==e&&((m=a.current)==null||m.call(a,y))}else i(h)},[l,e,i,a]);return[d,u]}function NE({defaultProp:e,onChange:t}){const[n,s]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return wE(()=>{i.current=t},[t]),f.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,s,i]}function SE(e){return typeof e=="function"}var c0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),CE="VisuallyHidden",Xc=f.forwardRef((e,t)=>r.jsx(be.span,{...e,ref:t,style:{...c0,...e.style}}));Xc.displayName=CE;var kE=Xc,Fm="ToastProvider",[Lm,EE,_E]=Qc("Toast"),[d0]=fn("Toast",[_E]),[PE,Yc]=d0(Fm),u0=e=>{const{__scopeToast:t,label:n="Notification",duration:s=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[l,d]=f.useState(null),[u,h]=f.useState(0),m=f.useRef(!1),y=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Fm}\`. Expected non-empty \`string\`.`),r.jsx(Lm.Provider,{scope:t,children:r.jsx(PE,{scope:t,label:n,duration:s,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:d,onToastAdd:f.useCallback(()=>h(x=>x+1),[]),onToastRemove:f.useCallback(()=>h(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:y,children:a})})};u0.displayName=Fm;var f0="ToastViewport",TE=["F8"],$m="toast.viewportPause",zm="toast.viewportResume",m0=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:s=TE,label:o="Notifications ({hotkey})",...i}=e,a=Yc(f0,n),l=EE(n),d=f.useRef(null),u=f.useRef(null),h=f.useRef(null),m=f.useRef(null),y=De(t,m,a.onViewportChange),x=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=a.toastCount>0;f.useEffect(()=>{const j=g=>{var v;s.length!==0&&s.every(N=>g[N]||g.code===N)&&((v=m.current)==null||v.focus())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[s]),f.useEffect(()=>{const j=d.current,g=m.current;if(w&&j&&g){const p=()=>{if(!a.isClosePausedRef.current){const C=new CustomEvent($m);g.dispatchEvent(C),a.isClosePausedRef.current=!0}},v=()=>{if(a.isClosePausedRef.current){const C=new CustomEvent(zm);g.dispatchEvent(C),a.isClosePausedRef.current=!1}},N=C=>{!j.contains(C.relatedTarget)&&v()},S=()=>{j.contains(document.activeElement)||v()};return j.addEventListener("focusin",p),j.addEventListener("focusout",N),j.addEventListener("pointermove",p),j.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{j.removeEventListener("focusin",p),j.removeEventListener("focusout",N),j.removeEventListener("pointermove",p),j.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[w,a.isClosePausedRef]);const b=f.useCallback(({tabbingDirection:j})=>{const p=l().map(v=>{const N=v.ref.current,S=[N,...VE(N)];return j==="forwards"?S:S.reverse()});return(j==="forwards"?p.reverse():p).flat()},[l]);return f.useEffect(()=>{const j=m.current;if(j){const g=p=>{var S,C,P;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const k=document.activeElement,O=p.shiftKey;if(p.target===j&&O){(S=u.current)==null||S.focus();return}const I=b({tabbingDirection:O?"backwards":"forwards"}),U=I.findIndex(M=>M===k);Vm(I.slice(U+1))?p.preventDefault():O?(C=u.current)==null||C.focus():(P=h.current)==null||P.focus()}};return j.addEventListener("keydown",g),()=>j.removeEventListener("keydown",g)}},[l,b]),r.jsxs(gE,{ref:d,role:"region","aria-label":o.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&r.jsx(Um,{ref:u,onFocusFromOutsideViewport:()=>{const j=b({tabbingDirection:"forwards"});Vm(j)}}),r.jsx(Lm.Slot,{scope:n,children:r.jsx(be.ol,{tabIndex:-1,...i,ref:y})}),w&&r.jsx(Um,{ref:h,onFocusFromOutsideViewport:()=>{const j=b({tabbingDirection:"backwards"});Vm(j)}})]})});m0.displayName=f0;var h0="ToastFocusProxy",Um=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:s,...o}=e,i=Yc(h0,n);return r.jsx(Xc,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const l=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&s()}})});Um.displayName=h0;var La="Toast",RE="toast.swipeStart",OE="toast.swipeMove",AE="toast.swipeCancel",IE="toast.swipeEnd",p0=f.forwardRef((e,t)=>{const{forceMount:n,open:s,defaultOpen:o,onOpenChange:i,...a}=e,[l,d]=hn({prop:s,defaultProp:o!=null?o:!0,onChange:i,caller:La});return r.jsx(Kn,{present:n||l,children:r.jsx(FE,{open:l,...a,ref:t,onClose:()=>d(!1),onPause:mn(e.onPause),onResume:mn(e.onResume),onSwipeStart:me(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:me(e.onSwipeMove,u=>{const{x:h,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:me(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:me(e.onSwipeEnd,u=>{const{x:h,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});p0.displayName=La;var[ME,DE]=d0(La,{onClose(){}}),FE=f.forwardRef((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:l,onPause:d,onResume:u,onSwipeStart:h,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:x,...w}=e,b=Yc(La,n),[j,g]=f.useState(null),p=De(t,M=>g(M)),v=f.useRef(null),N=f.useRef(null),S=o||b.duration,C=f.useRef(0),P=f.useRef(S),k=f.useRef(0),{onToastAdd:O,onToastRemove:T}=b,A=mn(()=>{var re;(j==null?void 0:j.contains(document.activeElement))&&((re=b.viewport)==null||re.focus()),a()}),I=f.useCallback(M=>{!M||M===1/0||(window.clearTimeout(k.current),C.current=new Date().getTime(),k.current=window.setTimeout(A,M))},[A]);f.useEffect(()=>{const M=b.viewport;if(M){const re=()=>{I(P.current),u==null||u()},F=()=>{const X=new Date().getTime()-C.current;P.current=P.current-X,window.clearTimeout(k.current),d==null||d()};return M.addEventListener($m,F),M.addEventListener(zm,re),()=>{M.removeEventListener($m,F),M.removeEventListener(zm,re)}}},[b.viewport,S,d,u,I]),f.useEffect(()=>{i&&!b.isClosePausedRef.current&&I(S)},[i,S,b.isClosePausedRef,I]),f.useEffect(()=>(O(),()=>T()),[O,T]);const U=f.useMemo(()=>j?w0(j):null,[j]);return b.viewport?r.jsxs(r.Fragment,{children:[U&&r.jsx(LE,{__scopeToast:n,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:U}),r.jsx(ME,{scope:n,onClose:A,children:Xs.createPortal(r.jsx(Lm.ItemSlot,{scope:n,children:r.jsx(xE,{asChild:!0,onEscapeKeyDown:me(l,()=>{b.isFocusedToastEscapeKeyDownRef.current||A(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(be.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":b.swipeDirection,...w,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:me(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:me(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:me(e.onPointerMove,M=>{if(!v.current)return;const re=M.clientX-v.current.x,F=M.clientY-v.current.y,X=!!N.current,D=["left","right"].includes(b.swipeDirection),L=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,J=D?L(0,re):0,he=D?0:L(0,F),_=M.pointerType==="touch"?10:2,$={x:J,y:he},B={originalEvent:M,delta:$};X?(N.current=$,Zc(OE,m,B,{discrete:!1})):N0($,b.swipeDirection,_)?(N.current=$,Zc(RE,h,B,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(re)>_||Math.abs(F)>_)&&(v.current=null)}),onPointerUp:me(e.onPointerUp,M=>{const re=N.current,F=M.target;if(F.hasPointerCapture(M.pointerId)&&F.releasePointerCapture(M.pointerId),N.current=null,v.current=null,re){const X=M.currentTarget,D={originalEvent:M,delta:re};N0(re,b.swipeDirection,b.swipeThreshold)?Zc(IE,x,D,{discrete:!0}):Zc(AE,y,D,{discrete:!0}),X.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),LE=e=>{const{__scopeToast:t,children:n,...s}=e,o=Yc(La,t),[i,a]=f.useState(!1),[l,d]=f.useState(!1);return UE(()=>a(!0)),f.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:r.jsx(Fa,{asChild:!0,children:r.jsx(Xc,{...s,children:i&&r.jsxs(r.Fragment,{children:[o.label," ",n]})})})},$E="ToastTitle",x0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(be.div,{...s,ref:t})});x0.displayName=$E;var zE="ToastDescription",g0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(be.div,{...s,ref:t})});g0.displayName=zE;var v0="ToastAction",y0=f.forwardRef((e,t)=>{const{altText:n,...s}=e;return n.trim()?r.jsx(j0,{altText:n,asChild:!0,children:r.jsx(Bm,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${v0}\`. Expected non-empty \`string\`.`),null)});y0.displayName=v0;var b0="ToastClose",Bm=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e,o=DE(b0,n);return r.jsx(j0,{asChild:!0,children:r.jsx(be.button,{type:"button",...s,ref:t,onClick:me(e.onClick,o.onClose)})})});Bm.displayName=b0;var j0=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:s,...o}=e;return r.jsx(be.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...o,ref:t})});function w0(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),BE(s)){const o=s.ariaHidden||s.hidden||s.style.display==="none",i=s.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=s.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...w0(s))}}),t}function Zc(e,t,n,{discrete:s}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?r0(o,i):o.dispatchEvent(i)}var N0=(e,t,n=0)=>{const s=Math.abs(e.x),o=Math.abs(e.y),i=s>o;return t==="left"||t==="right"?i&&s>n:!i&&o>n};function UE(e=()=>{}){const t=mn(e);ht(()=>{let n=0,s=0;return n=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(s)}},[t])}function BE(e){return e.nodeType===e.ELEMENT_NODE}function VE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var HE=u0,S0=m0,C0=p0,k0=x0,E0=g0,_0=y0,P0=Bm;function T0(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=T0(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function R0(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=T0(e))&&(s&&(s+=" "),s+=t);return s}const O0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,A0=R0,ri=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return A0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(u=>{const h=n==null?void 0:n[u],m=i==null?void 0:i[u];if(h===null)return null;const y=O0(h)||O0(m);return o[u][y]}),l=n&&Object.entries(n).reduce((u,h)=>{let[m,y]=h;return y===void 0||(u[m]=y),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,h)=>{let{class:m,className:y,...x}=h;return Object.entries(x).every(w=>{let[b,j]=w;return Array.isArray(j)?j.includes({...i,...l}[b]):{...i,...l}[b]===j})?[...u,m,y]:u},[]);return A0(e,a,d,n==null?void 0:n.class,n==null?void 0:n.className)};/**
69 * @license lucide-react v0.462.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const WE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),I0=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
74 * @license lucide-react v0.462.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */var qE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
79 * @license lucide-react v0.462.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const KE=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:o="",children:i,iconNode:a,...l},d)=>f.createElement("svg",{ref:d,...qE,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:I0("lucide",o),...l},[...a.map(([u,h])=>f.createElement(u,h)),...Array.isArray(i)?i:[i]]));/**
84 * @license lucide-react v0.462.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const ue=(e,t)=>{const n=f.forwardRef(({className:s,...o},i)=>f.createElement(KE,{ref:i,iconNode:t,className:I0(`lucide-${WE(e)}`,s),...o}));return n.displayName=`${e}`,n};/**
89 * @license lucide-react v0.462.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const Jc=ue("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
94 * @license lucide-react v0.462.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const si=ue("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
99 * @license lucide-react v0.462.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const QE=ue("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/**
104 * @license lucide-react v0.462.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const GE=ue("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
109 * @license lucide-react v0.462.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const ed=ue("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
114 * @license lucide-react v0.462.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const to=ue("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
119 * @license lucide-react v0.462.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const M0=ue("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
124 * @license lucide-react v0.462.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const Hm=ue("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
129 * @license lucide-react v0.462.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const XE=ue("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
134 * @license lucide-react v0.462.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const td=ue("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
139 * @license lucide-react v0.462.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const oi=ue("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
144 * @license lucide-react v0.462.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const D0=ue("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
149 * @license lucide-react v0.462.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const F0=ue("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
154 * @license lucide-react v0.462.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const YE=ue("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
159 * @license lucide-react v0.462.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const wr=ue("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
164 * @license lucide-react v0.462.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const L0=ue("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
169 * @license lucide-react v0.462.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const $0=ue("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
174 * @license lucide-react v0.462.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const $a=ue("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
179 * @license lucide-react v0.462.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const za=ue("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
184 * @license lucide-react v0.462.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const nd=ue("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
189 * @license lucide-react v0.462.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const ZE=ue("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
194 * @license lucide-react v0.462.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const JE=ue("FileJson",[["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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/**
199 * @license lucide-react v0.462.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const e_=ue("FileSpreadsheet",[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/**
204 * @license lucide-react v0.462.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const ii=ue("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"}]]);/**
209 * @license lucide-react v0.462.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const t_=ue("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
214 * @license lucide-react v0.462.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const n_=ue("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
219 * @license lucide-react v0.462.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const r_=ue("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
224 * @license lucide-react v0.462.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const yt=ue("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
229 * @license lucide-react v0.462.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const z0=ue("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
234 * @license lucide-react v0.462.0 - ISC
235 *
236 * This source code is licensed under the ISC license.
237 * See the LICENSE file in the root directory of this source tree.
238 */const s_=ue("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
239 * @license lucide-react v0.462.0 - ISC
240 *
241 * This source code is licensed under the ISC license.
242 * See the LICENSE file in the root directory of this source tree.
243 */const o_=ue("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/**
244 * @license lucide-react v0.462.0 - ISC
245 *
246 * This source code is licensed under the ISC license.
247 * See the LICENSE file in the root directory of this source tree.
248 */const i_=ue("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
249 * @license lucide-react v0.462.0 - ISC
250 *
251 * This source code is licensed under the ISC license.
252 * See the LICENSE file in the root directory of this source tree.
253 */const _n=ue("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
254 * @license lucide-react v0.462.0 - ISC
255 *
256 * This source code is licensed under the ISC license.
257 * See the LICENSE file in the root directory of this source tree.
258 */const Nr=ue("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
259 * @license lucide-react v0.462.0 - ISC
260 *
261 * This source code is licensed under the ISC license.
262 * See the LICENSE file in the root directory of this source tree.
263 */const U0=ue("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
264 * @license lucide-react v0.462.0 - ISC
265 *
266 * This source code is licensed under the ISC license.
267 * See the LICENSE file in the root directory of this source tree.
268 */const Qn=ue("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
269 * @license lucide-react v0.462.0 - ISC
270 *
271 * This source code is licensed under the ISC license.
272 * See the LICENSE file in the root directory of this source tree.
273 */const a_=ue("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
274 * @license lucide-react v0.462.0 - ISC
275 *
276 * This source code is licensed under the ISC license.
277 * See the LICENSE file in the root directory of this source tree.
278 */const B0=ue("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
279 * @license lucide-react v0.462.0 - ISC
280 *
281 * This source code is licensed under the ISC license.
282 * See the LICENSE file in the root directory of this source tree.
283 */const l_=ue("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
284 * @license lucide-react v0.462.0 - ISC
285 *
286 * This source code is licensed under the ISC license.
287 * See the LICENSE file in the root directory of this source tree.
288 */const rd=ue("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
289 * @license lucide-react v0.462.0 - ISC
290 *
291 * This source code is licensed under the ISC license.
292 * See the LICENSE file in the root directory of this source tree.
293 */const Wm=ue("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
294 * @license lucide-react v0.462.0 - ISC
295 *
296 * This source code is licensed under the ISC license.
297 * See the LICENSE file in the root directory of this source tree.
298 */const ai=ue("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
299 * @license lucide-react v0.462.0 - ISC
300 *
301 * This source code is licensed under the ISC license.
302 * See the LICENSE file in the root directory of this source tree.
303 */const Ua=ue("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
304 * @license lucide-react v0.462.0 - ISC
305 *
306 * This source code is licensed under the ISC license.
307 * See the LICENSE file in the root directory of this source tree.
308 */const c_=ue("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
309 * @license lucide-react v0.462.0 - ISC
310 *
311 * This source code is licensed under the ISC license.
312 * See the LICENSE file in the root directory of this source tree.
313 */const d_=ue("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
314 * @license lucide-react v0.462.0 - ISC
315 *
316 * This source code is licensed under the ISC license.
317 * See the LICENSE file in the root directory of this source tree.
318 */const V0=ue("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
319 * @license lucide-react v0.462.0 - ISC
320 *
321 * This source code is licensed under the ISC license.
322 * See the LICENSE file in the root directory of this source tree.
323 */const no=ue("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
324 * @license lucide-react v0.462.0 - ISC
325 *
326 * This source code is licensed under the ISC license.
327 * See the LICENSE file in the root directory of this source tree.
328 */const sd=ue("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
329 * @license lucide-react v0.462.0 - ISC
330 *
331 * This source code is licensed under the ISC license.
332 * See the LICENSE file in the root directory of this source tree.
333 */const u_=ue("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
334 * @license lucide-react v0.462.0 - ISC
335 *
336 * This source code is licensed under the ISC license.
337 * See the LICENSE file in the root directory of this source tree.
338 */const f_=ue("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
339 * @license lucide-react v0.462.0 - ISC
340 *
341 * This source code is licensed under the ISC license.
342 * See the LICENSE file in the root directory of this source tree.
343 */const qm=ue("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
344 * @license lucide-react v0.462.0 - ISC
345 *
346 * This source code is licensed under the ISC license.
347 * See the LICENSE file in the root directory of this source tree.
348 */const Km=ue("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
349 * @license lucide-react v0.462.0 - ISC
350 *
351 * This source code is licensed under the ISC license.
352 * See the LICENSE file in the root directory of this source tree.
353 */const m_=ue("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
354 * @license lucide-react v0.462.0 - ISC
355 *
356 * This source code is licensed under the ISC license.
357 * See the LICENSE file in the root directory of this source tree.
358 */const Qm=ue("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
359 * @license lucide-react v0.462.0 - ISC
360 *
361 * This source code is licensed under the ISC license.
362 * See the LICENSE file in the root directory of this source tree.
363 */const pn=ue("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
364 * @license lucide-react v0.462.0 - ISC
365 *
366 * This source code is licensed under the ISC license.
367 * See the LICENSE file in the root directory of this source tree.
368 */const h_=ue("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
369 * @license lucide-react v0.462.0 - ISC
370 *
371 * This source code is licensed under the ISC license.
372 * See the LICENSE file in the root directory of this source tree.
373 */const Gt=ue("TriangleAlert",[["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-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
374 * @license lucide-react v0.462.0 - ISC
375 *
376 * This source code is licensed under the ISC license.
377 * See the LICENSE file in the root directory of this source tree.
378 */const H0=ue("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
379 * @license lucide-react v0.462.0 - ISC
380 *
381 * This source code is licensed under the ISC license.
382 * See the LICENSE file in the root directory of this source tree.
383 */const p_=ue("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
384 * @license lucide-react v0.462.0 - ISC
385 *
386 * This source code is licensed under the ISC license.
387 * See the LICENSE file in the root directory of this source tree.
388 */const W0=ue("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
389 * @license lucide-react v0.462.0 - ISC
390 *
391 * This source code is licensed under the ISC license.
392 * See the LICENSE file in the root directory of this source tree.
393 */const x_=ue("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
394 * @license lucide-react v0.462.0 - ISC
395 *
396 * This source code is licensed under the ISC license.
397 * See the LICENSE file in the root directory of this source tree.
398 */const od=ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
399 * @license lucide-react v0.462.0 - ISC
400 *
401 * This source code is licensed under the ISC license.
402 * See the LICENSE file in the root directory of this source tree.
403 */const g_=ue("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Gm="-",v_=e=>{const t=b_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{const l=a.split(Gm);return l[0]===""&&l.length!==1&&l.shift(),q0(l,t)||y_(a)},getConflictingClassGroupIds:(a,l)=>{const d=n[a]||[];return l&&s[a]?[...d,...s[a]]:d}}},q0=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),o=s?q0(e.slice(1),s):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Gm);return(a=t.validators.find(({validator:l})=>l(i)))==null?void 0:a.classGroupId},K0=/^\[(.+)\]$/,y_=e=>{if(K0.test(e)){const t=K0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},b_=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return w_(Object.entries(e.classGroups),n).forEach(([i,a])=>{Xm(a,s,i,t)}),s},Xm=(e,t,n,s)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Q0(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(j_(o)){Xm(o(s),t,n,s);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{Xm(a,Q0(t,i),n,s)})})},Q0=(e,t)=>{let n=e;return t.split(Gm).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},j_=e=>e.isThemeGetter,w_=(e,t)=>t?e.map(([n,s])=>{const o=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,l])=>[t+a,l])):i);return[n,o]}):e,N_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const o=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=s.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}},G0="!",S_=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,o=t[0],i=t.length,a=l=>{const d=[];let u=0,h=0,m;for(let j=0;j<l.length;j++){let g=l[j];if(u===0){if(g===o&&(s||l.slice(j,j+i)===t)){d.push(l.slice(h,j)),h=j+i;continue}if(g==="/"){m=j;continue}}g==="["?u++:g==="]"&&u--}const y=d.length===0?l:l.substring(h),x=y.startsWith(G0),w=x?y.substring(1):y,b=m&&m>h?m-h:void 0;return{modifiers:d,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:b}};return n?l=>n({className:l,parseClassName:a}):a},C_=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},k_=e=>({cache:N_(e.cacheSize),parseClassName:S_(e),...v_(e)}),E_=/\s+/,__=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(E_);let l="";for(let d=a.length-1;d>=0;d-=1){const u=a[d],{modifiers:h,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:x}=n(u);let w=!!x,b=s(w?y.substring(0,x):y);if(!b){if(!w){l=u+(l.length>0?" "+l:l);continue}if(b=s(y),!b){l=u+(l.length>0?" "+l:l);continue}w=!1}const j=C_(h).join(":"),g=m?j+G0:j,p=g+b;if(i.includes(p))continue;i.push(p);const v=o(b,w);for(let N=0;N<v.length;++N){const S=v[N];i.push(g+S)}l=u+(l.length>0?" "+l:l)}return l};function P_(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=X0(t))&&(s&&(s+=" "),s+=n);return s}const X0=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=X0(e[s]))&&(n&&(n+=" "),n+=t);return n};function T_(e,...t){let n,s,o,i=a;function a(d){const u=t.reduce((h,m)=>m(h),e());return n=k_(u),s=n.cache.get,o=n.cache.set,i=l,l(d)}function l(d){const u=s(d);if(u)return u;const h=__(d,n);return o(d,h),h}return function(){return i(P_.apply(null,arguments))}}const qe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Y0=/^\[(?:([a-z-]+):)?(.+)\]$/i,R_=/^\d+\/\d+$/,O_=new Set(["px","full","screen"]),A_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,M_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>li(e)||O_.has(e)||R_.test(e),cs=e=>ci(e,"length",W_),li=e=>!!e&&!Number.isNaN(Number(e)),Ym=e=>ci(e,"number",li),Ba=e=>!!e&&Number.isInteger(Number(e)),L_=e=>e.endsWith("%")&&li(e.slice(0,-1)),Ee=e=>Y0.test(e),ds=e=>A_.test(e),$_=new Set(["length","size","percentage"]),z_=e=>ci(e,$_,Z0),U_=e=>ci(e,"position",Z0),B_=new Set(["image","url"]),V_=e=>ci(e,B_,K_),H_=e=>ci(e,"",q_),Va=()=>!0,ci=(e,t,n)=>{const s=Y0.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},W_=e=>I_.test(e)&&!M_.test(e),Z0=()=>!1,q_=e=>D_.test(e),K_=e=>F_.test(e),Q_=T_(()=>{const e=qe("colors"),t=qe("spacing"),n=qe("blur"),s=qe("brightness"),o=qe("borderColor"),i=qe("borderRadius"),a=qe("borderSpacing"),l=qe("borderWidth"),d=qe("contrast"),u=qe("grayscale"),h=qe("hueRotate"),m=qe("invert"),y=qe("gap"),x=qe("gradientColorStops"),w=qe("gradientColorStopPositions"),b=qe("inset"),j=qe("margin"),g=qe("opacity"),p=qe("padding"),v=qe("saturate"),N=qe("scale"),S=qe("sepia"),C=qe("skew"),P=qe("space"),k=qe("translate"),O=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",Ee,t],I=()=>[Ee,t],U=()=>["",Sr,cs],M=()=>["auto",li,Ee],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",Ee],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[li,Ee];return{cacheSize:500,separator:":",theme:{colors:[Va],spacing:[Sr,cs],blur:["none","",ds,Ee],brightness:he(),borderColor:[e],borderRadius:["none","","full",ds,Ee],borderSpacing:I(),borderWidth:U(),contrast:he(),grayscale:L(),hueRotate:he(),invert:L(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[L_,cs],inset:A(),margin:A(),opacity:he(),padding:I(),saturate:he(),scale:he(),sepia:L(),skew:he(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Ee]}],container:["container"],columns:[{columns:[ds]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),Ee]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ba,Ee]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ee]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Ba,Ee]}],"grid-cols":[{"grid-cols":[Va]}],"col-start-end":[{col:["auto",{span:["full",Ba,Ee]},Ee]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Va]}],"row-start-end":[{row:["auto",{span:[Ba,Ee]},Ee]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ee]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ee,t]}],"min-w":[{"min-w":[Ee,t,"min","max","fit"]}],"max-w":[{"max-w":[Ee,t,"none","full","min","max","fit","prose",{screen:[ds]},ds]}],h:[{h:[Ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ds,cs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ym]}],"font-family":[{font:[Va]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ee]}],"line-clamp":[{"line-clamp":["none",li,Ym]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sr,Ee]}],"list-image":[{"list-image":["none",Ee]}],"list-style-type":[{list:["none","disc","decimal",Ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sr,cs]}],"underline-offset":[{"underline-offset":["auto",Sr,Ee]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),U_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",z_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},V_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[Sr,Ee]}],"outline-w":[{outline:[Sr,cs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Sr,cs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ds,H_]}],"shadow-color":[{shadow:[Va]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ds,Ee]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ee]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",Ee]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Ba,Ee]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ee]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sr,cs,Ym]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function Y(...e){return Q_(R0(e))}function id(){var e;if(typeof document!="undefined")return(e=document.getElementById("doi-admin-root"))!=null?e:void 0}const G_=HE,J0=f.forwardRef(({className:e,...t},n)=>r.jsx(S0,{ref:n,className:Y("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));J0.displayName=S0.displayName;const X_=ri("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),eb=f.forwardRef(({className:e,variant:t,...n},s)=>r.jsx(C0,{ref:s,className:Y(X_({variant:t}),e),...n}));eb.displayName=C0.displayName;const Y_=f.forwardRef(({className:e,...t},n)=>r.jsx(_0,{ref:n,className:Y("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Y_.displayName=_0.displayName;const tb=f.forwardRef(({className:e,...t},n)=>r.jsx(P0,{ref:n,className:Y("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:r.jsx(od,{className:"h-4 w-4"})}));tb.displayName=P0.displayName;const nb=f.forwardRef(({className:e,...t},n)=>r.jsx(k0,{ref:n,className:Y("text-sm font-semibold",e),...t}));nb.displayName=k0.displayName;const rb=f.forwardRef(({className:e,...t},n)=>r.jsx(E0,{ref:n,className:Y("text-sm opacity-90",e),...t}));rb.displayName=E0.displayName;function Z_(){const{toasts:e}=Q2();return r.jsxs(G_,{children:[e.map(function({id:t,title:n,description:s,action:o,...i}){return r.jsxs(eb,{...i,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(nb,{children:n}),s&&r.jsx(rb,{children:s})]}),o,r.jsx(tb,{})]},t)}),r.jsx(J0,{})]})}var J_=(e,t,n,s,o,i,a,l)=>{let d=document.documentElement,u=["light","dark"];function h(x){(Array.isArray(e)?e:[e]).forEach(w=>{let b=w==="class",j=b&&i?o.map(g=>i[g]||g):o;b?(d.classList.remove(...j),d.classList.add(i&&i[x]?i[x]:x)):d.setAttribute(w,x)}),m(x)}function m(x){l&&u.includes(x)&&(d.style.colorScheme=x)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)h(s);else try{let x=localStorage.getItem(t)||n,w=a&&x==="system"?y():x;h(w)}catch(x){}},eP=f.createContext(void 0),tP={setTheme:e=>{},themes:[]},nP=()=>{var e;return(e=f.useContext(eP))!=null?e:tP};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:o,defaultTheme:i,value:a,themes:l,nonce:d,scriptProps:u})=>{let h=JSON.stringify([n,t,i,e,l,a,s,o]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window=="undefined"?d:"",dangerouslySetInnerHTML:{__html:`(${J_.toString()})(${h})`}})});var rP=e=>{switch(e){case"success":return iP;case"info":return lP;case"warning":return aP;case"error":return cP;default:return null}},sP=Array(12).fill(0),oP=({visible:e,className:t})=>V.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},V.createElement("div",{className:"sonner-spinner"},sP.map((n,s)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),iP=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),aP=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),lP=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),cP=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),dP=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),uP=()=>{let[e,t]=V.useState(document.hidden);return V.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Zm=1,fP=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...s}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Zm++,i=this.toasts.find(l=>l.id===o),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:a,title:n}):l):this.addToast({title:n,...s,dismissible:a,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=e instanceof Promise?e:e(),o=n!==void 0,i,a=s.then(async d=>{if(i=["resolve",d],V.isValidElement(d))o=!1,this.create({id:n,type:"default",message:d});else if(hP(d)&&!d.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${d.status}`):t.error,h=typeof t.description=="function"?await t.description(`HTTP error! status: ${d.status}`):t.description;this.create({id:n,type:"error",message:u,description:h})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(d):t.success,h=typeof t.description=="function"?await t.description(d):t.description;this.create({id:n,type:"success",message:u,description:h})}}).catch(async d=>{if(i=["reject",d],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(d):t.error,h=typeof t.description=="function"?await t.description(d):t.description;this.create({id:n,type:"error",message:u,description:h})}}).finally(()=>{var d;o&&(this.dismiss(n),n=void 0),(d=t.finally)==null||d.call(t)}),l=()=>new Promise((d,u)=>a.then(()=>i[0]==="reject"?u(i[1]):d(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Zm++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},zt=new fP,mP=(e,t)=>{let n=(t==null?void 0:t.id)||Zm++;return zt.addToast({title:e,...t,id:n}),n},hP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",pP=mP,xP=()=>zt.toasts,gP=()=>zt.getActiveToasts(),K=Object.assign(pP,{success:zt.success,info:zt.info,warning:zt.warning,error:zt.error,custom:zt.custom,message:zt.message,promise:zt.promise,dismiss:zt.dismiss,loading:zt.loading},{getHistory:xP,getToasts:gP});function vP(e,{insertAt:t}={}){if(typeof document=="undefined")return;let n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}vP(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
404 `);function ad(e){return e.label!==void 0}var yP=3,bP="32px",jP="16px",sb=4e3,wP=356,NP=14,SP=20,CP=200;function Pn(...e){return e.filter(Boolean).join(" ")}function kP(e){let[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}var EP=e=>{var t,n,s,o,i,a,l,d,u,h,m;let{invert:y,toast:x,unstyled:w,interacting:b,setHeights:j,visibleToasts:g,heights:p,index:v,toasts:N,expanded:S,removeToast:C,defaultRichColors:P,closeButton:k,style:O,cancelButtonStyle:T,actionButtonStyle:A,className:I="",descriptionClassName:U="",duration:M,position:re,gap:F,loadingIcon:X,expandByDefault:D,classNames:L,icons:J,closeButtonAriaLabel:he="Close toast",pauseWhenPageIsHidden:_}=e,[$,B]=V.useState(null),[se,Ne]=V.useState(null),[q,xe]=V.useState(!1),[R,ee]=V.useState(!1),[pe,Ce]=V.useState(!1),[Ve,it]=V.useState(!1),[ut,Et]=V.useState(!1),[lr,Ps]=V.useState(0),[Mi,jo]=V.useState(0),tn=V.useRef(x.duration||M||sb),yl=V.useRef(null),cr=V.useRef(null),Qd=v===0,Gd=v+1<=g,At=x.type,Mr=x.dismissible!==!1,dr=x.className||"",bn=x.descriptionClassName||"",nn=V.useMemo(()=>p.findIndex(ke=>ke.toastId===x.id)||0,[p,x.id]),wo=V.useMemo(()=>{var ke;return(ke=x.closeButton)!=null?ke:k},[x.closeButton,k]),Ts=V.useMemo(()=>x.duration||M||sb,[x.duration,M]),Dr=V.useRef(0),Di=V.useRef(0),wN=V.useRef(0),Fi=V.useRef(null),[i3,a3]=re.split("-"),NN=V.useMemo(()=>p.reduce((ke,ze,Ge)=>Ge>=nn?ke:ke+ze.height,0),[p,nn]),SN=uP(),l3=x.invert||y,Np=At==="loading";Di.current=V.useMemo(()=>nn*F+NN,[nn,NN]),V.useEffect(()=>{tn.current=Ts},[Ts]),V.useEffect(()=>{xe(!0)},[]),V.useEffect(()=>{let ke=cr.current;if(ke){let ze=ke.getBoundingClientRect().height;return jo(ze),j(Ge=>[{toastId:x.id,height:ze,position:x.position},...Ge]),()=>j(Ge=>Ge.filter(Ln=>Ln.toastId!==x.id))}},[j,x.id]),V.useLayoutEffect(()=>{if(!q)return;let ke=cr.current,ze=ke.style.height;ke.style.height="auto";let Ge=ke.getBoundingClientRect().height;ke.style.height=ze,jo(Ge),j(Ln=>Ln.find($n=>$n.toastId===x.id)?Ln.map($n=>$n.toastId===x.id?{...$n,height:Ge}:$n):[{toastId:x.id,height:Ge,position:x.position},...Ln])},[q,x.title,x.description,j,x.id]);let Rs=V.useCallback(()=>{ee(!0),Ps(Di.current),j(ke=>ke.filter(ze=>ze.toastId!==x.id)),setTimeout(()=>{C(x)},CP)},[x,C,j,Di]);V.useEffect(()=>{if(x.promise&&At==="loading"||x.duration===1/0||x.type==="loading")return;let ke;return S||b||_&&SN?(()=>{if(wN.current<Dr.current){let ze=new Date().getTime()-Dr.current;tn.current=tn.current-ze}wN.current=new Date().getTime()})():tn.current!==1/0&&(Dr.current=new Date().getTime(),ke=setTimeout(()=>{var ze;(ze=x.onAutoClose)==null||ze.call(x,x),Rs()},tn.current)),()=>clearTimeout(ke)},[S,b,x,At,_,SN,Rs]),V.useEffect(()=>{x.delete&&Rs()},[Rs,x.delete]);function c3(){var ke,ze,Ge;return J!=null&&J.loading?V.createElement("div",{className:Pn(L==null?void 0:L.loader,(ke=x==null?void 0:x.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":At==="loading"},J.loading):X?V.createElement("div",{className:Pn(L==null?void 0:L.loader,(ze=x==null?void 0:x.classNames)==null?void 0:ze.loader,"sonner-loader"),"data-visible":At==="loading"},X):V.createElement(oP,{className:Pn(L==null?void 0:L.loader,(Ge=x==null?void 0:x.classNames)==null?void 0:Ge.loader),visible:At==="loading"})}return V.createElement("li",{tabIndex:0,ref:cr,className:Pn(I,dr,L==null?void 0:L.toast,(t=x==null?void 0:x.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[At],(n=x==null?void 0:x.classNames)==null?void 0:n[At]),"data-sonner-toast":"","data-rich-colors":(s=x.richColors)!=null?s:P,"data-styled":!(x.jsx||x.unstyled||w),"data-mounted":q,"data-promise":!!x.promise,"data-swiped":ut,"data-removed":R,"data-visible":Gd,"data-y-position":i3,"data-x-position":a3,"data-index":v,"data-front":Qd,"data-swiping":pe,"data-dismissible":Mr,"data-type":At,"data-invert":l3,"data-swipe-out":Ve,"data-swipe-direction":se,"data-expanded":!!(S||D&&q),style:{"--index":v,"--toasts-before":v,"--z-index":N.length-v,"--offset":`${R?lr:Di.current}px`,"--initial-height":D?"auto":`${Mi}px`,...O,...x.style},onDragEnd:()=>{Ce(!1),B(null),Fi.current=null},onPointerDown:ke=>{Np||!Mr||(yl.current=new Date,Ps(Di.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(Ce(!0),Fi.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,ze,Ge,Ln;if(Ve||!Mr)return;Fi.current=null;let $n=Number(((ke=cr.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Os=Number(((ze=cr.current)==null?void 0:ze.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),No=new Date().getTime()-((Ge=yl.current)==null?void 0:Ge.getTime()),zn=$==="x"?$n:Os,As=Math.abs(zn)/No;if(Math.abs(zn)>=SP||As>.11){Ps(Di.current),(Ln=x.onDismiss)==null||Ln.call(x,x),Ne($==="x"?$n>0?"right":"left":Os>0?"down":"up"),Rs(),it(!0),Et(!1);return}Ce(!1),B(null)},onPointerMove:ke=>{var ze,Ge,Ln,$n;if(!Fi.current||!Mr||((ze=window.getSelection())==null?void 0:ze.toString().length)>0)return;let Os=ke.clientY-Fi.current.y,No=ke.clientX-Fi.current.x,zn=(Ge=e.swipeDirections)!=null?Ge:kP(re);!$&&(Math.abs(No)>1||Math.abs(Os)>1)&&B(Math.abs(No)>Math.abs(Os)?"x":"y");let As={x:0,y:0};$==="y"?(zn.includes("top")||zn.includes("bottom"))&&(zn.includes("top")&&Os<0||zn.includes("bottom")&&Os>0)&&(As.y=Os):$==="x"&&(zn.includes("left")||zn.includes("right"))&&(zn.includes("left")&&No<0||zn.includes("right")&&No>0)&&(As.x=No),(Math.abs(As.x)>0||Math.abs(As.y)>0)&&Et(!0),(Ln=cr.current)==null||Ln.style.setProperty("--swipe-amount-x",`${As.x}px`),($n=cr.current)==null||$n.style.setProperty("--swipe-amount-y",`${As.y}px`)}},wo&&!x.jsx?V.createElement("button",{"aria-label":he,"data-disabled":Np,"data-close-button":!0,onClick:Np||!Mr?()=>{}:()=>{var ke;Rs(),(ke=x.onDismiss)==null||ke.call(x,x)},className:Pn(L==null?void 0:L.closeButton,(o=x==null?void 0:x.classNames)==null?void 0:o.closeButton)},(i=J==null?void 0:J.close)!=null?i:dP):null,x.jsx||f.isValidElement(x.title)?x.jsx?x.jsx:typeof x.title=="function"?x.title():x.title:V.createElement(V.Fragment,null,At||x.icon||x.promise?V.createElement("div",{"data-icon":"",className:Pn(L==null?void 0:L.icon,(a=x==null?void 0:x.classNames)==null?void 0:a.icon)},x.promise||x.type==="loading"&&!x.icon?x.icon||c3():null,x.type!=="loading"?x.icon||(J==null?void 0:J[At])||rP(At):null):null,V.createElement("div",{"data-content":"",className:Pn(L==null?void 0:L.content,(l=x==null?void 0:x.classNames)==null?void 0:l.content)},V.createElement("div",{"data-title":"",className:Pn(L==null?void 0:L.title,(d=x==null?void 0:x.classNames)==null?void 0:d.title)},typeof x.title=="function"?x.title():x.title),x.description?V.createElement("div",{"data-description":"",className:Pn(U,bn,L==null?void 0:L.description,(u=x==null?void 0:x.classNames)==null?void 0:u.description)},typeof x.description=="function"?x.description():x.description):null),f.isValidElement(x.cancel)?x.cancel:x.cancel&&ad(x.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:x.cancelButtonStyle||T,onClick:ke=>{var ze,Ge;ad(x.cancel)&&Mr&&((Ge=(ze=x.cancel).onClick)==null||Ge.call(ze,ke),Rs())},className:Pn(L==null?void 0:L.cancelButton,(h=x==null?void 0:x.classNames)==null?void 0:h.cancelButton)},x.cancel.label):null,f.isValidElement(x.action)?x.action:x.action&&ad(x.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:x.actionButtonStyle||A,onClick:ke=>{var ze,Ge;ad(x.action)&&((Ge=(ze=x.action).onClick)==null||Ge.call(ze,ke),!ke.defaultPrevented&&Rs())},className:Pn(L==null?void 0:L.actionButton,(m=x==null?void 0:x.classNames)==null?void 0:m.actionButton)},x.action.label):null))};function ob(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function _P(e,t){let n={};return[e,t].forEach((s,o)=>{let i=o===1,a=i?"--mobile-offset":"--offset",l=i?jP:bP;function d(u){["top","right","bottom","left"].forEach(h=>{n[`${a}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof s=="number"||typeof s=="string"?d(s):typeof s=="object"?["top","right","bottom","left"].forEach(u=>{s[u]===void 0?n[`${a}-${u}`]=l:n[`${a}-${u}`]=typeof s[u]=="number"?`${s[u]}px`:s[u]}):d(l)}),n}var PP=f.forwardRef(function(e,t){let{invert:n,position:s="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:a,className:l,offset:d,mobileOffset:u,theme:h="light",richColors:m,duration:y,style:x,visibleToasts:w=yP,toastOptions:b,dir:j=ob(),gap:g=NP,loadingIcon:p,icons:v,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:S}=e,[C,P]=V.useState([]),k=V.useMemo(()=>Array.from(new Set([s].concat(C.filter(_=>_.position).map(_=>_.position)))),[C,s]),[O,T]=V.useState([]),[A,I]=V.useState(!1),[U,M]=V.useState(!1),[re,F]=V.useState(h!=="system"?h:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=V.useRef(null),D=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=V.useRef(null),J=V.useRef(!1),he=V.useCallback(_=>{P($=>{var B;return(B=$.find(se=>se.id===_.id))!=null&&B.delete||zt.dismiss(_.id),$.filter(({id:se})=>se!==_.id)})},[]);return V.useEffect(()=>zt.subscribe(_=>{if(_.dismiss){P($=>$.map(B=>B.id===_.id?{...B,delete:!0}:B));return}setTimeout(()=>{ry.flushSync(()=>{P($=>{let B=$.findIndex(se=>se.id===_.id);return B!==-1?[...$.slice(0,B),{...$[B],..._},...$.slice(B+1)]:[_,...$]})})})}),[]),V.useEffect(()=>{if(h!=="system"){F(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window=="undefined")return;let _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:$})=>{F($?"dark":"light")})}catch($){_.addListener(({matches:B})=>{try{F(B?"dark":"light")}catch(se){console.error(se)}})}},[h]),V.useEffect(()=>{C.length<=1&&I(!1)},[C]),V.useEffect(()=>{let _=$=>{var B,se;o.every(Ne=>$[Ne]||$.code===Ne)&&(I(!0),(B=X.current)==null||B.focus()),$.code==="Escape"&&(document.activeElement===X.current||(se=X.current)!=null&&se.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[o]),V.useEffect(()=>{if(X.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,J.current=!1)}},[X.current]),V.createElement("section",{ref:t,"aria-label":`${N} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((_,$)=>{var B;let[se,Ne]=_.split("-");return C.length?V.createElement("ol",{key:_,dir:j==="auto"?ob():j,tabIndex:-1,ref:X,className:l,"data-sonner-toaster":!0,"data-theme":re,"data-y-position":se,"data-lifted":A&&C.length>1&&!i,"data-x-position":Ne,style:{"--front-toast-height":`${((B=O[0])==null?void 0:B.height)||0}px`,"--width":`${wP}px`,"--gap":`${g}px`,...x,..._P(d,u)},onBlur:q=>{J.current&&!q.currentTarget.contains(q.relatedTarget)&&(J.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||J.current||(J.current=!0,L.current=q.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{U||I(!1)},onDragEnd:()=>I(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},C.filter(q=>!q.position&&$===0||q.position===_).map((q,xe)=>{var R,ee;return V.createElement(EP,{key:q.id,icons:v,index:xe,toast:q,defaultRichColors:m,duration:(R=b==null?void 0:b.duration)!=null?R:y,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:n,visibleToasts:w,closeButton:(ee=b==null?void 0:b.closeButton)!=null?ee:a,interacting:U,position:_,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,removeToast:he,toasts:C.filter(pe=>pe.position==q.position),heights:O.filter(pe=>pe.position==q.position),setHeights:T,expandByDefault:i,gap:g,loadingIcon:p,expanded:A,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const TP=({...e})=>{const{theme:t="system"}=nP();return r.jsx(PP,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var RP=Sl[" useId ".trim().toString()]||(()=>{}),OP=0;function Tn(e){const[t,n]=f.useState(RP());return ht(()=>{n(s=>s!=null?s:String(OP++))},[e]),e||(t?`radix-${t}`:"")}const AP=["top","right","bottom","left"],us=Math.min,Xt=Math.max,ld=Math.round,cd=Math.floor,Gn=e=>({x:e,y:e}),IP={left:"right",right:"left",bottom:"top",top:"bottom"};function Jm(e,t,n){return Xt(e,us(t,n))}function Cr(e,t){return typeof e=="function"?e(t):e}function kr(e){return e.split("-")[0]}function di(e){return e.split("-")[1]}function eh(e){return e==="x"?"y":"x"}function th(e){return e==="y"?"height":"width"}function Xn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function nh(e){return eh(Xn(e))}function MP(e,t,n){n===void 0&&(n=!1);const s=di(e),o=nh(e),i=th(o);let a=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=dd(a)),[a,dd(a)]}function DP(e){const t=dd(e);return[rh(e),t,rh(t)]}function rh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ib=["left","right"],ab=["right","left"],FP=["top","bottom"],LP=["bottom","top"];function $P(e,t,n){switch(e){case"top":case"bottom":return n?t?ab:ib:t?ib:ab;case"left":case"right":return t?FP:LP;default:return[]}}function zP(e,t,n,s){const o=di(e);let i=$P(kr(e),n==="start",s);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(rh)))),i}function dd(e){const t=kr(e);return IP[t]+e.slice(t.length)}function UP(e){return{top:0,right:0,bottom:0,left:0,...e}}function lb(e){return typeof e!="number"?UP(e):{top:e,right:e,bottom:e,left:e}}function ud(e){const{x:t,y:n,width:s,height:o}=e;return{width:s,height:o,top:n,left:t,right:t+s,bottom:n+o,x:t,y:n}}function cb(e,t,n){let{reference:s,floating:o}=e;const i=Xn(t),a=nh(t),l=th(a),d=kr(t),u=i==="y",h=s.x+s.width/2-o.width/2,m=s.y+s.height/2-o.height/2,y=s[l]/2-o[l]/2;let x;switch(d){case"top":x={x:h,y:s.y-o.height};break;case"bottom":x={x:h,y:s.y+s.height};break;case"right":x={x:s.x+s.width,y:m};break;case"left":x={x:s.x-o.width,y:m};break;default:x={x:s.x,y:s.y}}switch(di(t)){case"start":x[a]-=y*(n&&u?-1:1);break;case"end":x[a]+=y*(n&&u?-1:1);break}return x}async function BP(e,t){var n;t===void 0&&(t={});const{x:s,y:o,platform:i,rects:a,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:y=!1,padding:x=0}=Cr(t,e),w=lb(x),j=l[y?m==="floating"?"reference":"floating":m],g=ud(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(j)))==null||n?j:j.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:d})),p=m==="floating"?{x:s,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),N=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=ud(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:p,offsetParent:v,strategy:d}):p);return{top:(g.top-S.top+w.top)/N.y,bottom:(S.bottom-g.bottom+w.bottom)/N.y,left:(g.left-S.left+w.left)/N.x,right:(S.right-g.right+w.right)/N.x}}const VP=50,HP=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:BP},d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:m}=cb(u,s,d),y=s,x=0;const w={};for(let b=0;b<i.length;b++){const j=i[b];if(!j)continue;const{name:g,fn:p}=j,{x:v,y:N,data:S,reset:C}=await p({x:h,y:m,initialPlacement:s,placement:y,strategy:o,middlewareData:w,rects:u,platform:l,elements:{reference:e,floating:t}});h=v!=null?v:h,m=N!=null?N:m,w[g]={...w[g],...S},C&&x<VP&&(x++,typeof C=="object"&&(C.placement&&(y=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:h,y:m}=cb(u,y,d)),b=-1)}return{x:h,y:m,placement:y,strategy:o,middlewareData:w}},WP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:o,rects:i,platform:a,elements:l,middlewareData:d}=t,{element:u,padding:h=0}=Cr(e,t)||{};if(u==null)return{};const m=lb(h),y={x:n,y:s},x=nh(o),w=th(x),b=await a.getDimensions(u),j=x==="y",g=j?"top":"left",p=j?"bottom":"right",v=j?"clientHeight":"clientWidth",N=i.reference[w]+i.reference[x]-y[x]-i.floating[w],S=y[x]-i.reference[x],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let P=C?C[v]:0;(!P||!await(a.isElement==null?void 0:a.isElement(C)))&&(P=l.floating[v]||i.floating[w]);const k=N/2-S/2,O=P/2-b[w]/2-1,T=us(m[g],O),A=us(m[p],O),I=T,U=P-b[w]-A,M=P/2-b[w]/2+k,re=Jm(I,M,U),F=!d.arrow&&di(o)!=null&&M!==re&&i.reference[w]/2-(M<I?T:A)-b[w]/2<0,X=F?M<I?M-I:M-U:0;return{[x]:y[x]+X,data:{[x]:re,centerOffset:M-re-X,...F&&{alignmentOffset:X}},reset:F}}}),qP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:d,elements:u}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...j}=Cr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=kr(o),p=Xn(l),v=kr(l)===l,N=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=y||(v||!b?[dd(l)]:DP(l)),C=w!=="none";!y&&C&&S.push(...zP(l,b,w,N));const P=[l,...S],k=await d.detectOverflow(t,j),O=[];let T=((s=i.flip)==null?void 0:s.overflows)||[];if(h&&O.push(k[g]),m){const M=MP(o,a,N);O.push(k[M[0]],k[M[1]])}if(T=[...T,{placement:o,overflows:O}],!O.every(M=>M<=0)){var A,I;const M=(((A=i.flip)==null?void 0:A.index)||0)+1,re=P[M];if(re&&(!(m==="alignment"?p!==Xn(re):!1)||T.every(D=>Xn(D.placement)===p?D.overflows[0]>0:!0)))return{data:{index:M,overflows:T},reset:{placement:re}};let F=(I=T.filter(X=>X.overflows[0]<=0).sort((X,D)=>X.overflows[1]-D.overflows[1])[0])==null?void 0:I.placement;if(!F)switch(x){case"bestFit":{var U;const X=(U=T.filter(D=>{if(C){const L=Xn(D.placement);return L===p||L==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(L=>L>0).reduce((L,J)=>L+J,0)]).sort((D,L)=>D[1]-L[1])[0])==null?void 0:U[0];X&&(F=X);break}case"initialPlacement":F=l;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function db(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ub(e){return AP.some(t=>e[t]>=0)}const KP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:o="referenceHidden",...i}=Cr(e,t);switch(o){case"referenceHidden":{const a=await s.detectOverflow(t,{...i,elementContext:"reference"}),l=db(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ub(l)}}}case"escaped":{const a=await s.detectOverflow(t,{...i,altBoundary:!0}),l=db(a,n.floating);return{data:{escapedOffsets:l,escaped:ub(l)}}}default:return{}}}}},fb=new Set(["left","top"]);async function QP(e,t){const{placement:n,platform:s,elements:o}=e,i=await(s.isRTL==null?void 0:s.isRTL(o.floating)),a=kr(n),l=di(n),d=Xn(n)==="y",u=fb.has(a)?-1:1,h=i&&d?-1:1,m=Cr(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof w=="number"&&(x=l==="end"?w*-1:w),d?{x:x*h,y:y*u}:{x:y*u,y:x*h}}const GP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:o,y:i,placement:a,middlewareData:l}=t,d=await QP(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:a}}}}},XP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:d={fn:g=>{let{x:p,y:v}=g;return{x:p,y:v}}},...u}=Cr(e,t),h={x:n,y:s},m=await i.detectOverflow(t,u),y=Xn(kr(o)),x=eh(y);let w=h[x],b=h[y];if(a){const g=x==="y"?"top":"left",p=x==="y"?"bottom":"right",v=w+m[g],N=w-m[p];w=Jm(v,w,N)}if(l){const g=y==="y"?"top":"left",p=y==="y"?"bottom":"right",v=b+m[g],N=b-m[p];b=Jm(v,b,N)}const j=d.fn({...t,[x]:w,[y]:b});return{...j,data:{x:j.x-n,y:j.y-s,enabled:{[x]:a,[y]:l}}}}}},YP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:d=!0,crossAxis:u=!0}=Cr(e,t),h={x:n,y:s},m=Xn(o),y=eh(m);let x=h[y],w=h[m];const b=Cr(l,t),j=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const v=y==="y"?"height":"width",N=i.reference[y]-i.floating[v]+j.mainAxis,S=i.reference[y]+i.reference[v]-j.mainAxis;x<N?x=N:x>S&&(x=S)}if(u){var g,p;const v=y==="y"?"width":"height",N=fb.has(kr(o)),S=i.reference[m]-i.floating[v]+(N&&((g=a.offset)==null?void 0:g[m])||0)+(N?0:j.crossAxis),C=i.reference[m]+i.reference[v]+(N?0:((p=a.offset)==null?void 0:p[m])||0)-(N?j.crossAxis:0);w<S?w=S:w>C&&(w=C)}return{[y]:x,[m]:w}}}},ZP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:d=()=>{},...u}=Cr(e,t),h=await a.detectOverflow(t,u),m=kr(o),y=di(o),x=Xn(o)==="y",{width:w,height:b}=i.floating;let j,g;m==="top"||m==="bottom"?(j=m,g=y===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=m,j=y==="end"?"top":"bottom");const p=b-h.top-h.bottom,v=w-h.left-h.right,N=us(b-h[j],p),S=us(w-h[g],v),C=!t.middlewareData.shift;let P=N,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=v),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(P=p),C&&!y){const T=Xt(h.left,0),A=Xt(h.right,0),I=Xt(h.top,0),U=Xt(h.bottom,0);x?k=w-2*(T!==0||A!==0?T+A:Xt(h.left,h.right)):P=b-2*(I!==0||U!==0?I+U:Xt(h.top,h.bottom))}await d({...t,availableWidth:k,availableHeight:P});const O=await a.getDimensions(l.floating);return w!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}};function fd(){return typeof window!="undefined"}function ui(e){return mb(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yn(e){var t;return(t=(mb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mb(e){return fd()?e instanceof Node||e instanceof Yt(e).Node:!1}function Rn(e){return fd()?e instanceof Element||e instanceof Yt(e).Element:!1}function Er(e){return fd()?e instanceof HTMLElement||e instanceof Yt(e).HTMLElement:!1}function hb(e){return!fd()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot}function Ha(e){const{overflow:t,overflowX:n,overflowY:s,display:o}=On(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&o!=="inline"&&o!=="contents"}function JP(e){return/^(table|td|th)$/.test(ui(e))}function md(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const eT=/transform|translate|scale|rotate|perspective|filter/,tT=/paint|layout|strict|content/,ro=e=>!!e&&e!=="none";let sh;function oh(e){const t=Rn(e)?On(e):e;return ro(t.transform)||ro(t.translate)||ro(t.scale)||ro(t.rotate)||ro(t.perspective)||!ih()&&(ro(t.backdropFilter)||ro(t.filter))||eT.test(t.willChange||"")||tT.test(t.contain||"")}function nT(e){let t=fs(e);for(;Er(t)&&!fi(t);){if(oh(t))return t;if(md(t))return null;t=fs(t)}return null}function ih(){return sh==null&&(sh=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),sh}function fi(e){return/^(html|body|#document)$/.test(ui(e))}function On(e){return Yt(e).getComputedStyle(e)}function hd(e){return Rn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fs(e){if(ui(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hb(e)&&e.host||Yn(e);return hb(t)?t.host:t}function pb(e){const t=fs(e);return fi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Er(t)&&Ha(t)?t:pb(t)}function Wa(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=pb(e),i=o===((s=e.ownerDocument)==null?void 0:s.body),a=Yt(o);if(i){const l=ah(a);return t.concat(a,a.visualViewport||[],Ha(o)?o:[],l&&n?Wa(l):[])}else return t.concat(o,Wa(o,[],n))}function ah(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xb(e){const t=On(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=Er(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:s,l=ld(n)!==i||ld(s)!==a;return l&&(n=i,s=a),{width:n,height:s,$:l}}function lh(e){return Rn(e)?e:e.contextElement}function mi(e){const t=lh(e);if(!Er(t))return Gn(1);const n=t.getBoundingClientRect(),{width:s,height:o,$:i}=xb(t);let a=(i?ld(n.width):n.width)/s,l=(i?ld(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const rT=Gn(0);function gb(e){const t=Yt(e);return!ih()||!t.visualViewport?rT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yt(e)?!1:t}function so(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=lh(e);let a=Gn(1);t&&(s?Rn(s)&&(a=mi(s)):a=mi(e));const l=sT(i,n,s)?gb(i):Gn(0);let d=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,h=o.width/a.x,m=o.height/a.y;if(i){const y=Yt(i),x=s&&Rn(s)?Yt(s):s;let w=y,b=ah(w);for(;b&&s&&x!==w;){const j=mi(b),g=b.getBoundingClientRect(),p=On(b),v=g.left+(b.clientLeft+parseFloat(p.paddingLeft))*j.x,N=g.top+(b.clientTop+parseFloat(p.paddingTop))*j.y;d*=j.x,u*=j.y,h*=j.x,m*=j.y,d+=v,u+=N,w=Yt(b),b=ah(w)}}return ud({width:h,height:m,x:d,y:u})}function pd(e,t){const n=hd(e).scrollLeft;return t?t.left+n:so(Yn(e)).left+n}function vb(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-pd(e,n),o=n.top+t.scrollTop;return{x:s,y:o}}function oT(e){let{elements:t,rect:n,offsetParent:s,strategy:o}=e;const i=o==="fixed",a=Yn(s),l=t?md(t.floating):!1;if(s===a||l&&i)return n;let d={scrollLeft:0,scrollTop:0},u=Gn(1);const h=Gn(0),m=Er(s);if((m||!m&&!i)&&((ui(s)!=="body"||Ha(a))&&(d=hd(s)),m)){const x=so(s);u=mi(s),h.x=x.x+s.clientLeft,h.y=x.y+s.clientTop}const y=a&&!m&&!i?vb(a,d):Gn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+h.x+y.x,y:n.y*u.y-d.scrollTop*u.y+h.y+y.y}}function iT(e){return Array.from(e.getClientRects())}function aT(e){const t=Yn(e),n=hd(e),s=e.ownerDocument.body,o=Xt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=Xt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let a=-n.scrollLeft+pd(e);const l=-n.scrollTop;return On(s).direction==="rtl"&&(a+=Xt(t.clientWidth,s.clientWidth)-o),{width:o,height:i,x:a,y:l}}const yb=25;function lT(e,t){const n=Yt(e),s=Yn(e),o=n.visualViewport;let i=s.clientWidth,a=s.clientHeight,l=0,d=0;if(o){i=o.width,a=o.height;const h=ih();(!h||h&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}const u=pd(s);if(u<=0){const h=s.ownerDocument,m=h.body,y=getComputedStyle(m),x=h.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,w=Math.abs(s.clientWidth-m.clientWidth-x);w<=yb&&(i-=w)}else u<=yb&&(i+=u);return{width:i,height:a,x:l,y:d}}function cT(e,t){const n=so(e,!0,t==="fixed"),s=n.top+e.clientTop,o=n.left+e.clientLeft,i=Er(e)?mi(e):Gn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,d=o*i.x,u=s*i.y;return{width:a,height:l,x:d,y:u}}function bb(e,t,n){let s;if(t==="viewport")s=lT(e,n);else if(t==="document")s=aT(Yn(e));else if(Rn(t))s=cT(t,n);else{const o=gb(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ud(s)}function jb(e,t){const n=fs(e);return n===t||!Rn(n)||fi(n)?!1:On(n).position==="fixed"||jb(n,t)}function dT(e,t){const n=t.get(e);if(n)return n;let s=Wa(e,[],!1).filter(l=>Rn(l)&&ui(l)!=="body"),o=null;const i=On(e).position==="fixed";let a=i?fs(e):e;for(;Rn(a)&&!fi(a);){const l=On(a),d=oh(a);!d&&l.position==="fixed"&&(o=null),(i?!d&&!o:!d&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Ha(a)&&!d&&jb(e,a))?s=s.filter(h=>h!==a):o=l,a=fs(a)}return t.set(e,s),s}function uT(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const a=[...n==="clippingAncestors"?md(t)?[]:dT(t,this._c):[].concat(n),s],l=bb(t,a[0],o);let d=l.top,u=l.right,h=l.bottom,m=l.left;for(let y=1;y<a.length;y++){const x=bb(t,a[y],o);d=Xt(x.top,d),u=us(x.right,u),h=us(x.bottom,h),m=Xt(x.left,m)}return{width:u-m,height:h-d,x:m,y:d}}function fT(e){const{width:t,height:n}=xb(e);return{width:t,height:n}}function mT(e,t,n){const s=Er(t),o=Yn(t),i=n==="fixed",a=so(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const d=Gn(0);function u(){d.x=pd(o)}if(s||!s&&!i)if((ui(t)!=="body"||Ha(o))&&(l=hd(t)),s){const x=so(t,!0,i,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&u();i&&!s&&o&&u();const h=o&&!s&&!i?vb(o,l):Gn(0),m=a.left+l.scrollLeft-d.x-h.x,y=a.top+l.scrollTop-d.y-h.y;return{x:m,y,width:a.width,height:a.height}}function ch(e){return On(e).position==="static"}function wb(e,t){if(!Er(e)||On(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Yn(e)===n&&(n=n.ownerDocument.body),n}function Nb(e,t){const n=Yt(e);if(md(e))return n;if(!Er(e)){let o=fs(e);for(;o&&!fi(o);){if(Rn(o)&&!ch(o))return o;o=fs(o)}return n}let s=wb(e,t);for(;s&&JP(s)&&ch(s);)s=wb(s,t);return s&&fi(s)&&ch(s)&&!oh(s)?n:s||nT(e)||n}const hT=async function(e){const t=this.getOffsetParent||Nb,n=this.getDimensions,s=await n(e.floating);return{reference:mT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function pT(e){return On(e).direction==="rtl"}const xT={convertOffsetParentRelativeRectToViewportRelativeRect:oT,getDocumentElement:Yn,getClippingRect:uT,getOffsetParent:Nb,getElementRects:hT,getClientRects:iT,getDimensions:fT,getScale:mi,isElement:Rn,isRTL:pT};function Sb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gT(e,t){let n=null,s;const o=Yn(e);function i(){var l;clearTimeout(s),(l=n)==null||l.disconnect(),n=null}function a(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),i();const u=e.getBoundingClientRect(),{left:h,top:m,width:y,height:x}=u;if(l||t(),!y||!x)return;const w=cd(m),b=cd(o.clientWidth-(h+y)),j=cd(o.clientHeight-(m+x)),g=cd(h),v={rootMargin:-w+"px "+-b+"px "+-j+"px "+-g+"px",threshold:Xt(0,us(1,d))||1};let N=!0;function S(C){const P=C[0].intersectionRatio;if(P!==d){if(!N)return a();P?a(!1,P):s=setTimeout(()=>{a(!1,1e-7)},1e3)}P===1&&!Sb(u,e.getBoundingClientRect())&&a(),N=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch(C){n=new IntersectionObserver(S,v)}n.observe(e)}return a(!0),i}function vT(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,u=lh(e),h=o||i?[...u?Wa(u):[],...t?Wa(t):[]]:[];h.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const m=u&&l?gT(u,n):null;let y=-1,x=null;a&&(x=new ResizeObserver(g=>{let[p]=g;p&&p.target===u&&x&&t&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var v;(v=x)==null||v.observe(t)})),n()}),u&&!d&&x.observe(u),t&&x.observe(t));let w,b=d?so(e):null;d&&j();function j(){const g=so(e);b&&!Sb(b,g)&&n(),b=g,w=requestAnimationFrame(j)}return n(),()=>{var g;h.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),m==null||m(),(g=x)==null||g.disconnect(),x=null,d&&cancelAnimationFrame(w)}}const yT=GP,bT=XP,jT=qP,wT=ZP,NT=KP,Cb=WP,ST=YP,CT=(e,t,n)=>{const s=new Map,o={platform:xT,...n},i={...o.platform,_c:s};return HP(e,t,{...o,platform:i})};var kT=typeof document!="undefined",ET=function(){},xd=kT?f.useLayoutEffect:ET;function gd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!gd(e[s],t[s]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,o[s]))return!1;for(s=n;s--!==0;){const i=o[s];if(!(i==="_owner"&&e.$$typeof)&&!gd(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function kb(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Eb(e,t){const n=kb(e);return Math.round(t*n)/n}function dh(e){const t=f.useRef(e);return xd(()=>{t.current=e}),t}function _T(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:d,open:u}=e,[h,m]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,x]=f.useState(s);gd(y,s)||x(s);const[w,b]=f.useState(null),[j,g]=f.useState(null),p=f.useCallback(D=>{D!==C.current&&(C.current=D,b(D))},[]),v=f.useCallback(D=>{D!==P.current&&(P.current=D,g(D))},[]),N=i||w,S=a||j,C=f.useRef(null),P=f.useRef(null),k=f.useRef(h),O=d!=null,T=dh(d),A=dh(o),I=dh(u),U=f.useCallback(()=>{if(!C.current||!P.current)return;const D={placement:t,strategy:n,middleware:y};A.current&&(D.platform=A.current),CT(C.current,P.current,D).then(L=>{const J={...L,isPositioned:I.current!==!1};M.current&&!gd(k.current,J)&&(k.current=J,Xs.flushSync(()=>{m(J)}))})},[y,t,n,A,I]);xd(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,m(D=>({...D,isPositioned:!1})))},[u]);const M=f.useRef(!1);xd(()=>(M.current=!0,()=>{M.current=!1}),[]),xd(()=>{if(N&&(C.current=N),S&&(P.current=S),N&&S){if(T.current)return T.current(N,S,U);U()}},[N,S,U,T,O]);const re=f.useMemo(()=>({reference:C,floating:P,setReference:p,setFloating:v}),[p,v]),F=f.useMemo(()=>({reference:N,floating:S}),[N,S]),X=f.useMemo(()=>{const D={position:n,left:0,top:0};if(!F.floating)return D;const L=Eb(F.floating,h.x),J=Eb(F.floating,h.y);return l?{...D,transform:"translate("+L+"px, "+J+"px)",...kb(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:J}},[n,l,F.floating,h.x,h.y]);return f.useMemo(()=>({...h,update:U,refs:re,elements:F,floatingStyles:X}),[h,U,re,F,X])}const PT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:o}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?Cb({element:s.current,padding:o}).fn(n):{}:s?Cb({element:s,padding:o}).fn(n):{}}}},TT=(e,t)=>{const n=yT(e);return{name:n.name,fn:n.fn,options:[e,t]}},RT=(e,t)=>{const n=bT(e);return{name:n.name,fn:n.fn,options:[e,t]}},OT=(e,t)=>({fn:ST(e).fn,options:[e,t]}),AT=(e,t)=>{const n=jT(e);return{name:n.name,fn:n.fn,options:[e,t]}},IT=(e,t)=>{const n=wT(e);return{name:n.name,fn:n.fn,options:[e,t]}},MT=(e,t)=>{const n=NT(e);return{name:n.name,fn:n.fn,options:[e,t]}},DT=(e,t)=>{const n=PT(e);return{name:n.name,fn:n.fn,options:[e,t]}};var FT="Arrow",_b=f.forwardRef((e,t)=>{const{children:n,width:s=10,height:o=5,...i}=e;return r.jsx(be.svg,{...i,ref:t,width:s,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});_b.displayName=FT;var LT=_b;function uh(e){const[t,n]=f.useState(void 0);return ht(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const d=i.borderBoxSize,u=Array.isArray(d)?d[0]:d;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var fh="Popper",[Pb,vd]=fn(fh),[$T,Tb]=Pb(fh),Rb=e=>{const{__scopePopper:t,children:n}=e,[s,o]=f.useState(null);return r.jsx($T,{scope:t,anchor:s,onAnchorChange:o,children:n})};Rb.displayName=fh;var Ob="PopperAnchor",Ab=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...o}=e,i=Tb(Ob,n),a=f.useRef(null),l=De(t,a),d=f.useRef(null);return f.useEffect(()=>{const u=d.current;d.current=(s==null?void 0:s.current)||a.current,u!==d.current&&i.onAnchorChange(d.current)}),s?null:r.jsx(be.div,{...o,ref:l})});Ab.displayName=Ob;var mh="PopperContent",[zT,UT]=Pb(mh),Ib=f.forwardRef((e,t)=>{var q,xe,R,ee,pe,Ce,Ve,it;const{__scopePopper:n,side:s="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:w,...b}=e,j=Tb(mh,n),[g,p]=f.useState(null),v=De(t,ut=>p(ut)),[N,S]=f.useState(null),C=uh(N),P=(q=C==null?void 0:C.width)!=null?q:0,k=(xe=C==null?void 0:C.height)!=null?xe:0,O=s+(i!=="center"?"-"+i:""),T=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},A=Array.isArray(u)?u:[u],I=A.length>0,U={padding:T,boundary:A.filter(VT),altBoundary:I},{refs:M,floatingStyles:re,placement:F,isPositioned:X,middlewareData:D}=_T({strategy:"fixed",placement:O,whileElementsMounted:(...ut)=>vT(...ut,{animationFrame:x==="always"}),elements:{reference:j.anchor},middleware:[TT({mainAxis:o+k,alignmentAxis:a}),d&&RT({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?OT():void 0,...U}),d&&AT({...U}),IT({...U,apply:({elements:ut,rects:Et,availableWidth:lr,availableHeight:Ps})=>{const{width:Mi,height:jo}=Et.reference,tn=ut.floating.style;tn.setProperty("--radix-popper-available-width",`${lr}px`),tn.setProperty("--radix-popper-available-height",`${Ps}px`),tn.setProperty("--radix-popper-anchor-width",`${Mi}px`),tn.setProperty("--radix-popper-anchor-height",`${jo}px`)}}),N&&DT({element:N,padding:l}),HT({arrowWidth:P,arrowHeight:k}),y&&MT({strategy:"referenceHidden",...U})]}),[L,J]=Fb(F),he=mn(w);ht(()=>{X&&(he==null||he())},[X,he]);const _=(R=D.arrow)==null?void 0:R.x,$=(ee=D.arrow)==null?void 0:ee.y,B=((pe=D.arrow)==null?void 0:pe.centerOffset)!==0,[se,Ne]=f.useState();return ht(()=>{g&&Ne(window.getComputedStyle(g).zIndex)},[g]),r.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:X?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(Ce=D.transformOrigin)==null?void 0:Ce.x,(Ve=D.transformOrigin)==null?void 0:Ve.y].join(" "),...((it=D.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(zT,{scope:n,placedSide:L,onArrowChange:S,arrowX:_,arrowY:$,shouldHideArrow:B,children:r.jsx(be.div,{"data-side":L,"data-align":J,...b,ref:v,style:{...b.style,animation:X?void 0:"none"}})})})});Ib.displayName=mh;var Mb="PopperArrow",BT={top:"bottom",right:"left",bottom:"top",left:"right"},Db=f.forwardRef(function(t,n){const{__scopePopper:s,...o}=t,i=UT(Mb,s),a=BT[i.placedSide];return r.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:r.jsx(LT,{...o,ref:n,style:{...o.style,display:"block"}})})});Db.displayName=Mb;function VT(e){return e!==null}var HT=e=>({name:"transformOrigin",options:e,fn(t){var j,g,p,v,N;const{placement:n,rects:s,middlewareData:o}=t,a=((j=o.arrow)==null?void 0:j.centerOffset)!==0,l=a?0:e.arrowWidth,d=a?0:e.arrowHeight,[u,h]=Fb(n),m={start:"0%",center:"50%",end:"100%"}[h],y=((p=(g=o.arrow)==null?void 0:g.x)!=null?p:0)+l/2,x=((N=(v=o.arrow)==null?void 0:v.y)!=null?N:0)+d/2;let w="",b="";return u==="bottom"?(w=a?m:`${y}px`,b=`${-d}px`):u==="top"?(w=a?m:`${y}px`,b=`${s.floating.height+d}px`):u==="right"?(w=`${-d}px`,b=a?m:`${x}px`):u==="left"&&(w=`${s.floating.width+d}px`,b=a?m:`${x}px`),{data:{x:w,y:b}}}});function Fb(e){const[t,n="center"]=e.split("-");return[t,n]}var Lb=Rb,$b=Ab,zb=Ib,Ub=Db,WT=Symbol("radix.slottable");function qT(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=WT,t}var[yd]=fn("Tooltip",[vd]),bd=vd(),Bb="TooltipProvider",KT=700,hh="tooltip.open",[QT,ph]=yd(Bb),Vb=e=>{const{__scopeTooltip:t,delayDuration:n=KT,skipDelayDuration:s=300,disableHoverableContent:o=!1,children:i}=e,a=f.useRef(!0),l=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),r.jsx(QT,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(d.current),a.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>a.current=!0,s)},[s]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Vb.displayName=Bb;var qa="Tooltip",[GT,Ka]=yd(qa),Hb=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:l}=e,d=ph(qa,e.__scopeTooltip),u=bd(t),[h,m]=f.useState(null),y=Tn(),x=f.useRef(0),w=a!=null?a:d.disableHoverableContent,b=l!=null?l:d.delayDuration,j=f.useRef(!1),[g,p]=hn({prop:s,defaultProp:o!=null?o:!1,onChange:P=>{P?(d.onOpen(),document.dispatchEvent(new CustomEvent(hh))):d.onClose(),i==null||i(P)},caller:qa}),v=f.useMemo(()=>g?j.current?"delayed-open":"instant-open":"closed",[g]),N=f.useCallback(()=>{window.clearTimeout(x.current),x.current=0,j.current=!1,p(!0)},[p]),S=f.useCallback(()=>{window.clearTimeout(x.current),x.current=0,p(!1)},[p]),C=f.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{j.current=!0,p(!0),x.current=0},b)},[b,p]);return f.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),r.jsx(Lb,{...u,children:r.jsx(GT,{scope:t,contentId:y,open:g,stateAttribute:v,trigger:h,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?C():N()},[d.isOpenDelayedRef,C,N]),onTriggerLeave:f.useCallback(()=>{w?S():(window.clearTimeout(x.current),x.current=0)},[S,w]),onOpen:N,onClose:S,disableHoverableContent:w,children:n})})};Hb.displayName=qa;var xh="TooltipTrigger",Wb=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,o=Ka(xh,n),i=ph(xh,n),a=bd(n),l=f.useRef(null),d=De(t,l,o.onTriggerChange),u=f.useRef(!1),h=f.useRef(!1),m=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),r.jsx($b,{asChild:!0,...a,children:r.jsx(be.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...s,ref:d,onPointerMove:me(e.onPointerMove,y=>{y.pointerType!=="touch"&&!h.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),h.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{o.onTriggerLeave(),h.current=!1}),onPointerDown:me(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:me(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});Wb.displayName=xh;var gh="TooltipPortal",[XT,YT]=yd(gh,{forceMount:void 0}),qb=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:o}=e,i=Ka(gh,t);return r.jsx(XT,{scope:t,forceMount:n,children:r.jsx(Kn,{present:n||i.open,children:r.jsx(Fa,{asChild:!0,container:o,children:s})})})};qb.displayName=gh;var hi="TooltipContent",Kb=f.forwardRef((e,t)=>{const n=YT(hi,e.__scopeTooltip),{forceMount:s=n.forceMount,side:o="top",...i}=e,a=Ka(hi,e.__scopeTooltip);return r.jsx(Kn,{present:s||a.open,children:a.disableHoverableContent?r.jsx(Qb,{side:o,...i,ref:t}):r.jsx(ZT,{side:o,...i,ref:t})})}),ZT=f.forwardRef((e,t)=>{const n=Ka(hi,e.__scopeTooltip),s=ph(hi,e.__scopeTooltip),o=f.useRef(null),i=De(t,o),[a,l]=f.useState(null),{trigger:d,onClose:u}=n,h=o.current,{onPointerInTransitChange:m}=s,y=f.useCallback(()=>{l(null),m(!1)},[m]),x=f.useCallback((w,b)=>{const j=w.currentTarget,g={x:w.clientX,y:w.clientY},p=rR(g,j.getBoundingClientRect()),v=sR(g,p),N=oR(b.getBoundingClientRect()),S=aR([...v,...N]);l(S),m(!0)},[m]);return f.useEffect(()=>()=>y(),[y]),f.useEffect(()=>{if(d&&h){const w=j=>x(j,h),b=j=>x(j,d);return d.addEventListener("pointerleave",w),h.addEventListener("pointerleave",b),()=>{d.removeEventListener("pointerleave",w),h.removeEventListener("pointerleave",b)}}},[d,h,x,y]),f.useEffect(()=>{if(a){const w=b=>{const j=b.target,g={x:b.clientX,y:b.clientY},p=(d==null?void 0:d.contains(j))||(h==null?void 0:h.contains(j)),v=!iR(g,a);p?y():v&&(y(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[d,h,a,u,y]),r.jsx(Qb,{...e,ref:i})}),[JT,eR]=yd(qa,{isInside:!1}),tR=qT("TooltipContent"),Qb=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,d=Ka(hi,n),u=bd(n),{onClose:h}=d;return f.useEffect(()=>(document.addEventListener(hh,h),()=>document.removeEventListener(hh,h)),[h]),f.useEffect(()=>{if(d.trigger){const m=y=>{const x=y.target;x!=null&&x.contains(d.trigger)&&h()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,h]),r.jsx(Da,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:h,children:r.jsxs(zb,{"data-state":d.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(tR,{children:s}),r.jsx(JT,{scope:n,isInside:!0,children:r.jsx(kE,{id:d.contentId,role:"tooltip",children:o||s})})]})})});Kb.displayName=hi;var Gb="TooltipArrow",nR=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,o=bd(n);return eR(Gb,n).isInside?null:r.jsx(Ub,{...o,...s,ref:t})});nR.displayName=Gb;function rR(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,s,o,i)){case i:return"left";case o:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function sR(e,t,n=5){const s=[];switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function oR(e){const{top:t,right:n,bottom:s,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:s},{x:o,y:s}]}function iR(e,t){const{x:n,y:s}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i],d=t[a],u=l.x,h=l.y,m=d.x,y=d.y;h>s!=y>s&&n<(m-u)*(s-h)/(y-h)+u&&(o=!o)}return o}function aR(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),lR(t)}function lR(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const o=e[s];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const o=e[s];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cR=Vb,dR=Hb,uR=Wb,fR=qb,Xb=Kb;const Yb=cR,mR=dR,hR=uR,Zb=f.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(fR,{container:id(),children:r.jsx(Xb,{ref:s,sideOffset:t,className:Y("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Zb.displayName=Xb.displayName;const Jb=f.createContext(void 0);function pR({children:e}){const t=$t(),n=!!t.isProInstalled,s=!!t.isProActive,o=n?s?"pro-active":"pro-no-license":"free";return r.jsx(Jb.Provider,{value:{isProInstalled:n,isProLicenseActive:s,proState:o},children:e})}function Qa(){const e=f.useContext(Jb);if(!e)throw new Error("usePro must be used within ProProvider");return e}var xR=Symbol.for("react.lazy"),jd=Sl[" use ".trim().toString()];function gR(e){return typeof e=="object"&&e!==null&&"then"in e}function ej(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xR&&"_payload"in e&&gR(e._payload)}function vh(e){const t=vR(e),n=f.forwardRef((s,o)=>{let{children:i,...a}=s;ej(i)&&typeof jd=="function"&&(i=jd(i._payload));const l=f.Children.toArray(i),d=l.find(bR);if(d){const u=d.props.children,h=l.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var oo=vh("Slot");function vR(e){const t=f.forwardRef((n,s)=>{let{children:o,...i}=n;if(ej(o)&&typeof jd=="function"&&(o=jd(o._payload)),f.isValidElement(o)){const a=wR(o),l=jR(i,o.props);return o.type!==f.Fragment&&(l.ref=s?ni(s,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yR=Symbol("radix.slottable");function bR(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yR}function jR(e,t){const n={...t};for(const s in t){const o=e[s],i=t[s];/^on[A-Z]/.test(s)?o&&i?n[s]=(...l)=>{const d=i(...l);return o(...l),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...i}:s==="className"&&(n[s]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wR(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const yh=768;function NR(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${yh-1}px)`),s=()=>{t(window.innerWidth<yh)};return n.addEventListener("change",s),t(window.innerWidth<yh),()=>n.removeEventListener("change",s)},[]),!!e}const SR=ri("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",upgrade:"bg-success text-success-foreground hover:bg-success/90 font-semibold shadow-sm"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),H=f.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...o},i)=>{const a=s?oo:"button";return r.jsx(a,{className:Y(SR({variant:t,size:n,className:e})),ref:i,...o})});H.displayName="Button";const Pe=f.forwardRef(({className:e,type:t,...n},s)=>r.jsx("input",{type:t,className:Y("flex h-10 w-full rounded-md border border-input bg-card px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors hover:border-foreground/30",e),ref:s,...n}));Pe.displayName="Input";var CR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kR=CR.reduce((e,t)=>{const n=vh(`Primitive.${t}`),s=f.forwardRef((o,i)=>{const{asChild:a,...l}=o,d=a?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...l,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),ER="Separator",tj="horizontal",_R=["horizontal","vertical"],nj=f.forwardRef((e,t)=>{const{decorative:n,orientation:s=tj,...o}=e,i=PR(s)?s:tj,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return r.jsx(kR.div,{"data-orientation":i,...l,...o,ref:t})});nj.displayName=ER;function PR(e){return _R.includes(e)}var rj=nj;const Ga=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...s},o)=>r.jsx(rj,{ref:o,decorative:n,orientation:t,className:Y("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));Ga.displayName=rj.displayName;var bh="focusScope.autoFocusOnMount",jh="focusScope.autoFocusOnUnmount",sj={bubbles:!1,cancelable:!0},TR="FocusScope",wh=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,d]=f.useState(null),u=mn(o),h=mn(i),m=f.useRef(null),y=De(t,b=>d(b)),x=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(s){let b=function(v){if(x.paused||!l)return;const N=v.target;l.contains(N)?m.current=N:ms(m.current,{select:!0})},j=function(v){if(x.paused||!l)return;const N=v.relatedTarget;N!==null&&(l.contains(N)||ms(m.current,{select:!0}))},g=function(v){if(document.activeElement===document.body)for(const S of v)S.removedNodes.length>0&&ms(l)};document.addEventListener("focusin",b),document.addEventListener("focusout",j);const p=new MutationObserver(g);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",j),p.disconnect()}}},[s,l,x.paused]),f.useEffect(()=>{if(l){aj.add(x);const b=document.activeElement;if(!l.contains(b)){const g=new CustomEvent(bh,sj);l.addEventListener(bh,u),l.dispatchEvent(g),g.defaultPrevented||(RR(DR(oj(l)),{select:!0}),document.activeElement===b&&ms(l))}return()=>{l.removeEventListener(bh,u),setTimeout(()=>{const g=new CustomEvent(jh,sj);l.addEventListener(jh,h),l.dispatchEvent(g),g.defaultPrevented||ms(b!=null?b:document.body,{select:!0}),l.removeEventListener(jh,h),aj.remove(x)},0)}}},[l,u,h,x]);const w=f.useCallback(b=>{if(!n&&!s||x.paused)return;const j=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,g=document.activeElement;if(j&&g){const p=b.currentTarget,[v,N]=OR(p);v&&N?!b.shiftKey&&g===N?(b.preventDefault(),n&&ms(v,{select:!0})):b.shiftKey&&g===v&&(b.preventDefault(),n&&ms(N,{select:!0})):g===p&&b.preventDefault()}},[n,s,x.paused]);return r.jsx(be.div,{tabIndex:-1,...a,ref:y,onKeyDown:w})});wh.displayName=TR;function RR(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(ms(s,{select:t}),document.activeElement!==n)return}function OR(e){const t=oj(e),n=ij(t,e),s=ij(t.reverse(),e);return[n,s]}function oj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ij(e,t){for(const n of e)if(!AR(n,{upTo:t}))return n}function AR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function IR(e){return e instanceof HTMLInputElement&&"select"in e}function ms(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&IR(e)&&t&&e.select()}}var aj=MR();function MR(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=lj(e,t),e.unshift(t)},remove(t){var n;e=lj(e,t),(n=e[0])==null||n.resume()}}}function lj(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function DR(e){return e.filter(t=>t.tagName!=="A")}var Nh=0;function cj(){f.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:dj()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:dj()),Nh++,()=>{Nh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),Nh--}},[])}function dj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zn=function(){return Zn=Object.assign||function(t){for(var n,s=1,o=arguments.length;s<o;s++){n=arguments[s];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zn.apply(this,arguments)};function uj(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]]);return n}function FR(e,t,n){if(n||arguments.length===2)for(var s=0,o=t.length,i;s<o;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var wd="right-scroll-bar-position",Nd="width-before-scroll-bar",LR="with-scroll-bars-hidden",$R="--removed-body-scroll-bar-size";function Sh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zR(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var o=n.value;o!==s&&(n.value=s,n.callback(s,o))}}}})[0];return n.callback=t,n.facade}var UR=typeof window!="undefined"?f.useLayoutEffect:f.useEffect,fj=new WeakMap;function BR(e,t){var n=zR(null,function(s){return e.forEach(function(o){return Sh(o,s)})});return UR(function(){var s=fj.get(n);if(s){var o=new Set(s),i=new Set(e),a=n.current;o.forEach(function(l){i.has(l)||Sh(l,null)}),i.forEach(function(l){o.has(l)||Sh(l,a)})}fj.set(n,e)},[e]),n}function VR(e){return e}function HR(e,t){t===void 0&&(t=VR);var n=[],s=!1,o={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,s);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(i){for(s=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){s=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(i),a=n}var d=function(){var h=a;a=[],h.forEach(i)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(h){a.push(h),u()},filter:function(h){return a=a.filter(h),n}}}};return o}function WR(e){e===void 0&&(e={});var t=HR(null);return t.options=Zn({async:!0,ssr:!1},e),t}var mj=function(e){var t=e.sideCar,n=uj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return f.createElement(s,Zn({},n))};mj.isSideCarExport=!0;function qR(e,t){return e.useMedium(t),mj}var hj=WR(),Ch=function(){},Sd=f.forwardRef(function(e,t){var n=f.useRef(null),s=f.useState({onScrollCapture:Ch,onWheelCapture:Ch,onTouchMoveCapture:Ch}),o=s[0],i=s[1],a=e.forwardProps,l=e.children,d=e.className,u=e.removeScrollBar,h=e.enabled,m=e.shards,y=e.sideCar,x=e.noRelative,w=e.noIsolation,b=e.inert,j=e.allowPinchZoom,g=e.as,p=g===void 0?"div":g,v=e.gapMode,N=uj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=y,C=BR([n,t]),P=Zn(Zn({},N),o);return f.createElement(f.Fragment,null,h&&f.createElement(S,{sideCar:hj,removeScrollBar:u,shards:m,noRelative:x,noIsolation:w,inert:b,setCallbacks:i,allowPinchZoom:!!j,lockRef:n,gapMode:v}),a?f.cloneElement(f.Children.only(l),Zn(Zn({},P),{ref:C})):f.createElement(p,Zn({},P,{className:d,ref:C}),l))});Sd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Sd.classNames={fullWidth:Nd,zeroRight:wd};var KR=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function QR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KR();return t&&e.setAttribute("nonce",t),e}function GR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var YR=function(){var e=0,t=null;return{add:function(n){e==0&&(t=QR())&&(GR(t,n),XR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZR=function(){var e=YR();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pj=function(){var e=ZR(),t=function(n){var s=n.styles,o=n.dynamic;return e(s,o),null};return t},JR={left:0,top:0,right:0,gap:0},kh=function(e){return parseInt(e||"",10)||0},e4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[kh(n),kh(s),kh(o)]},t4=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return JR;var t=e4(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},n4=pj(),pi="data-scroll-locked",r4=function(e,t,n,s){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
405 .`.concat(LR,` {
406 overflow: hidden `).concat(s,`;
407 padding-right: `).concat(l,"px ").concat(s,`;
408 }
409 body[`).concat(pi,`] {
410 overflow: hidden `).concat(s,`;
411 overscroll-behavior: contain;
412 `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
413 padding-left: `.concat(o,`px;
414 padding-top: `).concat(i,`px;
415 padding-right: `).concat(a,`px;
416 margin-left:0;
417 margin-top:0;
418 margin-right: `).concat(l,"px ").concat(s,`;
419 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(s,";")].filter(Boolean).join(""),`
420 }
421
422 .`).concat(wd,` {
423 right: `).concat(l,"px ").concat(s,`;
424 }
425
426 .`).concat(Nd,` {
427 margin-right: `).concat(l,"px ").concat(s,`;
428 }
429
430 .`).concat(wd," .").concat(wd,` {
431 right: 0 `).concat(s,`;
432 }
433
434 .`).concat(Nd," .").concat(Nd,` {
435 margin-right: 0 `).concat(s,`;
436 }
437
438 body[`).concat(pi,`] {
439 `).concat($R,": ").concat(l,`px;
440 }
441 `)},xj=function(){var e=parseInt(document.body.getAttribute(pi)||"0",10);return isFinite(e)?e:0},s4=function(){f.useEffect(function(){return document.body.setAttribute(pi,(xj()+1).toString()),function(){var e=xj()-1;e<=0?document.body.removeAttribute(pi):document.body.setAttribute(pi,e.toString())}},[])},o4=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,o=s===void 0?"margin":s;s4();var i=f.useMemo(function(){return t4(o)},[o]);return f.createElement(n4,{styles:r4(i,!t,o,n?"":"!important")})},Eh=!1;if(typeof window!="undefined")try{var Cd=Object.defineProperty({},"passive",{get:function(){return Eh=!0,!0}});window.addEventListener("test",Cd,Cd),window.removeEventListener("test",Cd,Cd)}catch(e){Eh=!1}var xi=Eh?{passive:!1}:!1,i4=function(e){return e.tagName==="TEXTAREA"},gj=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!i4(e)&&n[t]==="visible")},a4=function(e){return gj(e,"overflowY")},l4=function(e){return gj(e,"overflowX")},vj=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot!="undefined"&&s instanceof ShadowRoot&&(s=s.host);var o=yj(e,s);if(o){var i=bj(e,s),a=i[1],l=i[2];if(a>l)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},c4=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},d4=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},yj=function(e,t){return e==="v"?a4(t):l4(t)},bj=function(e,t){return e==="v"?c4(t):d4(t)},u4=function(e,t){return e==="h"&&t==="rtl"?-1:1},f4=function(e,t,n,s,o){var i=u4(e,window.getComputedStyle(t).direction),a=i*s,l=n.target,d=t.contains(l),u=!1,h=a>0,m=0,y=0;do{if(!l)break;var x=bj(e,l),w=x[0],b=x[1],j=x[2],g=b-j-i*w;(w||g)&&yj(e,l)&&(m+=g,y+=w);var p=l.parentNode;l=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return(h&&Math.abs(m)<1||!h&&Math.abs(y)<1)&&(u=!0),u},kd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jj=function(e){return[e.deltaX,e.deltaY]},wj=function(e){return e&&"current"in e?e.current:e},m4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},h4=function(e){return`
442 .block-interactivity-`.concat(e,` {pointer-events: none;}
443 .allow-interactivity-`).concat(e,` {pointer-events: all;}
444 `)},p4=0,gi=[];function x4(e){var t=f.useRef([]),n=f.useRef([0,0]),s=f.useRef(),o=f.useState(p4++)[0],i=f.useState(pj)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=FR([e.lockRef.current],(e.shards||[]).map(wj),!0).filter(Boolean);return b.forEach(function(j){return j.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=f.useCallback(function(b,j){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!a.current.allowPinchZoom;var g=kd(b),p=n.current,v="deltaX"in b?b.deltaX:p[0]-g[0],N="deltaY"in b?b.deltaY:p[1]-g[1],S,C=b.target,P=Math.abs(v)>Math.abs(N)?"h":"v";if("touches"in b&&P==="h"&&C.type==="range")return!1;var k=window.getSelection(),O=k&&k.anchorNode,T=O?O===C||O.contains(C):!1;if(T)return!1;var A=vj(P,C);if(!A)return!0;if(A?S=P:(S=P==="v"?"h":"v",A=vj(P,C)),!A)return!1;if(!s.current&&"changedTouches"in b&&(v||N)&&(s.current=S),!S)return!0;var I=s.current||S;return f4(I,j,b,I==="h"?v:N)},[]),d=f.useCallback(function(b){var j=b;if(!(!gi.length||gi[gi.length-1]!==i)){var g="deltaY"in j?jj(j):kd(j),p=t.current.filter(function(S){return S.name===j.type&&(S.target===j.target||j.target===S.shadowParent)&&m4(S.delta,g)})[0];if(p&&p.should){j.cancelable&&j.preventDefault();return}if(!p){var v=(a.current.shards||[]).map(wj).filter(Boolean).filter(function(S){return S.contains(j.target)}),N=v.length>0?l(j,v[0]):!a.current.noIsolation;N&&j.cancelable&&j.preventDefault()}}},[]),u=f.useCallback(function(b,j,g,p){var v={name:b,delta:j,target:g,should:p,shadowParent:g4(g)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(N){return N!==v})},1)},[]),h=f.useCallback(function(b){n.current=kd(b),s.current=void 0},[]),m=f.useCallback(function(b){u(b.type,jj(b),b.target,l(b,e.lockRef.current))},[]),y=f.useCallback(function(b){u(b.type,kd(b),b.target,l(b,e.lockRef.current))},[]);f.useEffect(function(){return gi.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",d,xi),document.addEventListener("touchmove",d,xi),document.addEventListener("touchstart",h,xi),function(){gi=gi.filter(function(b){return b!==i}),document.removeEventListener("wheel",d,xi),document.removeEventListener("touchmove",d,xi),document.removeEventListener("touchstart",h,xi)}},[]);var x=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(i,{styles:h4(o)}):null,x?f.createElement(o4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function g4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const v4=qR(hj,x4);var _h=f.forwardRef(function(e,t){return f.createElement(Sd,Zn({},e,{ref:t,sideCar:v4}))});_h.classNames=Sd.classNames;var y4=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vi=new WeakMap,Ed=new WeakMap,_d={},Ph=0,Nj=function(e){return e&&(e.host||Nj(e.parentNode))},b4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Nj(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},j4=function(e,t,n,s){var o=b4(t,Array.isArray(e)?e:[e]);_d[n]||(_d[n]=new WeakMap);var i=_d[n],a=[],l=new Set,d=new Set(o),u=function(m){!m||l.has(m)||(l.add(m),u(m.parentNode))};o.forEach(u);var h=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(y){if(l.has(y))h(y);else try{var x=y.getAttribute(s),w=x!==null&&x!=="false",b=(vi.get(y)||0)+1,j=(i.get(y)||0)+1;vi.set(y,b),i.set(y,j),a.push(y),b===1&&w&&Ed.set(y,!0),j===1&&y.setAttribute(n,"true"),w||y.setAttribute(s,"true")}catch(g){console.error("aria-hidden: cannot operate on ",y,g)}})};return h(t),l.clear(),Ph++,function(){a.forEach(function(m){var y=vi.get(m)-1,x=i.get(m)-1;vi.set(m,y),i.set(m,x),y||(Ed.has(m)||m.removeAttribute(s),Ed.delete(m)),x||m.removeAttribute(n)}),Ph--,Ph||(vi=new WeakMap,vi=new WeakMap,Ed=new WeakMap,_d={})}},Sj=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=y4(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),j4(s,o,n,"aria-hidden")):function(){return null}};function w4(e){const t=N4(e),n=f.forwardRef((s,o)=>{const{children:i,...a}=s,l=f.Children.toArray(i),d=l.find(C4);if(d){const u=d.props.children,h=l.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function N4(e){const t=f.forwardRef((n,s)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const a=E4(o),l=k4(i,o.props);return o.type!==f.Fragment&&(l.ref=s?ni(s,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S4=Symbol("radix.slottable");function C4(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===S4}function k4(e,t){const n={...t};for(const s in t){const o=e[s],i=t[s];/^on[A-Z]/.test(s)?o&&i?n[s]=(...l)=>{const d=i(...l);return o(...l),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...i}:s==="className"&&(n[s]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function E4(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pd="Dialog",[Cj]=fn(Pd),[_4,An]=Cj(Pd),kj=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=f.useRef(null),d=f.useRef(null),[u,h]=hn({prop:s,defaultProp:o!=null?o:!1,onChange:i,caller:Pd});return r.jsx(_4,{scope:t,triggerRef:l,contentRef:d,contentId:Tn(),titleId:Tn(),descriptionId:Tn(),open:u,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(m=>!m),[h]),modal:a,children:n})};kj.displayName=Pd;var Ej="DialogTrigger",P4=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=An(Ej,n),i=De(t,o.triggerRef);return r.jsx(be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Oh(o.open),...s,ref:i,onClick:me(e.onClick,o.onOpenToggle)})});P4.displayName=Ej;var Th="DialogPortal",[T4,_j]=Cj(Th,{forceMount:void 0}),Pj=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:o}=e,i=An(Th,t);return r.jsx(T4,{scope:t,forceMount:n,children:f.Children.map(s,a=>r.jsx(Kn,{present:n||i.open,children:r.jsx(Fa,{asChild:!0,container:o,children:a})}))})};Pj.displayName=Th;var Td="DialogOverlay",Tj=f.forwardRef((e,t)=>{const n=_j(Td,e.__scopeDialog),{forceMount:s=n.forceMount,...o}=e,i=An(Td,e.__scopeDialog);return i.modal?r.jsx(Kn,{present:s||i.open,children:r.jsx(O4,{...o,ref:t})}):null});Tj.displayName=Td;var R4=w4("DialogOverlay.RemoveScroll"),O4=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=An(Td,n);return r.jsx(_h,{as:R4,allowPinchZoom:!0,shards:[o.contentRef],children:r.jsx(be.div,{"data-state":Oh(o.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),io="DialogContent",Rj=f.forwardRef((e,t)=>{const n=_j(io,e.__scopeDialog),{forceMount:s=n.forceMount,...o}=e,i=An(io,e.__scopeDialog);return r.jsx(Kn,{present:s||i.open,children:i.modal?r.jsx(A4,{...o,ref:t}):r.jsx(I4,{...o,ref:t})})});Rj.displayName=io;var A4=f.forwardRef((e,t)=>{const n=An(io,e.__scopeDialog),s=f.useRef(null),o=De(t,n.contentRef,s);return f.useEffect(()=>{const i=s.current;if(i)return Sj(i)},[]),r.jsx(Oj,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:me(e.onFocusOutside,i=>i.preventDefault())})}),I4=f.forwardRef((e,t)=>{const n=An(io,e.__scopeDialog),s=f.useRef(!1),o=f.useRef(!1);return r.jsx(Oj,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(s.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:i=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Oj=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=An(io,n),d=f.useRef(null),u=De(t,d);return cj(),r.jsxs(r.Fragment,{children:[r.jsx(wh,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:i,children:r.jsx(Da,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Oh(l.open),...a,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(M4,{titleId:l.titleId}),r.jsx(F4,{contentRef:d,descriptionId:l.descriptionId})]})]})}),Rh="DialogTitle",Aj=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=An(Rh,n);return r.jsx(be.h2,{id:o.titleId,...s,ref:t})});Aj.displayName=Rh;var Ij="DialogDescription",Mj=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=An(Ij,n);return r.jsx(be.p,{id:o.descriptionId,...s,ref:t})});Mj.displayName=Ij;var Dj="DialogClose",Fj=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=An(Dj,n);return r.jsx(be.button,{type:"button",...s,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});Fj.displayName=Dj;function Oh(e){return e?"open":"closed"}var Lj="DialogTitleWarning",[h3,$j]=G2(Lj,{contentName:io,titleName:Rh,docsSlug:"dialog"}),M4=({titleId:e})=>{const t=$j(Lj),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
445
446 If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
447
448 For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},D4="DialogDescriptionWarning",F4=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$j(D4).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},zj=kj,Uj=Pj,Rd=Tj,Od=Rj,Ad=Aj,Id=Mj,Bj=Fj;const L4=zj,Vj=({container:e,...t})=>r.jsx(Uj,{container:e!=null?e:id(),...t});Vj.displayName="SheetPortal";const Hj=f.forwardRef(({className:e,...t},n)=>r.jsx(Rd,{className:Y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Hj.displayName=Rd.displayName;const $4=ri("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Wj=f.forwardRef(({side:e="right",className:t,children:n,...s},o)=>r.jsxs(Vj,{children:[r.jsx(Hj,{}),r.jsxs(Od,{ref:o,className:Y($4({side:e}),t),...s,children:[n,r.jsxs(Bj,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(od,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Wj.displayName=Od.displayName;const z4=f.forwardRef(({className:e,...t},n)=>r.jsx(Ad,{ref:n,className:Y("text-lg font-semibold text-foreground",e),...t}));z4.displayName=Ad.displayName;const U4=f.forwardRef(({className:e,...t},n)=>r.jsx(Id,{ref:n,className:Y("text-sm text-muted-foreground",e),...t}));U4.displayName=Id.displayName;function oe({className:e,...t}){return r.jsx("div",{className:Y("animate-pulse rounded-md bg-muted",e),...t})}const B4="sidebar:state",V4=60*60*24*7,H4="16rem",W4="18rem",q4="3rem",K4="b",qj=f.createContext(null);function Xa(){const e=f.useContext(qj);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Kj=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:s,style:o,children:i,...a},l)=>{const d=NR(),[u,h]=f.useState(!1),[m,y]=f.useState(e),x=t!=null?t:m,w=f.useCallback(p=>{const v=typeof p=="function"?p(x):p;n?n(v):y(v),document.cookie=`${B4}=${v}; path=/; max-age=${V4}`},[n,x]),b=f.useCallback(()=>d?h(p=>!p):w(p=>!p),[d,w,h]);f.useEffect(()=>{const p=v=>{v.key===K4&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[b]);const j=x?"expanded":"collapsed",g=f.useMemo(()=>({state:j,open:x,setOpen:w,isMobile:d,openMobile:u,setOpenMobile:h,toggleSidebar:b}),[j,x,w,d,u,h,b]);return r.jsx(qj.Provider,{value:g,children:r.jsx(Yb,{delayDuration:0,children:r.jsx("div",{style:{"--sidebar-width":H4,"--sidebar-width-icon":q4,...o},className:Y("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",s),ref:l,...a,children:i})})})});Kj.displayName="SidebarProvider";const Qj=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:s,children:o,...i},a)=>{const{isMobile:l,state:d,openMobile:u,setOpenMobile:h}=Xa();return n==="none"?r.jsx("div",{className:Y("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",s),ref:a,...i,children:o}):l?r.jsx(L4,{open:u,onOpenChange:h,...i,children:r.jsx(Wj,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":W4},side:e,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):r.jsx("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?n:"","data-variant":t,"data-side":e,children:r.jsx("div",{className:Y("sticky top-0 z-10 hidden h-[calc(100svh-var(--wp-admin--admin-bar--height,32px))] w-[--sidebar-width] shrink-0 transition-[width] duration-200 ease-linear md:flex","group-data-[collapsible=offcanvas]:w-0 group-data-[collapsible=offcanvas]:overflow-hidden",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...i,children:r.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})})});Qj.displayName="Sidebar";const Gj=f.forwardRef(({className:e,onClick:t,...n},s)=>{const{toggleSidebar:o}=Xa();return r.jsxs(H,{ref:s,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:Y("h-7 w-7",e),onClick:i=>{t==null||t(i),o()},...n,children:[r.jsx(l_,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Gj.displayName="SidebarTrigger";const Q4=f.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:s}=Xa();return r.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:Y("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Q4.displayName="SidebarRail";const G4=f.forwardRef(({className:e,...t},n)=>r.jsx("main",{ref:n,className:Y("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));G4.displayName="SidebarInset";const X4=f.forwardRef(({className:e,...t},n)=>r.jsx(Pe,{ref:n,"data-sidebar":"input",className:Y("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));X4.displayName="SidebarInput";const Xj=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"header",className:Y("flex flex-col gap-2 p-2",e),...t}));Xj.displayName="SidebarHeader";const Yj=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"footer",className:Y("flex flex-col gap-2 p-2",e),...t}));Yj.displayName="SidebarFooter";const Y4=f.forwardRef(({className:e,...t},n)=>r.jsx(Ga,{ref:n,"data-sidebar":"separator",className:Y("mx-2 w-auto bg-sidebar-border",e),...t}));Y4.displayName="SidebarSeparator";const Zj=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"content",className:Y("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Zj.displayName="SidebarContent";const Ah=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group",className:Y("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ah.displayName="SidebarGroup";const Ih=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const o=t?oo:"div";return r.jsx(o,{ref:s,"data-sidebar":"group-label",className:Y("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Ih.displayName="SidebarGroupLabel";const Z4=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const o=t?oo:"button";return r.jsx(o,{ref:s,"data-sidebar":"group-action",className:Y("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});Z4.displayName="SidebarGroupAction";const Mh=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group-content",className:Y("w-full text-sm",e),...t}));Mh.displayName="SidebarGroupContent";const Dh=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu",className:Y("flex w-full min-w-0 flex-col gap-1",e),...t}));Dh.displayName="SidebarMenu";const Ya=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,"data-sidebar":"menu-item",className:Y("group/menu-item relative",e),...t}));Ya.displayName="SidebarMenuItem";const J4=ri("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Za=f.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:s="default",tooltip:o,className:i,...a},l)=>{const d=e?oo:"button",{isMobile:u,state:h}=Xa(),m=r.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:Y(J4({variant:n,size:s}),i),...a});return o?(typeof o=="string"&&(o={children:o}),r.jsxs(mR,{children:[r.jsx(hR,{asChild:!0,children:m}),r.jsx(Zb,{side:"right",align:"center",hidden:h!=="collapsed"||u,...o})]})):m});Za.displayName="SidebarMenuButton";const eO=f.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...s},o)=>{const i=t?oo:"button";return r.jsx(i,{ref:o,"data-sidebar":"menu-action",className:Y("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...s})});eO.displayName="SidebarMenuAction";const tO=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:Y("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));tO.displayName="SidebarMenuBadge";const nO=f.forwardRef(({className:e,showIcon:t=!1,...n},s)=>{const o=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return r.jsxs("div",{ref:s,"data-sidebar":"menu-skeleton",className:Y("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&r.jsx(oe,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r.jsx(oe,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});nO.displayName="SidebarMenuSkeleton";const rO=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:Y("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));rO.displayName="SidebarMenuSub";const sO=f.forwardRef(({...e},t)=>r.jsx("li",{ref:t,...e}));sO.displayName="SidebarMenuSubItem";const oO=f.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:s,...o},i)=>{const a=e?oo:"a";return r.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:Y("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...o})});oO.displayName="SidebarMenuSubButton";const Ja=f.forwardRef(({className:e,activeClassName:t,pendingClassName:n,to:s,...o},i)=>r.jsx(I2,{ref:i,to:s,className:({isActive:a,isPending:l})=>Y(e,a&&t,l&&n),...o}));Ja.displayName="NavLink";const iO=ri("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-success/15 text-success",pro:"border-transparent bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}});function Qe({className:e,variant:t,...n}){return r.jsx("div",{className:Y(iO({variant:t}),e),...n})}const Jj="double-opt-in",c=e=>Fe.__(e,Jj),ew=(e,t,n)=>Fe._n(e,t,n,Jj),ce=(e,...t)=>Fe.sprintf(e,...t),aO=[{title:c("Dashboard"),url:"/",icon:s_},{title:c("Opt-Ins"),url:"/optins",icon:Qn},{title:c("Forms"),url:"/forms",icon:ii},{title:c("Categories"),url:"/categories",icon:Qm},{title:c("Settings"),url:"/settings",icon:qm},{title:c("Database"),url:"/database",icon:$a},{title:c("Audit Log"),url:"/audit",icon:sd}],lO=[],cO={BarChart3:GE,LogOut:U0,UserPlus:W0,Plug:Wm,Mail:Qn,FileText:ii,Tag:Qm,Settings:qm,Palette:B0,Database:$a,ScrollText:sd,Boxes:si},el={title:c("License"),url:"/license",icon:z0},tl={title:c("Addons"),url:"/addons",icon:si};function dO(){var h;const{state:e}=Xa(),t=e==="collapsed",n=ls(),{isProInstalled:s,isProLicenseActive:o}=Qa(),i=$t(),{data:a}=Se({queryKey:["addons-manifest"],queryFn:()=>Z("/addons"),enabled:s}),d=[...((h=a==null?void 0:a.addons)!=null?h:[]).filter(m=>{var y;return m.available&&Array.isArray((y=m.ui)==null?void 0:y.sidebar)}).flatMap(m=>{var y;return((y=m.ui.sidebar)!=null?y:[]).map(x=>{var w;return{title:x.title,url:x.url,icon:(w=cO[x.icon])!=null?w:Wm}})}),...lO],u=m=>m==="/"?n.pathname==="/":n.pathname.startsWith(m);return r.jsxs(Qj,{collapsible:"icon",children:[r.jsx(Xj,{children:r.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[r.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary text-primary-foreground",children:r.jsx(Qn,{className:"h-4 w-4"})}),!t&&r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{className:"text-sm font-semibold",children:"Double Opt-In"}),r.jsxs("span",{className:"text-[10px] text-muted-foreground",children:["v",i.version]})]})]})}),r.jsxs(Zj,{children:[r.jsxs(Ah,{children:[r.jsx(Ih,{children:c("Navigation")}),r.jsx(Mh,{children:r.jsx(Dh,{children:aO.map(m=>r.jsx(Ya,{children:r.jsx(Za,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(Ja,{to:m.url,end:m.url==="/",className:"flex items-center gap-2",children:[r.jsx(m.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:m.title})]})})},m.title))})})]}),s&&r.jsxs(Ah,{children:[r.jsx(Ih,{children:c("Pro Features")}),r.jsx(Mh,{children:r.jsxs(Dh,{children:[d.map(m=>r.jsx(Ya,{children:r.jsx(Za,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(Ja,{to:m.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(m.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"flex-1",children:m.title}),!o&&r.jsxs(r.Fragment,{children:[r.jsx(Qe,{variant:"outline",className:"text-[10px] px-1.5 py-0 border-primary text-primary",children:c("PRO")}),r.jsx(Nr,{className:"h-3 w-3 text-warning shrink-0"})]})]})]})})},m.title)),r.jsx(Ya,{children:r.jsx(Za,{asChild:!0,isActive:u(el.url),tooltip:el.title,children:r.jsxs(Ja,{to:el.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(el.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:el.title})]})})}),r.jsx(Ya,{children:r.jsx(Za,{asChild:!0,isActive:u(tl.url),tooltip:tl.title,children:r.jsxs(Ja,{to:tl.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(tl.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:tl.title})]})})})]})})]})]}),r.jsxs(Yj,{children:[(i.supportUrl||i.feedbackUrl)&&r.jsxs("div",{className:"flex flex-col gap-1 px-2 pb-1",children:[i.supportUrl&&r.jsxs("a",{href:i.supportUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",children:[r.jsx(o_,{className:"h-3.5 w-3.5 shrink-0"}),!t&&c("Support")]}),i.feedbackUrl&&r.jsxs("a",{href:i.feedbackUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",children:[r.jsx(a_,{className:"h-3.5 w-3.5 shrink-0"}),!t&&c("Feedback")]})]}),r.jsx("div",{className:"px-2 py-1 text-[10px] text-muted-foreground text-center",children:!t&&c("Double Opt-In for WordPress")})]})]})}const tw=f.forwardRef(({...e},t)=>r.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));tw.displayName="Breadcrumb";const nw=f.forwardRef(({className:e,...t},n)=>r.jsx("ol",{ref:n,className:Y("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));nw.displayName="BreadcrumbList";const Fh=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,className:Y("inline-flex items-center gap-1.5",e),...t}));Fh.displayName="BreadcrumbItem";const rw=f.forwardRef(({asChild:e,className:t,...n},s)=>{const o=e?oo:"a";return r.jsx(o,{ref:s,className:Y("transition-colors hover:text-foreground",t),...n})});rw.displayName="BreadcrumbLink";const sw=f.forwardRef(({className:e,...t},n)=>r.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:Y("font-normal text-foreground",e),...t}));sw.displayName="BreadcrumbPage";const ow=({children:e,className:t,...n})=>r.jsx("li",{role:"presentation","aria-hidden":"true",className:Y("[&>svg]:size-3.5",t),...n,children:e!=null?e:r.jsx(Hm,{})});ow.displayName="BreadcrumbSeparator";const uO={"/":c("Dashboard"),"/optins":c("Opt-Ins"),"/forms":c("Forms"),"/categories":c("Categories"),"/settings":c("Settings"),"/email-templates":c("Email Templates"),"/database":c("Database"),"/analytics":c("Analytics"),"/opt-out":c("Opt-Out"),"/user-creation":c("User Creation"),"/api":c("API"),"/audit":c("Audit Log"),"/license":c("License")};function fO(){const e=ls(),t=uO[e.pathname]||c("Page");return r.jsx(Kj,{children:r.jsxs("div",{className:"min-h-[calc(100vh-var(--wp-admin--admin-bar--height,32px))] flex w-full",children:[r.jsx(dO,{}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[r.jsxs("header",{className:"sticky top-0 z-30 flex h-14 items-center gap-4 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 px-4 md:px-6",children:[r.jsx(Gj,{}),r.jsx(tw,{children:r.jsxs(nw,{children:[r.jsx(Fh,{children:r.jsx(rw,{href:"#/",children:"Double Opt-In"})}),r.jsx(ow,{}),r.jsx(Fh,{children:r.jsx(sw,{children:t})})]})})]}),r.jsx("main",{className:"flex-1 overflow-auto p-4 md:p-6",children:r.jsx(j2,{})})]})]})})}function ao({children:e,addonId:t,featureName:n}){var j,g;const s=qn(),{data:o,isLoading:i}=Se({queryKey:["addons-manifest"],queryFn:()=>Z("/addons")}),a=o==null?void 0:o.addons.find(p=>p.id===t),l=(a==null?void 0:a.available)===!0,{data:d}=Se({queryKey:["addons-catalog"],queryFn:()=>Z("/addons/catalog"),enabled:!i&&!l});if(i)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(oe,{className:"h-8 w-64"}),r.jsx(oe,{className:"h-96 w-full"})]});if(l)return r.jsx(r.Fragment,{children:e});const u=d==null?void 0:d.entries.find(p=>p.id===t),h=(j=u==null?void 0:u.status)!=null?j:"not_installed",m=(g=d==null?void 0:d.hasBundleLicense)!=null?g:!1;let y,x,w,b=si;return h==="not_installed"?(y=ce(c("%s requires the %s addon"),n,n),x=c("Install the addon to unlock this page. Bundled addons can be installed in one click on the Addons page once your Pro license is active."),w={label:c("Open Addons"),onClick:()=>s("/addons")},b=si):h==="inactive"?(y=ce(c("%s addon is installed but inactive"),n),x=c("Activate the addon to unlock this page. You can do that from the Addons page in one click."),w={label:c("Open Addons"),onClick:()=>s("/addons")},b=Ua):m?(y=ce(c("%s addon is not available"),n),x=c("Check the Addons page for diagnostic details. A prerequisite (such as a third-party plugin) may be missing."),w={label:c("Open Addons"),onClick:()=>s("/addons")},b=si):(y=ce(c("%s is included in Pro"),n),x=c("This addon is part of the Double Opt-In Pro bundle. Activate your bundle license to unlock it — one key unlocks every included module."),w={label:c("Open License"),onClick:()=>s("/license")},b=Nr),r.jsx("div",{className:"flex items-center justify-center min-h-[60vh] p-6",children:r.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-8 max-w-[480px] w-full text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-muted flex items-center justify-center mx-auto mb-4",children:r.jsx(b,{className:"h-6 w-6 text-muted-foreground"})}),r.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:y}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:x}),r.jsx(H,{onClick:w.onClick,className:"w-full",children:w.label})]})})}function Jn({id:e,data:t}){const n=f.useSyncExternalStore(Zy,()=>Jy(e),()=>[]);return n.length===0?null:r.jsx(r.Fragment,{children:n.map(({name:s,Component:o})=>r.jsx(mO,{name:s,mountId:e,children:r.jsx(o,{data:t})},s))})}class mO extends f.Component{constructor(){super(...arguments);Li(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,s){console.error(`[f12-doi] Addon component "${this.props.name}" at mount "${this.props.mountId}" threw`,n,s)}render(){return this.state.error?null:this.props.children}}const te=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:Y("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));te.displayName="Card";const le=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:Y("flex flex-col space-y-1.5 p-6",e),...t}));le.displayName="CardHeader";const de=f.forwardRef(({className:e,...t},n)=>r.jsx("h3",{ref:n,className:Y("text-2xl font-semibold leading-none tracking-tight",e),...t}));de.displayName="CardTitle";const _e=f.forwardRef(({className:e,...t},n)=>r.jsx("p",{ref:n,className:Y("text-sm text-muted-foreground",e),...t}));_e.displayName="CardDescription";const ne=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:Y("p-6 pt-0",e),...t}));ne.displayName="CardContent";const hO=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:Y("flex items-center p-6 pt-0",e),...t}));hO.displayName="CardFooter";const xn=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:Y("w-full caption-bottom text-sm",e),...t})}));xn.displayName="Table";const In=f.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:Y("[&_tr]:border-b",e),...t}));In.displayName="TableHeader";const gn=f.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:Y("[&_tr:last-child]:border-0",e),...t}));gn.displayName="TableBody";const pO=f.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:Y("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));pO.displayName="TableFooter";const Ie=f.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:Y("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Ie.displayName="TableRow";const Oe=f.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:Y("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Oe.displayName="TableHead";const fe=f.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:Y("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));fe.displayName="TableCell";const xO=f.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:Y("mt-4 text-sm text-muted-foreground",e),...t}));xO.displayName="TableCaption";function gO(){return r.jsx(te,{children:r.jsxs(ne,{className:"flex items-start gap-3 p-4",children:[r.jsx(oe,{className:"h-9 w-9 rounded-lg shrink-0"}),r.jsxs("div",{className:"space-y-2 flex-1",children:[r.jsx(oe,{className:"h-3 w-20"}),r.jsx(oe,{className:"h-7 w-16"}),r.jsx(oe,{className:"h-3 w-24"})]})]})})}function vO({rows:e=3,cols:t=3}){return r.jsxs(xn,{children:[r.jsx(In,{children:r.jsx(Ie,{children:Array.from({length:t}).map((n,s)=>r.jsx(Oe,{children:r.jsx(oe,{className:"h-3 w-16"})},s))})}),r.jsx(gn,{children:Array.from({length:e}).map((n,s)=>r.jsx(Ie,{children:Array.from({length:t}).map((o,i)=>r.jsx(fe,{children:r.jsx(oe,{className:"h-3 w-full"})},i))},s))})]})}function Lh(e){return e.toLocaleString()}function yO(){var l;const{data:e,isLoading:t}=Se({queryKey:["dashboard-stats"],queryFn:()=>Z("/dashboard/stats")}),{data:n,isLoading:s}=Se({queryKey:["dashboard-info"],queryFn:()=>Z("/dashboard/quick-info")}),o=e==null?void 0:e.data,i=n==null?void 0:n.data,a=o?[{label:c("Total Opt-Ins"),value:Lh(o.totalOptins),icon:Qn,change:o.confirmed+o.pending>0?c("Active"):c("No data")},{label:c("Confirmed"),value:Lh(o.confirmed),icon:oi,change:ce(c("%s%% conversion"),o.conversionRate)},{label:c("Pending"),value:Lh(o.pending),icon:wr,change:ce(c("%s%% awaiting"),(100-o.conversionRate).toFixed(1))}]:[];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Dashboard")}),r.jsx("p",{className:"text-muted-foreground",children:c("Overview of your Double Opt-In activity")})]}),r.jsx(Jn,{id:"dashboard.alert"}),r.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:t?Array.from({length:3}).map((d,u)=>r.jsx(gO,{},u)):a.map(d=>r.jsx(te,{children:r.jsxs(ne,{className:"flex items-start gap-3 p-4",children:[r.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(d.icon,{className:"h-4.5 w-4.5 text-primary"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:d.label}),r.jsx("p",{className:"text-2xl font-bold text-foreground",children:d.value}),r.jsxs("p",{className:"text-[11px] text-muted-foreground flex items-center gap-1",children:[r.jsx(h_,{className:"h-3 w-3 text-success"}),d.change]})]})]})},d.label))}),r.jsx(Jn,{id:"dashboard.widget"}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(de,{className:"text-base",children:c("Recent Opt-Ins")}),r.jsx(un,{to:"/optins",className:"text-xs text-primary hover:underline",children:c("View All")})]}),r.jsx(_e,{children:c("Latest opt-in submissions")})]}),r.jsx(ne,{children:t?r.jsx(vO,{rows:5,cols:4}):r.jsxs(xn,{children:[r.jsx(In,{children:r.jsxs(Ie,{children:[r.jsx(Oe,{children:c("Email")}),r.jsx(Oe,{children:c("Form")}),r.jsx(Oe,{children:c("Status")}),r.jsx(Oe,{className:"text-right",children:c("Date")})]})}),r.jsx(gn,{children:((l=o==null?void 0:o.recentOptins)!=null?l:[]).map(d=>r.jsxs(Ie,{children:[r.jsx(fe,{className:"text-sm",children:d.email}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:d.formName}),r.jsx(fe,{children:r.jsx(Qe,{variant:d.confirmed?"success":"secondary",className:"text-xs",children:d.confirmed?c("Confirmed"):c("Pending")})}),r.jsx(fe,{className:"text-right text-xs text-muted-foreground",children:d.createtime})]},d.id))})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[r.jsxs(te,{children:[r.jsx(le,{className:"pb-3",children:r.jsx(de,{className:"text-sm font-medium",children:c("Quick Info")})}),r.jsx(ne,{children:s?r.jsx("div",{className:"space-y-2",children:Array.from({length:5}).map((d,u)=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx(oe,{className:"h-3 w-20"}),r.jsx(oe,{className:"h-3 w-16"})]},u))}):i?r.jsx("dl",{className:"space-y-2 text-sm",children:[[c("Version"),i.version],[c("Token Expiry"),i.tokenExpiry],[c("Retention"),i.retention],[c("Rate Limit"),i.rateLimit],[c("License"),typeof i.licenseStatus=="object"&&i.licenseStatus!==null?i.licenseStatus.isActive?c("Pro Active"):c("Inactive"):i.licenseStatus]].map(([d,u])=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx("dt",{className:"text-muted-foreground",children:d}),r.jsx("dd",{className:"font-medium text-foreground",children:u})]},d))}):null})]}),r.jsxs(te,{children:[r.jsx(le,{className:"pb-3",children:r.jsx(de,{className:"text-sm font-medium",children:c("Quick Links")})}),r.jsx(ne,{children:r.jsx("ul",{className:"space-y-1.5 text-sm",children:[[c("All Opt-Ins"),"/optins"],[c("Form Settings"),"/forms"],[c("Global Settings"),"/settings"],[c("Analytics"),"/analytics"],[c("Database"),"/database"]].map(([d,u])=>r.jsx("li",{children:r.jsx(un,{to:u,className:"text-primary hover:underline",children:d})},d))})})]})]})]})}function $h(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Md="Checkbox",[bO]=fn(Md),[jO,zh]=bO(Md);function wO(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:o,disabled:i,form:a,name:l,onCheckedChange:d,required:u,value:h="on",internal_do_not_use_render:m}=e,[y,x]=hn({prop:n,defaultProp:o!=null?o:!1,onChange:d,caller:Md}),[w,b]=f.useState(null),[j,g]=f.useState(null),p=f.useRef(!1),v=w?!!a||!!w.closest("form"):!0,N={checked:y,disabled:i,setChecked:x,control:w,setControl:b,name:l,form:a,value:h,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:hs(o)?!1:o,isFormControl:v,bubbleInput:j,setBubbleInput:g};return r.jsx(jO,{scope:t,...N,children:NO(m)?m(N):s})}var iw="CheckboxTrigger",aw=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},o)=>{const{control:i,value:a,disabled:l,checked:d,required:u,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:y,isFormControl:x,bubbleInput:w}=zh(iw,e),b=De(o,h),j=f.useRef(d);return f.useEffect(()=>{const g=i==null?void 0:i.form;if(g){const p=()=>m(j.current);return g.addEventListener("reset",p),()=>g.removeEventListener("reset",p)}},[i,m]),r.jsx(be.button,{type:"button",role:"checkbox","aria-checked":hs(d)?"mixed":d,"aria-required":u,"data-state":fw(d),"data-disabled":l?"":void 0,disabled:l,value:a,...s,ref:b,onKeyDown:me(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:me(n,g=>{m(p=>hs(p)?!0:!p),w&&x&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})})});aw.displayName=iw;var Uh=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:o,defaultChecked:i,required:a,disabled:l,value:d,onCheckedChange:u,form:h,...m}=e;return r.jsx(wO,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:l,required:a,onCheckedChange:u,name:s,form:h,value:d,internal_do_not_use_render:({isFormControl:y})=>r.jsxs(r.Fragment,{children:[r.jsx(aw,{...m,ref:t,__scopeCheckbox:n}),y&&r.jsx(uw,{__scopeCheckbox:n})]})})});Uh.displayName=Md;var lw="CheckboxIndicator",cw=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...o}=e,i=zh(lw,n);return r.jsx(Kn,{present:s||hs(i.checked)||i.checked===!0,children:r.jsx(be.span,{"data-state":fw(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});cw.displayName=lw;var dw="CheckboxBubbleInput",uw=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:l,disabled:d,name:u,value:h,form:m,bubbleInput:y,setBubbleInput:x}=zh(dw,e),w=De(n,x),b=$h(i),j=uh(s);f.useEffect(()=>{const p=y;if(!p)return;const v=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(v,"checked").set,C=!o.current;if(b!==i&&S){const P=new Event("click",{bubbles:C});p.indeterminate=hs(i),S.call(p,hs(i)?!1:i),p.dispatchEvent(P)}},[y,b,i,o]);const g=f.useRef(hs(i)?!1:i);return r.jsx(be.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a!=null?a:g.current,required:l,disabled:d,name:u,value:h,form:m,...t,tabIndex:-1,ref:w,style:{...t.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});uw.displayName=dw;function NO(e){return typeof e=="function"}function hs(e){return e==="indeterminate"}function fw(e){return hs(e)?"indeterminate":e?"checked":"unchecked"}const nl=f.forwardRef(({className:e,...t},n)=>r.jsx(Uh,{ref:n,className:Y("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsx(cw,{className:Y("flex items-center justify-center text-current"),children:r.jsx(ed,{className:"h-4 w-4"})})}));nl.displayName=Uh.displayName;function mw(e,[t,n]){return Math.min(n,Math.max(t,e))}var SO=f.createContext(void 0);function Dd(e){const t=f.useContext(SO);return e||t||"ltr"}function CO(e){const t=kO(e),n=f.forwardRef((s,o)=>{const{children:i,...a}=s,l=f.Children.toArray(i),d=l.find(_O);if(d){const u=d.props.children,h=l.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function kO(e){const t=f.forwardRef((n,s)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const a=TO(o),l=PO(i,o.props);return o.type!==f.Fragment&&(l.ref=s?ni(s,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var EO=Symbol("radix.slottable");function _O(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===EO}function PO(e,t){const n={...t};for(const s in t){const o=e[s],i=t[s];/^on[A-Z]/.test(s)?o&&i?n[s]=(...l)=>{const d=i(...l);return o(...l),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...i}:s==="className"&&(n[s]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function TO(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var RO=[" ","Enter","ArrowUp","ArrowDown"],OO=[" ","Enter"],lo="Select",[Fd,Ld,AO]=Qc(lo),[yi]=fn(lo,[AO,vd]),$d=vd(),[IO,ps]=yi(lo),[MO,DO]=yi(lo),hw=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:o,onOpenChange:i,value:a,defaultValue:l,onValueChange:d,dir:u,name:h,autoComplete:m,disabled:y,required:x,form:w}=e,b=$d(t),[j,g]=f.useState(null),[p,v]=f.useState(null),[N,S]=f.useState(!1),C=Dd(u),[P,k]=hn({prop:s,defaultProp:o!=null?o:!1,onChange:i,caller:lo}),[O,T]=hn({prop:a,defaultProp:l,onChange:d,caller:lo}),A=f.useRef(null),I=j?w||!!j.closest("form"):!0,[U,M]=f.useState(new Set),re=Array.from(U).map(F=>F.props.value).join(";");return r.jsx(Lb,{...b,children:r.jsxs(IO,{required:x,scope:t,trigger:j,onTriggerChange:g,valueNode:p,onValueNodeChange:v,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Tn(),value:O,onValueChange:T,open:P,onOpenChange:k,dir:C,triggerPointerDownPosRef:A,disabled:y,children:[r.jsx(Fd.Provider,{scope:t,children:r.jsx(MO,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(F=>{M(X=>new Set(X).add(F))},[]),onNativeOptionRemove:f.useCallback(F=>{M(X=>{const D=new Set(X);return D.delete(F),D})},[]),children:n})}),I?r.jsxs(Lw,{"aria-hidden":!0,required:x,tabIndex:-1,name:h,autoComplete:m,value:O,onChange:F=>T(F.target.value),disabled:y,form:w,children:[O===void 0?r.jsx("option",{value:""}):null,Array.from(U)]},re):null]})})};hw.displayName=lo;var pw="SelectTrigger",xw=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...o}=e,i=$d(n),a=ps(pw,n),l=a.disabled||s,d=De(t,a.onTriggerChange),u=Ld(n),h=f.useRef("touch"),[m,y,x]=zw(b=>{const j=u().filter(v=>!v.disabled),g=j.find(v=>v.value===a.value),p=Uw(j,b,g);p!==void 0&&a.onValueChange(p.value)}),w=b=>{l||(a.onOpenChange(!0),x()),b&&(a.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return r.jsx($b,{asChild:!0,...i,children:r.jsx(be.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":$w(a.value)?"":void 0,...o,ref:d,onClick:me(o.onClick,b=>{b.currentTarget.focus(),h.current!=="mouse"&&w(b)}),onPointerDown:me(o.onPointerDown,b=>{h.current=b.pointerType;const j=b.target;j.hasPointerCapture(b.pointerId)&&j.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(w(b),b.preventDefault())}),onKeyDown:me(o.onKeyDown,b=>{const j=m.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&y(b.key),!(j&&b.key===" ")&&RO.includes(b.key)&&(w(),b.preventDefault())})})})});xw.displayName=pw;var gw="SelectValue",vw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:o,children:i,placeholder:a="",...l}=e,d=ps(gw,n),{onValueNodeHasChildrenChange:u}=d,h=i!==void 0,m=De(t,d.onValueNodeChange);return ht(()=>{u(h)},[u,h]),r.jsx(be.span,{...l,ref:m,style:{pointerEvents:"none"},children:$w(d.value)?r.jsx(r.Fragment,{children:a}):i})});vw.displayName=gw;var FO="SelectIcon",yw=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...o}=e;return r.jsx(be.span,{"aria-hidden":!0,...o,ref:t,children:s||"▼"})});yw.displayName=FO;var LO="SelectPortal",bw=e=>r.jsx(Fa,{asChild:!0,...e});bw.displayName=LO;var co="SelectContent",jw=f.forwardRef((e,t)=>{const n=ps(co,e.__scopeSelect),[s,o]=f.useState();if(ht(()=>{o(new DocumentFragment)},[]),!n.open){const i=s;return i?Xs.createPortal(r.jsx(ww,{scope:e.__scopeSelect,children:r.jsx(Fd.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),i):null}return r.jsx(Nw,{...e,ref:t})});jw.displayName=co;var Mn=10,[ww,xs]=yi(co),$O="SelectContentImpl",zO=CO("SelectContent.RemoveScroll"),Nw=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:l,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:y,collisionPadding:x,sticky:w,hideWhenDetached:b,avoidCollisions:j,...g}=e,p=ps(co,n),[v,N]=f.useState(null),[S,C]=f.useState(null),P=De(t,q=>N(q)),[k,O]=f.useState(null),[T,A]=f.useState(null),I=Ld(n),[U,M]=f.useState(!1),re=f.useRef(!1);f.useEffect(()=>{if(v)return Sj(v)},[v]),cj();const F=f.useCallback(q=>{const[xe,...R]=I().map(Ce=>Ce.ref.current),[ee]=R.slice(-1),pe=document.activeElement;for(const Ce of q)if(Ce===pe||(Ce==null||Ce.scrollIntoView({block:"nearest"}),Ce===xe&&S&&(S.scrollTop=0),Ce===ee&&S&&(S.scrollTop=S.scrollHeight),Ce==null||Ce.focus(),document.activeElement!==pe))return},[I,S]),X=f.useCallback(()=>F([k,v]),[F,k,v]);f.useEffect(()=>{U&&X()},[U,X]);const{onOpenChange:D,triggerPointerDownPosRef:L}=p;f.useEffect(()=>{if(v){let q={x:0,y:0};const xe=ee=>{var pe,Ce,Ve,it;q={x:Math.abs(Math.round(ee.pageX)-((Ce=(pe=L.current)==null?void 0:pe.x)!=null?Ce:0)),y:Math.abs(Math.round(ee.pageY)-((it=(Ve=L.current)==null?void 0:Ve.y)!=null?it:0))}},R=ee=>{q.x<=10&&q.y<=10?ee.preventDefault():v.contains(ee.target)||D(!1),document.removeEventListener("pointermove",xe),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",R,{capture:!0})}}},[v,D,L]),f.useEffect(()=>{const q=()=>D(!1);return window.addEventListener("blur",q),window.addEventListener("resize",q),()=>{window.removeEventListener("blur",q),window.removeEventListener("resize",q)}},[D]);const[J,he]=zw(q=>{const xe=I().filter(pe=>!pe.disabled),R=xe.find(pe=>pe.ref.current===document.activeElement),ee=Uw(xe,q,R);ee&&setTimeout(()=>ee.ref.current.focus())}),_=f.useCallback((q,xe,R)=>{const ee=!re.current&&!R;(p.value!==void 0&&p.value===xe||ee)&&(O(q),ee&&(re.current=!0))},[p.value]),$=f.useCallback(()=>v==null?void 0:v.focus(),[v]),B=f.useCallback((q,xe,R)=>{const ee=!re.current&&!R;(p.value!==void 0&&p.value===xe||ee)&&A(q)},[p.value]),se=s==="popper"?Bh:Sw,Ne=se===Bh?{side:l,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:y,collisionPadding:x,sticky:w,hideWhenDetached:b,avoidCollisions:j}:{};return r.jsx(ww,{scope:n,content:v,viewport:S,onViewportChange:C,itemRefCallback:_,selectedItem:k,onItemLeave:$,itemTextRefCallback:B,focusSelectedItem:X,selectedItemText:T,position:s,isPositioned:U,searchRef:J,children:r.jsx(_h,{as:zO,allowPinchZoom:!0,children:r.jsx(wh,{asChild:!0,trapped:p.open,onMountAutoFocus:q=>{q.preventDefault()},onUnmountAutoFocus:me(o,q=>{var xe;(xe=p.trigger)==null||xe.focus({preventScroll:!0}),q.preventDefault()}),children:r.jsx(Da,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:q=>q.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:r.jsx(se,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:q=>q.preventDefault(),...g,...Ne,onPlaced:()=>M(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:me(g.onKeyDown,q=>{const xe=q.ctrlKey||q.altKey||q.metaKey;if(q.key==="Tab"&&q.preventDefault(),!xe&&q.key.length===1&&he(q.key),["ArrowUp","ArrowDown","Home","End"].includes(q.key)){let ee=I().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);if(["ArrowUp","End"].includes(q.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(q.key)){const pe=q.target,Ce=ee.indexOf(pe);ee=ee.slice(Ce+1)}setTimeout(()=>F(ee)),q.preventDefault()}})})})})})})});Nw.displayName=$O;var UO="SelectItemAlignedPosition",Sw=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...o}=e,i=ps(co,n),a=xs(co,n),[l,d]=f.useState(null),[u,h]=f.useState(null),m=De(t,P=>h(P)),y=Ld(n),x=f.useRef(!1),w=f.useRef(!0),{viewport:b,selectedItem:j,selectedItemText:g,focusSelectedItem:p}=a,v=f.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&b&&j&&g){const P=i.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),O=i.valueNode.getBoundingClientRect(),T=g.getBoundingClientRect();if(i.dir!=="rtl"){const pe=T.left-k.left,Ce=O.left-pe,Ve=P.left-Ce,it=P.width+Ve,ut=Math.max(it,k.width),Et=window.innerWidth-Mn,lr=mw(Ce,[Mn,Math.max(Mn,Et-ut)]);l.style.minWidth=it+"px",l.style.left=lr+"px"}else{const pe=k.right-T.right,Ce=window.innerWidth-O.right-pe,Ve=window.innerWidth-P.right-Ce,it=P.width+Ve,ut=Math.max(it,k.width),Et=window.innerWidth-Mn,lr=mw(Ce,[Mn,Math.max(Mn,Et-ut)]);l.style.minWidth=it+"px",l.style.right=lr+"px"}const A=y(),I=window.innerHeight-Mn*2,U=b.scrollHeight,M=window.getComputedStyle(u),re=parseInt(M.borderTopWidth,10),F=parseInt(M.paddingTop,10),X=parseInt(M.borderBottomWidth,10),D=parseInt(M.paddingBottom,10),L=re+F+U+D+X,J=Math.min(j.offsetHeight*5,L),he=window.getComputedStyle(b),_=parseInt(he.paddingTop,10),$=parseInt(he.paddingBottom,10),B=P.top+P.height/2-Mn,se=I-B,Ne=j.offsetHeight/2,q=j.offsetTop+Ne,xe=re+F+q,R=L-xe;if(xe<=B){const pe=A.length>0&&j===A[A.length-1].ref.current;l.style.bottom="0px";const Ce=u.clientHeight-b.offsetTop-b.offsetHeight,Ve=Math.max(se,Ne+(pe?$:0)+Ce+X),it=xe+Ve;l.style.height=it+"px"}else{const pe=A.length>0&&j===A[0].ref.current;l.style.top="0px";const Ve=Math.max(B,re+b.offsetTop+(pe?_:0)+Ne)+R;l.style.height=Ve+"px",b.scrollTop=xe-B+b.offsetTop}l.style.margin=`${Mn}px 0`,l.style.minHeight=J+"px",l.style.maxHeight=I+"px",s==null||s(),requestAnimationFrame(()=>x.current=!0)}},[y,i.trigger,i.valueNode,l,u,b,j,g,i.dir,s]);ht(()=>v(),[v]);const[N,S]=f.useState();ht(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const C=f.useCallback(P=>{P&&w.current===!0&&(v(),p==null||p(),w.current=!1)},[v,p]);return r.jsx(VO,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:x,onScrollButtonChange:C,children:r.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:r.jsx(be.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Sw.displayName=UO;var BO="SelectPopperPosition",Bh=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:o=Mn,...i}=e,a=$d(n);return r.jsx(zb,{...a,...i,ref:t,align:s,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bh.displayName=BO;var[VO,Vh]=yi(co,{}),Hh="SelectViewport",Cw=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...o}=e,i=xs(Hh,n),a=Vh(Hh,n),l=De(t,i.onViewportChange),d=f.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),r.jsx(Fd.Slot,{scope:n,children:r.jsx(be.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:me(o.onScroll,u=>{const h=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:y}=a;if(y!=null&&y.current&&m){const x=Math.abs(d.current-h.scrollTop);if(x>0){const w=window.innerHeight-Mn*2,b=parseFloat(m.style.minHeight),j=parseFloat(m.style.height),g=Math.max(b,j);if(g<w){const p=g+x,v=Math.min(w,p),N=p-v;m.style.height=v+"px",m.style.bottom==="0px"&&(h.scrollTop=N>0?N:0,m.style.justifyContent="flex-end")}}}d.current=h.scrollTop})})})]})});Cw.displayName=Hh;var kw="SelectGroup",[HO,WO]=yi(kw),qO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=Tn();return r.jsx(HO,{scope:n,id:o,children:r.jsx(be.div,{role:"group","aria-labelledby":o,...s,ref:t})})});qO.displayName=kw;var Ew="SelectLabel",_w=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=WO(Ew,n);return r.jsx(be.div,{id:o.id,...s,ref:t})});_w.displayName=Ew;var zd="SelectItem",[KO,Pw]=yi(zd),Tw=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:o=!1,textValue:i,...a}=e,l=ps(zd,n),d=xs(zd,n),u=l.value===s,[h,m]=f.useState(i!=null?i:""),[y,x]=f.useState(!1),w=De(t,p=>{var v;return(v=d.itemRefCallback)==null?void 0:v.call(d,p,s,o)}),b=Tn(),j=f.useRef("touch"),g=()=>{o||(l.onValueChange(s),l.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return r.jsx(KO,{scope:n,value:s,disabled:o,textId:b,isSelected:u,onItemTextChange:f.useCallback(p=>{m(v=>{var N;return v||((N=p==null?void 0:p.textContent)!=null?N:"").trim()})},[]),children:r.jsx(Fd.ItemSlot,{scope:n,value:s,disabled:o,textValue:h,children:r.jsx(be.div,{role:"option","aria-labelledby":b,"data-highlighted":y?"":void 0,"aria-selected":u&&y,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:w,onFocus:me(a.onFocus,()=>x(!0)),onBlur:me(a.onBlur,()=>x(!1)),onClick:me(a.onClick,()=>{j.current!=="mouse"&&g()}),onPointerUp:me(a.onPointerUp,()=>{j.current==="mouse"&&g()}),onPointerDown:me(a.onPointerDown,p=>{j.current=p.pointerType}),onPointerMove:me(a.onPointerMove,p=>{var v;j.current=p.pointerType,o?(v=d.onItemLeave)==null||v.call(d):j.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:me(a.onPointerLeave,p=>{var v;p.currentTarget===document.activeElement&&((v=d.onItemLeave)==null||v.call(d))}),onKeyDown:me(a.onKeyDown,p=>{var N;((N=d.searchRef)==null?void 0:N.current)!==""&&p.key===" "||(OO.includes(p.key)&&g(),p.key===" "&&p.preventDefault())})})})})});Tw.displayName=zd;var rl="SelectItemText",Rw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:o,...i}=e,a=ps(rl,n),l=xs(rl,n),d=Pw(rl,n),u=DO(rl,n),[h,m]=f.useState(null),y=De(t,g=>m(g),d.onItemTextChange,g=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,g,d.value,d.disabled)}),x=h==null?void 0:h.textContent,w=f.useMemo(()=>r.jsx("option",{value:d.value,disabled:d.disabled,children:x},d.value),[d.disabled,d.value,x]),{onNativeOptionAdd:b,onNativeOptionRemove:j}=u;return ht(()=>(b(w),()=>j(w)),[b,j,w]),r.jsxs(r.Fragment,{children:[r.jsx(be.span,{id:d.textId,...i,ref:y}),d.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Xs.createPortal(i.children,a.valueNode):null]})});Rw.displayName=rl;var Ow="SelectItemIndicator",Aw=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return Pw(Ow,n).isSelected?r.jsx(be.span,{"aria-hidden":!0,...s,ref:t}):null});Aw.displayName=Ow;var Wh="SelectScrollUpButton",Iw=f.forwardRef((e,t)=>{const n=xs(Wh,e.__scopeSelect),s=Vh(Wh,e.__scopeSelect),[o,i]=f.useState(!1),a=De(t,s.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=d.scrollTop>0;i(u)};const d=n.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?r.jsx(Dw,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=n;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});Iw.displayName=Wh;var qh="SelectScrollDownButton",Mw=f.forwardRef((e,t)=>{const n=xs(qh,e.__scopeSelect),s=Vh(qh,e.__scopeSelect),[o,i]=f.useState(!1),a=De(t,s.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=d.scrollHeight-d.clientHeight,h=Math.ceil(d.scrollTop)<u;i(h)};const d=n.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?r.jsx(Dw,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=n;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});Mw.displayName=qh;var Dw=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...o}=e,i=xs("SelectScrollButton",n),a=f.useRef(null),l=Ld(n),d=f.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return f.useEffect(()=>()=>d(),[d]),ht(()=>{var h;const u=l().find(m=>m.ref.current===document.activeElement);(h=u==null?void 0:u.ref.current)==null||h.scrollIntoView({block:"nearest"})},[l]),r.jsx(be.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:me(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(s,50))}),onPointerMove:me(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(s,50))}),onPointerLeave:me(o.onPointerLeave,()=>{d()})})}),QO="SelectSeparator",Fw=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return r.jsx(be.div,{"aria-hidden":!0,...s,ref:t})});Fw.displayName=QO;var Kh="SelectArrow",GO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=$d(n),i=ps(Kh,n),a=xs(Kh,n);return i.open&&a.position==="popper"?r.jsx(Ub,{...o,...s,ref:t}):null});GO.displayName=Kh;var XO="SelectBubbleInput",Lw=f.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const o=f.useRef(null),i=De(s,o),a=$h(t);return f.useEffect(()=>{const l=o.current;if(!l)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(a!==t&&h){const m=new Event("change",{bubbles:!0});h.call(l,t),l.dispatchEvent(m)}},[a,t]),r.jsx(be.select,{...n,style:{...c0,...n.style},ref:i,defaultValue:t})});Lw.displayName=XO;function $w(e){return e===""||e===void 0}function zw(e){const t=mn(e),n=f.useRef(""),s=f.useRef(0),o=f.useCallback(a=>{const l=n.current+a;t(l),function d(u){n.current=u,window.clearTimeout(s.current),u!==""&&(s.current=window.setTimeout(()=>d(""),1e3))}(l)},[t]),i=f.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,o,i]}function Uw(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=YO(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const d=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function YO(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var ZO=hw,Bw=xw,JO=vw,e5=yw,t5=bw,Vw=jw,n5=Cw,Hw=_w,Ww=Tw,r5=Rw,s5=Aw,qw=Iw,Kw=Mw,Qw=Fw;const je=ZO,we=JO,ve=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(Bw,{ref:s,className:Y("flex h-10 w-full items-center justify-between rounded-md border border-input bg-card px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 transition-colors hover:border-foreground/30",e),...n,children:[t,r.jsx(e5,{asChild:!0,children:r.jsx(to,{className:"h-4 w-4 opacity-50"})})]}));ve.displayName=Bw.displayName;const Gw=f.forwardRef(({className:e,...t},n)=>r.jsx(qw,{ref:n,className:Y("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(XE,{className:"h-4 w-4"})}));Gw.displayName=qw.displayName;const Xw=f.forwardRef(({className:e,...t},n)=>r.jsx(Kw,{ref:n,className:Y("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(to,{className:"h-4 w-4"})}));Xw.displayName=Kw.displayName;const ye=f.forwardRef(({className:e,children:t,position:n="popper",...s},o)=>r.jsx(t5,{container:id(),children:r.jsxs(Vw,{ref:o,className:Y("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[r.jsx(Gw,{}),r.jsx(n5,{className:Y("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(Xw,{})]})}));ye.displayName=Vw.displayName;const o5=f.forwardRef(({className:e,...t},n)=>r.jsx(Hw,{ref:n,className:Y("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));o5.displayName=Hw.displayName;const z=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(Ww,{ref:s,className:Y("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(s5,{children:r.jsx(ed,{className:"h-4 w-4"})})}),r.jsx(r5,{children:t})]}));z.displayName=Ww.displayName;const i5=f.forwardRef(({className:e,...t},n)=>r.jsx(Qw,{ref:n,className:Y("-mx-1 my-1 h-px bg-muted",e),...t}));i5.displayName=Qw.displayName;const _r=zj,Yw=({container:e,...t})=>r.jsx(Uj,{container:e!=null?e:id(),...t});Yw.displayName="DialogPortal";const Zw=f.forwardRef(({className:e,...t},n)=>r.jsx(Rd,{ref:n,className:Y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Zw.displayName=Rd.displayName;const er=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(Yw,{children:[r.jsx(Zw,{}),r.jsxs(Od,{ref:s,className:Y("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,r.jsxs(Bj,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(od,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));er.displayName=Od.displayName;const tr=({className:e,...t})=>r.jsx("div",{className:Y("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});tr.displayName="DialogHeader";const gs=({className:e,...t})=>r.jsx("div",{className:Y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gs.displayName="DialogFooter";const nr=f.forwardRef(({className:e,...t},n)=>r.jsx(Ad,{ref:n,className:Y("text-lg font-semibold leading-none tracking-tight",e),...t}));nr.displayName=Ad.displayName;const rr=f.forwardRef(({className:e,...t},n)=>r.jsx(Id,{ref:n,className:Y("text-sm text-muted-foreground",e),...t}));rr.displayName=Id.displayName;var Ud="Collapsible",[a5,Jw]=fn(Ud),[l5,Qh]=a5(Ud),e1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[d,u]=hn({prop:s,defaultProp:o!=null?o:!1,onChange:a,caller:Ud});return r.jsx(l5,{scope:n,disabled:i,contentId:Tn(),open:d,onOpenToggle:f.useCallback(()=>u(h=>!h),[u]),children:r.jsx(be.div,{"data-state":Zh(d),"data-disabled":i?"":void 0,...l,ref:t})})});e1.displayName=Ud;var t1="CollapsibleTrigger",Gh=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,o=Qh(t1,n);return r.jsx(be.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Zh(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...s,ref:t,onClick:me(e.onClick,o.onOpenToggle)})});Gh.displayName=t1;var Xh="CollapsibleContent",Yh=f.forwardRef((e,t)=>{const{forceMount:n,...s}=e,o=Qh(Xh,e.__scopeCollapsible);return r.jsx(Kn,{present:n||o.open,children:({present:i})=>r.jsx(c5,{...s,ref:t,present:i})})});Yh.displayName=Xh;var c5=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:o,...i}=e,a=Qh(Xh,n),[l,d]=f.useState(s),u=f.useRef(null),h=De(t,u),m=f.useRef(0),y=m.current,x=f.useRef(0),w=x.current,b=a.open||l,j=f.useRef(b),g=f.useRef(void 0);return f.useEffect(()=>{const p=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(p)},[]),ht(()=>{const p=u.current;if(p){g.current=g.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const v=p.getBoundingClientRect();m.current=v.height,x.current=v.width,j.current||(p.style.transitionDuration=g.current.transitionDuration,p.style.animationName=g.current.animationName),d(s)}},[a.open,s]),r.jsx(be.div,{"data-state":Zh(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!b,...i,ref:h,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:b&&o})});function Zh(e){return e?"open":"closed"}var n1=e1,d5=Gh,u5=Yh;const sl=n1,ol=Gh,il=Yh;function f5(){return r.jsxs(xn,{children:[r.jsx(In,{children:r.jsx(Ie,{children:Array.from({length:7}).map((e,t)=>r.jsx(Oe,{children:r.jsx(oe,{className:"h-3 w-12"})},t))})}),r.jsx(gn,{children:Array.from({length:5}).map((e,t)=>r.jsx(Ie,{children:Array.from({length:7}).map((n,s)=>r.jsx(fe,{children:r.jsx(oe,{className:"h-3 w-full"})},s))},t))})]})}function m5({detail:e,loading:t,open:n,onClose:s,onResend:o,resending:i,onDelete:a}){const[l,d]=f.useState(!1);return r.jsx(_r,{open:n,onOpenChange:()=>s(),children:r.jsx(er,{className:"max-w-lg p-0 gap-0 overflow-hidden rounded-2xl border border-border/50 shadow-xl",children:t?r.jsx("div",{className:"p-6 space-y-4",children:Array.from({length:6}).map((u,h)=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx(oe,{className:"h-3 w-24"}),r.jsx(oe,{className:"h-3 w-32"})]},h))}):e?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"px-6 pt-6 pb-4 border-b border-border/50",children:r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsx("div",{className:"min-w-0",children:r.jsxs(tr,{className:"space-y-1",children:[r.jsx(nr,{className:"text-base font-semibold tracking-tight",children:c("Opt-In Detail")}),r.jsx(rr,{className:"font-mono text-xs text-muted-foreground truncate",children:e.hash})]})}),e.confirmed?r.jsxs(Qe,{className:"shrink-0 bg-emerald-50 text-emerald-700 border-emerald-200 hover:bg-emerald-50 dark:bg-emerald-950 dark:text-emerald-400 dark:border-emerald-800",children:[r.jsx(oi,{className:"h-3 w-3 mr-1"}),c("Confirmed")]}):r.jsxs(Qe,{className:"shrink-0 bg-amber-50 text-amber-700 border-amber-200 hover:bg-amber-50 dark:bg-amber-950 dark:text-amber-400 dark:border-amber-800",children:[r.jsx(wr,{className:"h-3 w-3 mr-1"}),c("Pending")]})]})}),r.jsxs("div",{className:"px-6 py-4 space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsx(al,{label:c("Email"),value:e.email,fullWidth:!0}),r.jsx(al,{label:c("Form"),value:e.formName||`#${e.formId}`}),r.jsx(al,{label:c("Category"),value:e.category?String(e.category):"—"}),r.jsx(al,{label:c("Created"),value:e.createtime}),r.jsx(al,{label:c("Updated"),value:e.updatetime})]}),(e.ipRegister||e.ipConfirmation||e.ipOptout)&&r.jsxs("div",{className:"rounded-lg bg-muted/50 border border-border/50 p-3 space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground",children:[r.jsx(t_,{className:"h-3 w-3"}),c("IP Addresses")]}),r.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:[e.ipRegister&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[c("Register:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipRegister})]}),e.ipConfirmation&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[c("Confirm:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipConfirmation})]}),e.ipOptout&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[c("Opt-out:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipOptout})]})]}),e.optouttime&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[c("Opt-out time:")," "]}),r.jsx("span",{children:e.optouttime})]}),e.reminderSentAt&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[c("Reminder sent:")," "]}),r.jsx("span",{children:e.reminderSentAt})]})]}),e.formData&&Object.keys(e.formData).length>0&&r.jsxs(sl,{open:l,onOpenChange:d,children:[r.jsxs(ol,{className:"flex items-center justify-between w-full rounded-lg border border-border/50 px-3 py-2 text-xs font-medium text-muted-foreground hover:bg-muted/50 transition-colors",children:[r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(ii,{className:"h-3 w-3"}),ce(c("Form Data (%s fields)"),Object.keys(e.formData).length)]}),r.jsx(to,{className:`h-3 w-3 transition-transform duration-200 ${l?"rotate-180":""}`})]}),r.jsx(il,{className:"mt-2",children:r.jsx("div",{className:"rounded-lg border border-border/50 divide-y divide-border/50 overflow-hidden",children:Object.entries(e.formData).map(([u,h])=>r.jsxs("div",{className:"flex justify-between px-3 py-2 text-xs",children:[r.jsx("span",{className:"text-muted-foreground font-mono",children:u}),r.jsx("span",{className:"font-medium max-w-[60%] text-right break-all",children:typeof h=="object"?JSON.stringify(h):String(h)})]},u))})})]}),e.consentText&&r.jsxs("div",{className:"rounded-lg bg-blue-50/50 dark:bg-blue-950/20 border border-blue-200/50 dark:border-blue-800/30 p-3",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-blue-600 dark:text-blue-400 mb-1",children:[r.jsx(yt,{className:"h-3 w-3"}),c("Consent Text")]}),r.jsx("p",{className:"text-xs text-blue-800/80 dark:text-blue-300/80 leading-relaxed",children:e.consentText})]})]}),r.jsxs("div",{className:"px-6 py-4 border-t border-border/50 bg-muted/30 flex items-center gap-2",children:[r.jsxs(H,{variant:"outline",size:"sm",className:"rounded-lg",disabled:i,onClick:()=>o(e.id),children:[r.jsx(Qn,{className:"h-3.5 w-3.5 mr-1.5"}),c(i?"Sending...":"Resend Email")]}),r.jsxs(H,{variant:"outline",size:"sm",className:"rounded-lg text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>a(e.id),children:[r.jsx(pn,{className:"h-3.5 w-3.5 mr-1.5"}),c("Delete")]})]})]}):null})})}function al({label:e,value:t,fullWidth:n}){return r.jsxs("div",{className:n?"col-span-2":"",children:[r.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground mb-0.5",children:e}),r.jsx("div",{className:"text-sm font-medium truncate",children:t||"—"})]})}function h5(){var se,Ne,q,xe;const e=Je(),t=qn(),[n,s]=f.useState(1),[o]=f.useState(20),[i,a]=f.useState(""),[l,d]=f.useState(""),[u,h]=f.useState("all"),[m,y]=f.useState("all"),[x,w]=f.useState(null),[b,j]=f.useState(null),[g,p]=f.useState(new Set),{data:v,isLoading:N}=Se({queryKey:["optins",n,o,i,u,m],queryFn:()=>{const R=new URLSearchParams({page:String(n),per_page:String(o)});return i&&R.set("search",i),u!=="all"&&R.set("category",u),m!=="all"&&R.set("status",m),Z(`/optins?${R.toString()}`)}}),{data:S}=Se({queryKey:["categories"],queryFn:()=>Z("/categories")}),{data:C,isLoading:P}=Se({queryKey:["optin",x],queryFn:()=>Z(`/optins/${x}`),enabled:!!x}),k=Re({mutationFn:R=>Z(`/optins/${R}`,{method:"DELETE"}),onSuccess:()=>{K.success(c("Opt-in deleted successfully")),e.invalidateQueries({queryKey:["optins"]}),j(null),x===b&&w(null),p(R=>{const ee=new Set(R);return b!==null&&ee.delete(b),ee})},onError:R=>{K.error(R.message||c("Failed to delete opt-in"))}}),O=Re({mutationFn:async R=>{const pe=(await Promise.allSettled(R.map(Ce=>Z(`/optins/${Ce}`,{method:"DELETE"})))).filter(Ce=>Ce.status==="rejected").length;if(pe>0)throw new Error(ce(c("Failed to delete %1$s of %2$s items"),pe,R.length))},onSuccess:()=>{K.success(ce(c("%s opt-in(s) deleted"),g.size)),e.invalidateQueries({queryKey:["optins"]}),p(new Set),w(null)},onError:R=>{K.error(R.message||c("Bulk delete failed")),e.invalidateQueries({queryKey:["optins"]})}}),T=Re({mutationFn:R=>Z(`/optins/${R}/resend`,{method:"POST"}),onSuccess:()=>{K.success(c("Confirmation email resent"))},onError:R=>{K.error(R.message||c("Failed to resend email"))}}),A=v==null?void 0:v.data,I=(se=A==null?void 0:A.items)!=null?se:[],U=(Ne=A==null?void 0:A.pages)!=null?Ne:1,M=(q=S==null?void 0:S.data)!=null?q:[],re=C==null?void 0:C.data,F=f.useMemo(()=>{const R=new Map;for(const ee of M)R.set(ee.id,ee.name);return R},[M]),X=I.length>0&&I.every(R=>g.has(R.id)),D=I.some(R=>g.has(R.id)),L=f.useCallback(()=>{p(R=>{const ee=new Set(R);if(X)for(const pe of I)ee.delete(pe.id);else for(const pe of I)ee.add(pe.id);return ee})},[X,I]),J=f.useCallback(R=>{p(ee=>{const pe=new Set(ee);return pe.has(R)?pe.delete(R):pe.add(R),pe})},[]);function he(){a(l),s(1)}function _(R){t(`/optins/${R}`)}const[$,B]=f.useState(!1);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Opt-Ins")}),r.jsx("p",{className:"text-muted-foreground",children:c("Manage all opt-in records")})]}),r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[r.jsx(u_,{className:"absolute left-2.5 top-2.5 h-3 w-3 text-muted-foreground"}),r.jsx(Pe,{placeholder:c("Search email or hash..."),className:"h-8 pl-8 text-xs",value:l,onChange:R=>d(R.target.value),onKeyDown:R=>{R.key==="Enter"&&he()}})]}),r.jsxs(je,{value:u,onValueChange:R=>{h(R),s(1)},children:[r.jsx(ve,{className:"h-8 w-[130px] text-xs",children:r.jsx(we,{placeholder:c("Category")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:c("All")}),M.map(R=>r.jsx(z,{value:String(R.id),children:R.name},R.id))]})]}),r.jsxs(je,{value:m,onValueChange:R=>{y(R),s(1)},children:[r.jsx(ve,{className:"h-8 w-[120px] text-xs",children:r.jsx(we,{placeholder:c("Status")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:c("All")}),r.jsx(z,{value:"confirmed",children:c("Confirmed")}),r.jsx(z,{value:"pending",children:c("Pending")})]})]})]}),g.size>0&&r.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-muted/50 px-4 py-2.5 animate-in fade-in slide-in-from-top-1 duration-200",children:[r.jsx("span",{className:"text-sm font-medium",children:ce(c("%s selected"),g.size)}),r.jsx("div",{className:"h-4 w-px bg-border"}),r.jsxs(H,{variant:"outline",size:"sm",className:"h-7 text-xs text-destructive border-destructive/30 hover:bg-destructive/10",disabled:O.isPending,onClick:()=>B(!0),children:[r.jsx(pn,{className:"h-3 w-3 mr-1"}),O.isPending?c("Deleting..."):c("Delete Selected")]}),r.jsx(H,{variant:"ghost",size:"sm",className:"h-7 text-xs text-muted-foreground",onClick:()=>p(new Set),children:c("Clear selection")})]}),r.jsx(te,{children:r.jsxs(ne,{className:"p-0",children:[N?r.jsx(f5,{}):r.jsxs(xn,{children:[r.jsx(In,{children:r.jsxs(Ie,{children:[r.jsx(Oe,{className:"text-xs w-10",children:r.jsx(nl,{checked:X?!0:D?"indeterminate":!1,onCheckedChange:L,"aria-label":c("Select all")})}),r.jsx(Oe,{className:"text-xs",children:c("Email")}),r.jsx(Oe,{className:"text-xs",children:c("Form")}),r.jsx(Oe,{className:"text-xs",children:c("Category")}),r.jsx(Oe,{className:"text-xs",children:c("Status")}),r.jsx(Oe,{className:"text-xs text-right",children:c("Date")})]})}),r.jsx(gn,{children:I.length===0?r.jsx(Ie,{children:r.jsx(fe,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:c("No opt-ins found")})}):I.map(R=>r.jsxs(Ie,{className:"cursor-pointer hover:bg-muted/50 transition-colors",onClick:ee=>{ee.target.closest("[data-checkbox]")||_(R.id)},children:[r.jsx(fe,{"data-checkbox":!0,children:r.jsx(nl,{checked:g.has(R.id),onCheckedChange:()=>J(R.id),onClick:ee=>ee.stopPropagation(),"aria-label":ce(c("Select opt-in %s"),R.id)})}),r.jsx(fe,{children:r.jsx("button",{onClick:ee=>{ee.stopPropagation(),t(`/optins/${R.id}`)},className:"text-primary hover:underline text-xs font-medium",children:R.email})}),r.jsx(fe,{className:"text-xs text-muted-foreground",children:R.formName||`#${R.formId}`}),r.jsx(fe,{className:"text-xs text-muted-foreground",children:F.get(R.category)||(R.category?String(R.category):"—")}),r.jsx(fe,{children:R.confirmed?r.jsxs(Qe,{variant:"secondary",className:"text-[10px] bg-emerald-50 text-emerald-700 border-emerald-200 dark:bg-emerald-950 dark:text-emerald-400 dark:border-emerald-800",children:[r.jsx(oi,{className:"h-2.5 w-2.5 mr-0.5"}),c("Confirmed")]}):r.jsxs(Qe,{variant:"secondary",className:"text-[10px] bg-amber-50 text-amber-700 border-amber-200 dark:bg-amber-950 dark:text-amber-400 dark:border-amber-800",children:[r.jsx(wr,{className:"h-2.5 w-2.5 mr-0.5"}),c("Pending")]})}),r.jsx(fe,{className:"text-right text-xs text-muted-foreground",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",onClick:ee=>ee.stopPropagation(),children:[r.jsx(Jn,{id:"optins.row-action",data:{optin:R}}),r.jsx("span",{children:R.createtime})]})})]},R.id))})]}),r.jsxs("div",{className:"flex items-center justify-between p-4 border-t",children:[r.jsxs("span",{className:"text-xs text-muted-foreground",children:[ce(c("Page %1$s of %2$s"),(xe=A==null?void 0:A.page)!=null?xe:n,U),A!=null&&A.total?ce(c(" (%s total)"),A.total):""]}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(H,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n<=1,onClick:()=>s(R=>Math.max(1,R-1)),children:r.jsx(M0,{className:"h-3 w-3"})}),r.jsx(H,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n>=U,onClick:()=>s(R=>R+1),children:r.jsx(Hm,{className:"h-3 w-3"})})]})]})]})}),r.jsx(m5,{detail:re,loading:P,open:!!x,onClose:()=>w(null),onResend:R=>T.mutate(R),resending:T.isPending,onDelete:R=>{j(R)}}),r.jsx(_r,{open:b!==null,onOpenChange:()=>j(null),children:r.jsxs(er,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(tr,{children:[r.jsx(nr,{children:c("Delete Opt-In")}),r.jsx(rr,{children:c("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(gs,{children:[r.jsx(H,{variant:"outline",className:"rounded-lg",onClick:()=>j(null),children:c("Cancel")}),r.jsx(H,{variant:"destructive",className:"rounded-lg",disabled:k.isPending,onClick:()=>{b!==null&&k.mutate(b)},children:k.isPending?c("Deleting..."):c("Delete")})]})]})}),r.jsx(_r,{open:$,onOpenChange:()=>B(!1),children:r.jsxs(er,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(tr,{children:[r.jsx(nr,{children:ce(c("Delete %s Opt-In(s)"),g.size)}),r.jsx(rr,{children:ce(c("Are you sure you want to permanently delete %s selected opt-in(s)? This action cannot be undone."),g.size)})]}),r.jsxs(gs,{children:[r.jsx(H,{variant:"outline",className:"rounded-lg",onClick:()=>B(!1),children:c("Cancel")}),r.jsx(H,{variant:"destructive",className:"rounded-lg",disabled:O.isPending,onClick:()=>{O.mutate(Array.from(g)),B(!1)},children:O.isPending?c("Deleting..."):ce(c("Delete %s"),g.size)})]})]})})]})}function r1(e){navigator.clipboard.writeText(e).then(()=>K.success(c("Copied to clipboard")),()=>K.error(c("Failed to copy")))}function Jh(e,t=""){const n=[];for(const[s,o]of Object.entries(e)){const i=t?`${t}.${s}`:s;o&&typeof o=="object"&&!Array.isArray(o)?n.push(...Jh(o,i)):Array.isArray(o)?n.push([i,o.join(", ")]):n.push([i,String(o!=null?o:"")])}return n}function p5(){var N;const{id:e}=Bc(),t=qn(),n=Je(),s=$t(),[o,i]=f.useState(!1),[a,l]=f.useState(!0),[d,u]=f.useState(!1),[h,m]=f.useState(!1),{data:y,isLoading:x}=Se({queryKey:["optin",e],queryFn:()=>Z(`/optins/${e}`),enabled:!!e}),w=Re({mutationFn:()=>Z(`/optins/${e}`,{method:"DELETE"}),onSuccess:()=>{K.success(c("Opt-in deleted")),n.invalidateQueries({queryKey:["optins"]}),t("/optins")},onError:S=>K.error(S.message||c("Delete failed"))}),b=Re({mutationFn:()=>Z(`/optins/${e}/resend`,{method:"POST"}),onSuccess:()=>K.success(c("Confirmation email resent")),onError:S=>K.error(S.message||c("Failed to resend"))}),j=Re({mutationFn:()=>Z(`/optins/${e}/reset-confirmation`,{method:"POST"}),onSuccess:()=>{K.success(c("Confirmation reset — click the email link again to re-test")),n.invalidateQueries({queryKey:["optin",e]}),n.invalidateQueries({queryKey:["optins"]})},onError:S=>K.error(S.message||c("Failed to reset"))}),g=y==null?void 0:y.data;if(x)return r.jsxs("div",{className:"space-y-6",children:[r.jsx(oe,{className:"h-8 w-48"}),r.jsx(oe,{className:"h-64 w-full"}),r.jsx(oe,{className:"h-48 w-full"})]});if(!g)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(H,{variant:"ghost",size:"sm",asChild:!0,children:r.jsxs(un,{to:"/optins",children:[r.jsx(Jc,{className:"h-4 w-4 mr-1"})," ",c("Back to Opt-Ins")]})}),r.jsx("p",{className:"text-muted-foreground",children:c("Opt-In not found.")})]});const p=g.formData?g.formData.fields?Jh(g.formData.fields):Jh(g.formData):[],v=`${s.adminUrl}admin-ajax.php?action=doi_export_consent&scope=single&id=${g.id}&_wpnonce=${encodeURIComponent((N=s.consentExportNonce)!=null?N:"")}`;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-start justify-between gap-4",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(H,{variant:"ghost",size:"icon",className:"h-8 w-8",asChild:!0,children:r.jsx(un,{to:"/optins",children:r.jsx(Jc,{className:"h-4 w-4"})})}),r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Opt-In Detail")}),g.confirmed?r.jsxs(Qe,{className:"bg-emerald-50 text-emerald-700 border-emerald-200 hover:bg-emerald-50 dark:bg-emerald-950 dark:text-emerald-400 dark:border-emerald-800",children:[r.jsx(oi,{className:"h-3 w-3 mr-1"}),c("Confirmed")]}):r.jsxs(Qe,{className:"bg-amber-50 text-amber-700 border-amber-200 hover:bg-amber-50 dark:bg-amber-950 dark:text-amber-400 dark:border-amber-800",children:[r.jsx(wr,{className:"h-3 w-3 mr-1"}),c("Pending")]})]}),r.jsx("p",{className:"text-xs text-muted-foreground font-mono ml-10",children:g.hash})]}),r.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[!g.confirmed&&r.jsxs(H,{variant:"outline",size:"sm",disabled:b.isPending,onClick:()=>b.mutate(),children:[r.jsx(Qn,{className:"h-3.5 w-3.5 mr-1.5"}),b.isPending?c("Sending..."):c("Resend Email")]}),g._devResetAvailable&&g.confirmed&&r.jsxs(H,{variant:"outline",size:"sm",className:"text-amber-700 border-amber-300 hover:bg-amber-50 dark:text-amber-400 dark:border-amber-800 dark:hover:bg-amber-950",disabled:j.isPending,onClick:()=>{window.confirm(c(`Reset this opt-in to PENDING for re-testing?
449
450 This is a DEV-ONLY action (WP_DEBUG mode). It clears the confirmation flag so you can click the same email link again.
451
452 Note: any Avada submissions/entries written by the previous confirmation are kept — delete them via Avada's Form Entries UI if you need a clean slate.
453
454 Files: any uploaded files were already handed off to the form system or sent as mail attachments at the previous confirmation, so they are NOT restored. Re-submit the form if you want files in the next test cycle.`))&&j.mutate()},title:c("Dev-only: revert to pending so the same confirmation link can be re-tested"),children:[r.jsx(wr,{className:"h-3.5 w-3.5 mr-1.5"}),j.isPending?c("Resetting..."):c("Reset to pending (dev)")]}),r.jsxs(H,{variant:"outline",size:"sm",className:"text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>i(!0),children:[r.jsx(pn,{className:"h-3.5 w-3.5 mr-1.5"}),c("Delete")]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsxs(te,{children:[r.jsx(le,{children:r.jsx(de,{className:"text-sm",children:c("Basic Information")})}),r.jsx(ne,{children:r.jsx(xn,{children:r.jsxs(gn,{children:[r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground w-40",children:c("ID")}),r.jsx(fe,{children:g.id})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Email")}),r.jsx(fe,{children:g.email})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Form")}),r.jsxs(fe,{children:[g.formName," (#",g.formId,")"]})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Category")}),r.jsx(fe,{children:g.categoryName?r.jsxs(un,{to:`/categories/${g.category}`,className:"text-primary hover:underline inline-flex items-center gap-1",children:[r.jsx(Qm,{className:"h-3 w-3"}),g.categoryName]}):g.category?String(g.category):"—"})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Registration Date")}),r.jsx(fe,{children:g.createtime})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Registration IP")}),r.jsx(fe,{className:"font-mono text-xs",children:g.ipRegister||"—"})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Confirmation Date")}),r.jsx(fe,{children:g.confirmed?g.updatetime:"—"})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Confirmation IP")}),r.jsx(fe,{className:"font-mono text-xs",children:g.ipConfirmation||"—"})]}),g.ipOptout&&r.jsxs(r.Fragment,{children:[r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Opt-Out IP")}),r.jsx(fe,{className:"font-mono text-xs",children:g.ipOptout})]}),g.optouttime&&r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Opt-Out Date")}),r.jsx(fe,{children:g.optouttime})]})]}),g.reminderSentAt&&r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:c("Reminder Sent")}),r.jsx(fe,{children:g.reminderSentAt})]})]})})})]}),r.jsxs(te,{children:[r.jsx(le,{children:r.jsxs(de,{className:"text-sm flex items-center gap-2",children:[r.jsx(yt,{className:"h-4 w-4"}),c("Consent Evidence")]})}),r.jsxs(ne,{className:"space-y-3",children:[g.consentText?r.jsxs("div",{className:"rounded-lg bg-blue-50/50 dark:bg-blue-950/20 border border-blue-200/50 dark:border-blue-800/30 p-4",children:[r.jsx("p",{className:"text-xs font-medium text-blue-900/70 dark:text-blue-300/60 mb-1",children:c("Consent text shown to user")}),r.jsx("p",{className:"text-sm text-blue-800/80 dark:text-blue-300/80 leading-relaxed",children:g.consentText})]}):r.jsx("p",{className:"text-sm text-muted-foreground italic",children:c("No consent text was configured for this form at the time of submission.")}),g.consentField?r.jsxs("div",{className:"text-xs space-y-1",children:[r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:c("Acknowledgment field:")})," ",r.jsx("code",{className:"font-mono bg-muted px-1 py-0.5 rounded",children:g.consentField})]}),r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:c("User acknowledged:")})," ",g.consentAcknowledged?r.jsx("span",{className:"font-medium text-green-700 dark:text-green-400",children:c("✓ Yes")}):r.jsx("span",{className:"font-medium text-amber-700 dark:text-amber-400",children:c("✗ No (legacy record or gate disabled)")})]})]}):g.consentText?r.jsx("p",{className:"text-xs text-amber-700 dark:text-amber-400 italic",children:c("⚠ No acknowledgment field configured — consent text is stored but not legally provable. Configure a consent acceptance field in form settings.")}):null]})]}),p.length>0&&r.jsx(sl,{open:a,onOpenChange:l,children:r.jsxs(te,{children:[r.jsx(ol,{asChild:!0,children:r.jsx(le,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(de,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(ii,{className:"h-4 w-4"}),ce(c("Form Fields (%d)"),p.length)]}),r.jsx(to,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${a?"rotate-180":""}`})]})})}),r.jsx(il,{children:r.jsx(ne,{className:"pt-0",children:r.jsxs(xn,{children:[r.jsx(In,{children:r.jsxs(Ie,{children:[r.jsx(Oe,{className:"text-xs",children:c("Key")}),r.jsx(Oe,{className:"text-xs",children:c("Value")})]})}),r.jsx(gn,{children:p.map(([S,C])=>r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-mono text-xs text-muted-foreground",children:S}),r.jsx(fe,{className:"text-sm break-all",children:C})]},S))})]})})})]})}),g.formHtml&&r.jsx(sl,{open:d,onOpenChange:u,children:r.jsxs(te,{className:"overflow-hidden",children:[r.jsx(ol,{asChild:!0,children:r.jsx(le,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(de,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(L0,{className:"h-4 w-4"}),c("Form HTML")]}),r.jsx(to,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${d?"rotate-180":""}`})]})})}),r.jsx(il,{children:r.jsxs(ne,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:c("The form HTML used to collect this opt-in. You can copy it to inspect the original form.")}),r.jsxs("div",{className:"relative",children:[r.jsx(H,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-7 w-7 z-10",onClick:()=>r1(g.formHtml),children:r.jsx($0,{className:"h-3.5 w-3.5"})}),r.jsx("pre",{className:"bg-muted rounded-lg p-4 overflow-auto text-xs font-mono max-h-[400px] whitespace-pre-wrap break-all",children:r.jsx("code",{children:g.formHtml})})]})]})})]})}),g.mailOptinHtml&&r.jsx(sl,{open:h,onOpenChange:m,children:r.jsxs(te,{className:"overflow-hidden",children:[r.jsx(ol,{asChild:!0,children:r.jsx(le,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(de,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(Qn,{className:"h-4 w-4"}),c("Opt-In Mail")]}),r.jsx(to,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${h?"rotate-180":""}`})]})})}),r.jsx(il,{children:r.jsxs(ne,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:c("The confirmation email that was sent to the visitor.")}),r.jsxs("div",{className:"relative",children:[r.jsx(H,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-7 w-7 z-10",onClick:()=>r1(g.mailOptinHtml),children:r.jsx($0,{className:"h-3.5 w-3.5"})}),r.jsx("pre",{className:"bg-muted rounded-lg p-4 overflow-auto text-xs font-mono max-h-[400px] whitespace-pre-wrap break-all",children:r.jsx("code",{children:g.mailOptinHtml})})]})]})})]})}),r.jsx(Jn,{id:"optin.detail-panel",data:{optin:g}})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs(te,{children:[r.jsx(le,{children:r.jsxs(de,{className:"text-sm flex items-center gap-2",children:[r.jsx(za,{className:"h-4 w-4"}),c("Export Consent Record (GDPR)")]})}),r.jsxs(ne,{className:"space-y-2",children:[r.jsx(H,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${v}&format=json`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(za,{className:"h-3.5 w-3.5 mr-2"}),c("Export JSON")]})}),r.jsx(H,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${v}&format=csv`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(za,{className:"h-3.5 w-3.5 mr-2"}),c("Export CSV")]})})]})]}),r.jsxs(te,{children:[r.jsx(le,{children:r.jsx(de,{className:"text-sm",children:c("Quick Info")})}),r.jsxs(ne,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:c("Status")}),r.jsx("p",{className:"text-sm font-medium",children:g.confirmed?c("Confirmed"):c("Pending")})]}),r.jsx(Ga,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:c("Form")}),r.jsx("p",{className:"text-sm font-medium",children:g.formName})]}),r.jsx(Ga,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:c("Category")}),r.jsx("p",{className:"text-sm font-medium",children:g.categoryName||(g.category?`#${g.category}`:"—")})]}),r.jsx(Ga,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:c("Created")}),r.jsx("p",{className:"text-sm font-medium",children:g.createtime})]})]})]})]})]}),r.jsx(_r,{open:o,onOpenChange:i,children:r.jsxs(er,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(tr,{children:[r.jsx(nr,{children:c("Delete Opt-In")}),r.jsx(rr,{children:c("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(gs,{children:[r.jsx(H,{variant:"outline",className:"rounded-lg",onClick:()=>i(!1),children:c("Cancel")}),r.jsx(H,{variant:"destructive",className:"rounded-lg",disabled:w.isPending,onClick:()=>w.mutate(),children:w.isPending?c("Deleting..."):c("Delete")})]})]})})]})}var Bd="Switch",[x5]=fn(Bd),[g5,v5]=x5(Bd),s1=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:s,checked:o,defaultChecked:i,required:a,disabled:l,value:d="on",onCheckedChange:u,form:h,...m}=e,[y,x]=f.useState(null),w=De(t,v=>x(v)),b=f.useRef(!1),j=y?h||!!y.closest("form"):!0,[g,p]=hn({prop:o,defaultProp:i!=null?i:!1,onChange:u,caller:Bd});return r.jsxs(g5,{scope:n,checked:g,disabled:l,children:[r.jsx(be.button,{type:"button",role:"switch","aria-checked":g,"aria-required":a,"data-state":l1(g),"data-disabled":l?"":void 0,disabled:l,value:d,...m,ref:w,onClick:me(e.onClick,v=>{p(N=>!N),j&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})}),j&&r.jsx(a1,{control:y,bubbles:!b.current,name:s,value:d,checked:g,required:a,disabled:l,form:h,style:{transform:"translateX(-100%)"}})]})});s1.displayName=Bd;var o1="SwitchThumb",i1=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...s}=e,o=v5(o1,n);return r.jsx(be.span,{"data-state":l1(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t})});i1.displayName=o1;var y5="SwitchBubbleInput",a1=f.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:s=!0,...o},i)=>{const a=f.useRef(null),l=De(a,i),d=$h(n),u=uh(t);return f.useEffect(()=>{const h=a.current;if(!h)return;const m=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&x){const w=new Event("click",{bubbles:s});x.call(h,n),h.dispatchEvent(w)}},[d,n,s]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});a1.displayName=y5;function l1(e){return e?"checked":"unchecked"}var c1=s1,b5=i1;const Zt=f.forwardRef(({className:e,...t},n)=>r.jsx(c1,{className:Y("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:r.jsx(b5,{className:Y("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Zt.displayName=c1.displayName;function ep(){return r.jsx("span",{className:"pro-badge ml-1.5",children:c("PRO")})}function j5({title:e,description:t,featurePreview:n}){const{isProInstalled:s,isProLicenseActive:o}=Qa(),i=qn();return s&&o?null:r.jsxs("div",{className:"border border-dashed border-border rounded-lg p-6 relative overflow-hidden",children:[n&&r.jsx("div",{className:"blur-sm opacity-40 pointer-events-none select-none mb-4",children:n}),r.jsxs("div",{className:"relative z-10 text-center",children:[r.jsx("span",{className:"pro-badge mb-3 inline-block",children:c("PRO")}),r.jsx("h4",{className:"text-base font-semibold text-foreground mb-1",children:e}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4 max-w-md mx-auto",children:t}),s&&!o?r.jsx(H,{variant:"default",size:"sm",onClick:()=>i("/license"),children:c("Activate License")}):r.jsxs("a",{href:$t().upgradeUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 pro-gradient text-primary-foreground font-semibold text-sm px-5 py-2 rounded transition-opacity hover:opacity-90",children:[r.jsx(Nr,{className:"h-3.5 w-3.5"}),c("Upgrade to Pro")]})]})]})}const w5=["[doubleoptinlink]","[doubleoptoutlink]","[doubleoptin_form_date]","[doubleoptin_form_time]","[doubleoptin_form_url]","[doubleoptin_privacy_url]","[doi_email]","[doi_name]","[doi_first_name]","[doi_last_name]","[doi_phone]","[doi_company]","[doi_message]","[doi_subject]","[doi_address]","[doi_city]","[doi_zip]","[doi_country]"],tp=[{tag:"[doi_email]",key:"doi_email",label:"E-Mail",group:"identity"},{tag:"[doi_name]",key:"doi_name",label:"Name",group:"identity"},{tag:"[doi_first_name]",key:"doi_first_name",label:"First Name",group:"identity"},{tag:"[doi_last_name]",key:"doi_last_name",label:"Last Name",group:"identity"},{tag:"[doi_phone]",key:"doi_phone",label:"Phone",group:"contact"},{tag:"[doi_company]",key:"doi_company",label:"Company",group:"contact"},{tag:"[doi_subject]",key:"doi_subject",label:"Subject",group:"message"},{tag:"[doi_message]",key:"doi_message",label:"Message",group:"message"},{tag:"[doi_address]",key:"doi_address",label:"Address",group:"address"},{tag:"[doi_city]",key:"doi_city",label:"City",group:"address"},{tag:"[doi_zip]",key:"doi_zip",label:"ZIP",group:"address"},{tag:"[doi_country]",key:"doi_country",label:"Country",group:"address"}],N5=[{id:"identity",label:"Identity",description:"Who the user is."},{id:"contact",label:"Contact",description:"Phone, company."},{id:"message",label:"Message",description:"Free-text fields submitted with the form."},{id:"address",label:"Address",description:"Postal address parts."}],d1={recipient:"Recipient field",subject:"Subject",body_or_template:"Email body or template"};function uo(e){return!e||e.length===0?"":e.map(t=>{var n;return(n=d1[t])!=null?n:t}).join(", ")}function np(e,t){var h,m,y,x;const n=[],s=((h=e.recipient)!=null?h:"").toString().trim(),o=t?new Set(t.map(w=>w.name)):null;(s===""||o!==null&&!o.has(s))&&n.push("recipient"),((m=e.subject)!=null?m:"").toString().trim()===""&&n.push("subject");const l=((y=e.body)!=null?y:"").toString().includes("[doubleoptinlink]"),u=((x=e.template)!=null?x:"").toString().trim()!=="";return!l&&!u&&n.push("body_or_template"),n}const u1={cf7:{label:"Contact Form 7",pro:!1},avada:{label:"Avada Forms",pro:!1,notice:c("Moving to Pro in 3.8.0")},elementor:{label:"Elementor Forms",pro:!0,info:c('1. Open Elementor editor 2. Select form widget 3. Add "Double Opt-In" to Submit Actions 4. Configure settings here')},wpforms:{label:"WPForms",pro:!0},gravity:{label:"Gravity Forms",pro:!0}};function S5(){var y;const{isProInstalled:e,isProLicenseActive:t}=Qa(),n=Je(),s=qn(),{data:o,isLoading:i}=Se({queryKey:["forms"],queryFn:()=>Z("/forms")}),a=(y=o==null?void 0:o.data)!=null?y:{},l=Re({mutationFn:({integration:x,formId:w})=>Z(`/forms/${x}/${w}/toggle`,{method:"POST"}),onSuccess:()=>{n.invalidateQueries({queryKey:["forms"]}),K.success(c("Form toggled"))},onError:x=>{if(x instanceof Om&&x.code==="INCOMPLETE_CONFIG"){K.error(c("Cannot enable Double Opt-In: configuration is incomplete."),{description:x.missing&&x.missing.length>0?ce(c("Missing: %s"),uo(x.missing)):void 0});return}K.error(x.message)}}),d=Object.entries(a).flatMap(([,x])=>{var w;return(w=x==null?void 0:x.forms)!=null?w:[]}),u=d.length,h=d.filter(x=>x.enabled).length;if(i)return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:c("Manage Double Opt-In settings for all your forms")})]}),r.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:[1,2,3].map(x=>r.jsx(te,{children:r.jsx(ne,{className:"pt-6",children:r.jsx(oe,{className:"h-8 w-20"})})},x))}),[1,2].map(x=>r.jsx(te,{children:r.jsx(ne,{className:"pt-6",children:r.jsx(oe,{className:"h-24 w-full"})})},x))]});const m=Object.keys(u1).map(x=>{var j,g;const w=u1[x],b=a[x];return{key:x,name:(j=b==null?void 0:b.name)!=null?j:w.label,forms:(g=b==null?void 0:b.forms)!=null?g:[],pro:w.pro,notice:w.notice,info:w.info}});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:c("Manage Double Opt-In settings for all your forms")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsx(de,{className:"text-xs text-muted-foreground",children:c("Total Forms")})}),r.jsx(ne,{children:r.jsxs("div",{className:"text-2xl font-bold flex items-center gap-2",children:[u," ",r.jsx(ii,{className:"h-4 w-4 text-primary"})]})})]}),r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsx(de,{className:"text-xs text-muted-foreground",children:c("DOI Active")})}),r.jsx(ne,{children:r.jsx("div",{className:"text-2xl font-bold text-success",children:h})})]}),r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsx(de,{className:"text-xs text-muted-foreground",children:c("DOI Inactive")})}),r.jsx(ne,{children:r.jsx("div",{className:"text-2xl font-bold text-warning",children:u-h})})]})]}),m.map(x=>{const w=x.pro,b=w&&(!e||!t);return r.jsxs(te,{children:[r.jsx(le,{className:"pb-3",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ii,{className:"h-4 w-4 text-muted-foreground"}),r.jsx(de,{className:"text-sm font-semibold",children:x.name}),w&&!t&&r.jsx(ep,{}),r.jsx(Qe,{variant:"secondary",className:"ml-auto text-[10px] bg-primary/10 text-primary border-0",children:ce(c("%s forms"),x.forms.length)})]})}),r.jsxs(ne,{children:[x.notice&&r.jsxs("div",{className:"flex items-center gap-2 bg-warning/10 text-warning rounded px-3 py-2 text-xs mb-3",children:[r.jsx(yt,{className:"h-3.5 w-3.5"})," ",x.notice]}),x.info&&!b&&r.jsxs("div",{className:"flex items-start gap-2 bg-primary/5 text-primary rounded px-3 py-2 text-xs mb-3",children:[r.jsx(yt,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"})," ",x.info]}),b?r.jsx(j5,{title:ce(c("%s Integration"),x.name),description:ce(c("Unlock Double Opt-In support for %s with Pro."),x.name)}):x.forms.length===0?r.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:c("No forms detected.")}):r.jsxs(xn,{children:[r.jsx(In,{children:r.jsxs(Ie,{children:[r.jsx(Oe,{className:"text-xs w-20",children:c("Status")}),r.jsx(Oe,{className:"text-xs",children:c("Form Title")}),r.jsx(Oe,{className:"text-xs w-24",children:c("Form ID")}),r.jsx(Oe,{className:"text-xs text-right w-40",children:c("Actions")})]})}),r.jsx(gn,{children:x.forms.map(j=>{var N;const g=j.isComplete!==!1,p=(N=j.missingFields)!=null?N:[],v=!g&&!j.enabled;return r.jsxs(Ie,{children:[r.jsx(fe,{children:r.jsx("span",{title:v?ce(c("Complete the configuration to enable. Missing: %s"),uo(p)):void 0,children:r.jsx(Zt,{checked:!!j.enabled,disabled:v,onCheckedChange:()=>l.mutate({integration:x.key,formId:j.id}),className:"data-[state=checked]:bg-success"})})}),r.jsx(fe,{className:"font-medium text-sm",children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{children:j.title}),!g&&r.jsxs(Qe,{variant:"outline",title:ce(c("Missing: %s"),uo(p)),className:"text-[10px] border-warning text-warning gap-1",children:[r.jsx(Gt,{className:"h-3 w-3"}),c("Configuration incomplete")]})]})}),r.jsx(fe,{children:r.jsxs(Qe,{variant:"secondary",className:"font-mono text-[10px]",children:["#",j.id]})}),r.jsx(fe,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",children:[r.jsx(H,{size:"sm",className:"text-xs",onClick:()=>s(`/forms/${x.key}/${j.id}/settings`),children:c("Configure")}),r.jsx(H,{size:"icon",variant:"ghost",className:"h-9 w-9 text-muted-foreground hover:text-foreground",title:c("Edit form"),"aria-label":c("Edit form"),disabled:!j.edit_url,onClick:()=>{j.edit_url&&window.open(String(j.edit_url),"_blank","noopener,noreferrer")},children:r.jsx(nd,{className:"h-4 w-4"})})]})})]},j.id)})})]})]})]},x.key)})]})}var C5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],k5=C5.reduce((e,t)=>{const n=vh(`Primitive.${t}`),s=f.forwardRef((o,i)=>{const{asChild:a,...l}=o,d=a?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...l,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),E5="Label",f1=f.forwardRef((e,t)=>r.jsx(k5.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));f1.displayName=E5;var m1=f1;const _5=ri("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Q=f.forwardRef(({className:e,...t},n)=>r.jsx(m1,{ref:n,className:Y(_5(),e),...t}));Q.displayName=m1.displayName;var rp="rovingFocusGroup.onEntryFocus",P5={bubbles:!1,cancelable:!0},ll="RovingFocusGroup",[sp,h1,T5]=Qc(ll),[R5,p1]=fn(ll,[T5]),[O5,A5]=R5(ll),x1=f.forwardRef((e,t)=>r.jsx(sp.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(sp.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(I5,{...e,ref:t})})}));x1.displayName=ll;var I5=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...m}=e,y=f.useRef(null),x=De(t,y),w=Dd(i),[b,j]=hn({prop:a,defaultProp:l!=null?l:null,onChange:d,caller:ll}),[g,p]=f.useState(!1),v=mn(u),N=h1(n),S=f.useRef(!1),[C,P]=f.useState(0);return f.useEffect(()=>{const k=y.current;if(k)return k.addEventListener(rp,v),()=>k.removeEventListener(rp,v)},[v]),r.jsx(O5,{scope:n,orientation:s,dir:w,loop:o,currentTabStopId:b,onItemFocus:f.useCallback(k=>j(k),[j]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>P(k=>k+1),[]),onFocusableItemRemove:f.useCallback(()=>P(k=>k-1),[]),children:r.jsx(be.div,{tabIndex:g||C===0?-1:0,"data-orientation":s,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:me(e.onMouseDown,()=>{S.current=!0}),onFocus:me(e.onFocus,k=>{const O=!S.current;if(k.target===k.currentTarget&&O&&!g){const T=new CustomEvent(rp,P5);if(k.currentTarget.dispatchEvent(T),!T.defaultPrevented){const A=N().filter(F=>F.focusable),I=A.find(F=>F.active),U=A.find(F=>F.id===b),re=[I,U,...A].filter(Boolean).map(F=>F.ref.current);y1(re,h)}}S.current=!1}),onBlur:me(e.onBlur,()=>p(!1))})})}),g1="RovingFocusGroupItem",v1=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:o=!1,tabStopId:i,children:a,...l}=e,d=Tn(),u=i||d,h=A5(g1,n),m=h.currentTabStopId===u,y=h1(n),{onFocusableItemAdd:x,onFocusableItemRemove:w,currentTabStopId:b}=h;return f.useEffect(()=>{if(s)return x(),()=>w()},[s,x,w]),r.jsx(sp.ItemSlot,{scope:n,id:u,focusable:s,active:o,children:r.jsx(be.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...l,ref:t,onMouseDown:me(e.onMouseDown,j=>{s?h.onItemFocus(u):j.preventDefault()}),onFocus:me(e.onFocus,()=>h.onItemFocus(u)),onKeyDown:me(e.onKeyDown,j=>{if(j.key==="Tab"&&j.shiftKey){h.onItemShiftTab();return}if(j.target!==j.currentTarget)return;const g=F5(j,h.orientation,h.dir);if(g!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let v=y().filter(N=>N.focusable).map(N=>N.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const N=v.indexOf(j.currentTarget);v=h.loop?L5(v,N+1):v.slice(N+1)}setTimeout(()=>y1(v))}}),children:typeof a=="function"?a({isCurrentTabStop:m,hasTabStop:b!=null}):a})})});v1.displayName=g1;var M5={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function D5(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function F5(e,t,n){const s=D5(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return M5[s]}function y1(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function L5(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var $5=x1,z5=v1,Vd="Tabs",[U5]=fn(Vd,[p1]),b1=p1(),[B5,op]=U5(Vd),j1=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:d="automatic",...u}=e,h=Dd(l),[m,y]=hn({prop:s,onChange:o,defaultProp:i!=null?i:"",caller:Vd});return r.jsx(B5,{scope:n,baseId:Tn(),value:m,onValueChange:y,orientation:a,dir:h,activationMode:d,children:r.jsx(be.div,{dir:h,"data-orientation":a,...u,ref:t})})});j1.displayName=Vd;var w1="TabsList",N1=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...o}=e,i=op(w1,n),a=b1(n);return r.jsx($5,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:s,children:r.jsx(be.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});N1.displayName=w1;var S1="TabsTrigger",C1=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:o=!1,...i}=e,a=op(S1,n),l=b1(n),d=_1(a.baseId,s),u=P1(a.baseId,s),h=s===a.value;return r.jsx(z5,{asChild:!0,...l,focusable:!o,active:h,children:r.jsx(be.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":u,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...i,ref:t,onMouseDown:me(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?a.onValueChange(s):m.preventDefault()}),onKeyDown:me(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&a.onValueChange(s)}),onFocus:me(e.onFocus,()=>{const m=a.activationMode!=="manual";!h&&!o&&m&&a.onValueChange(s)})})})});C1.displayName=S1;var k1="TabsContent",E1=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,forceMount:o,children:i,...a}=e,l=op(k1,n),d=_1(l.baseId,s),u=P1(l.baseId,s),h=s===l.value,m=f.useRef(h);return f.useEffect(()=>{const y=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(y)},[]),r.jsx(Kn,{present:o||h,children:({present:y})=>r.jsx(be.div,{"data-state":h?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!y,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:y&&i})})});E1.displayName=k1;function _1(e,t){return`${e}-trigger-${t}`}function P1(e,t){return`${e}-content-${t}`}var V5=j1,T1=N1,R1=C1,O1=E1;const A1=V5,ip=f.forwardRef(({className:e,...t},n)=>r.jsx(T1,{ref:n,className:Y("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));ip.displayName=T1.displayName;const vs=f.forwardRef(({className:e,...t},n)=>r.jsx(R1,{ref:n,className:Y("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));vs.displayName=R1.displayName;const cl=f.forwardRef(({className:e,...t},n)=>r.jsx(O1,{ref:n,className:Y("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));cl.displayName=O1.displayName;const Pr=f.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:Y("flex min-h-[80px] w-full rounded-md border border-input bg-card px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-colors hover:border-foreground/30",e),ref:n,...t}));Pr.displayName="Textarea";function H5({settings:e,onChange:t,fields:n,categories:s,pages:o}){var u,h,m,y,x,w,b,j;const i=((u=e.consentText)!=null?u:"").toString().trim(),a=((h=e.consentField)!=null?h:"").toString().trim(),l=new Set(n.map(g=>g.name===null||g.name===void 0?"":String(g.name)).filter(Boolean)),d=a&&!l.has(a)?{tone:"red",message:ce(c(`The selected acceptance field "%s" does not exist on this form. Every submission would be rejected. Pick a field that's actually present, or leave the dropdown empty.`),a)}:i&&!a?{tone:"amber",message:c("Consent text is configured but no acceptance field is set. The text is stored with each opt-in for audit, but the user never has to confirm it — this is not GDPR Art. 7 compliant. Pick an acceptance field below to enable the consent gate.")}:null;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{className:"text-base",children:c("Consent & categorization")}),r.jsx(_e,{children:c("What gets stored with each opt-in for GDPR audit, and how this form's opt-ins are grouped.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"consent-text",children:c("Consent text (GDPR)")}),r.jsx(Pr,{id:"consent-text",className:"mt-1.5",placeholder:c("I agree to receive the newsletter..."),rows:3,value:(m=e.consentText)!=null?m:"",onChange:g=>t("consentText",g.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:c("The wording the user is asked to agree to. Stored alongside each opt-in for the GDPR Art. 7 audit trail. Should match the label of the acceptance field below.")})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"consent-field",children:c("Consent acceptance field")}),r.jsxs(je,{value:(y=e.consentField)!=null?y:"",onValueChange:g=>t("consentField",g==="__none__"?"":g),children:[r.jsx(ve,{id:"consent-field",className:"mt-1.5",children:r.jsx(we,{placeholder:c("-- None --")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__none__",children:c("-- None --")}),n.filter(g=>g.name!==null&&g.name!==void 0&&g.name!=="").map(g=>{const p=String(g.name);return r.jsx(z,{value:p,children:g.label||p},p)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[c("Form field that captures the user's explicit consent (e.g. a CF7")," ",r.jsx("code",{children:"[acceptance]"})," ",c("checkbox). Submissions without this field set are rejected — the user must actively confirm. Leave empty for no acknowledgment gate (audit log only, not GDPR-compliant).")]})]}),d&&r.jsxs("div",{className:"rounded-md border p-3 flex items-start gap-2 text-xs "+(d.tone==="red"?"border-red-200 bg-red-50 text-red-900 dark:border-red-900/50 dark:bg-red-950/30 dark:text-red-200":"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200"),role:d.tone==="red"?"alert":void 0,children:[d.tone==="red"?r.jsx(td,{className:"h-4 w-4 mt-0.5 shrink-0"}):r.jsx(Gt,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsx("span",{className:"leading-relaxed",children:d.message})]}),r.jsxs("div",{children:[r.jsx(Q,{children:c("Category")}),r.jsxs(je,{value:String((x=e.category)!=null?x:0),onValueChange:g=>t("category",Number(g)),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:c("Select category")})}),r.jsx(ye,{children:Object.entries(s).map(([g,p])=>r.jsx(z,{value:String(g),children:String(p)},g))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:c("Optional grouping for opt-ins in the overview and stats. Useful when several forms feed into different topics (newsletter, contact, etc.).")})]})]})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{className:"text-base",children:c("Submission rules")}),r.jsx(_e,{children:c("Decide when a submission triggers the opt-in and where the user lands afterwards.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(Q,{children:c("Conditional trigger")}),r.jsxs(je,{value:(w=e.conditions)!=null?w:"disabled",onValueChange:g=>t("conditions",g),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"disabled",children:c("Disabled")}),n.filter(g=>g.name!==null&&g.name!==void 0&&g.name!=="").map(g=>{const p=String(g.name);return r.jsx(z,{value:p,children:g.label||p},p)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[c('Gate the opt-in on a form field. Example: only fire the confirmation mail when the user ticked a "Subscribe me" checkbox. Different from the consent acceptance field above — that one is the mandatory GDPR gate, this one is an optional secondary trigger. Set to')," ",r.jsx("code",{children:"Disabled"})," ",c("to always fire when the form is submitted.")]})]}),r.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{children:c("Confirmation page")}),r.jsxs(je,{value:String((b=e.confirmationPage)!=null?b:-1),onValueChange:g=>t("confirmationPage",Number(g)),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:c("Select page")})}),r.jsx(ye,{children:Object.entries(o).map(([g,p])=>r.jsx(z,{value:String(g),children:String(p)},g))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:c("Where the user lands after clicking the confirmation link. Leave on default to fall back to the site-wide confirmation page.")})]}),r.jsxs("div",{children:[r.jsx(Q,{children:c("Error redirect page")}),r.jsxs(je,{value:String((j=e.errorRedirectPage)!=null?j:-1),onValueChange:g=>t("errorRedirectPage",Number(g)),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:c("Select page")})}),r.jsx(ye,{children:Object.entries(o).map(([g,p])=>r.jsx(z,{value:String(g),children:String(p)},g))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:c("Where the user is sent on opt-in errors (invalid email, expired link, etc.). Leave on default to show a toast notification instead of a redirect.")})]})]})]})]})]})}function W5({settings:e,onChange:t,fields:n,templates:s,templateDetails:o,adminUrl:i}){var m,y,x,w,b,j,g,p;const a=(m=e.template)!=null?m:"",l=a.startsWith("custom_"),d=l?o==null?void 0:o[a]:null,u=l,h=d&&i?`#/email-templates/${d.id}/edit`:null;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{className:"text-base",children:c("Sender & recipient")}),r.jsx(_e,{children:c("Where the confirmation email comes from and which form field carries the user's address.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(Q,{children:[c("Recipient field")," ",r.jsx(ap,{})]}),r.jsxs(je,{value:(y=e.recipient)!=null?y:"",onValueChange:v=>t("recipient",v),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:c("Select field")})}),r.jsx(ye,{children:n.filter(v=>v.name!==null&&v.name!==void 0&&v.name!=="").map(v=>{const N=String(v.name);return r.jsx(z,{value:N,children:v.label||N},N)})})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[c("The form field that holds the subscriber's email address.")," ",r.jsx("strong",{children:c("Required")})," ",c("— without it the confirmation mail has nowhere to go and the opt-in is rejected.")]})]}),r.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"from-email",children:c("From email")}),r.jsx(Pe,{id:"from-email",className:"mt-1.5",value:(x=e.sender)!=null?x:"",onChange:v=>t("sender",v.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:c("Sender address for the confirmation mail. Leave empty to use the WordPress default (site admin email).")})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"from-name",children:c("From name")}),r.jsx(Pe,{id:"from-name",className:"mt-1.5",value:(w=e.senderName)!=null?w:"",onChange:v=>t("senderName",v.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[c("Display name shown as")," ",r.jsx("code",{children:"From: Name <email>"}),c(". Leave empty for a bare-email From header.")]})]})]})]})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{className:"text-base",children:c("Email content")}),r.jsx(_e,{children:c("Subject, template, and the body shown to the user.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(Q,{htmlFor:"subject",children:[c("Subject")," ",r.jsx(ap,{})]}),r.jsx(Pe,{id:"subject",className:"mt-1.5",value:(b=e.subject)!=null?b:"",onChange:v=>t("subject",v.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[c("Subject line of the confirmation mail.")," ",r.jsx("strong",{children:c("Required")}),c(" — empty subjects often land in spam folders.")]})]}),r.jsxs("div",{children:[r.jsx(Q,{children:c("Email template")}),r.jsxs(je,{value:(j=e.template)!=null?j:"",onValueChange:v=>t("template",v),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:c("Select template")})}),r.jsx(ye,{children:Object.entries(s).map(([v,N])=>r.jsx(z,{value:v,children:String(N)},v))})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[c("HTML wrapper for the body.")," ",r.jsx("code",{children:"blank"})," ",c("keeps the body verbatim; the built-in")," ",r.jsx("code",{children:"newsletter_*"})," ",c("templates wrap it in a styled HTML shell. Custom templates are built in the Email Designer and override the body field below.")]})]}),r.jsxs("div",{children:[r.jsxs(Q,{htmlFor:"body",children:[c("Message body")," ",!l&&r.jsx(ap,{})]}),u?r.jsx(q5,{title:(g=d==null?void 0:d.title)!=null?g:a,editorUrl:h}):r.jsxs(r.Fragment,{children:[r.jsx(Pr,{id:"body",className:"mt-1.5 font-mono text-xs",rows:12,value:(p=e.body)!=null?p:"",onChange:v=>t("body",v.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[c("Mail body. Must contain")," ",r.jsx("code",{children:"[doubleoptinlink]"}),c(" — that placeholder is replaced by the actual confirmation URL at send time. Pick a custom template above to bypass this field and edit the body visually instead.")]}),r.jsxs(sl,{children:[r.jsx(ol,{className:"text-xs text-primary hover:underline mt-1",children:c("Show placeholders")}),r.jsx(il,{className:"mt-2 flex flex-wrap gap-1",children:w5.map(v=>r.jsx("code",{className:"bg-secondary text-foreground text-[10px] px-1.5 py-0.5 rounded cursor-pointer hover:bg-primary/10",children:v},v))})]})]})]})]})]})]})}function ap(){return r.jsx("span",{"aria-label":c("Required"),title:c("Required field — Double Opt-In cannot be enabled until this is filled in"),className:"text-destructive font-bold",children:"*"})}function q5({title:e,editorUrl:t}){return r.jsxs("div",{className:"mt-1.5 rounded-lg border bg-gradient-to-br from-primary to-primary/70 text-primary-foreground p-5 flex items-start gap-4",children:[r.jsx("div",{className:"rounded-full bg-primary-foreground/15 p-2 shrink-0",children:r.jsx(Qn,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:c("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:ce(c("%s was built in the email designer. Edit the message body there — this textarea is bypassed for custom templates."),e)}),t?r.jsx(H,{asChild:!0,variant:"secondary",size:"sm",children:r.jsxs("a",{href:t,children:[r.jsx(rd,{className:"h-3.5 w-3.5 mr-1.5"}),c("Edit in Email Designer")]})}):r.jsx(H,{variant:"secondary",size:"sm",disabled:!0,children:c("Editor link unavailable")})]})]})}function K5({settings:e,onChange:t,fields:n}){var l;const s=(d,u)=>{var m;const h={...(m=e.fieldMapping)!=null?m:{},[d]:u};t("fieldMapping",h)},o=tp.filter(d=>{var u;return!!((u=e.fieldMapping)!=null&&u[d.key])}).length,i=new Set(Object.values((l=e.fieldMapping)!=null?l:{}).filter(Boolean).map(d=>String(d))),a=n.filter(d=>d.name!==null&&d.name!==void 0&&d.name!==""&&!i.has(String(d.name)));return r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{className:"text-base",children:c("Field mapping")}),r.jsxs(_e,{children:[c("Map placeholder tags used in the email body to the real form fields. Unmapped tags fall back to auto-detection by name (e.g.")," ",r.jsx("code",{children:"your-email"})," → ",r.jsx("code",{children:"[doi_email]"}),c("); if no auto-match is found they render as an empty string. System placeholders like")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",c("are filled by the plugin itself and are not mapped here.")]})]}),r.jsxs(ne,{className:"space-y-6",children:[N5.map(d=>{const u=tp.filter(h=>h.group===d.id);return u.length===0?null:r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-baseline gap-2 mb-3",children:[r.jsx("h4",{className:"text-sm font-semibold",children:d.label}),r.jsx("span",{className:"text-xs text-muted-foreground",children:d.description})]}),r.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:u.map(h=>{var m,y;return r.jsx(Q5,{mapping:h,value:(y=(m=e.fieldMapping)==null?void 0:m[h.key])!=null?y:"",fields:n,onChange:x=>s(h.key,x)},h.key)})})]},d.id)}),r.jsxs("div",{className:"border-t pt-4 space-y-2 text-xs",children:[r.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx(D0,{className:"h-3.5 w-3.5 text-green-600"}),r.jsx("span",{children:ce(c("%d of %d placeholders mapped"),o,tp.length)})]}),a.length>0&&r.jsxs("div",{className:"flex items-start gap-2 text-amber-700",children:[r.jsx(td,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"}),r.jsxs("div",{children:[r.jsxs("span",{className:"font-medium",children:[a.length," form field",a.length===1?"":"s"," not mapped"]}),r.jsxs("span",{className:"text-muted-foreground",children:[" ",c("— captured on submit but never read by the email.")," "]}),r.jsxs("div",{className:"mt-1 flex flex-wrap gap-1",children:[a.slice(0,8).map(d=>{const u=String(d.name);return r.jsx(Qe,{variant:"outline",className:"text-[10px] font-mono",children:d.label||u},u)}),a.length>8&&r.jsxs(Qe,{variant:"outline",className:"text-[10px]",children:["+",a.length-8]})]})]})]})]})]})]})}function Q5({mapping:e,value:t,fields:n,onChange:s}){const o=!!t;return r.jsxs("div",{className:"rounded-md border p-3 space-y-2 transition-colors "+(o?"bg-primary/5 border-primary/20":"bg-muted/30"),children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("code",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded "+(o?"bg-primary/10 text-primary":"bg-secondary text-muted-foreground"),children:e.tag}),r.jsx("span",{className:"text-xs text-muted-foreground truncate",children:e.label})]}),r.jsxs(je,{value:t||"__none__",onValueChange:i=>s(i==="__none__"?"":i),children:[r.jsx(ve,{className:"h-8 text-xs",children:r.jsx(we,{placeholder:c("Select form field")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__none__",children:c("-- None --")}),n.filter(i=>i.name!==null&&i.name!==void 0&&i.name!=="").map(i=>{const a=String(i.name);return r.jsx(z,{value:a,children:i.label||a},a)})]})]})]})}const G5=["general","email","mapping","pro"];function X5(){var T,A,I,U,M,re;const{integration:e,id:t}=Bc(),n=qn(),s=Je(),[o,i]=F2(),a=o.get("tab"),l=G5.includes(a!=null?a:"")?a:"general",d=F=>{const X=new URLSearchParams(o);F==="general"?X.delete("tab"):X.set("tab",F),i(X,{replace:!0})},[u,h]=f.useState({}),{data:m,isLoading:y}=Se({queryKey:["form-settings",t,e],queryFn:()=>Z(`/forms/${e}/${t}/settings`),enabled:!!e&&!!t}),x=(T=m==null?void 0:m.data)!=null&&T.fields&&Array.isArray(m.data.fields)?m.data.fields:[];f.useEffect(()=>{var F;if((F=m==null?void 0:m.data)!=null&&F.settings){const X=m.data.settings,D=Array.isArray(m.data.fields)?m.data.fields:[];if(X.enabled&&np(X,D).length>0){h({...X,enabled:!1});return}h({...X})}},[m]);const w=Re({mutationFn:F=>Z(`/forms/${e}/${t}/settings`,{method:"PUT",body:JSON.stringify({settings:F})}),onSuccess:F=>{var X,D;if(s.invalidateQueries({queryKey:["forms"]}),s.invalidateQueries({queryKey:["form-settings"]}),(X=F.data)!=null&&X.autoDisabled){const L=(D=F.data.missing)!=null?D:[];K.warning(c("Double Opt-In was auto-disabled."),{description:L.length>0?ce(c("Configuration is incomplete: %s."),uo(L)):c("Configuration is incomplete.")}),h(J=>({...J,enabled:!1}));return}K.success(c("Settings saved"))},onError:F=>{if(F instanceof Om&&F.code==="INCOMPLETE_CONFIG"){K.error(c("Cannot enable Double Opt-In: configuration is incomplete."),{description:F.missing&&F.missing.length>0?ce(c("Missing: %s"),uo(F.missing)):void 0}),h(X=>({...X,enabled:!1}));return}K.error(F.message)}}),b=(F,X)=>h(D=>{const L={...D,[F]:X};return L.enabled&&np(L,x).length>0&&(L.enabled=!1),L}),g=f.useSyncExternalStore(Zy,()=>Jy("forms.pro-features"),()=>[]).length>0;if(f.useEffect(()=>{l==="pro"&&!g&&d("general")},[l,g]),y||!(m!=null&&m.data))return r.jsxs("div",{className:"space-y-4",children:[r.jsx(oe,{className:"h-10 w-64"}),r.jsx(oe,{className:"h-10 w-full"}),r.jsx(oe,{className:"h-96 w-full"})]});const p=m.data,v=$t(),N={settings:u,onChange:b,fields:x,templates:(A=p.templates)!=null?A:{},categories:(I=p.categories)!=null?I:{},pages:(U=p.pages)!=null?U:{},templateDetails:(M=p.templateDetails)!=null?M:{},adminUrl:v.adminUrl},S=np(u,x),C=S.length===0,P=!C&&!u.enabled,k=F=>{if(F&&!C){K.error(c("Cannot enable Double Opt-In: configuration is incomplete."),{description:ce(c("Missing: %s."),uo(S))});return}b("enabled",F)},O=new Set;return(S.includes("recipient")||S.includes("subject")||S.includes("body_or_template"))&&O.add("email"),r.jsxs("div",{className:"space-y-6",children:[r.jsx("div",{className:"sticky top-0 z-30 -mx-4 sm:-mx-6 px-4 sm:px-6 pt-4 pb-4 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 border-b",children:r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{className:"space-y-2 min-w-0",children:[r.jsxs("button",{onClick:()=>n("/forms"),className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[r.jsx(Jc,{className:"h-3.5 w-3.5"}),c("Back to forms")]}),r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight truncate",children:p.title}),r.jsx("p",{className:"text-muted-foreground text-sm",children:ce(c("Configure Double Opt-In for this %s form."),p.integration)})]})]}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-2 rounded-lg border px-3 py-2 "+(C?"bg-card":"bg-amber-50 border-amber-300 dark:bg-amber-950/30 dark:border-amber-900/50"),title:C?void 0:ce(c("Configuration incomplete. Missing: %s"),uo(S)),children:[!C&&r.jsx(Gt,{className:"h-4 w-4 text-amber-600 shrink-0","aria-label":c("Configuration incomplete")}),r.jsx(Q,{htmlFor:"form-enabled",className:"text-sm",children:u.enabled?c("Enabled"):c("Disabled")}),r.jsx(Zt,{id:"form-enabled",checked:(re=u.enabled)!=null?re:!1,disabled:P,onCheckedChange:k,className:"data-[state=checked]:bg-success"})]}),r.jsxs(Qe,{variant:"secondary",className:"font-mono text-[10px] hidden sm:inline-flex",children:["#",p.id]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(H,{variant:"outline",size:"sm",onClick:()=>n("/forms"),children:c("Cancel")}),r.jsx(H,{size:"sm",disabled:w.isPending,onClick:()=>w.mutate(u),children:w.isPending?c("Saving..."):c("Save settings")})]})]})]})}),!C&&r.jsx("div",{role:"alert",className:"!mt-20 rounded-md border border-amber-300 bg-amber-50 px-4 py-3 text-sm text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200",children:r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(Gt,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("div",{className:"font-semibold",children:c("Configuration incomplete")}),r.jsx("p",{className:"leading-relaxed",children:c("Double Opt-In cannot be enabled for this form until the following required fields are filled in:")}),r.jsx("ul",{className:"list-disc list-inside ml-1 space-y-0.5",children:S.map(F=>{var X;return r.jsx("li",{children:(X=d1[F])!=null?X:F},F)})})]})]})}),r.jsxs(A1,{value:l,onValueChange:d,className:"!mt-12",children:[r.jsxs(ip,{children:[r.jsx(vs,{value:"general",children:c("General")}),r.jsxs(vs,{value:"email",className:"gap-1",children:[c("Email"),O.has("email")&&r.jsx(Gt,{className:"h-3 w-3 text-amber-600","aria-label":c("Tab contains incomplete required fields")})]}),r.jsx(vs,{value:"mapping",children:c("Mapping")}),g&&r.jsx(vs,{value:"pro",children:c("Pro Features")})]}),r.jsx(cl,{value:"general",className:"mt-6",children:r.jsx(H5,{...N})}),r.jsx(cl,{value:"email",className:"mt-6",children:r.jsx(W5,{...N})}),r.jsx(cl,{value:"mapping",className:"mt-6",children:r.jsx(K5,{...N})}),g&&r.jsx(cl,{value:"pro",className:"mt-6",children:r.jsx(Jn,{id:"forms.pro-features",data:N})})]}),r.jsx(Jn,{id:"forms.integration-settings",data:{form:{id:p.id,title:p.title,integration:p.integration},integration:p.integration,settings:u}})]})}function Y5(){return r.jsxs(xn,{children:[r.jsx(In,{children:r.jsx(Ie,{children:Array.from({length:6}).map((e,t)=>r.jsx(Oe,{children:r.jsx(oe,{className:"h-3 w-16"})},t))})}),r.jsx(gn,{children:Array.from({length:3}).map((e,t)=>r.jsx(Ie,{children:Array.from({length:6}).map((n,s)=>r.jsx(fe,{children:r.jsx(oe,{className:"h-3 w-full"})},s))},t))})]})}function I1(){var p;const e=Je(),[t,n]=f.useState(""),[s,o]=f.useState(null),[i,a]=f.useState(null),[l,d]=f.useState(""),{data:u,isLoading:h}=Se({queryKey:["categories"],queryFn:()=>Z("/categories")}),m=Re({mutationFn:v=>Z("/categories",{method:"POST",body:JSON.stringify({name:v})}),onSuccess:()=>{K.success(c("Category created")),n(""),e.invalidateQueries({queryKey:["categories"]})},onError:v=>{K.error(v.message||c("Failed to create category"))}}),y=Re({mutationFn:({id:v,name:N})=>Z(`/categories/${v}`,{method:"PUT",body:JSON.stringify({name:N})}),onSuccess:()=>{K.success(c("Category updated")),a(null),d(""),e.invalidateQueries({queryKey:["categories"]})},onError:v=>{K.error(v.message||c("Failed to update category"))}}),x=Re({mutationFn:v=>Z(`/categories/${v}`,{method:"DELETE"}),onSuccess:()=>{K.success(c("Category deleted")),o(null),e.invalidateQueries({queryKey:["categories"]})},onError:v=>{K.error(v.message||c("Failed to delete category"))}}),w=(p=u==null?void 0:u.data)!=null?p:[];function b(v){a(v.id),d(v.name)}function j(){a(null),d("")}function g(){i!==null&&l.trim()&&y.mutate({id:i,name:l.trim()})}return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Categories")}),r.jsx("p",{className:"text-muted-foreground",children:c("Manage opt-in categories")})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(te,{children:r.jsx(ne,{className:"p-0",children:h?r.jsx(Y5,{}):r.jsxs(xn,{children:[r.jsx(In,{children:r.jsxs(Ie,{children:[r.jsx(Oe,{className:"text-xs",children:c("ID")}),r.jsx(Oe,{className:"text-xs",children:c("Name")}),r.jsx(Oe,{className:"text-xs",children:c("Opt-Ins")}),r.jsx(Oe,{className:"text-xs",children:c("Created")}),r.jsx(Oe,{className:"text-xs",children:c("Updated")}),r.jsx(Oe,{className:"text-xs text-right",children:c("Actions")})]})}),r.jsx(gn,{children:w.length===0?r.jsx(Ie,{children:r.jsx(fe,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:c("No categories found")})}):w.map(v=>r.jsxs(Ie,{children:[r.jsx(fe,{className:"tabular-nums text-muted-foreground text-xs",children:v.id}),r.jsx(fe,{children:i===v.id?r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(Pe,{value:l,onChange:N=>d(N.target.value),className:"h-7 text-sm",onKeyDown:N=>{N.key==="Enter"&&g(),N.key==="Escape"&&j()},autoFocus:!0}),r.jsx(H,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:g,disabled:y.isPending,children:r.jsx(ed,{className:"h-3.5 w-3.5 text-success"})}),r.jsx(H,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:j,children:r.jsx(od,{className:"h-3.5 w-3.5"})})]}):r.jsx(un,{to:`/categories/${v.id}`,className:"text-primary hover:underline font-medium text-sm",children:v.name})}),r.jsx(fe,{className:"tabular-nums text-muted-foreground text-xs",children:v.optin_count}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:v.createtime}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:v.updatetime}),r.jsx(fe,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-1",children:[r.jsxs(H,{variant:"ghost",size:"sm",className:"text-xs h-7",onClick:()=>b(v),children:[r.jsx(rd,{className:"h-3 w-3 mr-1"}),c("Edit")]}),r.jsx(H,{variant:"ghost",size:"sm",className:"text-destructive text-xs h-7",onClick:()=>o(v.id),children:c("Delete")})]})})]},v.id))})]})})})}),r.jsx("div",{children:r.jsxs(te,{children:[r.jsx(le,{className:"pb-3",children:r.jsx(de,{className:"text-sm font-medium",children:c("New Category")})}),r.jsxs(ne,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Name:")}),r.jsx(Pe,{className:"mt-1.5",value:t,onChange:v=>n(v.target.value),placeholder:c("Category name"),onKeyDown:v=>{v.key==="Enter"&&t.trim()&&m.mutate(t.trim())}})]}),r.jsx(H,{size:"sm",disabled:!t.trim()||m.isPending,onClick:()=>{t.trim()&&m.mutate(t.trim())},children:m.isPending?c("Adding..."):c("Add")})]})]})})]}),r.jsx(_r,{open:s!==null,onOpenChange:()=>o(null),children:r.jsxs(er,{className:"max-w-[400px]",children:[r.jsxs(tr,{children:[r.jsx(nr,{children:c("Delete Category")}),r.jsx(rr,{children:c("Are you sure? This action cannot be undone.")})]}),r.jsxs(gs,{children:[r.jsx(H,{variant:"outline",onClick:()=>o(null),children:c("Cancel")}),r.jsx(H,{variant:"destructive",disabled:x.isPending,onClick:()=>{s!==null&&x.mutate(s)},children:x.isPending?c("Deleting..."):c("Delete")})]})]})})]})}function lp({icon:e,title:t,description:n,children:s}){return r.jsxs(te,{children:[r.jsx(le,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(e,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(de,{className:"text-sm font-medium",children:t}),r.jsx(_e,{className:"text-xs",children:n})]})]})}),r.jsx(ne,{className:"border-t pt-4 space-y-4",children:s})]})}function Z5(){return r.jsx("div",{className:"space-y-4",children:Array.from({length:4}).map((e,t)=>r.jsxs(te,{children:[r.jsx(le,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(oe,{className:"h-9 w-9 rounded-lg"}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(oe,{className:"h-4 w-32"}),r.jsx(oe,{className:"h-3 w-48"})]})]})}),r.jsxs(ne,{className:"border-t pt-4 space-y-4",children:[r.jsx(oe,{className:"h-9 w-full"}),r.jsx(oe,{className:"h-9 w-full"})]})]},t))})}function J5(){var p,v,N,S,C,P,k,O,T;const{isProInstalled:e,isProLicenseActive:t}=Qa(),n=ti("reminder"),s=ti("mx-validator"),o=ti("domain-blocklist"),i=!n&&!s&&!o,a=Je(),l=$t(),{data:d,isLoading:u}=Se({queryKey:["settings"],queryFn:()=>Z("/settings")}),{data:h}=Se({queryKey:["pages"],queryFn:()=>Z("/settings/pages")}),[m,y]=f.useState({}),[x,w]=f.useState(!1);f.useEffect(()=>{d!=null&&d.data&&!x&&(y(d.data),w(!0))},[d,x]);const b=Re({mutationFn:()=>Z("/settings",{method:"PUT",body:JSON.stringify(m)}),onSuccess:A=>{K.success(c("Settings saved successfully")),a.invalidateQueries({queryKey:["settings"]})},onError:A=>{K.error(A.message||c("Failed to save settings"))}});function j(A,I){y(U=>({...U,[A]:I}))}const g=(p=h==null?void 0:h.data)!=null?p:[];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Settings")}),r.jsx("p",{className:"text-muted-foreground",children:c("Configure global Double Opt-In settings")})]}),r.jsxs(H,{size:"sm",onClick:()=>b.mutate(),disabled:b.isPending,children:[r.jsx(no,{className:"mr-2 h-4 w-4"}),b.isPending?c("Saving..."):c("Save Changes")]})]}),u?r.jsx(Z5,{}):r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[r.jsxs(lp,{icon:wr,title:c("Data Retention"),description:c("Configure automatic cleanup of opt-in records"),children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs font-medium",children:c("Delete Opt-Ins after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Pe,{type:"number",value:(v=m.delete)!=null?v:12,onChange:A=>j("delete",Number(A.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(je,{value:(N=m.delete_period)!=null?N:"months",onValueChange:A=>j("delete_period",A),children:[r.jsx(ve,{className:"w-28 h-9",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"days",children:c("Days")}),r.jsx(z,{value:"months",children:c("Months")}),r.jsx(z,{value:"years",children:c("Years")})]})]})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:c("Set to 0 to disable. GDPR recommends regular cleanup.")})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs font-medium",children:c("Delete Unconfirmed after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Pe,{type:"number",value:(S=m.delete_unconfirmed)!=null?S:7,onChange:A=>j("delete_unconfirmed",Number(A.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(je,{value:(C=m.delete_unconfirmed_period)!=null?C:"months",onValueChange:A=>j("delete_unconfirmed_period",A),children:[r.jsx(ve,{className:"w-28 h-9",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"days",children:c("Days")}),r.jsx(z,{value:"months",children:c("Months")}),r.jsx(z,{value:"years",children:c("Years")})]})]})]})]})]}),r.jsx(lp,{icon:ZE,title:c("Privacy"),description:c("Privacy policy and GDPR settings"),children:r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs font-medium",children:c("Privacy Policy Page")}),r.jsxs(je,{value:m.privacy_policy_page?String(m.privacy_policy_page):"",onValueChange:A=>j("privacy_policy_page",Number(A)),children:[r.jsx(ve,{className:"mt-1.5 h-9",children:r.jsx(we,{placeholder:c("Select page")})}),r.jsx(ye,{children:g.map(A=>r.jsx(z,{value:String(A.id),children:A.title},A.id))})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:c("Used for [doubleoptin_privacy_url] placeholder")})]})}),r.jsx(lp,{icon:Km,title:c("Security"),description:c("Token and rate limiting configuration"),children:r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs font-medium",children:c("Token Expiry (Hours)")}),r.jsx(Pe,{type:"number",value:(P=m.token_expiry_hours)!=null?P:48,onChange:A=>j("token_expiry_hours",Number(A.target.value)),className:"mt-1.5 h-9",min:0,max:720})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs font-medium",children:c("Rate Limit IP")}),r.jsx(Pe,{type:"number",value:(k=m.rate_limit_ip)!=null?k:5,onChange:A=>j("rate_limit_ip",Number(A.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs font-medium",children:c("Rate Limit Email")}),r.jsx(Pe,{type:"number",value:(O=m.rate_limit_email)!=null?O:3,onChange:A=>j("rate_limit_email",Number(A.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs font-medium",children:c("Rate Limit Window (Min)")}),r.jsx(Pe,{type:"number",value:(T=m.rate_limit_window)!=null?T:60,onChange:A=>j("rate_limit_window",Number(A.target.value)),className:"mt-1.5 h-9",min:1,max:1440})]})]})}),r.jsx(te,{children:r.jsx(le,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(yt,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(de,{className:"text-sm font-medium",children:c("Telemetry")}),r.jsx(_e,{className:"text-xs",children:c("Helps improve the plugin. No personal data collected.")})]})]}),r.jsx(Zt,{checked:!!m.telemetry,onCheckedChange:A=>j("telemetry",A?1:0)})]})})}),r.jsx(te,{children:r.jsx(le,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(n_,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(de,{className:"text-sm font-medium",children:c("Show credit link")}),r.jsx(_e,{className:"text-xs",children:c('Adds a small "Double Opt-In by Forge12" link on the page a subscriber lands on after confirming. Off by default.')})]})]}),r.jsx(Zt,{checked:!!m.credit_link,onCheckedChange:A=>j("credit_link",A?1:0)})]})})}),r.jsx(te,{children:r.jsx(le,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx($a,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(de,{className:"text-sm font-medium",children:c("Keep data on uninstall")}),r.jsx(_e,{className:"text-xs",children:c("Preserve opt-in records and categories if the plugin is deleted. Turn off for a full cleanup on uninstall.")})]})]}),r.jsx(Zt,{checked:!!m.keep_data_on_uninstall,onCheckedChange:A=>j("keep_data_on_uninstall",A?1:0)})]})})})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(te,{children:r.jsxs(ne,{className:"flex items-start gap-2 p-4",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:c("Global settings affect all forms. Individual form settings can override some options.")})]})}),i&&r.jsx(te,{className:"border-primary/20 bg-primary/[0.03]",children:r.jsx(ne,{className:"p-5",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(Nr,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold text-foreground",children:c("Unlock Pro Features")}),r.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1 mt-2",children:[r.jsxs("li",{children:["✓ ",c("Automatic reminders")]}),r.jsxs("li",{children:["✓ ",c("Email domain validation")]}),r.jsxs("li",{children:["✓ ",c("Disposable email blocking")]}),r.jsxs("li",{children:["✓ ",c("Priority support")]})]}),r.jsxs("a",{href:l.upgradeUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 pro-gradient text-primary-foreground font-semibold text-sm px-5 py-2 rounded transition-opacity hover:opacity-90 mt-3 w-full justify-center",children:[r.jsx(Nr,{className:"h-3.5 w-3.5"}),c("Upgrade to Pro")]})]})]})})})]})]}),r.jsx(Jn,{id:"settings.tab",data:{settings:m}})]})}function eA(){var h;const e=Je(),[t,n]=f.useState(null),{data:s,isLoading:o}=Se({queryKey:["email-templates"],queryFn:()=>Z("/email-templates"),refetchOnMount:"always"}),i=(h=s==null?void 0:s.data)!=null?h:[],a=Re({mutationFn:m=>Z(`/email-templates/${m}/duplicate`,{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(c("Template duplicated"))},onError:m=>K.error(m.message)}),l=Re({mutationFn:m=>Z(`/email-templates/${m}`,{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(c("Template deleted")),n(null)},onError:m=>{K.error(m.message),n(null)}}),d=Re({mutationFn:({id:m,status:y})=>Z(`/email-templates/${m}`,{method:"PUT",body:JSON.stringify({status:y})}),onSuccess:(m,y)=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(y.status==="publish"?c("Template published"):c("Template moved to draft"))},onError:m=>K.error(m.message)}),u=m=>m==="publish"||m==="Published";return o?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:c("Manage your email templates")})]}),r.jsx(te,{children:r.jsx(ne,{className:"pt-6 space-y-3",children:[1,2,3].map(m=>r.jsx(oe,{className:"h-10 w-full"},m))})})]}):i.length===0?r.jsxs("div",{className:"space-y-6",children:[r.jsx("div",{children:r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Email Templates")})}),r.jsx(te,{className:"py-16 text-center",children:r.jsxs(ne,{children:[r.jsx(B0,{className:"h-16 w-16 text-muted-foreground/30 mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-semibold mb-1",children:c("No templates yet")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:c("Create your first email template")}),r.jsx(H,{asChild:!0,children:r.jsx(un,{to:"/email-templates/new",children:c("Create Template")})})]})})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:c("Manage your email templates")})]}),r.jsx(H,{size:"sm",asChild:!0,children:r.jsxs(un,{to:"/email-templates/new",children:[r.jsx(ai,{className:"h-4 w-4 mr-1"})," ",c("Create New")]})})]}),r.jsx(te,{children:r.jsx(ne,{className:"p-0",children:r.jsxs(xn,{children:[r.jsx(In,{children:r.jsxs(Ie,{children:[r.jsx(Oe,{className:"text-xs",children:c("Name")}),r.jsx(Oe,{className:"text-xs",children:c("Status")}),r.jsx(Oe,{className:"text-xs",children:c("Created")}),r.jsx(Oe,{className:"text-xs",children:c("Modified")}),r.jsx(Oe,{className:"text-xs text-right",children:c("Actions")})]})}),r.jsx(gn,{children:i.map(m=>r.jsxs(Ie,{children:[r.jsx(fe,{children:r.jsx(un,{to:`/email-templates/${m.id}/edit`,className:"text-primary hover:underline font-medium text-sm",children:m.title})}),r.jsx(fe,{children:r.jsxs(je,{value:u(m.status)?"publish":"draft",onValueChange:y=>d.mutate({id:m.id,status:y}),disabled:d.isPending,children:[r.jsx(ve,{className:`h-8 w-[150px] text-xs ${u(m.status)?"text-green-600 dark:text-green-500":"text-muted-foreground"}`,children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"publish",children:c("Published")}),r.jsx(z,{value:"draft",children:c("Draft")})]})]})}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:m.created_at}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:m.modified_at}),r.jsxs(fe,{className:"text-right space-x-1",children:[r.jsx(H,{size:"sm",className:"text-xs",asChild:!0,children:r.jsx(un,{to:`/email-templates/${m.id}/edit`,children:c("Edit")})}),r.jsx(H,{size:"sm",variant:"outline",className:"text-xs",disabled:a.isPending,onClick:()=>a.mutate(m.id),children:c("Duplicate")}),r.jsx(H,{size:"sm",variant:"ghost",className:"text-destructive text-xs",onClick:()=>n(m.id),children:c("Delete")})]})]},m.id))})]})})}),r.jsx(_r,{open:t!==null,onOpenChange:()=>n(null),children:r.jsxs(er,{className:"max-w-[400px]",children:[r.jsxs(tr,{children:[r.jsx(nr,{children:c("Delete Template")}),r.jsx(rr,{children:c("Are you sure you want to delete this template? This action cannot be undone.")})]}),r.jsxs(gs,{children:[r.jsx(H,{variant:"outline",onClick:()=>n(null),children:c("Cancel")}),r.jsx(H,{variant:"destructive",disabled:l.isPending,onClick:()=>{t!==null&&l.mutate(t)},children:l.isPending?c("Deleting..."):c("Delete")})]})]})})]})}function tA(){var m;const e=Je(),[t,n]=f.useState(null),[s,o]=f.useState(""),{data:i,isLoading:a}=Se({queryKey:["db-stats"],queryFn:()=>Z("/database/stats")}),l=(m=i==null?void 0:i.data)!=null?m:{total:0,confirmed:0,unconfirmed:0},d=Re({mutationFn:y=>Z("/database/clean",{method:"POST",body:JSON.stringify({scope:y})}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),K.success(c("Records deleted successfully")),n(null)},onError:y=>{K.error(y.message),n(null)}}),u=Re({mutationFn:()=>Z("/database/reset",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),K.success(c("Database reset successfully")),n(null),o("")},onError:y=>{K.error(y.message),n(null),o("")}}),h=[{key:"all",title:c("Delete All Opt-Ins"),desc:c("Remove all opt-in records from the database"),icon:pn},{key:"confirmed",title:c("Delete Confirmed Only"),desc:c("Remove only confirmed opt-in records"),icon:oi},{key:"unconfirmed",title:c("Delete Unconfirmed Only"),desc:c("Remove only unconfirmed/pending opt-in records"),icon:wr}];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Database Management")}),r.jsx("p",{className:"text-muted-foreground",children:c("Manage your opt-in database records")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(de,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx($a,{className:"h-3 w-3"})," ",c("Total Records")]})}),r.jsx(ne,{children:a?r.jsx(oe,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold",children:l.total})})]}),r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(de,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(oi,{className:"h-3 w-3 text-success"})," ",c("Confirmed")]})}),r.jsx(ne,{children:a?r.jsx(oe,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-success",children:l.confirmed})})]}),r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(de,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(wr,{className:"h-3 w-3 text-warning"})," ",c("Unconfirmed")]})}),r.jsx(ne,{children:a?r.jsx(oe,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:l.unconfirmed})})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-2 bg-warning/10 text-warning rounded-lg px-4 py-3 text-sm",children:[r.jsx(Gt,{className:"h-4 w-4 shrink-0"}),c("These actions are irreversible. Please backup your database first.")]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:h.map(y=>r.jsx(te,{className:"text-center",children:r.jsxs(ne,{className:"pt-6 pb-4",children:[r.jsx(y.icon,{className:"h-8 w-8 mx-auto mb-3 text-muted-foreground"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:y.title}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:y.desc}),r.jsx(H,{variant:y.key==="all"?"destructive":"outline",size:"sm",className:"text-xs",onClick:()=>n(y.key),children:y.title})]})},y.key))}),r.jsx(te,{className:"border-destructive/50",children:r.jsxs(ne,{className:"pt-6 pb-4 text-center",children:[r.jsx(V0,{className:"h-8 w-8 mx-auto mb-3 text-destructive"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:c("Reset Database")}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:c("Drop and recreate all Double Opt-In tables. This removes all data permanently.")}),r.jsx(H,{variant:"destructive",size:"sm",className:"text-xs",onClick:()=>n("reset"),children:c("Reset Database")})]})})]}),r.jsx("div",{children:r.jsx(te,{children:r.jsxs(ne,{className:"flex items-start gap-2 p-4",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:c("For automated cleanup, configure auto-deletion in Settings.")}),r.jsxs("a",{href:"#/settings",className:"text-xs text-primary hover:underline flex items-center gap-1",children:[r.jsx(i_,{className:"h-3 w-3"})," ",c("Go to Settings")]})]})]})})})]}),r.jsx(_r,{open:t!==null&&t!=="reset",onOpenChange:()=>n(null),children:r.jsxs(er,{className:"max-w-[400px]",children:[r.jsxs(tr,{children:[r.jsx(nr,{children:c("Confirm Deletion")}),r.jsx(rr,{children:c("Are you sure you want to permanently delete these records? This action cannot be undone.")})]}),r.jsxs(gs,{children:[r.jsx(H,{variant:"outline",onClick:()=>n(null),children:c("Cancel")}),r.jsx(H,{variant:"destructive",disabled:d.isPending,onClick:()=>{t&&d.mutate(t)},children:d.isPending?c("Deleting..."):c("Delete")})]})]})}),r.jsx(_r,{open:t==="reset",onOpenChange:()=>{n(null),o("")},children:r.jsxs(er,{className:"max-w-[440px]",children:[r.jsxs(tr,{children:[r.jsx(nr,{className:"text-destructive",children:c("Reset Database")}),r.jsx(rr,{children:c("This will drop and recreate all Double Opt-In tables, permanently destroying all data. This cannot be undone.")})]}),r.jsxs("div",{className:"space-y-3 py-2",children:[r.jsx(Q,{className:"text-sm",children:c("Type DELETE to confirm:")}),r.jsx(Pe,{value:s,onChange:y=>o(y.target.value),placeholder:"DELETE",className:"font-mono"})]}),r.jsxs(gs,{children:[r.jsx(H,{variant:"outline",onClick:()=>{n(null),o("")},children:c("Cancel")}),r.jsx(H,{variant:"destructive",disabled:s!=="DELETE"||u.isPending,onClick:()=>u.mutate(),children:u.isPending?c("Resetting..."):c("Reset Database")})]})]})})]})}function cp({children:e,featureName:t=c("this feature"),requireAddon:n}){const{isProInstalled:s,isProLicenseActive:o}=Qa(),i=qn();if(n!==void 0){if(ti(n))return r.jsx(r.Fragment,{children:e});const a=s&&o,l=c(a?"Addon Required":"Pro Bundle Required"),d=a?r.jsxs(r.Fragment,{children:[c("The")," ",r.jsx("span",{className:"font-medium",children:n})," ",ce(c("addon isn't active on this site. Install and activate it to use %s."),t)]}):ce(c("Activate your Double Opt-In Pro bundle to unlock %s."),t),u=a?{label:c("Open Addons Page"),to:"/addons"}:{label:c("Open License Page"),to:"/license"};return r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"blur-[3px] pointer-events-none select-none",children:e}),r.jsx("div",{className:"absolute inset-0 bg-card/85 flex items-center justify-center z-10",children:r.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-lg p-8 max-w-[440px] w-full text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full pro-gradient flex items-center justify-center mx-auto mb-4",children:r.jsx(Nr,{className:"h-6 w-6 text-primary-foreground"})}),r.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:l}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:d}),r.jsx(H,{onClick:()=>i(u.to),className:"w-full",children:u.label})]})})]})}return s&&o?r.jsx(r.Fragment,{children:e}):s&&!o?r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"blur-[3px] pointer-events-none select-none",children:e}),r.jsx("div",{className:"absolute inset-0 bg-card/85 flex items-center justify-center z-10",children:r.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-lg p-8 max-w-[440px] w-full text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full pro-gradient flex items-center justify-center mx-auto mb-4",children:r.jsx(Nr,{className:"h-6 w-6 text-primary-foreground"})}),r.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:c("Activate Pro License")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:ce(c("Enter your license key to unlock %s."),t)}),r.jsx(Pe,{placeholder:"XXXX-XXXX-XXXX-XXXX",className:"font-mono mb-3 text-center"}),r.jsx(H,{className:"w-full mb-2",children:c("Activate License")}),r.jsx("button",{onClick:()=>i("/license"),className:"text-xs text-muted-foreground hover:text-primary",children:c("Or enter your key on the License page")})]})})]}):null}var Dn="Accordion",nA=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[dp,rA,sA]=Qc(Dn),[Hd]=fn(Dn,[sA,Jw]),up=Jw(),M1=V.forwardRef((e,t)=>{const{type:n,...s}=e,o=s,i=s;return r.jsx(dp.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsx(lA,{...i,ref:t}):r.jsx(aA,{...o,ref:t})})});M1.displayName=Dn;var[D1,oA]=Hd(Dn),[F1,iA]=Hd(Dn,{collapsible:!1}),aA=V.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,d]=hn({prop:n,defaultProp:s!=null?s:"",onChange:o,caller:Dn});return r.jsx(D1,{scope:e.__scopeAccordion,value:V.useMemo(()=>l?[l]:[],[l]),onItemOpen:d,onItemClose:V.useCallback(()=>i&&d(""),[i,d]),children:r.jsx(F1,{scope:e.__scopeAccordion,collapsible:i,children:r.jsx(L1,{...a,ref:t})})})}),lA=V.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:o=()=>{},...i}=e,[a,l]=hn({prop:n,defaultProp:s!=null?s:[],onChange:o,caller:Dn}),d=V.useCallback(h=>l((m=[])=>[...m,h]),[l]),u=V.useCallback(h=>l((m=[])=>m.filter(y=>y!==h)),[l]);return r.jsx(D1,{scope:e.__scopeAccordion,value:a,onItemOpen:d,onItemClose:u,children:r.jsx(F1,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsx(L1,{...i,ref:t})})})}),[cA,Wd]=Hd(Dn),L1=V.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:s,dir:o,orientation:i="vertical",...a}=e,l=V.useRef(null),d=De(l,t),u=rA(n),m=Dd(o)==="ltr",y=me(e.onKeyDown,x=>{var k;if(!nA.includes(x.key))return;const w=x.target,b=u().filter(O=>{var T;return!((T=O.ref.current)!=null&&T.disabled)}),j=b.findIndex(O=>O.ref.current===w),g=b.length;if(j===-1)return;x.preventDefault();let p=j;const v=0,N=g-1,S=()=>{p=j+1,p>N&&(p=v)},C=()=>{p=j-1,p<v&&(p=N)};switch(x.key){case"Home":p=v;break;case"End":p=N;break;case"ArrowRight":i==="horizontal"&&(m?S():C());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(m?C():S());break;case"ArrowUp":i==="vertical"&&C();break}const P=p%g;(k=b[P].ref.current)==null||k.focus()});return r.jsx(cA,{scope:n,disabled:s,direction:o,orientation:i,children:r.jsx(dp.Slot,{scope:n,children:r.jsx(be.div,{...a,"data-orientation":i,ref:d,onKeyDown:s?void 0:y})})})}),qd="AccordionItem",[dA,fp]=Hd(qd),$1=V.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...o}=e,i=Wd(qd,n),a=oA(qd,n),l=up(n),d=Tn(),u=s&&a.value.includes(s)||!1,h=i.disabled||e.disabled;return r.jsx(dA,{scope:n,open:u,disabled:h,triggerId:d,children:r.jsx(n1,{"data-orientation":i.orientation,"data-state":W1(u),...l,...o,ref:t,disabled:h,open:u,onOpenChange:m=>{m?a.onItemOpen(s):a.onItemClose(s)}})})});$1.displayName=qd;var z1="AccordionHeader",U1=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,o=Wd(Dn,n),i=fp(z1,n);return r.jsx(be.h3,{"data-orientation":o.orientation,"data-state":W1(i.open),"data-disabled":i.disabled?"":void 0,...s,ref:t})});U1.displayName=z1;var mp="AccordionTrigger",B1=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,o=Wd(Dn,n),i=fp(mp,n),a=iA(mp,n),l=up(n);return r.jsx(dp.ItemSlot,{scope:n,children:r.jsx(d5,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...s,ref:t})})});B1.displayName=mp;var V1="AccordionContent",H1=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,o=Wd(Dn,n),i=fp(V1,n),a=up(n);return r.jsx(u5,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});H1.displayName=V1;function W1(e){return e?"open":"closed"}var uA=M1,fA=$1,mA=U1,q1=B1,K1=H1;const hA=uA,Q1=f.forwardRef(({className:e,...t},n)=>r.jsx(fA,{ref:n,className:Y("border-b",e),...t}));Q1.displayName="AccordionItem";const G1=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(mA,{className:"flex",children:r.jsxs(q1,{ref:s,className:Y("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,r.jsx(to,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));G1.displayName=q1.displayName;const X1=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(K1,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:r.jsx("div",{className:Y("pb-4 pt-0",e),children:t})}));X1.displayName=K1.displayName;const hp=["success","invalid_email","invalid_nonce","save_failed"],Y1={success:{title:"",body:""},invalid_email:{title:"",body:""},invalid_nonce:{title:"",body:""},save_failed:{title:"",body:""}},Z1={success:{label:c("Success — email sent"),hint:c("Shown after the user submits their email and the confirmation mail goes out.")},invalid_email:{label:c("Error — invalid email"),hint:c("Shown when the visitor entered an obviously malformed address.")},invalid_nonce:{label:c("Error — session expired"),hint:c("Shown when the form's CSRF nonce was rejected (form sat unsubmitted for too long).")},save_failed:{label:c("Error — save failed"),hint:c("Shown on rare DB write failures.")}},pp=["column_subscription","column_signed_up","column_status","column_valid_until","badge_active","badge_cancelled","cancel_button","cancel_confirm","bulk_button","bulk_confirm","reactivate_button","reactivate_confirm","empty_state","confirm_yes","confirm_no"],J1=pp.reduce((e,t)=>({...e,[t]:""}),{}),pA=[{group:c("Table columns"),items:[{key:"column_subscription"},{key:"column_signed_up"},{key:"column_status"},{key:"column_valid_until"}]},{group:c("Status badges"),items:[{key:"badge_active"},{key:"badge_cancelled"}]},{group:c("Action buttons"),items:[{key:"cancel_button",hint:c("Per-row button to cancel one subscription.")},{key:"bulk_button",hint:c("Button above the table, shown when 2+ active rows exist.")},{key:"reactivate_button",hint:c("Per-row button to re-activate a cancelled subscription.")}]},{group:c("Confirm modal — prompts"),items:[{key:"cancel_confirm",hint:c("Shown in the modal before cancelling a single subscription.")},{key:"bulk_confirm",hint:c("Shown in the modal before bulk-cancelling all subscriptions.")},{key:"reactivate_confirm",hint:c("Shown in the modal before re-activating a cancelled subscription.")}]},{group:c("Confirm modal — buttons"),items:[{key:"confirm_yes",hint:c("Confirms the action — red button. Shared across all three prompts.")},{key:"confirm_no",hint:c("Closes the modal without acting — neutral button. Shared across all three prompts.")}]},{group:c("Empty state"),items:[{key:"empty_state",hint:c("Shown when the email has no subscriptions on file.")}]}],xp=["cancelled","cancelled_all","reactivated"],eN={cancelled:{title:"",body:""},cancelled_all:{title:"",body:""},reactivated:{title:"",body:""}},gp={cancelled:{label:c("After cancelling one subscription"),hint:c("Green notice shown on the list page after the visitor clicks Cancel on a single row."),bodyPlaceholders:c("%s = form/subscription title")},cancelled_all:{label:c("After bulk-cancelling"),hint:c("Green notice shown after the visitor confirms the Cancel ALL action."),bodyPlaceholders:c("%d = number of cancelled subscriptions")},reactivated:{label:c("After re-activating"),hint:c("Green notice shown after the visitor clicks Reactivate on a previously cancelled subscription."),bodyPlaceholders:c("%s = form/subscription title")}},xA={enabled:!0,defaults:{optout_page:0,optout_subject:"Opt-out Confirmation",optout_template:"",optout_body:"",notices:Y1,labels:J1,list_notices:eN,disabled_notice:{enabled:!1,title:"",body:""}},forms:[]};function gA(){var D,L,J,he;const e=ti("opt-out"),t=Je(),{data:n,isLoading:s}=Se({queryKey:["optout-settings"],queryFn:()=>Z("/optout/settings"),enabled:e}),{data:o}=Se({queryKey:["pages"],queryFn:()=>Z("/settings/pages")}),{data:i}=Se({queryKey:["email-templates-list"],queryFn:()=>Z("/settings/email-templates-list")}),{data:a}=Se({queryKey:["forms"],queryFn:()=>Z("/forms"),enabled:e}),[l,d]=f.useState(xA),[u,h]=f.useState(!1),[m,y]=f.useState("");f.useEffect(()=>{var Ce,Ve,it,ut,Et,lr,Ps,Mi,jo,tn,yl,cr,Qd,Gd,At,Mr;if(!(n!=null&&n.data)||u)return;const _=n.data,$=(Et=_._defaults)!=null?Et:{optout_page:Number((Ce=_.optout_page)!=null?Ce:0),optout_subject:String((Ve=_.optout_subject)!=null?Ve:""),optout_template:String((it=_.optout_template)!=null?it:""),optout_body:String((ut=_.optout_body)!=null?ut:"")},B=(lr=_._defaults)==null?void 0:lr.notices,se=hp.reduce((dr,bn)=>{var nn,wo,Ts,Dr;return dr[bn]={title:String((wo=(nn=B==null?void 0:B[bn])==null?void 0:nn.title)!=null?wo:""),body:String((Dr=(Ts=B==null?void 0:B[bn])==null?void 0:Ts.body)!=null?Dr:"")},dr},{}),Ne=(Ps=_._defaults)==null?void 0:Ps.labels,q=pp.reduce((dr,bn)=>{var nn;return dr[bn]=String((nn=Ne==null?void 0:Ne[bn])!=null?nn:""),dr},{}),xe=(Mi=_._defaults)==null?void 0:Mi.list_notices,R=xp.reduce((dr,bn)=>{var nn,wo,Ts,Dr;return dr[bn]={title:String((wo=(nn=xe==null?void 0:xe[bn])==null?void 0:nn.title)!=null?wo:""),body:String((Dr=(Ts=xe==null?void 0:xe[bn])==null?void 0:Ts.body)!=null?Dr:"")},dr},{}),ee=(jo=_._defaults)==null?void 0:jo.disabled_notice,pe={enabled:!!((tn=ee==null?void 0:ee.enabled)!=null&&tn),title:String((yl=ee==null?void 0:ee.title)!=null?yl:""),body:String((cr=ee==null?void 0:ee.body)!=null?cr:"")};d({enabled:_._enabled!==!1,defaults:{optout_page:Number((Qd=$.optout_page)!=null?Qd:0),optout_subject:String((Gd=$.optout_subject)!=null?Gd:""),optout_template:String((At=$.optout_template)!=null?At:""),optout_body:String((Mr=$.optout_body)!=null?Mr:""),notices:se,labels:q,list_notices:R,disabled_notice:pe},forms:Array.isArray(_._forms)?_._forms:[]}),h(!0)},[n,u]);const x=f.useMemo(()=>{var $,B,se;const _=($=n==null?void 0:n.data)==null?void 0:$._disabled_notice_defaults;return{title:String((B=_==null?void 0:_.title)!=null?B:""),body:String((se=_==null?void 0:_.body)!=null?se:"")}},[n]),w=f.useMemo(()=>{var $;const _=($=n==null?void 0:n.data)==null?void 0:$._labels_defaults;return _?pp.reduce((B,se)=>{var Ne;return B[se]=String((Ne=_[se])!=null?Ne:""),B},{}):J1},[n]),b=f.useMemo(()=>{var $;const _=($=n==null?void 0:n.data)==null?void 0:$._list_notices_defaults;return _?xp.reduce((B,se)=>{var Ne,q,xe,R;return B[se]={title:String((q=(Ne=_[se])==null?void 0:Ne.title)!=null?q:""),body:String((R=(xe=_[se])==null?void 0:xe.body)!=null?R:"")},B},{}):eN},[n]),j=f.useMemo(()=>{var $;const _=($=n==null?void 0:n.data)==null?void 0:$._notices_defaults;return _?hp.reduce((B,se)=>{var Ne,q,xe,R;return B[se]={title:String((q=(Ne=_[se])==null?void 0:Ne.title)!=null?q:""),body:String((R=(xe=_[se])==null?void 0:xe.body)!=null?R:"")},B},{}):Y1},[n]),g=f.useMemo(()=>{var B;const _=(B=a==null?void 0:a.data)!=null?B:{},$=[];for(const[se,Ne]of Object.entries(_))if(Ne)for(const q of Ne.forms){const xe=typeof q.id=="string"?q.id:String(q.id),R=Number(xe.split("_")[0]);R&&$.push({key:`${se}_${xe}`,integration:se,integrationName:Ne.name,formId:R,restId:xe,title:q.title||`#${R}`})}return $},[a]),p=(_,$)=>{const B=g.find(se=>se.integration===_&&se.formId===$);return B?`${B.integrationName} / ${B.title}`:`${_} / #${$}`},v=Re({mutationFn:()=>Z("/optout/page/generate",{method:"POST"}),onSuccess:_=>{t.invalidateQueries({queryKey:["pages"]}),d($=>({...$,defaults:{...$.defaults,optout_page:_.page_id}})),K.success(_.message)},onError:_=>{const $=(_==null?void 0:_.message)||c("Failed to generate opt-out page.");K.error($)}}),N=Re({mutationFn:_=>Z("/optout/settings",{method:"PUT",body:JSON.stringify({enabled:_.enabled,optout_page:_.defaults.optout_page,optout_subject:_.defaults.optout_subject,optout_template:_.defaults.optout_template,optout_body:_.defaults.optout_body,defaults:_.defaults,forms:_.forms})}),onSuccess:_=>{t.invalidateQueries({queryKey:["optout-settings"]}),K.success(_.message||c("Opt-out settings saved."))},onError:_=>{K.error(_.message||c("Failed to save settings."))}}),S=(D=o==null?void 0:o.data)!=null?D:[],C=(L=i==null?void 0:i.data)!=null?L:[];function P(_,$){d(B=>({...B,defaults:{...B.defaults,[_]:$}}))}function k(_,$,B){d(se=>({...se,defaults:{...se.defaults,notices:{...se.defaults.notices,[_]:{...se.defaults.notices[_],[$]:B}}}}))}function O(_,$){d(B=>({...B,defaults:{...B.defaults,labels:{...B.defaults.labels,[_]:$}}}))}function T(_,$,B){d(se=>({...se,defaults:{...se.defaults,list_notices:{...se.defaults.list_notices,[_]:{...se.defaults.list_notices[_],[$]:B}}}}))}function A(_,$){d(B=>({...B,defaults:{...B.defaults,disabled_notice:{...B.defaults.disabled_notice,[_]:$}}}))}function I(){if(!m)return;const _=g.find($=>$.key===m);if(_){if(l.forms.some($=>$.integration===_.integration&&$.form_id===_.formId)){K.warning(c("This form is already in the list."));return}d($=>({...$,forms:[...$.forms,{integration:_.integration,form_id:_.formId,enabled:null,optout_page:null,optout_subject:null,optout_template:null,optout_body:null}]})),y("")}}function U(_){d($=>({...$,forms:$.forms.filter((B,se)=>se!==_)}))}function M(_,$,B){d(se=>({...se,forms:se.forms.map((Ne,q)=>q===_?{...Ne,[$]:B}:Ne)}))}const re=f.useMemo(()=>{const _=S.find($=>$.id===l.defaults.optout_page);return _?_.title:c("(no page selected)")},[S,l.defaults.optout_page]),F=f.useMemo(()=>{if(!l.defaults.optout_template)return c("(inline body)");const _=C.find($=>String($.id)===String(l.defaults.optout_template));return _?_.title:l.defaults.optout_template},[C,l.defaults.optout_template]),X=r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(U0,{className:"h-6 w-6"}),c("Opt-Out Settings"),!e&&r.jsx(ep,{})]}),r.jsx("p",{className:"text-muted-foreground",children:c("Configure the opt-out system for your subscribers")})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Feature toggle")}),r.jsx(_e,{children:c("Turn the entire opt-out feature on or off without deactivating the addon plugin. Useful for pausing while debugging.")})]}),r.jsx(ne,{children:s?r.jsx(oe,{className:"h-12 w-full"}):r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Q,{htmlFor:"optout-enabled",className:"text-base",children:c("Opt-Out enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:c("When off, no opt-out mails are sent for any form — regardless of per-form overrides below.")})]}),r.jsx(Zt,{id:"optout-enabled",checked:l.enabled,onCheckedChange:_=>d($=>({...$,enabled:_}))})]})})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("When disabled")}),r.jsxs(_e,{children:[c("Controls what visitors see if the master toggle above is off. By default the opt-out form + list shortcodes render")," ",r.jsx("strong",{children:c("nothing")})," ",c("when the feature is paused. Turn this on to display a configurable amber notice instead — useful for telling people the feature is temporarily unavailable rather than letting them wonder why the page is blank.")]})]}),r.jsx(ne,{className:"space-y-4",children:s?r.jsx(oe,{className:"h-32 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Q,{htmlFor:"disabled-notice-enabled",className:"text-base",children:c("Show the notice when disabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:c("Only relevant when the master toggle above is off — has no effect while opt-out is active.")})]}),r.jsx(Zt,{id:"disabled-notice-enabled",checked:l.defaults.disabled_notice.enabled,onCheckedChange:_=>A("enabled",_)})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",htmlFor:"disabled-notice-title",children:c("Title")}),r.jsx(Pe,{id:"disabled-notice-title",className:"mt-1 h-9 text-xs",placeholder:x.title||c("Default title"),value:l.defaults.disabled_notice.title,onChange:_=>A("title",_.target.value)})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",htmlFor:"disabled-notice-body",children:c("Body")}),r.jsx(Pr,{id:"disabled-notice-body",className:"mt-1 text-xs min-h-[60px]",placeholder:x.body||c("Default body"),value:l.defaults.disabled_notice.body,onChange:_=>A("body",_.target.value)})]})]})]})})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Opt-Out Page (default)")}),r.jsxs(_e,{children:[c("Page that hosts the opt-out form and list — applies to every form unless overridden below. Use")," ",r.jsx("strong",{children:c("Generate")})," ",c("to create one in a single click with both shortcodes already in place.")]})]}),r.jsxs(ne,{children:[s?r.jsx(oe,{className:"h-10 w-full"}):r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(je,{value:l.defaults.optout_page?String(l.defaults.optout_page):"",onValueChange:_=>P("optout_page",_?Number(_):0),children:[r.jsx(ve,{className:"flex-1",children:r.jsx(we,{placeholder:c("Select a page...")})}),r.jsx(ye,{children:S.map(_=>r.jsx(z,{value:_.id.toString(),children:_.title},_.id))})]}),r.jsxs(H,{type:"button",variant:"outline",onClick:()=>v.mutate(),disabled:v.isPending,title:c("Create a new page with the opt-out shortcodes"),children:[r.jsx(x_,{className:"h-4 w-4 mr-1.5"}),v.isPending?c("Generating..."):c("Generate")]})]}),l.defaults.optout_page>0&&r.jsxs("div",{className:"mt-3 flex flex-wrap gap-3 text-xs",children:[r.jsxs("a",{href:`${window.location.origin}/?page_id=${l.defaults.optout_page}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-foreground",children:[r.jsx(nd,{className:"h-3 w-3"}),c("Open page")]}),r.jsxs("a",{href:`${$t().adminUrl.replace(/\/+$/,"")}/post.php?post=${l.defaults.optout_page}&action=edit`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-foreground",children:[r.jsx(rd,{className:"h-3 w-3"}),c("Edit page")]})]})]})]}),r.jsxs(te,{children:[r.jsx(le,{children:r.jsxs(de,{className:"flex items-center gap-2",children:[r.jsx(L0,{className:"h-4 w-4"}),c("Shortcode Reference")]})}),r.jsxs(ne,{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("code",{className:"bg-muted px-2 py-1 rounded text-sm font-mono whitespace-nowrap",children:"[f12-cf7-doubleoptin-optout-form]"}),r.jsx("span",{className:"text-sm text-muted-foreground",children:c("Display the opt-out request form")})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("code",{className:"bg-muted px-2 py-1 rounded text-sm font-mono whitespace-nowrap",children:"[f12-cf7-doubleoptin-optout-list]"}),r.jsx("span",{className:"text-sm text-muted-foreground",children:c("Display the opt-in/opt-out status list")})]})]})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Opt-Out Email (defaults)")}),r.jsx(_e,{children:c("Subject + body for the confirmation email. Per-form overrides below take precedence over these defaults.")})]}),r.jsx(ne,{className:"space-y-4",children:s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(oe,{className:"h-10 w-full"}),r.jsx(oe,{className:"h-10 w-full"}),r.jsx(oe,{className:"h-40 w-full"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Q,{htmlFor:"optout-subject",children:c("Subject")}),r.jsx(Pe,{id:"optout-subject",value:l.defaults.optout_subject,onChange:_=>P("optout_subject",_.target.value),placeholder:c("Opt-out Confirmation")})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Q,{htmlFor:"optout-template",children:c("Template")}),r.jsxs(je,{value:l.defaults.optout_template||"__none__",onValueChange:_=>P("optout_template",_==="__none__"?"":_),children:[r.jsx(ve,{id:"optout-template",children:r.jsx(we,{placeholder:c("None (use body below)")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__none__",children:c("None")}),C.map(_=>r.jsx(z,{value:String(_.id),children:_.title},_.id))]})]})]}),l.defaults.optout_template?r.jsx(yA,{templateId:l.defaults.optout_template,title:(he=(J=C.find(_=>String(_.id)===String(l.defaults.optout_template)))==null?void 0:J.title)!=null?he:l.defaults.optout_template}):r.jsxs("div",{className:"space-y-2",children:[r.jsx(Q,{htmlFor:"optout-body",children:c("Email Body")}),r.jsx(Pr,{id:"optout-body",value:l.defaults.optout_body,onChange:_=>P("optout_body",_.target.value),className:"font-mono min-h-[300px]",placeholder:c("HTML email body...")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[c("Available placeholder:")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"[doubleoptin_optout_url]"})]})]})]})})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Notice texts")}),r.jsxs(_e,{children:[c("Messages shown to the visitor after they submit the opt-out form (success + error states). Leave a field empty to use the built-in default. With WPML active, each text appears under")," ",r.jsx("strong",{children:c('String Translation → Domain "double-opt-in-opt-out"')})," ",c("so you can translate it per language; without WPML the text is shown as-is.")]})]}),r.jsx(ne,{className:"space-y-5",children:s?r.jsx(oe,{className:"h-64 w-full"}):hp.map(_=>r.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:Z1[_].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:Z1[_].hint})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",htmlFor:`notice-${_}-title`,children:c("Title")}),r.jsx(Pe,{id:`notice-${_}-title`,className:"mt-1 h-9 text-xs",placeholder:j[_].title||c("Default title"),value:l.defaults.notices[_].title,onChange:$=>k(_,"title",$.target.value)})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",htmlFor:`notice-${_}-body`,children:c("Body")}),r.jsx(Pr,{id:`notice-${_}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:j[_].body||c("Default body"),value:l.defaults.notices[_].body,onChange:$=>k(_,"body",$.target.value)})]})]})]},_))})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("List page labels")}),r.jsx(_e,{children:c("Every user-facing string on the opt-out list page is configurable here — table columns, button labels, the confirm-dialog prompts shown before cancelling / bulk-cancelling / re-activating, plus the empty state. Leave empty to use the built-in default. WPML String Translation picks up custom values automatically.")})]}),r.jsx(ne,{children:s?r.jsx(oe,{className:"h-64 w-full"}):r.jsx(hA,{type:"multiple",className:"w-full",children:pA.map(_=>r.jsxs(Q1,{value:_.group,children:[r.jsx(G1,{className:"text-sm",children:_.group}),r.jsx(X1,{children:r.jsx("div",{className:"space-y-3 pt-2",children:_.items.map(({key:$,hint:B})=>r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",htmlFor:`label-${$}`,children:$}),r.jsx(Pe,{id:`label-${$}`,className:"mt-1 h-9 text-xs",placeholder:w[$]||c("Default"),value:l.defaults.labels[$],onChange:se=>O($,se.target.value)}),B&&r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:B})]},$))})})]},_.group))})})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("List page notices")}),r.jsxs(_e,{children:[c("Success notices rendered above the table after the visitor cancels, bulk-cancels, or re-activates a subscription. Some bodies accept")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"%s"})," /",r.jsx("code",{className:"bg-muted px-1 rounded",children:"%d"})," ",c("placeholders — see each entry's hint.")]})]}),r.jsx(ne,{className:"space-y-5",children:s?r.jsx(oe,{className:"h-64 w-full"}):xp.map(_=>r.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:gp[_].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:gp[_].hint}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:[r.jsx("strong",{children:c("Placeholder:")})," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:gp[_].bodyPlaceholders})]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",htmlFor:`listnotice-${_}-title`,children:c("Title")}),r.jsx(Pe,{id:`listnotice-${_}-title`,className:"mt-1 h-9 text-xs",placeholder:b[_].title||c("Default title"),value:l.defaults.list_notices[_].title,onChange:$=>T(_,"title",$.target.value)})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",htmlFor:`listnotice-${_}-body`,children:c("Body")}),r.jsx(Pr,{id:`listnotice-${_}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:b[_].body||c("Default body"),value:l.defaults.list_notices[_].body,onChange:$=>T(_,"body",$.target.value)})]})]})]},_))})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Per-form overrides")}),r.jsx(_e,{children:c('Override the defaults above for specific forms — e.g. a different confirmation mail per newsletter, or fully disabling opt-out for a transactional form. Empty fields inherit from defaults; the on/off switch can be left on "Inherit" or set explicitly per form.')})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(je,{value:m,onValueChange:y,children:[r.jsx(ve,{className:"flex-1",children:r.jsx(we,{placeholder:c("Select a form to add…")})}),r.jsx(ye,{children:g.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:c("No forms detected")}):g.map(_=>r.jsxs(z,{value:_.key,children:[_.integrationName," / ",_.title]},_.key))})]}),r.jsxs(H,{onClick:I,disabled:!m,children:[r.jsx(ai,{className:"h-4 w-4 mr-1.5"}),c("Add form")]})]}),l.forms.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:c("No per-form overrides yet — every form uses the defaults above. Add a form to override its opt-out mail, page, or to disable opt-out for it entirely.")})]}):r.jsx("div",{className:"space-y-4",children:l.forms.map((_,$)=>r.jsx(vA,{entry:_,label:p(_.integration,_.form_id),pages:S,templates:C,defaultPageLabel:re,defaultTemplateLabel:F,defaultSubject:l.defaults.optout_subject,onChange:(B,se)=>M($,B,se),onRemove:()=>U($)},`${_.integration}_${_.form_id}`))})]})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2",children:r.jsx(H,{onClick:()=>N.mutate(l),disabled:N.isPending,children:N.isPending?c("Saving..."):c("Save")})})]}),r.jsx("div",{className:"space-y-6",children:r.jsxs(te,{children:[r.jsx(le,{children:r.jsx(de,{className:"text-sm",children:c("Hooks Reference")})}),r.jsx(ne,{children:r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:c("Filter")}),r.jsx("code",{className:"block bg-muted px-2 py-1 rounded text-xs font-mono",children:"f12_cf7_doubleoptin_optout_body"}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:c("Modify the opt-out email body before sending.")})]})})]})})]})]});return r.jsx(cp,{featureName:c("Opt-Out System"),requireAddon:"opt-out",children:X})}function vA({entry:e,label:t,pages:n,templates:s,defaultPageLabel:o,defaultTemplateLabel:i,defaultSubject:a,onChange:l,onRemove:d}){var h,m;const u=e.enabled===null?"__inherit":e.enabled?"yes":"no";return r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:t}),r.jsx(H,{variant:"ghost",size:"sm",onClick:d,title:c("Remove this override"),children:r.jsx(pn,{className:"h-4 w-4"})})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Opt-out for this form")}),r.jsxs(je,{value:u,onValueChange:y=>{y==="__inherit"?l("enabled",null):y==="yes"?l("enabled",!0):l("enabled",!1)},children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__inherit",children:c("Inherit (active)")}),r.jsx(z,{value:"yes",children:c("Enabled for this form")}),r.jsx(z,{value:"no",children:c("Disabled for this form")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:c('"Disabled" suppresses opt-out invitation mails for this form. Existing opt-out hashes still resolve.')})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Opt-out page")}),r.jsxs(je,{value:e.optout_page?String(e.optout_page):"__inherit",onValueChange:y=>l("optout_page",y==="__inherit"?null:Number(y)),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__inherit",children:ce(c("Inherit (%s)"),o)}),n.map(y=>r.jsx(z,{value:y.id.toString(),children:y.title},y.id))]})]})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(Q,{className:"text-xs",children:c("Subject override")}),r.jsx(Pe,{className:"mt-1 h-9 text-xs",placeholder:ce(c("Inherit (%s)"),a||c("(empty)")),value:(h=e.optout_subject)!=null?h:"",onChange:y=>l("optout_subject",y.target.value===""?null:y.target.value)})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(Q,{className:"text-xs",children:c("Template override")}),r.jsxs(je,{value:e.optout_template||"__inherit",onValueChange:y=>l("optout_template",y==="__inherit"?null:y),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__inherit",children:ce(c("Inherit (%s)"),i)}),s.map(y=>r.jsx(z,{value:String(y.id),children:y.title},y.id))]})]})]}),!e.optout_template&&r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(Q,{className:"text-xs",children:c("Body override")}),r.jsx(Pr,{className:"mt-1 text-xs font-mono min-h-[120px]",placeholder:c("Inherit from defaults — leave empty to use the default body."),value:(m=e.optout_body)!=null?m:"",onChange:y=>l("optout_body",y.target.value===""?null:y.target.value)})]})]})]})}function yA({templateId:e,title:t}){const n=e?`#/email-templates/${encodeURIComponent(String(e))}/edit`:null;return r.jsxs("div",{className:"space-y-2",children:[r.jsx(Q,{children:c("Email Body")}),r.jsxs("div",{className:"rounded-lg border bg-gradient-to-br from-primary to-primary/70 text-primary-foreground p-5 flex items-start gap-4",children:[r.jsx("div",{className:"rounded-full bg-primary-foreground/15 p-2 shrink-0",children:r.jsx(Qn,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:c("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:ce(c("%s was built in the email designer. Edit the message body there — this textarea is bypassed for custom templates."),t)}),n?r.jsx(H,{asChild:!0,variant:"secondary",size:"sm",children:r.jsxs("a",{href:n,children:[r.jsx(rd,{className:"h-3.5 w-3.5 mr-1.5"}),c("Edit in Email Designer")]})}):r.jsx(H,{variant:"secondary",size:"sm",disabled:!0,children:c("Editor link unavailable")})]})]})]})}const tN=[{value:"subscriber",label:c("Subscriber")},{value:"contributor",label:c("Contributor")},{value:"author",label:c("Author")},{value:"editor",label:c("Editor")}],vp={all:{title:c("All forms (every confirmation creates a user)"),hint:c("Every DOI-enabled form on the site auto-creates a user on confirmation. Use this only if you really mean it — auto user creation is a privileged action.")},selected:{title:c("Only selected forms (opt-in list — default)"),hint:c("Auto-creation runs ONLY on the forms in the list below. The safe default — drift here from `all` would silently create users from every form.")},all_except:{title:c("All forms EXCEPT selected (opt-out list)"),hint:c("Every form auto-creates EXCEPT those in the list. Symmetric to `all` with an exclusion list.")}},bA={enabled:!0,mode:"selected",defaults:{role:"subscriber",send_welcome_mail:!0,force_password_change:!1,duplicate_policy:"skip",field_map:{}},conditions:[]};function jA(e,t,n,s){const o=c(s==="skip"?"If the email already belongs to a user, no action is taken.":s==="update_meta"?"If the email already belongs to a user, their meta fields get updated from the field map (role stays unchanged).":"If the email already belongs to a user, the confirmation is logged as an error and no user is updated.");return e==="all"?{headline:ce(c("Auto-create a %s on every confirmation"),t),detail:ce(c("Every DOI form on the site triggers user creation on confirm. %s"),o)}:e==="selected"?n===0?{headline:c("No forms in scope — auto user creation is currently inactive"),detail:c("mode=selected with an empty list means no form is in scope. Add at least one form below to enable.")}:{headline:ce(ew("Auto-create a %1$s on confirmations from the %2$s listed form","Auto-create a %1$s on confirmations from the %2$s listed forms",n),t,n),detail:ce(c("Only the listed forms trigger user creation. Forms not in the list are completely unaffected. %s"),o)}:n===0?{headline:ce(c("Auto-create a %s on every confirmation"),t),detail:ce(c("No exclusions configured — every form triggers user creation. %s"),o)}:{headline:ce(c("Auto-create a %1$s on every form EXCEPT the %2$s excluded"),t,n),detail:ce(ew("%1$s form is excluded; everything else triggers user creation. %2$s","%1$s forms are excluded; everything else triggers user creation. %2$s",n),n,o)}}function wA(){const e=Je(),{data:t,isLoading:n}=Se({queryKey:["user-creation-settings"],queryFn:()=>Z("/user-creation/settings")}),{data:s}=Se({queryKey:["forms"],queryFn:()=>Z("/forms")}),[o,i]=f.useState(bA),[a,l]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var N,S,C,P,k,O,T,A,I;if(!t||a)return;const v=(N=t.data)!=null?N:t;i({enabled:v.enabled!==!1,mode:(S=v.mode)!=null?S:"selected",defaults:{role:(P=(C=v.defaults)==null?void 0:C.role)!=null?P:"subscriber",send_welcome_mail:((k=v.defaults)==null?void 0:k.send_welcome_mail)!==!1,force_password_change:((O=v.defaults)==null?void 0:O.force_password_change)===!0,duplicate_policy:(A=(T=v.defaults)==null?void 0:T.duplicate_policy)!=null?A:"skip",field_map:(I=v.defaults)!=null&&I.field_map&&typeof v.defaults.field_map=="object"?v.defaults.field_map:{}},conditions:Array.isArray(v.conditions)?v.conditions:[]}),l(!0)},[t,a]);const h=f.useMemo(()=>{var S;const v=(S=s==null?void 0:s.data)!=null?S:{},N=[];for(const[C,P]of Object.entries(v))if(P)for(const k of P.forms){const O=Number(typeof k.id=="string"?k.id.split("_")[0]:k.id);O&&N.push({key:`${C}_${O}`,integration:C,integrationName:P.name,formId:O,title:k.title||`#${O}`})}return N},[s]),m=(v,N)=>{const S=h.find(C=>C.integration===v&&C.formId===N);return S?`${S.integrationName} / ${S.title}`:`${v} / #${N}`},y=Re({mutationFn:()=>Z("/user-creation/settings",{method:"PUT",body:JSON.stringify(o)}),onSuccess:()=>{K.success(c("User Creation settings saved.")),e.invalidateQueries({queryKey:["user-creation-settings"]})},onError:v=>{K.error(v.message||c("Failed to save User Creation settings."))}});function x(v,N){i(S=>({...S,defaults:{...S.defaults,[v]:N}}))}function w(){if(!d)return;const v=h.find(N=>N.key===d);if(v){if(o.conditions.some(N=>N.integration===v.integration&&N.form_id===v.formId)){K.warning(c("This form is already in the list."));return}i(N=>({...N,conditions:[...N.conditions,{integration:v.integration,form_id:v.formId,role:null,send_welcome_mail:null,duplicate_policy:null,field_map:null}]})),u("")}}function b(v){i(N=>({...N,conditions:N.conditions.filter((S,C)=>C!==v)}))}function j(v,N,S){i(C=>({...C,conditions:C.conditions.map((P,k)=>k===v?{...P,[N]:S}:P)}))}if(n)return r.jsx(oe,{className:"h-96 w-full"});const g=jA(o.mode,o.defaults.role,o.conditions.length,o.defaults.duplicate_policy),p=r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(W0,{className:"h-6 w-6"}),c("Auto User Creation")]}),r.jsx("p",{className:"text-muted-foreground",children:c("Create a WordPress user automatically after opt-in confirmation")})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Feature toggle")}),r.jsx(_e,{children:c("Turn this feature on or off without deactivating the addon plugin. Use this when you want to pause auto-creation temporarily (e.g. while debugging a form). All settings below are preserved while the feature is off.")})]}),r.jsx(ne,{children:r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Q,{htmlFor:"uc-enabled",className:"text-base",children:c("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:c("When off, no users are auto-created — confirmations still complete normally, just without a WP user being made.")})]}),r.jsx(Zt,{id:"uc-enabled",checked:o.enabled,onCheckedChange:v=>i(N=>({...N,enabled:v}))})]})})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("How User Creation applies")}),r.jsx(_e,{children:c("Pick whether every confirmation creates a user, only confirmations on selected forms, or every form except the ones you exclude. The defaults below apply to forms in scope; per-form entries override.")})]}),r.jsxs(ne,{className:"space-y-3",children:[Object.keys(vp).map(v=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(o.mode===v?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"uc-mode",value:v,checked:o.mode===v,onChange:()=>i(N=>({...N,mode:v})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:vp[v].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:vp[v].hint})]})]},v)),r.jsxs("div",{className:"mt-2 rounded-lg border border-primary/30 bg-primary/5 p-3",children:[r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-primary mb-1",children:c("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:g.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:g.detail})]})]})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Default settings")}),r.jsx(_e,{children:c("Applied to every form in scope. Per-form entries can override individually.")})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"uc-role",children:c("Default role")}),r.jsxs(je,{value:o.defaults.role,onValueChange:v=>x("role",v),children:[r.jsx(ve,{id:"uc-role",className:"mt-1.5",children:r.jsx(we,{})}),r.jsx(ye,{children:tN.map(v=>r.jsx(z,{value:v.value,children:v.label},v.value))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:c("Administrator is excluded for security — no role-escalation via opt-in.")})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"uc-policy",children:c("Duplicate user policy")}),r.jsxs(je,{value:o.defaults.duplicate_policy,onValueChange:v=>x("duplicate_policy",v),children:[r.jsx(ve,{id:"uc-policy",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"skip",children:c("Skip (do nothing)")}),r.jsx(z,{value:"update_meta",children:c("Update meta of existing user")}),r.jsx(z,{value:"error",children:c("Treat as error")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:"update_meta"})," ",c("applies the field map to the existing user but never changes their role (privilege guard).")]})]})]}),r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Q,{htmlFor:"uc-welcome",children:c("Send WP password-reset email")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:c("Standard WP welcome flow — let the new user set their own password. Disable if you handle onboarding mails elsewhere.")})]}),r.jsx(Zt,{id:"uc-welcome",checked:o.defaults.send_welcome_mail,onCheckedChange:v=>x("send_welcome_mail",v)})]}),r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Q,{htmlFor:"uc-force-pw",children:c("Force password change on first login")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:c("On their next login the user lands on the password-reset page instead of wp-admin. Catches the rare case where someone logs in before opening the welcome mail. One-shot.")})]}),r.jsx(Zt,{id:"uc-force-pw",checked:o.defaults.force_password_change,onCheckedChange:v=>x("force_password_change",v)})]}),r.jsx("div",{className:"rounded-lg border border-blue-200 bg-blue-50/50 p-3",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsx(yt,{className:"h-4 w-4 text-blue-600 shrink-0 mt-0.5"}),r.jsxs("div",{className:"text-xs text-muted-foreground leading-relaxed",children:[r.jsx("span",{className:"font-medium text-foreground",children:c("Want to block disposable-email domains?")})," ",c("Install the")," ",r.jsx("strong",{children:"Domain Blocklist"})," ",c("addon. It intercepts before any opt-in record or confirmation mail — cleaner than skipping just the user-create step.")," ",c("For one-off custom rules, third-party code can subscribe to the")," ",r.jsx("code",{className:"px-1 mx-0.5 bg-background rounded text-[10px]",children:"f12_doi_user_registration_should_create"})," ",c("filter.")]})]})})]})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:o.mode==="selected"?c("Forms to apply auto-creation to"):o.mode==="all_except"?c("Forms to exclude from auto-creation"):c("Per-form overrides")}),r.jsxs(_e,{children:[o.mode==="all"&&c("All forms are in scope. Add entries here to override the defaults for specific forms."),o.mode==="selected"&&c("Only forms in this list create users on confirmation."),o.mode==="all_except"&&c("These forms are exempt — they confirm normally but no WP user is created.")]})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(je,{value:d,onValueChange:u,children:[r.jsx(ve,{className:"flex-1",children:r.jsx(we,{placeholder:c("Select a form to add…")})}),r.jsx(ye,{children:h.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:c("No forms detected")}):h.map(v=>r.jsxs(z,{value:v.key,children:[v.integrationName," / ",v.title]},v.key))})]}),r.jsxs(H,{onClick:w,disabled:!d,children:[r.jsx(ai,{className:"h-4 w-4 mr-1.5"}),c("Add")]})]}),o.conditions.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:o.mode==="selected"?c("No forms in the list yet. Auto user creation is currently inactive — add at least one form above."):o.mode==="all_except"?c("No exclusions configured. Every form creates users — same as mode=all."):c("No per-form overrides. Defaults apply to every form.")})]}):r.jsx("div",{className:"space-y-3",children:o.conditions.map((v,N)=>{var S,C;return r.jsxs("div",{className:"rounded-lg border p-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:m(v.integration,v.form_id)}),r.jsx(H,{variant:"ghost",size:"sm",onClick:()=>b(N),title:c("Remove from list"),children:r.jsx(pn,{className:"h-4 w-4"})})]}),o.mode!=="all_except"&&r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 mt-3",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Override role")}),r.jsxs(je,{value:(S=v.role)!=null?S:"__inherit",onValueChange:P=>j(N,"role",P==="__inherit"?null:P),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__inherit",children:ce(c("Inherit (%s)"),o.defaults.role)}),tN.map(P=>r.jsx(z,{value:P.value,children:P.label},P.value))]})]})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Override duplicate policy")}),r.jsxs(je,{value:(C=v.duplicate_policy)!=null?C:"__inherit",onValueChange:P=>j(N,"duplicate_policy",P==="__inherit"?null:P),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__inherit",children:ce(c("Inherit (%s)"),o.defaults.duplicate_policy)}),r.jsx(z,{value:"skip",children:c("Skip")}),r.jsx(z,{value:"update_meta",children:c("Update meta")}),r.jsx(z,{value:"error",children:c("Error")})]})]})]})]})]},`${v.integration}_${v.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(H,{onClick:()=>y.mutate(),disabled:y.isPending,children:[y.isPending?r.jsx(_n,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(no,{className:"h-4 w-4 mr-1.5"}),c("Save User Creation settings")]})})]})]}),r.jsx(te,{className:"border-blue-200 bg-blue-50/50",children:r.jsx(ne,{className:"pt-6",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx(yt,{className:"h-5 w-5 text-blue-600 shrink-0 mt-0.5"}),r.jsxs("div",{className:"space-y-2 text-sm",children:[r.jsx("p",{children:c("Auto-created users get a random password. The standard WordPress password-reset email is sent automatically (toggle above to disable).")}),r.jsxs("p",{children:[c("For field mapping (form fields → WP user meta), use the")," ",r.jsx("code",{className:"px-1 mx-1 bg-background rounded",children:"f12_doi_user_registration_form_fields"})," ",c("filter — see the addon documentation.")]})]})]})})})]});return r.jsx(cp,{featureName:c("Auto User Creation"),requireAddon:"user-registration",children:p})}const NA=[{value:"__none__",label:c("None")},{value:"cleverreach",label:"CleverReach"}];function SA(){var u;const e=ti("cleverreach"),t=Je(),{data:n,isLoading:s}=Se({queryKey:["api-settings"],queryFn:()=>Z("/api/settings"),enabled:e}),[o,i]=f.useState({service:"",cleverreach_client_id:"",cleverreach_client_secret:"",cleverreach_connected:!1});f.useEffect(()=>{n!=null&&n.data&&i(n.data)},[n]);const a=Re({mutationFn:h=>Z("/api/settings",{method:"PUT",body:JSON.stringify(h)}),onSuccess:h=>{t.invalidateQueries({queryKey:["api-settings"]}),K.success(h.message||c("API settings saved."))},onError:h=>{K.error(h.message||c("Failed to save settings."))}}),l=Re({mutationFn:()=>Z("/cleverreach/connect",{method:"POST"}),onSuccess:h=>{var m;(m=h.data)!=null&&m.redirect_url?window.location.href=h.data.redirect_url:(t.invalidateQueries({queryKey:["api-settings"]}),K.success(h.message||c("Connected to CleverReach.")))},onError:h=>{K.error(h.message||c("Failed to connect to CleverReach."))}}),d=r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(Wm,{className:"h-6 w-6"}),c("API Integrations"),!e&&r.jsx(ep,{})]}),r.jsx("p",{className:"text-muted-foreground",children:c("Connect external services to your Double Opt-In system")})]}),r.jsxs("div",{className:"max-w-[600px] space-y-6",children:[r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("API Endpoint")}),r.jsx(_e,{children:c("Select the external service to connect.")})]}),r.jsx(ne,{children:s?r.jsx(oe,{className:"h-10 w-full"}):r.jsxs(je,{value:o.service||"__none__",onValueChange:h=>i(m=>({...m,service:h==="__none__"?"":h})),children:[r.jsx(ve,{children:r.jsx(we,{placeholder:c("None")})}),r.jsx(ye,{children:NA.map(h=>r.jsx(z,{value:h.value,children:h.label},h.value))})]})})]}),o.service==="cleverreach"&&r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:"CleverReach"}),r.jsx(_e,{children:c("Configure your CleverReach API credentials.")})]}),r.jsx(ne,{className:"space-y-4",children:s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(oe,{className:"h-10 w-full"}),r.jsx(oe,{className:"h-10 w-full"}),r.jsx(oe,{className:"h-10 w-full"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Q,{htmlFor:"cr-client-id",children:c("Client ID")}),r.jsx(Pe,{id:"cr-client-id",value:o.cleverreach_client_id,onChange:h=>i(m=>({...m,cleverreach_client_id:h.target.value})),placeholder:c("Enter Client ID")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[c("Get credentials at")," ",r.jsxs("a",{href:"https://rest.cleverreach.com/clients/index.html",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[c("CleverReach REST API settings"),r.jsx(nd,{className:"h-3 w-3"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Q,{htmlFor:"cr-client-secret",children:c("Client Secret")}),r.jsx(Pe,{id:"cr-client-secret",type:"password",value:(u=o.cleverreach_client_secret)!=null?u:"",onChange:h=>i(m=>({...m,cleverreach_client_secret:h.target.value})),placeholder:c("Enter Client Secret")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[c("Get credentials at")," ",r.jsxs("a",{href:"https://rest.cleverreach.com/clients/index.html",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[c("CleverReach REST API settings"),r.jsx(nd,{className:"h-3 w-3"})]})]})]}),r.jsx(te,{className:"border-dashed",children:r.jsx(ne,{className:"pt-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-sm font-medium",children:c("Connection Status")}),r.jsx(Qe,{variant:o.cleverreach_connected?"default":"secondary",className:o.cleverreach_connected?"bg-green-100 text-green-800 hover:bg-green-100":"bg-amber-100 text-amber-800 hover:bg-amber-100",children:o.cleverreach_connected?c("Connected"):c("Not Connected")}),o.cleverreach_connected&&o.cleverreach_expires_at&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[c("Expires:")," ",o.cleverreach_expires_at]})]}),r.jsx(H,{variant:o.cleverreach_connected?"outline":"default",size:"sm",onClick:()=>l.mutate(),disabled:l.isPending,children:l.isPending?c("Connecting..."):o.cleverreach_connected?c("Reconnect"):c("Connect to CleverReach")})]})})})]})})]}),r.jsx(H,{onClick:()=>a.mutate(o),disabled:a.isPending||s,children:a.isPending?c("Saving..."):c("Save")})]})]});return r.jsx(cp,{featureName:c("API Integrations"),requireAddon:"cleverreach",children:d})}function CA(){var d;const e=Je(),[t,n]=f.useState(""),{data:s,isLoading:o}=Se({queryKey:["license"],queryFn:()=>Z("/license")}),i=s==null?void 0:s.data,a=Re({mutationFn:u=>Z("/license/activate",{method:"POST",body:JSON.stringify({key:u})}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),K.success(u.message||c("License activated successfully.")),n("")},onError:u=>{K.error(u.message||c("Failed to activate license."))}}),l=Re({mutationFn:()=>Z("/license/deactivate",{method:"POST"}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),K.success(u.message||c("License deactivated."))},onError:u=>{K.error(u.message||c("Failed to deactivate license."))}});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("License")}),r.jsx("p",{className:"text-muted-foreground",children:c("Manage your Double Opt-In Pro license")})]}),r.jsxs("div",{className:"max-w-[600px] mx-auto space-y-6",children:[r.jsxs(te,{children:[r.jsxs(le,{className:"text-center",children:[r.jsx("div",{className:"mx-auto mb-2",children:r.jsx("div",{className:"w-12 h-12 rounded-full bg-muted flex items-center justify-center mx-auto",children:r.jsx(Km,{className:"h-6 w-6 text-muted-foreground"})})}),r.jsx(de,{children:c("License Status")})]}),r.jsx(ne,{className:"text-center space-y-3",children:o?r.jsxs("div",{className:"space-y-2",children:[r.jsx(oe,{className:"h-6 w-24 mx-auto"}),r.jsx(oe,{className:"h-4 w-40 mx-auto"})]}):r.jsxs(r.Fragment,{children:[r.jsx(Qe,{variant:i!=null&&i.isActive?"default":"secondary",className:i!=null&&i.isActive?"bg-green-100 text-green-800 hover:bg-green-100":"",children:i!=null&&i.isActive?c("Active"):c("Inactive")}),(i==null?void 0:i.isActive)&&r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-sm font-medium",children:i.licenseType}),i.expiresAt&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[c("Expires:")," ",i.expiresAt]})]})]})})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsxs(de,{className:"flex items-center gap-2",children:[r.jsx(z0,{className:"h-4 w-4"}),c("License Key")]}),r.jsx(_e,{children:i!=null&&i.isActive?c("Your license is currently active."):c("Enter your license key to activate Pro features.")})]}),r.jsx(ne,{children:i!=null&&i.isActive?r.jsxs("div",{className:"space-y-3",children:[r.jsx(Pe,{value:i.key||"",readOnly:!0,className:"font-mono text-center bg-muted"}),r.jsx(H,{variant:"destructive",className:"w-full",onClick:()=>l.mutate(),disabled:l.isPending,children:l.isPending?c("Deactivating..."):c("Deactivate")})]}):r.jsxs("div",{className:"space-y-3",children:[r.jsx(Pe,{value:t,onChange:u=>n(u.target.value),placeholder:"XXXX-XXXX-XXXX-XXXX",className:"font-mono text-center"}),r.jsx(H,{className:"w-full",onClick:()=>a.mutate(t),disabled:!t.trim()||a.isPending,children:a.isPending?c("Activating..."):c("Activate")})]})})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Included modules")}),r.jsx(_e,{children:c("Every module below is unlocked by your Pro bundle license. A check means it is installed and active on this site.")})]}),r.jsx(ne,{children:o?r.jsx("div",{className:"space-y-2",children:Array.from({length:6}).map((u,h)=>r.jsx(oe,{className:"h-5 w-full"},h))}):r.jsx("ul",{className:"space-y-2",children:((d=i==null?void 0:i.features)!=null?d:[]).map(u=>r.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[u.available?r.jsx(ed,{className:"h-4 w-4 text-green-600 shrink-0"}):r.jsx(Nr,{className:"h-4 w-4 text-muted-foreground shrink-0"}),r.jsx("span",{className:u.available?"":"text-muted-foreground",children:u.name})]},u.slug))})})]})]}),r.jsx(Jn,{id:"license.section",data:{license:i}})]})}const nN=new Set(["avada","elementor","wpforms","gravity-forms"]);function kA(){var y,x;const e=Je(),{data:t,isLoading:n}=Se({queryKey:["addons-catalog"],queryFn:()=>Z("/addons/catalog")}),{data:s}=Se({queryKey:["license"],queryFn:()=>Z("/license")}),o=s==null?void 0:s.data,i=(y=t==null?void 0:t.entries)!=null?y:[],a=(x=t==null?void 0:t.hasBundleLicense)!=null?x:!1,l=$t(),d=Re({mutationFn:w=>Z(`/addons/${w}/activate`,{method:"POST"}),onSuccess:(w,b)=>{var g,p;const j=(p=(g=i.find(v=>v.id===b))==null?void 0:g.name)!=null?p:b;K.success(ce(c("%s activated."),j)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:w=>{K.error(w.message||c("Failed to activate addon."))}}),u=Re({mutationFn:w=>Z(`/addons/${w}/deactivate`,{method:"POST"}),onSuccess:(w,b)=>{var g,p;const j=(p=(g=i.find(v=>v.id===b))==null?void 0:g.name)!=null?p:b;K.success(ce(c("%s deactivated."),j)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:w=>{K.error(w.message||c("Failed to deactivate addon."))}}),h=Re({mutationFn:w=>Z("/bundle/installer/install",{method:"POST",body:JSON.stringify({id:w})}),onSuccess:(w,b)=>{var g,p;const j=(p=(g=i.find(v=>v.id===b))==null?void 0:g.name)!=null?p:b;K.success(ce(c("%s installed."),j)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:w=>{K.error(w.message||c("Failed to install addon."))}});f.useEffect(()=>{const w=()=>{e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})};return window.addEventListener("f12-doi:addons-changed",w),()=>window.removeEventListener("f12-doi:addons-changed",w)},[e]);const m=i.reduce((w,b)=>(w[b.status]++,w),{active:0,inactive:0,not_installed:0});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Addons")}),r.jsx("p",{className:"text-muted-foreground",children:c("Extend Double Opt-In with official addons. Bundled addons can be installed in one click once your Pro license is active.")})]}),r.jsx(Jn,{id:"addons.list",data:{entries:i,license:o,hasLicense:a}}),r.jsxs(te,{children:[r.jsx(le,{children:r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{children:[r.jsxs(de,{className:"flex items-center gap-2",children:[r.jsx(si,{className:"h-5 w-5"}),c("Addon catalog")]}),r.jsx(_e,{children:n?c("Loading…"):ce(c("%1$s active · %2$s installed · %3$s available"),m.active,m.inactive,m.not_installed)})]}),!a&&!n&&r.jsx(H,{asChild:!0,size:"sm",variant:"default",children:r.jsxs("a",{href:"#/license",children:[r.jsx(Nr,{className:"h-4 w-4 mr-1"}),c("Activate Pro")]})})]})}),r.jsx(ne,{children:n?r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((w,b)=>r.jsx(oe,{className:"h-44 w-full"},b))}):i.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:c("No addons in the catalog. Check that the Double Opt-In core is up to date.")}):r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:i.map(w=>r.jsx(EA,{entry:w,hasLicense:a,adminUrl:l.adminUrl,onActivate:()=>d.mutate(w.id),onDeactivate:()=>u.mutate(w.id),onInstall:()=>h.mutate(w.id),isActivating:d.isPending&&d.variables===w.id,isDeactivating:u.isPending&&u.variables===w.id,isInstalling:h.isPending&&h.variables===w.id},w.id))})})]})]})}function EA({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:o,isActivating:i,isDeactivating:a,isInstalling:l}){const[d,u]=f.useState(!1),h=nN.has(e.id),m=e.status==="active"&&e.operational&&h&&(e.integrationRegistered===!1||e.integrationAvailable===!1),y=e.status==="active"&&!e.operational||m;return r.jsxs("div",{className:"rounded-lg border bg-card p-4 flex flex-col gap-3 h-full","data-addon-id":e.id,"data-addon-status":e.status,children:[r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(PA,{entry:e}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"font-semibold leading-tight flex items-center gap-2",children:[r.jsx(_A,{loaded:e.operational}),r.jsx("span",{children:e.name})]}),r.jsx(TA,{entry:e})]})]}),r.jsx("p",{className:"text-sm text-muted-foreground flex-1",children:e.description}),y&&r.jsx(RA,{entry:e}),e.capabilities.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1",children:e.capabilities.slice(0,3).map(x=>r.jsx(Qe,{variant:"outline",className:"text-[10px] font-mono",children:x},x))}),r.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[r.jsx(MA,{entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:o,isActivating:i,isDeactivating:a,isInstalling:l}),r.jsx(H,{size:"sm",variant:"ghost",onClick:()=>u(x=>!x),"aria-label":c("Toggle diagnostic info"),title:c("Diagnostic info"),children:r.jsx(QE,{className:"h-4 w-4"})})]}),d&&r.jsx(IA,{entry:e})]})}function _A({loaded:e}){return r.jsx("span",{className:"inline-block h-2.5 w-2.5 rounded-full shrink-0 "+(e?"bg-green-500 ring-2 ring-green-500/20":"bg-red-500 ring-2 ring-red-500/20"),title:c(e?"Loaded":"Not loaded"),"aria-label":c(e?"Loaded":"Not loaded")})}function PA({entry:e}){return e.status==="active"?e.operational?r.jsx(D0,{className:"h-5 w-5 text-green-600 shrink-0 mt-0.5"}):r.jsx(Gt,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):e.status==="inactive"?r.jsx(Ua,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):r.jsx(YE,{className:"h-5 w-5 text-muted-foreground shrink-0 mt-0.5"})}function TA({entry:e}){return e.status==="active"?e.operational?r.jsx(Qe,{className:"bg-green-100 text-green-800 hover:bg-green-100 mt-1",children:c("Active")}):r.jsx(Qe,{className:"bg-amber-100 text-amber-800 hover:bg-amber-100 mt-1",children:c("Active · issues")}):e.status==="inactive"?r.jsx(Qe,{variant:"secondary",className:"mt-1",children:c("Installed · inactive")}):r.jsx(Qe,{variant:"outline",className:"mt-1",children:c("Not installed")})}function RA({entry:e}){const t=e.inactiveReason?AA(e.inactiveReason):OA(e);if(!t)return null;const n=t.icon;return r.jsxs("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-3 text-xs text-amber-900 flex items-start gap-2",children:[r.jsx(n,{className:"h-4 w-4 shrink-0 mt-0.5"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"font-medium",children:t.title}),r.jsx("div",{className:"mt-0.5 text-amber-800",children:t.body}),t.cta&&r.jsxs("a",{href:t.cta.href,className:"inline-block mt-1 underline font-medium",children:[t.cta.label," →"]})]})]})}function OA(e){return nN.has(e.id)?e.integrationRegistered===!1?{icon:Gt,title:c("Form integration not registered"),body:c("The addon booted but did not register its form integration. Most likely the integration's own prerequisite check failed at boot time (e.g. the third-party form builder's class symbols differ from what the integration probes for)."),cta:null}:e.integrationAvailable===!1?{icon:Gt,title:c("Form integration unavailable at runtime"),body:c("The integration is registered but its isAvailable() check is currently failing. The third-party form plugin may have been deactivated after boot, or its class symbols are no longer present."),cta:null}:null:null}function AA(e){return e==="prerequisite"?{icon:c_,title:c("Prerequisite missing"),body:c("The license is fine, but a third-party plugin or PHP class the addon needs is not present. Check the addon's Requires Plugins header."),cta:null}:e==="not_registered"?{icon:Gt,title:c("Addon failed to register"),body:c("The plugin file is active but the addon never reached the registry. Look for a fatal during boot in the PHP error log."),cta:null}:null}function IA({entry:e}){var o;const t=i=>i===null?"—":String(i),n=i=>i===null?"—":String(i),s=[["status",e.status],["registered",String(e.registered)],["operational",String(e.operational)],["inactiveReason",(o=e.inactiveReason)!=null?o:"—"],["integrationRegistered",t(e.integrationRegistered)],["integrationAvailable",t(e.integrationAvailable)],["formCount",n(e.formCount)],["pluginFile",e.pluginFile],["bundleMember",String(e.bundleMember)]];return r.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 text-xs font-mono overflow-x-auto",children:[r.jsx("div",{className:"text-muted-foreground mb-1 font-sans font-medium",children:c("Diagnostic")}),r.jsx("table",{className:"w-full",children:r.jsx("tbody",{children:s.map(([i,a])=>r.jsxs("tr",{children:[r.jsx("td",{className:"pr-3 text-muted-foreground align-top",children:i}),r.jsx("td",{className:"break-all",children:a})]},i))})})]})}function MA({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:o,isActivating:i,isDeactivating:a,isInstalling:l}){return e.status==="active"?r.jsxs(H,{size:"sm",variant:"outline",className:"flex-1",onClick:s,disabled:a,children:[a?r.jsx(_n,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Ua,{className:"h-4 w-4 mr-1"}),c(a?"Deactivating…":"Deactivate")]}):e.status==="inactive"?r.jsxs(H,{size:"sm",variant:"default",className:"flex-1",onClick:n,disabled:i,children:[i?r.jsx(_n,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Ua,{className:"h-4 w-4 mr-1"}),c(i?"Activating…":"Activate")]}):t?r.jsxs(H,{size:"sm",variant:"default",className:"flex-1",onClick:o,disabled:l,children:[l?r.jsx(_n,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(za,{className:"h-4 w-4 mr-1"}),c(l?"Installing…":"Install")]}):r.jsx(H,{asChild:!0,size:"sm",variant:"default",className:"flex-1",children:r.jsxs("a",{href:$t().upgradeUrl,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(m_,{className:"h-4 w-4 mr-1"}),c("Upgrade to Pro")]})})}const yp="__dummy__",DA=c("Don't forget to confirm your subscription");function FA(){var v,N,S,C,P;const e=Je(),{data:t,isLoading:n}=Se({queryKey:["settings"],queryFn:()=>Z("/settings")}),{data:s}=Se({queryKey:["email-templates-list"],queryFn:()=>Z("/settings/email-templates-list")}),[o,i]=f.useState({}),[a,l]=f.useState(!1);f.useEffect(()=>{var k,O,T,A;t!=null&&t.data&&!a&&(i({reminder_enabled:(k=t.data.reminder_enabled)!=null?k:0,reminder_delay:(O=t.data.reminder_delay)!=null?O:24,reminder_subject:(T=t.data.reminder_subject)!=null?T:"",reminder_template:(A=t.data.reminder_template)!=null?A:"",token_expiry_hours:t.data.token_expiry_hours}),l(!0))},[t,a]);const d=Re({mutationFn:()=>Z("/settings",{method:"PUT",body:JSON.stringify(o)}),onSuccess:()=>{K.success(c("Reminder settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:k=>{K.error(k.message||c("Failed to save reminder settings."))}}),u=Re({mutationFn:()=>Z("/addons/reminder/regenerate-template",{method:"POST"}),onSuccess:k=>{if(!k.success||!k.templateId){K.error(k.message||c("Could not regenerate the default template."));return}K.success(k.message),i(O=>({...O,reminder_template:`custom_${k.templateId}`})),e.invalidateQueries({queryKey:["email-templates-list"]})},onError:k=>{K.error(k.message||c("Could not regenerate the default template."))}});function h(k,O){i(T=>({...T,[k]:O}))}const m=(v=s==null?void 0:s.data)!=null?v:[],[y,x]=f.useState(""),[w,b]=f.useState(yp),{data:j}=Se({queryKey:["reminder-recent-unconfirmed"],queryFn:()=>Z("/addons/reminder/recent-unconfirmed")}),g=Re({mutationFn:()=>Z("/addons/reminder/send-test",{method:"POST",body:JSON.stringify({recipient:y,optin_id:w===yp?null:Number(w)})}),onSuccess:k=>{k.success?K.success(k.message):K.error(k.message||c("Could not send the test reminder."))},onError:k=>{K.error(k.message||c("Could not send the test reminder."))}}),p=(N=j==null?void 0:j.data)!=null?N:[];return r.jsxs(r.Fragment,{children:[r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Reminder behaviour")}),r.jsx(_e,{children:c("Send a follow-up email to subscribers who haven't confirmed their opt-in within the configured delay. The send is hourly via WP-Cron — make sure your site is reachable for loopback requests.")})]}),r.jsx(ne,{className:"space-y-5",children:n?r.jsx(oe,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Q,{className:"text-sm font-medium",children:c("Send reminder emails")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:c("Master switch. When off the cron runs but skips every pending opt-in. When on the fields below take effect.")})]}),r.jsx(Zt,{checked:!!o.reminder_enabled,onCheckedChange:k=>h("reminder_enabled",k?1:0)})]}),r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"reminder-delay",children:c("Delay before reminder (hours)")}),r.jsx(Pe,{id:"reminder-delay",type:"number",min:1,className:"mt-1.5",value:(S=o.reminder_delay)!=null?S:24,onChange:k=>h("reminder_delay",Number(k.target.value))}),o.reminder_delay!==void 0&&o.token_expiry_hours!==void 0&&o.reminder_delay>=o.token_expiry_hours&&r.jsx("p",{className:"text-[11px] text-destructive mt-1.5",children:ce(c("Delay is ≥ confirmation-link expiry (%dh) — the reminder may arrive after the link has already expired."),o.token_expiry_hours)})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"reminder-subject",children:c("Subject line")}),r.jsx(Pe,{id:"reminder-subject",className:"mt-1.5",placeholder:DA,value:(C=o.reminder_subject)!=null?C:"",onChange:k=>h("reminder_subject",k.target.value)})]})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"reminder-template",children:c("Email template")}),r.jsxs(je,{value:(P=o.reminder_template)!=null?P:"",onValueChange:k=>h("reminder_template",k),children:[r.jsx(ve,{id:"reminder-template",className:"mt-1.5",children:r.jsx(we,{placeholder:c("Select a template")})}),r.jsx(ye,{children:m.length===0?r.jsx(z,{value:"__empty__",disabled:!0,children:c("No templates available — click Regenerate below.")}):m.map(k=>r.jsx(z,{value:String(k.id),children:k.title},k.id))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[c("Pick any custom template from the Email Designer. The")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",c("placeholder is required — it's replaced with the confirmation URL at send time.")]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:[r.jsxs(H,{onClick:()=>d.mutate(),disabled:d.isPending,children:[d.isPending?r.jsx(_n,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(no,{className:"h-4 w-4 mr-1.5"}),c("Save reminder settings")]}),r.jsxs(H,{variant:"outline",onClick:()=>u.mutate(),disabled:u.isPending,title:c("Re-create the default reminder template in the Email Designer. Useful if you deleted it by accident."),children:[u.isPending?r.jsx(_n,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(d_,{className:"h-4 w-4 mr-1.5"}),c("Regenerate default template")]})]})]})})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Send test reminder")}),r.jsx(_e,{children:c("Trigger a one-off reminder send to verify subject, sender, template, and placeholder substitution before the cron-driven send hits real subscribers. Uses the saved settings above — save first if you just changed something.")})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"test-recipient",children:c("Recipient")}),r.jsx(Pe,{id:"test-recipient",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:y,onChange:k=>x(k.target.value)}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:c("The test mail is sent here, not to the opt-in's real email address.")})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"test-optin",children:c("Use opt-in data for placeholders")}),r.jsxs(je,{value:w,onValueChange:k=>b(k),children:[r.jsx(ve,{id:"test-optin",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:yp,children:c("Dummy data (no real record)")}),p.map(k=>r.jsxs(z,{value:String(k.id),children:["#",k.id," — ",k.email," (",k.created_at,")"]},k.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:c("Dummy mode uses safe sample values + a clearly-fake confirmation URL. Real opt-ins use their actual data so you can verify placeholder substitution end-to-end.")})]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:[r.jsxs(H,{onClick:()=>g.mutate(),disabled:g.isPending||!y,variant:"secondary",children:[g.isPending?r.jsx(_n,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(f_,{className:"h-4 w-4 mr-1.5"}),c("Send test reminder")]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground",children:[c("The subject is prefixed with")," ",r.jsx("code",{children:"[TEST]"})," ",c("so it's obvious in your inbox.")]})]})]})]})]})}const LA=c("The email domain does not appear to accept emails. Please check your email address.");function $A(){var u,h;const e=Je(),{data:t,isLoading:n}=Se({queryKey:["settings"],queryFn:()=>Z("/settings")}),[s,o]=f.useState({}),[i,a]=f.useState(!1);f.useEffect(()=>{var m,y;t!=null&&t.data&&!i&&(o({mx_validation_behavior:(m=t.data.mx_validation_behavior)!=null?m:"silent",mx_validation_message:(y=t.data.mx_validation_message)!=null?y:""}),a(!0))},[t,i]);const l=Re({mutationFn:()=>Z("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{K.success(c("MX validation settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:m=>{K.error(m.message||c("Failed to save MX validation settings."))}});function d(m,y){o(x=>({...x,[m]:y}))}return r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("MX validation behaviour")}),r.jsx(_e,{children:c("Before accepting an opt-in, look up the recipient's email domain via DNS and confirm it has a working mail server (MX record, or A-record as fallback). Results are cached: 24 h for valid domains, 1 h for invalid ones. DNS lookup errors fail open — a temporary resolver outage will not block real subscribers.")})]}),r.jsx(ne,{className:"space-y-5",children:n?r.jsx(oe,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"mx-behavior",children:c("Validation behaviour")}),r.jsxs(je,{value:(u=s.mx_validation_behavior)!=null?u:"silent",onValueChange:m=>d("mx_validation_behavior",m),children:[r.jsx(ve,{id:"mx-behavior",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"silent",children:c("Silent rejection — drop the opt-in without telling the user")}),r.jsx(z,{value:"block",children:c("Show error message — surface a validation error at the form")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:c("Silent")})," ",c("looks like a successful submission to the user but no record is created — useful for spam suppression.")," ",r.jsx("strong",{children:c("Block")})," ",c("is better UX for legit users with typos (e.g.")," ",r.jsx("code",{children:"gmial.com"}),")."]})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"mx-message",children:c("Custom error message")}),r.jsx(Pe,{id:"mx-message",className:"mt-1.5",placeholder:LA,value:(h=s.mx_validation_message)!=null?h:"",onChange:m=>d("mx_validation_message",m.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[c("Only shown when behaviour is set to")," ",r.jsx("em",{children:c("Show error message")}),"."," ",c("Leave empty to use the default text.")]})]}),r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:c("Fail-open behaviour: if the DNS lookup itself errors or times out, the email is treated as valid so a transient outage cannot block sign-ups. Only confirmed lookup failures (NXDOMAIN, no MX/A) trigger rejection.")})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:r.jsxs(H,{onClick:()=>l.mutate(),disabled:l.isPending,children:[l.isPending?r.jsx(_n,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(no,{className:"h-4 w-4 mr-1.5"}),c("Save MX settings")]})})]})})]})}const zA=c("This email domain is not allowed. Please use a different email address."),UA=`tempmail.com
455 disposable-email.com
456 10minutemail.com`;function BA(){var h,m,y,x;const e=Je(),{data:t,isLoading:n}=Se({queryKey:["settings"],queryFn:()=>Z("/settings")}),[s,o]=f.useState({}),[i,a]=f.useState(!1);f.useEffect(()=>{var w,b,j;t!=null&&t.data&&!i&&(o({domain_blocklist:(w=t.data.domain_blocklist)!=null?w:"",domain_blocklist_behavior:(b=t.data.domain_blocklist_behavior)!=null?b:"silent",domain_blocklist_message:(j=t.data.domain_blocklist_message)!=null?j:""}),a(!0))},[t,i]);const l=Re({mutationFn:()=>Z("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{K.success(c("Domain blocklist settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:w=>{K.error(w.message||c("Failed to save domain blocklist settings."))}});function d(w,b){o(j=>({...j,[w]:b}))}const u=((h=s.domain_blocklist)!=null?h:"").split(`
457 `).map(w=>w.trim()).filter(w=>w!=="").length;return r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Domain blocklist")}),r.jsx(_e,{children:c("Reject opt-in submissions where the recipient's email domain matches one of the configured entries. Designed for disposable-mail services (tempmail.com, mailinator, etc.) and known spam sources. Matching is exact, case-insensitive, one domain per line.")})]}),r.jsx(ne,{className:"space-y-5",children:n?r.jsx(oe,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"domain-blocklist",children:ce(c(u===1?"Blocked domains (%d entry)":"Blocked domains (%d entries)"),u)}),r.jsx(Pr,{id:"domain-blocklist",className:"mt-1.5 font-mono text-xs",rows:8,placeholder:UA,value:(m=s.domain_blocklist)!=null?m:"",onChange:w=>d("domain_blocklist",w.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[c("One domain per line. No")," ",r.jsx("code",{children:"@"}),c(", no protocol, no wildcards. Submissions to")," ",r.jsx("code",{children:"user@<domain>"})," ",c("are rejected on exact match.")]})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"domain-behavior",children:c("Validation behaviour")}),r.jsxs(je,{value:(y=s.domain_blocklist_behavior)!=null?y:"silent",onValueChange:w=>d("domain_blocklist_behavior",w),children:[r.jsx(ve,{id:"domain-behavior",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"silent",children:c("Silent rejection — drop the opt-in without telling the user")}),r.jsx(z,{value:"block",children:c("Show error message — surface a validation error at the form")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:c("Silent")})," ",c("is the typical choice for spam suppression — bots get a fake success, real users see nothing.")," ",r.jsx("strong",{children:c("Block")})," ",c("is appropriate if your blocklist also blocks legit-typo domains the user might want to correct.")]})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"domain-message",children:c("Custom error message")}),r.jsx(Pe,{id:"domain-message",className:"mt-1.5",placeholder:zA,value:(x=s.domain_blocklist_message)!=null?x:"",onChange:w=>d("domain_blocklist_message",w.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[c("Only shown when behaviour is set to")," ",r.jsx("em",{children:c("Show error message")}),"."," ",c("Leave empty to use the default text.")]})]}),r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:c("The blocklist is read once per request and cached in a static property — changes here take effect on the next form submission, no cache flush needed.")})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:r.jsxs(H,{onClick:()=>l.mutate(),disabled:l.isPending,children:[l.isPending?r.jsx(_n,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(no,{className:"h-4 w-4 mr-1.5"}),c("Save blocklist")]})})]})})]})}const bp={all:{title:c("All forms (defaults apply everywhere)"),hint:c("Every form runs Unique Email with the default settings below. Use the conditions list to override single forms only.")},selected:{title:c("Only selected forms (opt-in list)"),hint:c("Unique Email runs ONLY for forms in the conditions list. Forms not listed are unaffected.")},all_except:{title:c("All forms EXCEPT selected (opt-out list)"),hint:c("Every form runs Unique Email EXCEPT those in the conditions list.")}};function VA(e,t,n){return t==="form"?e==="all"?{headline:c("Per-form check on every form"),detail:c("At submit time, the validator looks up the email in the SAME form only. The same address may opt into Form A AND Form B without conflict.")}:e==="selected"?{headline:ce(c("Per-form check on the %d listed form%s"),n,n===1?"":"s"),detail:c("The validator only runs on forms in the list. Each listed form checks for duplicates WITHIN ITSELF — they do not affect each other. Forms not listed are completely ignored.")}:{headline:ce(c("Per-form check on every form EXCEPT the %d listed"),n),detail:c("Every form runs a per-form duplicate check on itself, except the excluded forms (which skip the check entirely).")}:e==="all"?{headline:c("Sitewide check on every form"),detail:c("At submit time, the validator looks up the email across the ENTIRE opt-in database — every form, every integration. One email = one opt-in across the whole site (former Single Mail Registration behavior).")}:e==="selected"?n===0?{headline:c("Sitewide — but the list is empty"),detail:c("Add at least one form to the list. Until you do, Unique Email is effectively off because mode=selected with no entries excludes every form.")}:{headline:ce(c("Sitewide pool over the %d listed form%s"),n,n===1?"":"s"),detail:ce(c("At submit time on any listed form, the validator looks up the email across all %d listed forms — but NOT against other forms on the site. Example: a submission on Form A is rejected if the same email already opted into Form A or Form B. Forms not in the list are completely ignored — they neither feed records into the check nor get checked themselves."),n)}:n===0?{headline:c("Sitewide check on every form"),detail:c("No exclusions are configured, so this behaves like Mode = All. Pool is the entire opt-in database.")}:{headline:ce(c("Sitewide pool over every form EXCEPT the %d excluded"),n),detail:ce(c("At submit time on any non-excluded form, the validator looks up the email across all forms on the site EXCEPT the %d excluded. The excluded forms are bypassed entirely — they neither get checked nor feed records into the check."),n)}}const HA={enabled:!0,mode:"all",defaults:{scope:"confirmed",behavior:"block",match_scope:"form",message:"",redirect_page:0},conditions:[]};function WA(){const e=Je(),{data:t,isLoading:n}=Se({queryKey:["addon-settings","unique-email"],queryFn:()=>Z("/addons/unique-email/settings")}),{data:s}=Se({queryKey:["forms"],queryFn:()=>Z("/forms")}),[o,i]=f.useState(HA),[a,l]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var v,N,S,C,P,k,O,T,A,I,U,M;if(!t||a)return;const p=(v=t.data)!=null?v:t;i({enabled:p.enabled!==!1,mode:(N=p.mode)!=null?N:"all",defaults:{scope:(C=(S=p.defaults)==null?void 0:S.scope)!=null?C:"confirmed",behavior:(k=(P=p.defaults)==null?void 0:P.behavior)!=null?k:"block",match_scope:(T=(O=p.defaults)==null?void 0:O.match_scope)!=null?T:"form",message:(I=(A=p.defaults)==null?void 0:A.message)!=null?I:"",redirect_page:Number((M=(U=p.defaults)==null?void 0:U.redirect_page)!=null?M:0)},conditions:Array.isArray(p.conditions)?p.conditions:[]}),l(!0)},[t,a]);const h=f.useMemo(()=>{var N;const p=(N=s==null?void 0:s.data)!=null?N:{},v=[];for(const[S,C]of Object.entries(p))if(C)for(const P of C.forms){const k=Number(typeof P.id=="string"?P.id.split("_")[0]:P.id);k&&v.push({key:`${S}_${k}`,integration:S,integrationName:C.name,formId:k,title:P.title||`#${k}`})}return v},[s]),m=(p,v)=>{const N=h.find(S=>S.integration===p&&S.formId===v);return N?`${N.integrationName} / ${N.title}`:`${p} / #${v}`},y=Re({mutationFn:()=>Z("/addons/unique-email/settings",{method:"POST",body:JSON.stringify(o)}),onSuccess:()=>{K.success(c("Unique Email settings saved.")),e.invalidateQueries({queryKey:["addon-settings","unique-email"]})},onError:p=>{K.error(p.message||c("Failed to save Unique Email settings."))}});function x(p,v){i(N=>({...N,defaults:{...N.defaults,[p]:v}}))}function w(){if(!d)return;const p=h.find(v=>v.key===d);if(p){if(o.conditions.some(v=>v.integration===p.integration&&v.form_id===p.formId)){K.warning(c("This form is already in the list."));return}i(v=>({...v,conditions:[...v.conditions,{integration:p.integration,form_id:p.formId,scope:null,behavior:null,match_scope:null,message:null,redirect_page:null}]})),u("")}}function b(p){i(v=>({...v,conditions:v.conditions.filter((N,S)=>S!==p)}))}function j(p,v,N){i(S=>({...S,conditions:S.conditions.map((C,P)=>P===p?{...C,[v]:N}:C)}))}if(n)return r.jsx(oe,{className:"h-96 w-full"});const g=VA(o.mode,o.defaults.match_scope,o.conditions.length);return r.jsxs(r.Fragment,{children:[r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("How Unique Email applies")}),r.jsx(_e,{children:c("Pick whether Unique Email runs on every form, only the forms you select, or every form except the ones you exclude. The defaults below apply to every form that's in scope; the conditions list lets you override individual settings per form.")})]}),r.jsxs(ne,{className:"space-y-3",children:[Object.keys(bp).map(p=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(o.mode===p?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"unique-email-mode",value:p,checked:o.mode===p,onChange:()=>i(v=>({...v,mode:p})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:bp[p].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:bp[p].hint})]})]},p)),r.jsxs("div",{className:"mt-2 rounded-lg border border-primary/30 bg-primary/5 p-3",children:[r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-primary mb-1",children:c("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:g.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:g.detail})]})]})]}),r.jsxs(te,{className:"mt-6",children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Default settings")}),r.jsx(_e,{children:c("Applied to every form in scope. Per-form entries below can override these individually — leave an override empty to inherit.")})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"ue-scope",children:c("Scope")}),r.jsxs(je,{value:o.defaults.scope,onValueChange:p=>x("scope",p),children:[r.jsx(ve,{id:"ue-scope",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"confirmed",children:c("Confirmed opt-ins only")}),r.jsx(z,{value:"all",children:c("All opt-ins (incl. unconfirmed)")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:c("Confirmed")}),c(": users can re-submit until they confirm once.")," ",r.jsx("strong",{children:c("All")}),c(': stricter — any prior attempt blocks. Use "all" to suppress double-submit bots.')]})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"ue-behavior",children:c("Behavior on duplicate")}),r.jsxs(je,{value:o.defaults.behavior,onValueChange:p=>x("behavior",p),children:[r.jsx(ve,{id:"ue-behavior",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"silent",children:c("Silent rejection")}),r.jsx(z,{value:"block",children:c("Show error message")}),r.jsx(z,{value:"redirect",children:c("Redirect to page")})]})]})]})]}),r.jsxs("div",{children:[r.jsx(Q,{children:c("Match scope")}),r.jsx("div",{className:"grid gap-2 sm:grid-cols-2 mt-1.5",children:[{value:"form",title:c("Per form"),hint:c("The same address may opt into Form A AND Form B.")},{value:"sitewide",title:c("Sitewide"),hint:c("One email = one opt-in across every form on the site (formerly Single Mail Registration).")}].map(p=>r.jsxs("label",{className:"flex items-start gap-2 rounded-lg border p-3 cursor-pointer transition-colors "+(o.defaults.match_scope===p.value?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"unique-email-match-scope",value:p.value,checked:o.defaults.match_scope===p.value,onChange:()=>x("match_scope",p.value),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:p.title}),r.jsx("div",{className:"text-[11px] text-muted-foreground mt-0.5",children:p.hint})]})]},p.value))})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"ue-message",children:c("Custom error message")}),r.jsx(Pe,{id:"ue-message",className:"mt-1.5",placeholder:c("This email address has already been used for this form."),value:o.defaults.message,onChange:p=>x("message",p.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[c("Only shown for")," ",r.jsx("em",{children:c("Show error message")}),"."," ",c("Leave empty for the default text.")]})]})]})]}),r.jsxs(te,{className:"mt-6",children:[r.jsxs(le,{children:[r.jsx(de,{children:o.mode==="selected"?c("Forms to apply Unique Email to"):o.mode==="all_except"?c("Forms to exclude from Unique Email"):c("Per-form overrides")}),r.jsxs(_e,{children:[o.mode==="all"&&o.defaults.match_scope==="form"&&c("All forms are in scope by default with a per-form check. Add entries here to override the defaults for specific forms."),o.mode==="all"&&o.defaults.match_scope==="sitewide"&&c("All forms are in scope with a sitewide check — the lookup runs across the entire opt-in database. Add entries here to override the defaults for specific forms."),o.mode==="selected"&&o.defaults.match_scope==="form"&&c("Only the forms in this list run Unique Email. Each listed form checks duplicates within itself — they do not affect each other."),o.mode==="selected"&&o.defaults.match_scope==="sitewide"&&c("The forms in this list form a sitewide pool. A submission on any of them is rejected if the email already opted into ANY OTHER form in the list. Forms not in the list are completely outside this check."),o.mode==="all_except"&&o.defaults.match_scope==="form"&&c("These forms are exempt from Unique Email checks. All other forms run a per-form duplicate check on themselves."),o.mode==="all_except"&&o.defaults.match_scope==="sitewide"&&c("These forms are exempt entirely — neither checked nor counted. Every other form on the site runs a sitewide check whose pool spans all non-excluded forms.")]})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(je,{value:d,onValueChange:u,children:[r.jsx(ve,{className:"flex-1",children:r.jsx(we,{placeholder:c("Select a form to add…")})}),r.jsx(ye,{children:h.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:c("No forms detected")}):h.map(p=>r.jsxs(z,{value:p.key,children:[p.integrationName," / ",p.title]},p.key))})]}),r.jsxs(H,{onClick:w,disabled:!d,children:[r.jsx(ai,{className:"h-4 w-4 mr-1.5"}),c("Add")]})]}),o.conditions.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[c("No forms in the list yet.")," ",o.mode==="selected"&&o.defaults.match_scope==="form"&&c("Unique Email is currently inactive on every form — add at least one above."),o.mode==="selected"&&o.defaults.match_scope==="sitewide"&&c("Unique Email is currently inactive on every form. Even though the match scope is sitewide, mode=selected with an empty list excludes everything. Add at least two forms to make the sitewide pool meaningful."),o.mode==="all_except"&&c("Unique Email is active on every form with the defaults above."),o.mode==="all"&&o.defaults.match_scope==="form"&&c("Unique Email is active on every form with a per-form check. Use this list to override settings per form."),o.mode==="all"&&o.defaults.match_scope==="sitewide"&&c("Unique Email is active on every form with a sitewide check (equivalent to the legacy Single Mail Registration). Use this list only if you need per-form overrides.")]})]}):r.jsx("div",{className:"space-y-3",children:o.conditions.map((p,v)=>{var N,S,C,P;return r.jsxs("div",{className:"rounded-lg border p-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:m(p.integration,p.form_id)}),r.jsx(H,{variant:"ghost",size:"sm",onClick:()=>b(v),title:c("Remove from list"),children:r.jsx(pn,{className:"h-4 w-4"})})]}),o.mode!=="all_except"&&r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4 mt-3",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Override scope")}),r.jsxs(je,{value:(N=p.scope)!=null?N:"__inherit",onValueChange:k=>j(v,"scope",k==="__inherit"?null:k),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__inherit",children:ce(c("Inherit (%s)"),o.defaults.scope)}),r.jsx(z,{value:"confirmed",children:c("Confirmed")}),r.jsx(z,{value:"all",children:c("All")})]})]})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Override behavior")}),r.jsxs(je,{value:(S=p.behavior)!=null?S:"__inherit",onValueChange:k=>j(v,"behavior",k==="__inherit"?null:k),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__inherit",children:ce(c("Inherit (%s)"),o.defaults.behavior)}),r.jsx(z,{value:"silent",children:c("Silent")}),r.jsx(z,{value:"block",children:c("Block")}),r.jsx(z,{value:"redirect",children:c("Redirect")})]})]})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Override match scope")}),r.jsxs(je,{value:(C=p.match_scope)!=null?C:"__inherit",onValueChange:k=>j(v,"match_scope",k==="__inherit"?null:k),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__inherit",children:ce(c("Inherit (%s)"),o.defaults.match_scope)}),r.jsx(z,{value:"form",children:c("Per form")}),r.jsx(z,{value:"sitewide",children:c("Sitewide")})]})]})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Override message")}),r.jsx(Pe,{className:"mt-1 h-9 text-xs",placeholder:c("(inherit)"),value:(P=p.message)!=null?P:"",onChange:k=>j(v,"message",k.target.value===""?null:k.target.value)})]})]})]},`${p.integration}_${p.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(H,{onClick:()=>y.mutate(),disabled:y.isPending,children:[y.isPending?r.jsx(_n,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(no,{className:"h-4 w-4 mr-1.5"}),c("Save Unique Email settings")]})})]})]})]})}const rN={equals:c("Equals"),not_equals:c("Not equals"),contains:c("Contains"),not_empty:c("Not empty"),empty:c("Empty")},qA=new Set(["not_empty","empty"]),KA={enabled:!0,forms:[]};function QA(){return`rule_${Math.random().toString(36).slice(2,10)}`}function sN(){return{id:QA(),field:"",operator:"equals",value:"",template:"",priority:10}}function GA(){var k;const e=Je(),{data:t,isLoading:n}=Se({queryKey:["addon-settings","conditional"],queryFn:()=>Z("/addons/conditional/settings")}),{data:s}=Se({queryKey:["forms"],queryFn:()=>Z("/forms")}),{data:o}=Se({queryKey:["email-templates-list"],queryFn:()=>Z("/settings/email-templates-list")}),[i,a]=f.useState(KA),[l,d]=f.useState(!1),[u,h]=f.useState("");f.useEffect(()=>{var T;if(!t||l)return;const O=(T=t.data)!=null?T:t;a({enabled:O.enabled!==!1,forms:Array.isArray(O.forms)?O.forms:[]}),d(!0)},[t,l]);const m=f.useMemo(()=>{var A;const O=(A=s==null?void 0:s.data)!=null?A:{},T=[];for(const[I,U]of Object.entries(O))if(U)for(const M of U.forms){const re=typeof M.id=="string"?M.id:String(M.id),F=Number(re.split("_")[0]);F&&T.push({key:`${I}_${re}`,integration:I,integrationName:U.name,formId:F,restId:re,title:M.title||`#${F}`})}return T},[s]),y=(O,T)=>{const A=m.find(I=>I.integration===O&&I.formId===T);return A?A.restId:String(T)},x=(O,T)=>{const A=m.find(I=>I.integration===O&&I.formId===T);return A?`${A.integrationName} / ${A.title}`:`${O} / #${T}`},w=Pk({queries:i.forms.map(O=>{const T=y(O.integration,O.form_id);return{queryKey:["form-fields",O.integration,T],queryFn:()=>Z(`/forms/${O.integration}/${T}/fields`),staleTime:5*60*1e3,retry:!1}})}),b=(O,T)=>{var U;const A=i.forms.findIndex(M=>M.integration===O&&M.form_id===T);if(A===-1)return[];const I=w[A];return I!=null&&I.data?(U=I.data.data)!=null?U:[]:[]},j=Re({mutationFn:()=>Z("/addons/conditional/settings",{method:"POST",body:JSON.stringify(i)}),onSuccess:()=>{K.success(c("Conditional Templates settings saved.")),e.invalidateQueries({queryKey:["addon-settings","conditional"]})},onError:O=>{K.error(O.message||c("Failed to save Conditional Templates settings."))}});function g(){if(!u)return;const O=m.find(T=>T.key===u);if(O){if(i.forms.some(T=>T.integration===O.integration&&T.form_id===O.formId)){K.warning(c("This form is already in the list."));return}a(T=>({...T,forms:[...T.forms,{integration:O.integration,form_id:O.formId,fallback_template:"blank",rules:[sN()]}]})),h("")}}function p(O){a(T=>({...T,forms:T.forms.filter((A,I)=>I!==O)}))}function v(O,T,A){a(I=>({...I,forms:I.forms.map((U,M)=>M===O?{...U,[T]:A}:U)}))}function N(O){a(T=>({...T,forms:T.forms.map((A,I)=>I===O?{...A,rules:[...A.rules,sN()]}:A)}))}function S(O,T){a(A=>({...A,forms:A.forms.map((I,U)=>U===O?{...I,rules:I.rules.filter((M,re)=>re!==T)}:I)}))}function C(O,T,A,I){a(U=>({...U,forms:U.forms.map((M,re)=>re===O?{...M,rules:M.rules.map((F,X)=>X===T?{...F,[A]:I}:F)}:M)}))}if(n)return r.jsx(oe,{className:"h-96 w-full"});const P=(k=o==null?void 0:o.data)!=null?k:[];return r.jsxs(r.Fragment,{children:[r.jsx(te,{className:"mt-6",children:r.jsxs(le,{children:[r.jsx(de,{children:c("How Conditional Templates work")}),r.jsx(_e,{children:c("Pick a form and define rules that decide which email template to send based on the form's submitted field values. Forms not in this list use their normal template. Rules are evaluated by priority (lower runs first); the first matching rule wins. If no rule matches, the form's fallback template applies.")})]})}),r.jsxs(te,{className:"mt-6",children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Forms with conditional templates")}),r.jsx(_e,{children:c("Add a form below to start configuring per-field template rules for it.")})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(je,{value:u,onValueChange:h,children:[r.jsx(ve,{className:"flex-1",children:r.jsx(we,{placeholder:c("Select a form to add…")})}),r.jsx(ye,{children:m.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:c("No forms detected")}):m.map(O=>r.jsxs(z,{value:O.key,children:[O.integrationName," / ",O.title]},O.key))})]}),r.jsxs(H,{onClick:g,disabled:!u,children:[r.jsx(ai,{className:"h-4 w-4 mr-1.5"}),c("Add form")]})]}),i.forms.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:c("No forms configured yet. Conditional Templates is inactive on every form. Add at least one form above to start.")})]}):r.jsx("div",{className:"space-y-4",children:i.forms.map((O,T)=>{const A=b(O.integration,O.form_id),I=w[T];return r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:x(O.integration,O.form_id)}),r.jsx(H,{variant:"ghost",size:"sm",onClick:()=>p(T),title:c("Remove form from list"),children:r.jsx(pn,{className:"h-4 w-4"})})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Fallback template")}),r.jsxs(je,{value:O.fallback_template||"blank",onValueChange:U=>v(T,"fallback_template",U),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsx(ye,{children:P.length===0?r.jsx(z,{value:"blank",children:c("Default (blank)")}):P.map(U=>r.jsx(z,{value:U.id,children:U.title},U.id))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:c("Used when no rule matches the submitted data.")})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-xs",children:c("Rules")}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5 mb-2",children:c("Lower priority runs first. First match wins.")}),I!=null&&I.isLoading?r.jsx(oe,{className:"h-20 w-full"}):O.rules.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-md bg-accent p-2",children:[r.jsx(yt,{className:"h-3.5 w-3.5 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:c("No rules — only the fallback template applies.")})]}):r.jsx("div",{className:"space-y-2",children:O.rules.map((U,M)=>{const re=!qA.has(U.operator);return r.jsxs("div",{className:"grid gap-2 sm:grid-cols-[1.2fr_1fr_1.2fr_1.5fr_0.6fr_auto] items-end rounded-md border p-2",children:[r.jsxs("div",{children:[r.jsx(Q,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:c("Field")}),r.jsxs(je,{value:U.field||"__none",onValueChange:F=>C(T,M,"field",F==="__none"?"":F),children:[r.jsx(ve,{className:"mt-1 h-8 text-xs",children:r.jsx(we,{placeholder:"—"})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__none",disabled:!0,children:c("Choose a field")}),A.length===0?r.jsx(z,{value:"__nofields",disabled:!0,children:c("(no fields detected)")}):A.map(F=>r.jsx(z,{value:F.name,children:F.label||F.name},F.name))]})]})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:c("Operator")}),r.jsxs(je,{value:U.operator,onValueChange:F=>C(T,M,"operator",F),children:[r.jsx(ve,{className:"mt-1 h-8 text-xs",children:r.jsx(we,{})}),r.jsx(ye,{children:Object.keys(rN).map(F=>r.jsx(z,{value:F,children:rN[F]},F))})]})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:c("Value")}),r.jsx(Pe,{className:"mt-1 h-8 text-xs",placeholder:c(re?"e.g. DE":"(not used)"),value:U.value,disabled:!re,onChange:F=>C(T,M,"value",F.target.value)})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:c("Template")}),r.jsxs(je,{value:U.template||"__none",onValueChange:F=>C(T,M,"template",F==="__none"?"":F),children:[r.jsx(ve,{className:"mt-1 h-8 text-xs",children:r.jsx(we,{placeholder:"—"})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__none",disabled:!0,children:c("Choose a template")}),P.map(F=>r.jsx(z,{value:F.id,children:F.title},F.id))]})]})]}),r.jsxs("div",{children:[r.jsx(Q,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:c("Prio")}),r.jsx(Pe,{type:"number",min:1,max:99,className:"mt-1 h-8 text-xs",value:U.priority,onChange:F=>C(T,M,"priority",Math.max(1,Number(F.target.value)||1))})]}),r.jsx(H,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>S(T,M),title:c("Remove rule"),children:r.jsx(pn,{className:"h-3.5 w-3.5"})})]},U.id)})}),r.jsxs(H,{variant:"outline",size:"sm",className:"mt-2",onClick:()=>N(T),children:[r.jsx(ai,{className:"h-3.5 w-3.5 mr-1.5"}),c("Add rule")]})]})]},`${O.integration}_${O.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(H,{onClick:()=>j.mutate(),disabled:j.isPending,children:[j.isPending?r.jsx(_n,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(no,{className:"h-4 w-4 mr-1.5"}),c("Save Conditional Templates settings")]})})]})]})]})}const oN={",":c("Comma — , (RFC 4180 default)"),";":c("Semicolon — ; (German/French Excel)"),"\\t":c("Tab (TSV-style)"),"|":c("Pipe — |")},XA={all:c("Every record — confirmed, unconfirmed, and opted-out."),confirmed:c("Active subscribers only (confirmed AND not opted-out)."),unconfirmed:c("Users who never clicked the confirmation link."),opted_out:c("Records with a recorded opt-out (unsubscribed).")},sr="__all";function iN(e){if(!e)return"—";const t=new Date(e*1e3),n=s=>String(s).padStart(2,"0");return`${n(t.getDate())}.${n(t.getMonth()+1)}.${t.getFullYear()} ${n(t.getHours())}:${n(t.getMinutes())}`}function YA(){var se,Ne,q,xe;const[e,t]=f.useState("csv"),[n,s]=f.useState(","),[o,i]=f.useState("all"),[a,l]=f.useState(""),[d,u]=f.useState(!1),[h,m]=f.useState("all"),[y,x]=f.useState(""),[w,b]=f.useState(""),[j,g]=f.useState(sr),[p,v]=f.useState(sr),[N,S]=f.useState(!1),C=Je(),P=f.useRef(null),{data:k}=Se({queryKey:["categories"],queryFn:()=>Z("/categories")}),{data:O}=Se({queryKey:["forms"],queryFn:()=>Z("/forms")}),T=f.useMemo(()=>{var Ce;const R=(Ce=O==null?void 0:O.data)!=null?Ce:{},ee=[];for(const[Ve,it]of Object.entries(R))if(it)for(const ut of it.forms){const Et=Number(typeof ut.id=="string"?ut.id.split("_")[0]:ut.id);Et&&ee.push({id:Et,label:`${it.name} / ${ut.title||`#${Et}`}`})}const pe=new Set;return ee.filter(Ve=>pe.has(Ve.id)?!1:(pe.add(Ve.id),!0))},[O]),A=f.useMemo(()=>{var R;return((R=k==null?void 0:k.data)!=null?R:[]).filter(ee=>Number(ee.id)>0)},[k]),I=o,U=o==="email"?a.trim():"",M=h,re=j===sr?"":j,F=p===sr?"":p,X=Se({queryKey:["consent-export-stream-info",I,U,M,re,F],queryFn:()=>{const R=new URLSearchParams({scope:I,email:U,status:M,form_id:re,category_id:F});return Z(`/consent-export/stream-info?${R.toString()}`)}}),D=(Ne=(se=X.data)==null?void 0:se.data)!=null?Ne:{exported_count:0,run_count:0,last_run_at:0},L=Se({queryKey:["consent-export-history"],queryFn:()=>Z("/consent-export/history?limit=20")}),J=(xe=(q=L.data)==null?void 0:q.data)!=null?xe:[],he=Re({mutationFn:()=>Z("/consent-export/history",{method:"DELETE"}),onSuccess:()=>{C.invalidateQueries({queryKey:["consent-export-history"]}),C.invalidateQueries({queryKey:["consent-export-stream-info"]}),K.success(c("Export history cleared."))},onError:R=>{K.error(R.message||c("Failed to clear history."))}}),_=Re({mutationFn:R=>Z(`/consent-export/history/${R}`,{method:"DELETE"}),onSuccess:()=>{C.invalidateQueries({queryKey:["consent-export-history"]}),C.invalidateQueries({queryKey:["consent-export-stream-info"]}),K.success(c("Run removed from history."))},onError:R=>{K.error(R.message||c("Failed to delete run."))}});function $(R){var ee;if(i(R.scope==="email"?"email":"all"),l((ee=R.email)!=null?ee:""),m(["all","confirmed","unconfirmed","opted_out"].includes(R.status)?R.status:"all"),g(R.form_id>0?String(R.form_id):sr),v(R.category_id>0?String(R.category_id):sr),t(R.format==="json"?"json":"csv"),u(R.include_form_data===1),R.format==="csv"&&R.delimiter){const pe=R.delimiter===" "?"\\t":R.delimiter;s(pe)}K.info(c("Filters restored from this run."))}function B(){var Ve;if(o==="email"&&a.trim()===""){K.error(c("Enter an email address before exporting."));return}if(y!==""&&w!==""&&y>w){K.error(c("The 'from' date is after the 'to' date."));return}const R=$t(),ee=new URLSearchParams({action:"doi_export_consent",_wpnonce:(Ve=R.consentExportNonce)!=null?Ve:"",format:e,scope:o});o==="email"&&ee.set("email",a.trim()),d&&ee.set("include_formdata","1"),e==="csv"&&n!==","&&ee.set("delimiter",n),h!=="all"&&ee.set("status",h),y!==""&&ee.set("date_from",y),w!==""&&ee.set("date_to",w),j!==sr&&ee.set("form_id",j),p!==sr&&ee.set("category_id",p),N&&ee.set("since_last_export","1");const Ce=`${R.adminUrl.replace(/\/+$/,"")}/admin-ajax.php?${ee.toString()}`;window.open(Ce,"_blank","noopener,noreferrer"),setTimeout(()=>{C.invalidateQueries({queryKey:["consent-export-history"]}),C.invalidateQueries({queryKey:["consent-export-stream-info"]})},1500),setTimeout(()=>{C.invalidateQueries({queryKey:["consent-export-history"]}),C.invalidateQueries({queryKey:["consent-export-stream-info"]})},6e3)}return r.jsxs(te,{className:"mt-6",children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Export consent records (GDPR)")}),r.jsx(_e,{children:c("Download consent records as CSV or JSON for GDPR Art. 15 subject-access requests, internal audits, or migration to another system. The export covers every recorded submission, confirmation, and opt-out with timestamps, IPs, and the exact consent text presented at signup.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-format",children:c("Format")}),r.jsxs(je,{value:e,onValueChange:R=>t(R),children:[r.jsx(ve,{id:"export-format",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"csv",children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(e_,{className:"h-4 w-4"}),c("CSV (Excel-friendly, UTF-8 BOM)")]})}),r.jsx(z,{value:"json",children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(JE,{className:"h-4 w-4"}),c("JSON (pretty-printed)")]})})]})]})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-scope",children:c("Scope")}),r.jsxs(je,{value:o,onValueChange:R=>i(R),children:[r.jsx(ve,{id:"export-scope",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:c("All records")}),r.jsx(z,{value:"email",children:c("By email address")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:c("By email")}),c(": useful for GDPR subject-access requests — exports every record tied to one address.")]})]})]}),e==="csv"&&r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-delimiter",children:c("CSV separator")}),r.jsxs(je,{value:n,onValueChange:R=>s(R),children:[r.jsx(ve,{id:"export-delimiter",className:"mt-1.5",children:r.jsx(we,{})}),r.jsx(ye,{children:Object.keys(oN).map(R=>r.jsx(z,{value:R,children:oN[R]},R))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[c("Excel honours the OS-locale default — German installs expect")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:";"})," ",c("because")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:","})," ",c("is their decimal mark. If you open the CSV and see every row crammed into one column, switch separator and re-export.")]})]}),o==="email"&&r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-email",children:c("Email address")}),r.jsx(Pe,{id:"export-email",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:a,onChange:R=>l(R.target.value)})]}),r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsx("div",{className:"text-sm font-medium",children:c("Filters")}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-status",children:c("Status")}),r.jsxs(je,{value:h,onValueChange:R=>m(R),children:[r.jsx(ve,{id:"export-status",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:c("All statuses")}),r.jsx(z,{value:"confirmed",children:c("Confirmed (active subscribers)")}),r.jsx(z,{value:"unconfirmed",children:c("Unconfirmed")}),r.jsx(z,{value:"opted_out",children:c("Opted out")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:XA[h]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-date-from",children:c("Signed up from")}),r.jsx(Pe,{id:"export-date-from",type:"date",className:"mt-1.5",value:y,onChange:R=>x(R.target.value),max:w||void 0})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-date-to",children:c("Signed up until")}),r.jsx(Pe,{id:"export-date-to",type:"date",className:"mt-1.5",value:w,onChange:R=>b(R.target.value),min:y||void 0})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground -mt-2",children:c("Filters on the signup date (when the record was first submitted). Leave either field empty for an open-ended range. Inclusive on both sides.")}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-form",children:c("Form")}),r.jsxs(je,{value:j,onValueChange:g,children:[r.jsx(ve,{id:"export-form",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:sr,children:c("All forms")}),T.length===0?r.jsx(z,{value:"__nofields",disabled:!0,children:c("(no forms detected)")}):T.map(R=>r.jsx(z,{value:String(R.id),children:R.label},R.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:c("Limit to records tied to one specific form (CF7, Avada, Elementor, WPForms, Gravity, …). Matches on the form's post id.")})]}),r.jsxs("div",{children:[r.jsx(Q,{htmlFor:"export-category",children:c("Category")}),r.jsxs(je,{value:p,onValueChange:v,children:[r.jsx(ve,{id:"export-category",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:sr,children:c("All categories")}),A.length===0?r.jsx(z,{value:"__nocat",disabled:!0,children:c("(no categories defined)")}):A.map(R=>r.jsxs(z,{value:String(R.id),children:[R.name,typeof R.optin_count=="number"&&r.jsxs("span",{className:"text-muted-foreground",children:[" ","(",R.optin_count,")"]})]},R.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:c("Limit to records tagged with one specific category. Configure categories under DOI → Categories.")})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-3 bg-accent/50",children:[r.jsx(nl,{id:"export-since-last",checked:N,onCheckedChange:R=>S(R===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1 flex-1",children:[r.jsx(Q,{htmlFor:"export-since-last",className:"cursor-pointer text-sm font-medium",children:c("Only records not yet exported in this stream")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:c("Excludes OptIn IDs that appeared in any previous export with the same scope + status + form + category + email. Date range is ignored for the stream identity — it's an extra filter on the result. Each export's contents is recorded in an indexed audit table for constant-time filtering.")}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:X.isLoading?c("Loading stream info…"):D.run_count===0?r.jsxs("span",{children:[r.jsx("strong",{children:c("No prior exports")})," ",c("for this filter combination. Toggle is a no-op until you do your first export.")]}):r.jsxs("span",{children:[r.jsx("strong",{children:D.exported_count})," ",c("record(s) previously exported in this stream across")," ",r.jsx("strong",{children:D.run_count})," ",c("run(s). Last run:")," ",iN(D.last_run_at),"."]})})]})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-4",children:[r.jsx(nl,{id:"export-include-formdata",checked:d,onCheckedChange:R=>u(R===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(Q,{htmlFor:"export-include-formdata",className:"cursor-pointer text-sm font-medium",children:c("Include form data (submitted field values)")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:c("Adds one column per form field per record (Name, Address, custom checkboxes, …). Each record may have different fields — the CSV exporter collects all column names across the entire result set.")})]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:[r.jsxs(H,{onClick:B,children:[r.jsx(za,{className:"h-4 w-4 mr-1.5"}),c("Export")]}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:c("The download starts in a new tab. Sensitive data — store the file in line with your retention policy.")})]})]}),r.jsxs(le,{className:"border-t",children:[r.jsxs(de,{className:"flex items-center gap-2 text-base",children:[r.jsx(r_,{className:"h-4 w-4"}),c("Recent exports")]}),r.jsxs(_e,{children:[c("Audit log of past exports. Each row records who ran it, when, from where, and which records went into the file.")," ",c("Click")," ",r.jsx(H0,{className:"inline h-3 w-3"})," ",c("to restore that run's filter combination, or")," ",r.jsx(pn,{className:"inline h-3 w-3"})," ",c("to remove a single accidental run from the audit history.")]})]}),r.jsxs(ne,{children:[L.isLoading?r.jsx(oe,{className:"h-32 w-full"}):J.length===0?r.jsx("p",{className:"text-sm text-muted-foreground italic",children:c("No exports yet — the table fills up as you run them.")}):r.jsx("div",{className:"rounded-lg border overflow-hidden",children:r.jsxs("table",{className:"w-full text-xs",children:[r.jsx("thead",{className:"bg-muted",children:r.jsxs("tr",{children:[r.jsx("th",{className:"text-left p-2 font-medium",children:c("When")}),r.jsx("th",{className:"text-left p-2 font-medium",children:c("User")}),r.jsx("th",{className:"text-left p-2 font-medium",children:c("IP")}),r.jsx("th",{className:"text-left p-2 font-medium",children:c("Stream")}),r.jsx("th",{className:"text-right p-2 font-medium",children:c("Count")}),r.jsx("th",{className:"p-2"})]})}),r.jsx("tbody",{children:J.map(R=>{const ee=[R.scope==="email"?`email:${R.email}`:R.scope,R.status,R.form_id>0?`form#${R.form_id}`:null,R.category_id>0?`cat#${R.category_id}`:null].filter(Boolean).join(" / ");return r.jsxs("tr",{className:"border-t hover:bg-accent/30",children:[r.jsx("td",{className:"p-2",children:iN(R.started_at)}),r.jsx("td",{className:"p-2",children:R.user_login||"—"}),r.jsx("td",{className:"p-2 font-mono text-[10px]",children:R.ip_address||"—"}),r.jsx("td",{className:"p-2",children:ee}),r.jsx("td",{className:"p-2 text-right tabular-nums",children:R.count}),r.jsx("td",{className:"p-2",children:r.jsxs("div",{className:"flex gap-1 justify-end",children:[r.jsx("button",{type:"button",onClick:()=>$(R),title:c("Restore this run's filters"),className:"p-1 rounded hover:bg-accent",children:r.jsx(H0,{className:"h-3.5 w-3.5"})}),r.jsx("button",{type:"button",onClick:()=>{window.confirm(c("Delete this run from the audit history? The originally exported records remain in the database — this only removes the audit row."))&&_.mutate(R.id)},title:c("Remove this run from the audit history"),className:"p-1 rounded hover:bg-accent text-destructive",children:r.jsx(pn,{className:"h-3.5 w-3.5"})})]})})]},R.id)})})]})}),r.jsxs("div",{className:"flex items-center gap-2 pt-4",children:[r.jsxs(H,{variant:"outline",size:"sm",onClick:()=>C.invalidateQueries({queryKey:["consent-export-history"]}),children:[r.jsx(V0,{className:"h-3.5 w-3.5 mr-1.5"}),c("Refresh")]}),J.length>0&&r.jsxs(H,{variant:"outline",size:"sm",className:"text-destructive",onClick:()=>{var R;return(R=P.current)==null?void 0:R.showModal()},children:[r.jsx(pn,{className:"h-3.5 w-3.5 mr-1.5"}),c("Clear all history")]})]})]}),r.jsxs("dialog",{ref:P,className:"rounded-lg p-6 max-w-md backdrop:bg-black/50 backdrop:backdrop-blur-sm",children:[r.jsx("h3",{className:"font-semibold text-base mb-2",children:c("Clear export history?")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:c('Removes every audit row plus the per-record exported-ID links. The originally exported records remain in the database; only the audit trail is cleared. After this, "Only records not yet exported in this stream" treats every record as fresh.')}),r.jsxs("div",{className:"flex justify-end gap-2",children:[r.jsx(H,{variant:"outline",size:"sm",onClick:()=>{var R;return(R=P.current)==null?void 0:R.close()},children:c("Cancel")}),r.jsx(H,{size:"sm",className:"text-destructive border-destructive",variant:"outline",onClick:()=>{var R;(R=P.current)==null||R.close(),he.mutate()},children:c("Yes, clear everything")})]})]})]})}function ZA(){const{id:e}=Bc();return e?r.jsx(ao,{addonId:e,featureName:e,children:r.jsx(JA,{id:e})}):null}function JA({id:e}){var h;const t=Je(),{data:n}=Se({queryKey:["addons-catalog"],queryFn:()=>Z("/addons/catalog")}),{data:s,isLoading:o}=Se({queryKey:["addon-settings",e],queryFn:()=>Z(`/addons/${e}/settings`)}),[i,a]=f.useState(!0);f.useEffect(()=>{s&&a(s.enabled)},[s]);const l=Re({mutationFn:m=>Z(`/addons/${e}/settings`,{method:"POST",body:JSON.stringify(m)}),onSuccess:m=>{K.success(m.enabled?c("Feature enabled."):c("Feature disabled.")),t.invalidateQueries({queryKey:["addon-settings",e]})},onError:m=>{K.error(m.message||c("Failed to save settings."))}}),d=n==null?void 0:n.entries.find(m=>m.id===e),u=m=>{a(m),l.mutate({enabled:m})};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:(h=d==null?void 0:d.name)!=null?h:e}),(d==null?void 0:d.description)&&r.jsx("p",{className:"text-muted-foreground",children:d.description})]}),r.jsxs(te,{children:[r.jsxs(le,{children:[r.jsx(de,{children:c("Feature toggle")}),r.jsx(_e,{children:c("Turn this feature on or off without deactivating the addon plugin. Use this when you want to pause the feature temporarily (e.g. while debugging a form).")})]}),r.jsx(ne,{children:o?r.jsx(oe,{className:"h-12 w-full"}):r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Q,{htmlFor:"addon-enabled",className:"text-base",children:c("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:c("When off, the addon's hooks no-op but the plugin stays installed and can be re-enabled in one click.")})]}),r.jsx(Zt,{id:"addon-enabled",checked:i,onCheckedChange:u,disabled:l.isPending})]})})]}),e==="reminder"&&r.jsx(FA,{}),e==="mx-validator"&&r.jsx($A,{}),e==="domain-blocklist"&&r.jsx(BA,{}),e==="unique-email"&&r.jsx(WA,{}),e==="conditional"&&r.jsx(GA,{}),e==="consent-export"&&r.jsx(YA,{})]})}const aN="doi-email-editor-root",e3="email-editor";function lN(){var h;const{id:e}=Bc(),t=qn(),n=f.useRef(null),[s,o]=f.useState(null),[i,a]=f.useState(!0),{data:l,isLoading:d}=Se({queryKey:["addons-manifest"],queryFn:()=>Z("/addons")}),u=!d&&((h=l==null?void 0:l.addons)!=null?h:[]).some(m=>m.id===e3&&m.available);return f.useEffect(()=>{if(d)return;if(!u){a(!1),o(c("The Email Editor addon isn't active on this site. Activate it to use the in-app editor, or open the legacy editor below."));return}let m=!1,y=null,x=null,w=null;const b=()=>{var N;if(m)return!0;const j=window.doiMountEmailEditor;if(typeof j!="function")return!1;const g=n.current;if(!g)return!1;g.id=aN;const p=e&&e!=="new"?Number(e):0,v=(N=window.doiEmailEditorBootstrap)!=null?N:{restUrl:$t().restUrl+"email-templates",nonce:$t().nonce};return y=j(aN,{templateId:p,restUrl:v.restUrl,nonce:v.nonce}),y&&(a(!1),o(null)),!!y};return b()||(x=setInterval(()=>{b()&&x&&(clearInterval(x),x=null)},100),w=setTimeout(()=>{x&&(clearInterval(x),x=null),!y&&!m&&(a(!1),o(c("Email editor bundle didn't attach in time. Reload the page; if this persists, check the browser console for a script load error.")))},5e3)),()=>{if(m=!0,x&&clearInterval(x),w&&clearTimeout(w),y)try{y.unmount()}catch(j){}}},[e,d,u]),r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:r.jsxs("button",{onClick:()=>t("/email-templates"),className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[r.jsx(Jc,{className:"h-3.5 w-3.5"}),c("Back to email templates")]})}),i&&r.jsxs("div",{className:"space-y-3",children:[r.jsx(oe,{className:"h-8 w-64"}),r.jsx(oe,{className:"h-[600px] w-full"})]}),s&&r.jsx("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Gt,{className:"h-5 w-5 shrink-0 mt-0.5"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium mb-1",children:c("Email editor not available")}),r.jsx("p",{className:"text-amber-800 mb-3",children:s}),r.jsx("div",{className:"flex items-center gap-2",children:r.jsx(H,{variant:"default",size:"sm",onClick:()=>t("/addons"),children:c("Open Addons")})})]})]})}),r.jsx("div",{ref:n,className:"doi-editor-host"})]})}const Kd={info:{label:c("Info"),color:"secondary",icon:yt},warning:{label:c("Warning"),color:"default",icon:Gt},error:{label:c("Error"),color:"destructive",icon:td},critical:{label:c("Critical"),color:"destructive",icon:F0}},t3={settings:qm,cron:wr,activation:Ua,ratelimit:Km,api_error:g_,db_error:$a,email:Qn,auth:p_};function n3(){var S,C,P,k,O,T,A,I,U;const[e,t]=f.useState("30"),[n,s]=f.useState("all"),[o,i]=f.useState("all"),[a,l]=f.useState(1),[d,u]=f.useState(null),h=15,m=M=>{t(M),l(1)},y=M=>{s(M),l(1)},x=M=>{i(M),l(1)},{data:w,isLoading:b}=Se({queryKey:["audit-events",e,n,o,a],queryFn:()=>Z(`/audit/events?period=${e}&type=${n}&severity=${o}&page=${a}&per_page=${h}`)}),{data:j,isLoading:g}=Se({queryKey:["audit-summary",e],queryFn:()=>Z(`/audit/summary?period=${e}`)}),p=(C=(S=w==null?void 0:w.data)==null?void 0:S.events)!=null?C:[],v=(k=(P=w==null?void 0:w.data)==null?void 0:P.pages)!=null?k:1,N=(O=j==null?void 0:j.data)!=null?O:{total:0,warning:0,error:0,critical:0};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:c("Audit Log")}),r.jsx("p",{className:"text-muted-foreground",children:c("System events and change log")})]}),r.jsx(A1,{value:e,onValueChange:m,children:r.jsxs(ip,{children:[r.jsx(vs,{value:"7",className:"text-xs",children:c("7 Days")}),r.jsx(vs,{value:"30",className:"text-xs",children:c("30 Days")}),r.jsx(vs,{value:"90",className:"text-xs",children:c("90 Days")})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsx(de,{className:"text-xs text-muted-foreground",children:c("Total Events")})}),r.jsx(ne,{children:g?r.jsx(oe,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold",children:N.total})})]}),r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(de,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Gt,{className:"h-3 w-3 text-warning"}),c("Warnings")]})}),r.jsx(ne,{children:g?r.jsx(oe,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:N.warning})})]}),r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(de,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(td,{className:"h-3 w-3 text-destructive"}),c("Errors")]})}),r.jsx(ne,{children:g?r.jsx(oe,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-destructive",children:N.error})})]}),r.jsxs(te,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(de,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(F0,{className:"h-3 w-3"}),c("Critical")]})}),r.jsx(ne,{children:g?r.jsx(oe,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold",children:N.critical})})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(je,{value:n,onValueChange:y,children:[r.jsx(ve,{className:"h-8 w-[160px] text-xs",children:r.jsx(we,{placeholder:c("Event Type")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:c("All Types")}),r.jsx(z,{value:"settings",children:c("Settings Change")}),r.jsx(z,{value:"cron",children:c("Cron")}),r.jsx(z,{value:"activation",children:c("Activation")}),r.jsx(z,{value:"ratelimit",children:c("Rate Limit")}),r.jsx(z,{value:"api_error",children:c("API Error")}),r.jsx(z,{value:"db_error",children:c("DB Error")}),r.jsx(z,{value:"email",children:c("Email")}),r.jsx(z,{value:"auth",children:c("Auth")})]})]}),r.jsxs(je,{value:o,onValueChange:x,children:[r.jsx(ve,{className:"h-8 w-[140px] text-xs",children:r.jsx(we,{placeholder:c("Severity")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:c("All")}),r.jsx(z,{value:"info",children:c("Info")}),r.jsx(z,{value:"warning",children:c("Warning")}),r.jsx(z,{value:"error",children:c("Error")}),r.jsx(z,{value:"critical",children:c("Critical")})]})]})]}),r.jsx(te,{children:r.jsx(ne,{className:"p-0",children:b?r.jsx("div",{className:"p-6 space-y-3",children:Array.from({length:5}).map((M,re)=>r.jsx(oe,{className:"h-10 w-full"},re))}):p.length===0?r.jsxs("div",{className:"py-16 text-center",children:[r.jsx(sd,{className:"h-12 w-12 text-muted-foreground/30 mx-auto mb-3"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:c("No events found for the selected filters.")})]}):r.jsxs(r.Fragment,{children:[r.jsxs(xn,{children:[r.jsx(In,{children:r.jsxs(Ie,{children:[r.jsx(Oe,{className:"text-xs w-[160px]",children:c("Timestamp")}),r.jsx(Oe,{className:"text-xs w-[100px]",children:c("Type")}),r.jsx(Oe,{className:"text-xs w-[90px]",children:c("Severity")}),r.jsx(Oe,{className:"text-xs",children:c("Message")}),r.jsx(Oe,{className:"text-xs w-[70px]",children:c("User")})]})}),r.jsx(gn,{children:p.map(M=>{var X;const re=t3[M.event_type]||sd,F=(X=Kd[M.severity])!=null?X:Kd.info;return r.jsxs(Ie,{className:"cursor-pointer hover:bg-accent",onClick:()=>u(M),children:[r.jsx(fe,{className:"text-xs text-muted-foreground",children:M.created_at}),r.jsx(fe,{children:r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(re,{className:"h-3 w-3 text-muted-foreground"}),r.jsx("span",{className:"text-xs capitalize",children:M.event_type.replace("_"," ")})]})}),r.jsx(fe,{children:r.jsx(Qe,{variant:F.color,className:"text-[10px]",children:F.label})}),r.jsx(fe,{className:"text-xs max-w-[300px] truncate",children:M.message}),r.jsx(fe,{children:r.jsx(Qe,{variant:"outline",className:"text-[10px]",children:M.user_display})})]},M.id)})})]}),r.jsxs("div",{className:"flex items-center justify-between p-4 border-t",children:[r.jsx("span",{className:"text-xs text-muted-foreground",children:ce(c("Page %1$s of %2$s"),a,v)}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(H,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:a===1,onClick:()=>l(M=>M-1),children:r.jsx(M0,{className:"h-3 w-3"})}),r.jsx(H,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:a>=v,onClick:()=>l(M=>M+1),children:r.jsx(Hm,{className:"h-3 w-3"})})]})]})]})})}),r.jsx(_r,{open:!!d,onOpenChange:()=>u(null),children:r.jsxs(er,{children:[r.jsxs(tr,{children:[r.jsx(nr,{children:c("Event Details")}),r.jsx(rr,{children:c("Full event information")})]}),d&&r.jsxs("div",{className:"space-y-3 text-sm",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:c("Timestamp:")}),r.jsx("p",{className:"text-xs",children:d.created_at})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:c("Type:")}),r.jsx("p",{className:"text-xs capitalize",children:d.event_type.replace("_"," ")})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:c("Severity:")}),r.jsx("p",{children:r.jsx(Qe,{variant:(A=(T=Kd[d.severity])==null?void 0:T.color)!=null?A:"secondary",className:"text-[10px]",children:(U=(I=Kd[d.severity])==null?void 0:I.label)!=null?U:d.severity})})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:c("User:")}),r.jsx("p",{className:"text-xs",children:d.user_display})]})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:c("Message:")}),r.jsx("p",{className:"text-xs mt-1 rounded-lg bg-accent p-3",children:d.message})]})]})]})})]})}function r3(){return r.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh] gap-4",children:[r.jsx("h1",{className:"text-4xl font-bold",children:"404"}),r.jsx("p",{className:"text-muted-foreground",children:c("Page not found")}),r.jsx(un,{to:"/",className:"text-primary hover:underline",children:c("Return to Dashboard")})]})}const s3=new Sk({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),o3=()=>(f.useEffect(()=>{B2()},[]),r.jsx(Ck,{client:s3,children:r.jsxs(Yb,{children:[r.jsx(Z_,{}),r.jsx(TP,{}),r.jsx(pR,{children:r.jsx(R2,{children:r.jsxs(N2,{children:[r.jsxs(et,{element:r.jsx(fO,{}),children:[r.jsx(et,{path:"/",element:r.jsx(yO,{})}),r.jsx(et,{path:"/analytics",element:r.jsx(ao,{addonId:"analytics",featureName:"Analytics",children:r.jsx(Jn,{id:"page.analytics"})})}),r.jsx(et,{path:"/optins",element:r.jsx(h5,{})}),r.jsx(et,{path:"/optins/:id",element:r.jsx(p5,{})}),r.jsx(et,{path:"/forms",element:r.jsx(S5,{})}),r.jsx(et,{path:"/forms/:integration/:id/settings",element:r.jsx(X5,{})}),r.jsx(et,{path:"/categories",element:r.jsx(I1,{})}),r.jsx(et,{path:"/categories/:id",element:r.jsx(I1,{})}),r.jsx(et,{path:"/settings",element:r.jsx(J5,{})}),r.jsx(et,{path:"/email-templates",element:r.jsx(ao,{addonId:"email-editor",featureName:"Email Templates",children:r.jsx(eA,{})})}),r.jsx(et,{path:"/email-templates/new",element:r.jsx(ao,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(lN,{})})}),r.jsx(et,{path:"/email-templates/:id/edit",element:r.jsx(ao,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(lN,{})})}),r.jsx(et,{path:"/database",element:r.jsx(tA,{})}),r.jsx(et,{path:"/opt-out",element:r.jsx(ao,{addonId:"opt-out",featureName:"Opt-Out",children:r.jsx(gA,{})})}),r.jsx(et,{path:"/user-creation",element:r.jsx(ao,{addonId:"user-registration",featureName:"User Creation",children:r.jsx(wA,{})})}),r.jsx(et,{path:"/api",element:r.jsx(SA,{})}),r.jsx(et,{path:"/audit",element:r.jsx(n3,{})}),r.jsx(et,{path:"/license",element:r.jsx(CA,{})}),r.jsx(et,{path:"/addons",element:r.jsx(kA,{})}),r.jsx(et,{path:"/addon-settings/:id",element:r.jsx(ZA,{})})]}),r.jsx(et,{path:"*",element:r.jsx(r3,{})})]})})})]})})),cN=document.getElementById("doi-admin-root");cN&&sy(cN).render(r.jsx(o3,{}))})(wp.i18n);
458