| @@ -1,6 +1,7 @@ | ||
| 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+817KeHDRANVOdSZTE0mx05wGy3iIsAUf0f92lq9M9/vv/v/fb8Oa8yVqT0nuI2nTGlyeDouviNs9inRBSSqDf7jIJKu0nX6r99J6jx/12cSUdscJp/KxG3QT7RY/9SEwOBbgQ6oeY7Wz9aQv/8DXVf25LyKzMVb1gPyyV/Vl7QRt6Yojsq2qemYjy5LWBREQDCugh4gIihyuKEEw4qrLEgyHmBCRJ4m6LkFU2IMVOZKIiIiYOEQeMxhxWTBhSKjoeZiRLHLKDI9u9i8BQgghYQQIEEKYUxQFUXDWDq/aau0aNzrutm2vd78V8cbevb39PbuWZ+c8x6yKiPAv2cH/SXIzsw/6FFq5J1BCrkRshmBunS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tEJtr57V6oPltLYwA6EQNq81YFuEQ/4Wm3PXzIpptkYWUEuOSWOSeiFlTtDoo8Svu934LOxpa21kFbwX59qcBh+Zn+RImvyj5kNJLxXJvJ8d8VrfkJKFVrRJ05tK/aXanhx8bT7aVauoJ81roNL64KfMd8Sj0Rtfge+SohT0+ShTwFVwhK1KW45QTKfoZNrjU4poyxfT6QTmZlc+GpmMrLLWuHv26eonGfHyrlIqK1kXkTsd6eStxRnuKdSRqBapI1Ffpa5MEY1iOvVVugLU/LBXx6A1CuG6/RzGbhBarFJiuBQvbvkwWJIFSwAUwqV4kWPD5BEGsHNgl0kYMExsoHumATSWF28A8Zt8m6AE9w5Ar/3gsARAIUyvsQEQsFPAAABsAIDuAWgAbwDxK3AV1Mg9NsmPCvFmjM39+cmxXPF4EnoWKsaVX2nwQhAzQ84QJtFHLOZ9XyEdIPQUZJ7mEWV4FzjWEB2HUia6pvsjX/c196Wa/Kcqdtsqql2UbjmGZ4HCzYgVhidjl1XUbVlr3XLXgfYNROYdDBJHYa13NSw58stFXNu+N+t5WGAU1doYgvhRsJmWa/0f4Ys7r6o1nW1LF8pCcxJM0H9YbRjb5gVb1go9Y9/SxF08sf0p8GbuymWEe+zrfrqQc8Rnc8lptIpSPWmoLslM6sWzOZaLyLaco1nYjntDeIpj5e/663Cvs+oZM4Z+HNgvV5U0ktw/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-\\[190px\\]{width:190px}#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>: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 :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-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}#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 .running{animation-play-state:running}#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 dI=Object.defineProperty;var rS=Le=>{throw TypeError(Le)};var uI=(Le,Be,nt)=>Be in Le?dI(Le,Be,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Le[Be]=nt;var za=(Le,Be,nt)=>uI(Le,typeof Be!="symbol"?Be+"":Be,nt),Op=(Le,Be,nt)=>Be.has(Le)||rS("Cannot "+nt);var _=(Le,Be,nt)=>(Op(Le,Be,"read from private field"),nt?nt.call(Le):Be.get(Le)),ae=(Le,Be,nt)=>Be.has(Le)?rS("Cannot add the same private member more than once"):Be instanceof WeakSet?Be.add(Le):Be.set(Le,nt),Y=(Le,Be,nt,Ds)=>(Op(Le,Be,"write to private field"),Ds?Ds.call(Le,nt):Be.set(Le,nt),nt),be=(Le,Be,nt)=>(Op(Le,Be,"access private method"),nt);var eu=(Le,Be,nt,Ds)=>({set _(ko){Y(Le,Be,ko,nt)},get _(){return _(Le,Be,Ds)}});(function(Le){"use strict";var ho,bs,wa,BN,js,Rp,VN,Na,ws,Sa,HN,po,WN,xo,Ca,yn,go,pt,gl,vo,nn,sS,Lr,qN,Bt,Me,vl,At,yo,ka,Rr,Ns,yl,_a,Ea,bo,jo,Ss,Pa,$e,_l,Ip,Mp,Dp,Fp,Lp,$p,zp,oS,KN,bl,ar,kt,wo,ir,Ms,QN,Ar,Fn,jl,GN,Or,Cs,Vt,Ir,Mr,tu,Up,XN,Ta,rn,Ra,Aa,bn,ks,wl,Nl,Sl,Cl,bt,Bp,Vp,Hp,Wp,qp,YN,lr,ZN,at,_s,Es,Oa,Ia,Ps,Ma,Da,JN;function Be(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 a=Object.getOwnPropertyDescriptor(s,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ds={exports:{}},ko={},Kp={exports:{}},Oe={};/** | |
| 1 | +/* doi:scope-guard */(function(){ | |
| 2 | +(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+817KeHDRANVOdSZTE0m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ktw/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%}.dark{--background: 222 22% 10%;--foreground: 210 20% 95%;--card: 222 20% 13%;--card-foreground: 210 20% 95%;--popover: 222 20% 13%;--popover-foreground: 210 20% 95%;--primary: 207 90% 54%;--primary-foreground: 0 0% 100%;--secondary: 220 14% 18%;--secondary-foreground: 210 20% 95%;--muted: 220 14% 18%;--muted-foreground: 218 11% 55%;--accent: 220 14% 18%;--accent-foreground: 210 20% 95%;--destructive: 0 62% 50%;--destructive-foreground: 0 0% 100%;--border: 220 13% 20%;--input: 220 13% 20%;--ring: 207 90% 54%;--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: 222 22% 10%;--sidebar-foreground: 210 20% 95%;--sidebar-primary: 207 90% 54%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 220 14% 16%;--sidebar-accent-foreground: 210 20% 95%;--sidebar-border: 220 13% 20%;--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-1\\.5{margin-bottom:.375rem}#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-2{margin-left:.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-8{margin-top:2rem}#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-\\[4\\/3\\]{aspect-ratio:4/3}#doi-admin-root .aspect-square{aspect-ratio:1 / 1}#doi-admin-root .size-4{width:1rem;height:1rem}#doi-admin-root .h-1{height:.25rem}#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-8{min-height:2rem}#doi-admin-root .min-h-9{min-height:2.25rem}#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-\\[70vh\\]{min-height:70vh}#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-1\\/2{width:50%}#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-2\\/3{width:66.666667%}#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-5\\/6{width:83.333333%}#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-\\[170px\\]{width:170px}#doi-admin-root .w-\\[190px\\]{width:190px}#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-2xl{max-width:42rem}#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 .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .grid-cols-\\[auto_1fr\\]{grid-template-columns:auto 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 .content-center{align-content:center}#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 .justify-items-center{justify-items:center}#doi-admin-root .gap-0{gap:0px}#doi-admin-root .gap-0\\.5{gap:.125rem}#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-3{-moz-column-gap:.75rem;column-gap:.75rem}#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 .gap-y-2{row-gap:.5rem}#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>: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 :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 .justify-self-start{justify-self:start}#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-normal{white-space:normal}#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-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / 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-orange-400{--tw-border-opacity: 1;border-color:rgb(251 146 60 / var(--tw-border-opacity, 1))}#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-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}#doi-admin-root .border-transparent{border-color:transparent}#doi-admin-root .border-warning{border-color:hsl(var(--warning))}#doi-admin-root .border-warning\\/40{border-color:hsl(var(--warning) / .4)}#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-destructive{background-color:hsl(var(--destructive))}#doi-admin-root .bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}#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\\/40{background-color:hsl(var(--muted) / .4)}#doi-admin-root .bg-muted\\/50{background-color:hsl(var(--muted) / .5)}#doi-admin-root .bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}#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-primary\\/\\[0\\.04\\]{background-color:hsl(var(--primary) / .04)}#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-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}#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-warning\\/15{background-color:hsl(var(--warning) / .15)}#doi-admin-root .bg-warning\\/\\[0\\.06\\]{background-color:hsl(var(--warning) / .06)}#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-1\\.5{padding:.375rem}#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 .py-px{padding-top:1px;padding-bottom:1px}#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-xl{font-size:1.25rem;line-height:1.75rem}#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 .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-snug{line-height:1.375}#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-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}#doi-admin-root .text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}#doi-admin-root .text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / 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-muted-foreground\\/80{color:hsl(var(--muted-foreground) / .8)}#doi-admin-root .text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity, 1))}#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-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}#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-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}#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-2{text-underline-offset:2px}#doi-admin-root .underline-offset-4{text-underline-offset:4px}#doi-admin-root .opacity-0{opacity:0}#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 .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 .running{animation-play-state:running}#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 .doi-help{max-width:52rem;line-height:1.65;font-size:.9375rem}#doi-admin-root .doi-help h1{font-size:1.75rem;font-weight:700;line-height:1.25;margin:0 0 1rem}#doi-admin-root .doi-help h2{font-size:1.25rem;font-weight:650;margin:2rem 0 .5rem}#doi-admin-root .doi-help h3{font-size:1.05rem;font-weight:600;margin:1.5rem 0 .4rem}#doi-admin-root .doi-help p{margin:0 0 .9rem}#doi-admin-root .doi-help ul{list-style:disc;padding-left:1.4rem;margin:0 0 .9rem}#doi-admin-root .doi-help ol{list-style:decimal;padding-left:1.4rem;margin:0 0 .9rem}#doi-admin-root .doi-help li{margin:.2rem 0}#doi-admin-root .doi-help a{color:hsl(var(--primary));text-decoration:underline;text-underline-offset:2px}#doi-admin-root .doi-help img{max-width:100%;height:auto;margin:.5rem 0 1.25rem;border:1px solid hsl(var(--border));border-radius:.5rem}#doi-admin-root .doi-help code{font-size:.85em;background:hsl(var(--muted));padding:.1rem .35rem;border-radius:.25rem}#doi-admin-root .doi-help pre{background:hsl(var(--muted));padding:.85rem 1rem;border-radius:.5rem;overflow-x:auto;margin:0 0 1rem}#doi-admin-root .doi-help pre code{background:none;padding:0}#doi-admin-root .doi-help blockquote{border-left:3px solid hsl(var(--border));padding-left:.9rem;color:hsl(var(--muted-foreground));margin:0 0 1rem}#doi-admin-root .doi-help table{width:100%;border-collapse:collapse;margin:0 0 1.25rem;font-size:.875rem}#doi-admin-root .doi-help th,#doi-admin-root .doi-help td{border:1px solid hsl(var(--border));padding:.45rem .7rem;text-align:left;vertical-align:top}#doi-admin-root .doi-help th{background:hsl(var(--muted));font-weight:600}#doi-admin-root .doi-help hr{border:0;border-top:1px solid hsl(var(--border));margin:1.5rem 0}#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-slate-100:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}#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-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-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:border-red-900\\/50:is(.dark *){border-color:#7f1d1d80}#doi-admin-root .dark\\:border-slate-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}#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-emerald-950\\/40:is(.dark *){background-color:#022c2266}#doi-admin-root .dark\\:bg-orange-950\\/40:is(.dark *){background-color:#43140766}#doi-admin-root .dark\\:bg-red-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 10 10 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:bg-red-950\\/30:is(.dark *){background-color:#450a0a4d}#doi-admin-root .dark\\:bg-slate-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}#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-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / 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-200:is(.dark *){--tw-text-opacity: 1;color:rgb(167 243 208 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-emerald-300:is(.dark *){--tw-text-opacity: 1;color:rgb(110 231 183 / 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-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 215 170 / 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\\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-slate-300:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / 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-1{grid-column:span 1 / span 1}#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-4{grid-template-columns:repeat(4,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\\:grid-cols-\\[auto_1fr_12rem\\]{grid-template-columns:auto 1fr 12rem}#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-\\[16rem_minmax\\(0\\,1fr\\)\\]{grid-template-columns:16rem minmax(0,1fr)}#doi-admin-root .lg\\:grid-cols-\\[1fr_300px\\]{grid-template-columns:1fr 300px}#doi-admin-root .lg\\:p-8{padding:2rem}}@media (min-width: 1280px){#doi-admin-root .xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}#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)}})(); | |
| 3 | +var XM=Object.defineProperty;var hC=qe=>{throw TypeError(qe)};var ZM=(qe,Qe,ot)=>Qe in qe?XM(qe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:ot}):qe[Qe]=ot;var Wi=(qe,Qe,ot)=>ZM(qe,typeof Qe!="symbol"?Qe+"":Qe,ot),hx=(qe,Qe,ot)=>Qe.has(qe)||hC("Cannot "+ot);var E=(qe,Qe,ot)=>(hx(qe,Qe,"read from private field"),ot?ot.call(qe):Qe.get(qe)),de=(qe,Qe,ot)=>Qe.has(qe)?hC("Cannot add the same private member more than once"):Qe instanceof WeakSet?Qe.add(qe):Qe.set(qe,ot),J=(qe,Qe,ot,Us)=>(hx(qe,Qe,"write to private field"),Us?Us.call(qe,ot):Qe.set(qe,ot),ot),Se=(qe,Qe,ot)=>(hx(qe,Qe,"access private method"),ot);var Ru=(qe,Qe,ot,Us)=>({set _(Ea){J(qe,Qe,Ea,ot)},get _(){return E(qe,Qe,Us)}});(function(qe){"use strict";var va,Es,Pi,XS,Ps,mx,ZS,Ti,Ts,Ri,JS,ya,eC,ba,Ai,En,ja,wt,Sl,wa,hn,pC,qr,tC,Xt,Le,Cl,Bt,Na,Oi,Dr,Rs,kl,Ii,Mi,Sa,Ca,As,Di,He,zl,px,xx,gx,vx,yx,bx,jx,xC,nC,_l,ur,Mt,ka,fr,zs,rC,Fr,Qn,El,sC,Lr,Os,Zt,$r,zr,Au,wx,aC,Fi,pn,Li,$i,Pn,Is,Pl,Tl,Rl,Al,Pt,Nx,Sx,Cx,kx,_x,iC,mr,oC,ut,Ms,Ds,zi,Ui,Fs,Bi,Vi,lC;function Qe(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(s,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Us={exports:{}},Ea={},Ex={exports:{}},Oe={};/** | |
| 3 | 4 | * @license React |
| 4 | 5 | * react.production.min.js |
| 5 | 6 | * |
| 6 | 7 | * Copyright (c) Facebook, Inc. and its affiliates. |
| @@ -6,9 +7,9 @@ | ||
| 6 | 7 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 7 | 8 | * |
| 8 | 9 | * This source code is licensed under the MIT license found in the |
| 9 | 10 | * LICENSE file in the root directory of this source tree. |
| 10 | - */var Ua=Symbol.for("react.element"),aS=Symbol.for("react.portal"),iS=Symbol.for("react.fragment"),lS=Symbol.for("react.strict_mode"),cS=Symbol.for("react.profiler"),dS=Symbol.for("react.provider"),uS=Symbol.for("react.context"),fS=Symbol.for("react.forward_ref"),mS=Symbol.for("react.suspense"),hS=Symbol.for("react.memo"),pS=Symbol.for("react.lazy"),Qp=Symbol.iterator;function xS(e){return e===null||typeof e!="object"?null:(e=Qp&&e[Qp]||e["@@iterator"],typeof e=="function"?e:null)}var Gp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xp=Object.assign,Yp={};function _o(e,t,n){this.props=e,this.context=t,this.refs=Yp,this.updater=n||Gp}_o.prototype.isReactComponent={},_o.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")},_o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zp(){}Zp.prototype=_o.prototype;function nu(e,t,n){this.props=e,this.context=t,this.refs=Yp,this.updater=n||Gp}var ru=nu.prototype=new Zp;ru.constructor=nu,Xp(ru,_o.prototype),ru.isPureReactComponent=!0;var Jp=Array.isArray,ex=Object.prototype.hasOwnProperty,su={current:null},tx={key:!0,ref:!0,__self:!0,__source:!0};function nx(e,t,n){var s,o={},a=null,i=null;if(t!=null)for(s in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)ex.call(t,s)&&!tx.hasOwnProperty(s)&&(o[s]=t[s]);var c=arguments.length-2;if(c===1)o.children=n;else if(1<c){for(var d=Array(c),u=0;u<c;u++)d[u]=arguments[u+2];o.children=d}if(e&&e.defaultProps)for(s in c=e.defaultProps,c)o[s]===void 0&&(o[s]=c[s]);return{$$typeof:Ua,type:e,key:a,ref:i,props:o,_owner:su.current}}function gS(e,t){return{$$typeof:Ua,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ou(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ua}function vS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var rx=/\/+/g;function au(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vS(""+e.key):t.toString(36)}function El(e,t,n,s,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ua:case aS:i=!0}}if(i)return i=e,o=o(i),e=s===""?"."+au(i,0):s,Jp(o)?(n="",e!=null&&(n=e.replace(rx,"$&/")+"/"),El(o,t,n,"",function(u){return u})):o!=null&&(ou(o)&&(o=gS(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(rx,"$&/")+"/")+e)),t.push(o)),1;if(i=0,s=s===""?".":s+":",Jp(e))for(var c=0;c<e.length;c++){a=e[c];var d=s+au(a,c);i+=El(a,t,n,d,o)}else if(d=xS(e),typeof d=="function")for(e=d.call(e),c=0;!(a=e.next()).done;)a=a.value,d=s+au(a,c++),i+=El(a,t,n,d,o);else if(a==="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 i}function Pl(e,t,n){if(e==null)return e;var s=[],o=0;return El(e,s,"","",function(a){return t.call(n,a,o++)}),s}function yS(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 Et={current:null},Tl={transition:null},bS={ReactCurrentDispatcher:Et,ReactCurrentBatchConfig:Tl,ReactCurrentOwner:su};function sx(){throw Error("act(...) is not supported in production builds of React.")}Oe.Children={map:Pl,forEach:function(e,t,n){Pl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Pl(e,function(){t++}),t},toArray:function(e){return Pl(e,function(t){return t})||[]},only:function(e){if(!ou(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Oe.Component=_o,Oe.Fragment=iS,Oe.Profiler=cS,Oe.PureComponent=nu,Oe.StrictMode=lS,Oe.Suspense=mS,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bS,Oe.act=sx,Oe.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=Xp({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=su.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)ex.call(t,d)&&!tx.hasOwnProperty(d)&&(s[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)s.children=n;else if(1<d){c=Array(d);for(var u=0;u<d;u++)c[u]=arguments[u+2];s.children=c}return{$$typeof:Ua,type:e.type,key:o,ref:a,props:s,_owner:i}},Oe.createContext=function(e){return e={$$typeof:uS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:dS,_context:e},e.Consumer=e},Oe.createElement=nx,Oe.createFactory=function(e){var t=nx.bind(null,e);return t.type=e,t},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(e){return{$$typeof:fS,render:e}},Oe.isValidElement=ou,Oe.lazy=function(e){return{$$typeof:pS,_payload:{_status:-1,_result:e},_init:yS}},Oe.memo=function(e,t){return{$$typeof:hS,type:e,compare:t===void 0?null:t}},Oe.startTransition=function(e){var t=Tl.transition;Tl.transition={};try{e()}finally{Tl.transition=t}},Oe.unstable_act=sx,Oe.useCallback=function(e,t){return Et.current.useCallback(e,t)},Oe.useContext=function(e){return Et.current.useContext(e)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(e){return Et.current.useDeferredValue(e)},Oe.useEffect=function(e,t){return Et.current.useEffect(e,t)},Oe.useId=function(){return Et.current.useId()},Oe.useImperativeHandle=function(e,t,n){return Et.current.useImperativeHandle(e,t,n)},Oe.useInsertionEffect=function(e,t){return Et.current.useInsertionEffect(e,t)},Oe.useLayoutEffect=function(e,t){return Et.current.useLayoutEffect(e,t)},Oe.useMemo=function(e,t){return Et.current.useMemo(e,t)},Oe.useReducer=function(e,t,n){return Et.current.useReducer(e,t,n)},Oe.useRef=function(e){return Et.current.useRef(e)},Oe.useState=function(e){return Et.current.useState(e)},Oe.useSyncExternalStore=function(e,t,n){return Et.current.useSyncExternalStore(e,t,n)},Oe.useTransition=function(){return Et.current.useTransition()},Oe.version="18.3.1",Kp.exports=Oe;var f=Kp.exports;const V=nt(f),Rl=Be({__proto__:null,default:V},[f]);/** | |
| 11 | + */var Ki=Symbol.for("react.element"),gC=Symbol.for("react.portal"),vC=Symbol.for("react.fragment"),yC=Symbol.for("react.strict_mode"),bC=Symbol.for("react.profiler"),jC=Symbol.for("react.provider"),wC=Symbol.for("react.context"),NC=Symbol.for("react.forward_ref"),SC=Symbol.for("react.suspense"),CC=Symbol.for("react.memo"),kC=Symbol.for("react.lazy"),Px=Symbol.iterator;function _C(e){return e===null||typeof e!="object"?null:(e=Px&&e[Px]||e["@@iterator"],typeof e=="function"?e:null)}var Tx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rx=Object.assign,Ax={};function Pa(e,t,n){this.props=e,this.context=t,this.refs=Ax,this.updater=n||Tx}Pa.prototype.isReactComponent={},Pa.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")},Pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ox(){}Ox.prototype=Pa.prototype;function Ou(e,t,n){this.props=e,this.context=t,this.refs=Ax,this.updater=n||Tx}var Iu=Ou.prototype=new Ox;Iu.constructor=Ou,Rx(Iu,Pa.prototype),Iu.isPureReactComponent=!0;var Ix=Array.isArray,Mx=Object.prototype.hasOwnProperty,Mu={current:null},Dx={key:!0,ref:!0,__self:!0,__source:!0};function Fx(e,t,n){var s,a={},i=null,o=null;if(t!=null)for(s in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Mx.call(t,s)&&!Dx.hasOwnProperty(s)&&(a[s]=t[s]);var c=arguments.length-2;if(c===1)a.children=n;else if(1<c){for(var d=Array(c),u=0;u<c;u++)d[u]=arguments[u+2];a.children=d}if(e&&e.defaultProps)for(s in c=e.defaultProps,c)a[s]===void 0&&(a[s]=c[s]);return{$$typeof:Ki,type:e,key:i,ref:o,props:a,_owner:Mu.current}}function EC(e,t){return{$$typeof:Ki,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Du(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ki}function PC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lx=/\/+/g;function Fu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?PC(""+e.key):t.toString(36)}function Ul(e,t,n,s,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ki:case gC:o=!0}}if(o)return o=e,a=a(o),e=s===""?"."+Fu(o,0):s,Ix(a)?(n="",e!=null&&(n=e.replace(Lx,"$&/")+"/"),Ul(a,t,n,"",function(u){return u})):a!=null&&(Du(a)&&(a=EC(a,n+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(Lx,"$&/")+"/")+e)),t.push(a)),1;if(o=0,s=s===""?".":s+":",Ix(e))for(var c=0;c<e.length;c++){i=e[c];var d=s+Fu(i,c);o+=Ul(i,t,n,d,a)}else if(d=_C(e),typeof d=="function")for(e=d.call(e),c=0;!(i=e.next()).done;)i=i.value,d=s+Fu(i,c++),o+=Ul(i,t,n,d,a);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 o}function Bl(e,t,n){if(e==null)return e;var s=[],a=0;return Ul(e,s,"","",function(i){return t.call(n,i,a++)}),s}function TC(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 Dt={current:null},Vl={transition:null},RC={ReactCurrentDispatcher:Dt,ReactCurrentBatchConfig:Vl,ReactCurrentOwner:Mu};function $x(){throw Error("act(...) is not supported in production builds of React.")}Oe.Children={map:Bl,forEach:function(e,t,n){Bl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Bl(e,function(){t++}),t},toArray:function(e){return Bl(e,function(t){return t})||[]},only:function(e){if(!Du(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Oe.Component=Pa,Oe.Fragment=vC,Oe.Profiler=bC,Oe.PureComponent=Ou,Oe.StrictMode=yC,Oe.Suspense=SC,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=RC,Oe.act=$x,Oe.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=Rx({},e.props),a=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Mu.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)Mx.call(t,d)&&!Dx.hasOwnProperty(d)&&(s[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)s.children=n;else if(1<d){c=Array(d);for(var u=0;u<d;u++)c[u]=arguments[u+2];s.children=c}return{$$typeof:Ki,type:e.type,key:a,ref:i,props:s,_owner:o}},Oe.createContext=function(e){return e={$$typeof:wC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:jC,_context:e},e.Consumer=e},Oe.createElement=Fx,Oe.createFactory=function(e){var t=Fx.bind(null,e);return t.type=e,t},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(e){return{$$typeof:NC,render:e}},Oe.isValidElement=Du,Oe.lazy=function(e){return{$$typeof:kC,_payload:{_status:-1,_result:e},_init:TC}},Oe.memo=function(e,t){return{$$typeof:CC,type:e,compare:t===void 0?null:t}},Oe.startTransition=function(e){var t=Vl.transition;Vl.transition={};try{e()}finally{Vl.transition=t}},Oe.unstable_act=$x,Oe.useCallback=function(e,t){return Dt.current.useCallback(e,t)},Oe.useContext=function(e){return Dt.current.useContext(e)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(e){return Dt.current.useDeferredValue(e)},Oe.useEffect=function(e,t){return Dt.current.useEffect(e,t)},Oe.useId=function(){return Dt.current.useId()},Oe.useImperativeHandle=function(e,t,n){return Dt.current.useImperativeHandle(e,t,n)},Oe.useInsertionEffect=function(e,t){return Dt.current.useInsertionEffect(e,t)},Oe.useLayoutEffect=function(e,t){return Dt.current.useLayoutEffect(e,t)},Oe.useMemo=function(e,t){return Dt.current.useMemo(e,t)},Oe.useReducer=function(e,t,n){return Dt.current.useReducer(e,t,n)},Oe.useRef=function(e){return Dt.current.useRef(e)},Oe.useState=function(e){return Dt.current.useState(e)},Oe.useSyncExternalStore=function(e,t,n){return Dt.current.useSyncExternalStore(e,t,n)},Oe.useTransition=function(){return Dt.current.useTransition()},Oe.version="18.3.1",Ex.exports=Oe;var f=Ex.exports;const K=ot(f),ql=Qe({__proto__:null,default:K},[f]);/** | |
| 11 | 12 | * @license React |
| 12 | 13 | * react-jsx-runtime.production.min.js |
| 13 | 14 | * |
| 14 | 15 | * Copyright (c) Facebook, Inc. and its affiliates. |
| @@ -14,9 +15,9 @@ | ||
| 14 | 15 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 15 | 16 | * |
| 16 | 17 | * This source code is licensed under the MIT license found in the |
| 17 | 18 | * LICENSE file in the root directory of this source tree. |
| 18 | - */var jS=f,wS=Symbol.for("react.element"),NS=Symbol.for("react.fragment"),SS=Object.prototype.hasOwnProperty,CS=jS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kS={key:!0,ref:!0,__self:!0,__source:!0};function ox(e,t,n){var s,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(s in t)SS.call(t,s)&&!kS.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:wS,type:e,key:a,ref:i,props:o,_owner:CS.current}}ko.Fragment=NS,ko.jsx=ox,ko.jsxs=ox,Ds.exports=ko;var r=Ds.exports,ax={exports:{}},Ht={},ix={exports:{}},lx={};/** | |
| 19 | + */var AC=f,OC=Symbol.for("react.element"),IC=Symbol.for("react.fragment"),MC=Object.prototype.hasOwnProperty,DC=AC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,FC={key:!0,ref:!0,__self:!0,__source:!0};function zx(e,t,n){var s,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(s in t)MC.call(t,s)&&!FC.hasOwnProperty(s)&&(a[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)a[s]===void 0&&(a[s]=t[s]);return{$$typeof:OC,type:e,key:i,ref:o,props:a,_owner:DC.current}}Ea.Fragment=IC,Ea.jsx=zx,Ea.jsxs=zx,Us.exports=Ea;var r=Us.exports,Ux={exports:{}},nn={},Bx={exports:{}},Vx={};/** | |
| 19 | 20 | * @license React |
| 20 | 21 | * scheduler.production.min.js |
| 21 | 22 | * |
| 22 | 23 | * Copyright (c) Facebook, Inc. and its affiliates. |
| @@ -22,9 +23,9 @@ | ||
| 22 | 23 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 23 | 24 | * |
| 24 | 25 | * This source code is licensed under the MIT license found in the |
| 25 | 26 | * LICENSE file in the root directory of this source tree. |
| 26 | - */(function(e){function t(I,F){var J=I.length;I.push(F);e:for(;0<J;){var xe=J-1>>>1,P=I[xe];if(0<o(P,F))I[xe]=F,I[J]=P,J=xe;else break e}}function n(I){return I.length===0?null:I[0]}function s(I){if(I.length===0)return null;var F=I[0],J=I.pop();if(J!==F){I[0]=J;e:for(var xe=0,P=I.length,$=P>>>1;xe<$;){var W=2*(xe+1)-1,se=I[W],Ne=W+1,G=I[Ne];if(0>o(se,J))Ne<P&&0>o(G,se)?(I[xe]=G,I[Ne]=J,xe=Ne):(I[xe]=se,I[W]=J,xe=W);else if(Ne<P&&0>o(G,J))I[xe]=G,I[Ne]=J,xe=Ne;else break e}}return F}function o(I,F){var J=I.sortIndex-F.sortIndex;return J!==0?J:I.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var d=[],u=[],h=1,m=null,v=3,g=!1,j=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,y=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 x(I){for(var F=n(u);F!==null;){if(F.callback===null)s(u);else if(F.startTime<=I)s(u),F.sortIndex=F.expirationTime,t(d,F);else break;F=n(u)}}function N(I){if(b=!1,x(I),!j)if(n(d)!==null)j=!0,D(S);else{var F=n(u);F!==null&&te(N,F.startTime-I)}}function S(I,F){j=!1,b&&(b=!1,y(C),C=-1),g=!0;var J=v;try{for(x(F),m=n(d);m!==null&&(!(m.expirationTime>F)||I&&!A());){var xe=m.callback;if(typeof xe=="function"){m.callback=null,v=m.priorityLevel;var P=xe(m.expirationTime<=F);F=e.unstable_now(),typeof P=="function"?m.callback=P:m===n(d)&&s(d),x(F)}else s(d);m=n(d)}if(m!==null)var $=!0;else{var W=n(u);W!==null&&te(N,W.startTime-F),$=!1}return $}finally{m=null,v=J,g=!1}}var k=!1,E=null,C=-1,R=5,T=-1;function A(){return!(e.unstable_now()-T<R)}function M(){if(E!==null){var I=e.unstable_now();T=I;var F=!0;try{F=E(!0,I)}finally{F?B():(k=!1,E=null)}}else k=!1}var B;if(typeof p=="function")B=function(){p(M)};else if(typeof MessageChannel!="undefined"){var O=new MessageChannel,re=O.port2;O.port1.onmessage=M,B=function(){re.postMessage(null)}}else B=function(){w(M,0)};function D(I){E=I,k||(k=!0,B())}function te(I,F){C=w(function(){I(e.unstable_now())},F)}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(I){I.callback=null},e.unstable_continueExecution=function(){j||g||(j=!0,D(S))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(I){switch(v){case 1:case 2:case 3:var F=3;break;default:F=v}var J=v;v=F;try{return I()}finally{v=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,F){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var J=v;v=I;try{return F()}finally{v=J}},e.unstable_scheduleCallback=function(I,F,J){var xe=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?xe+J:xe):J=xe,I){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=J+P,I={id:h++,callback:F,priorityLevel:I,startTime:J,expirationTime:P,sortIndex:-1},J>xe?(I.sortIndex=J,t(u,I),n(d)===null&&I===n(u)&&(b?(y(C),C=-1):b=!0,te(N,J-xe))):(I.sortIndex=P,t(d,I),j||g||(j=!0,D(S))),I},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(I){var F=v;return function(){var J=v;v=F;try{return I.apply(this,arguments)}finally{v=J}}}})(lx),ix.exports=lx;var _S=ix.exports;/** | |
| 27 | + */(function(e){function t(A,D){var W=A.length;A.push(D);e:for(;0<W;){var he=W-1>>>1,me=A[he];if(0<a(me,D))A[he]=D,A[W]=me,W=he;else break e}}function n(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var D=A[0],W=A.pop();if(W!==D){A[0]=W;e:for(var he=0,me=A.length,je=me>>>1;he<je;){var Ne=2*(he+1)-1,$e=A[Ne],Be=Ne+1,se=A[Be];if(0>a($e,W))Be<me&&0>a(se,$e)?(A[he]=se,A[Be]=W,he=Be):(A[he]=$e,A[Ne]=W,he=Ne);else if(Be<me&&0>a(se,W))A[he]=se,A[Be]=W,he=Be;else break e}}return D}function a(A,D){var W=A.sortIndex-D.sortIndex;return W!==0?W:A.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var d=[],u=[],h=1,m=null,y=3,v=!1,w=!1,g=!1,j=typeof setTimeout=="function"?setTimeout:null,b=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 x(A){for(var D=n(u);D!==null;){if(D.callback===null)s(u);else if(D.startTime<=A)s(u),D.sortIndex=D.expirationTime,t(d,D);else break;D=n(u)}}function N(A){if(g=!1,x(A),!w)if(n(d)!==null)w=!0,F(S);else{var D=n(u);D!==null&&te(N,D.startTime-A)}}function S(A,D){w=!1,g&&(g=!1,b(C),C=-1),v=!0;var W=y;try{for(x(D),m=n(d);m!==null&&(!(m.expirationTime>D)||A&&!O());){var he=m.callback;if(typeof he=="function"){m.callback=null,y=m.priorityLevel;var me=he(m.expirationTime<=D);D=e.unstable_now(),typeof me=="function"?m.callback=me:m===n(d)&&s(d),x(D)}else s(d);m=n(d)}if(m!==null)var je=!0;else{var Ne=n(u);Ne!==null&&te(N,Ne.startTime-D),je=!1}return je}finally{m=null,y=W,v=!1}}var k=!1,_=null,C=-1,R=5,T=-1;function O(){return!(e.unstable_now()-T<R)}function M(){if(_!==null){var A=e.unstable_now();T=A;var D=!0;try{D=_(!0,A)}finally{D?B():(k=!1,_=null)}}else k=!1}var B;if(typeof p=="function")B=function(){p(M)};else if(typeof MessageChannel!="undefined"){var I=new MessageChannel,ne=I.port2;I.port1.onmessage=M,B=function(){ne.postMessage(null)}}else B=function(){j(M,0)};function F(A){_=A,k||(k=!0,B())}function te(A,D){C=j(function(){A(e.unstable_now())},D)}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(A){A.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,F(S))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(A){switch(y){case 1:case 2:case 3:var D=3;break;default:D=y}var W=y;y=D;try{return A()}finally{y=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,D){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var W=y;y=A;try{return D()}finally{y=W}},e.unstable_scheduleCallback=function(A,D,W){var he=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?he+W:he):W=he,A){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=W+me,A={id:h++,callback:D,priorityLevel:A,startTime:W,expirationTime:me,sortIndex:-1},W>he?(A.sortIndex=W,t(u,A),n(d)===null&&A===n(u)&&(g?(b(C),C=-1):g=!0,te(N,W-he))):(A.sortIndex=me,t(d,A),w||v||(w=!0,F(S))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var D=y;return function(){var W=y;y=D;try{return A.apply(this,arguments)}finally{y=W}}}})(Vx),Bx.exports=Vx;var LC=Bx.exports;/** | |
| 27 | 28 | * @license React |
| 28 | 29 | * react-dom.production.min.js |
| 29 | 30 | * |
| 30 | 31 | * Copyright (c) Facebook, Inc. and its affiliates. |
| @@ -30,16 +31,16 @@ | ||
| 30 | 31 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 31 | 32 | * |
| 32 | 33 | * This source code is licensed under the MIT license found in the |
| 33 | 34 | * LICENSE file in the root directory of this source tree. |
| 34 | - */var ES=f,Wt=_S;function K(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 cx=new Set,Ba={};function Fs(e,t){Eo(e,t),Eo(e+"Capture",t)}function Eo(e,t){for(Ba[e]=t,e=0;e<t.length;e++)cx.add(t[e])}var fr=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),iu=Object.prototype.hasOwnProperty,PS=/^[: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]*$/,dx={},ux={};function TS(e){return iu.call(ux,e)?!0:iu.call(dx,e)?!1:PS.test(e)?ux[e]=!0:(dx[e]=!0,!1)}function RS(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 AS(e,t,n,s){if(t===null||typeof t=="undefined"||RS(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,a,i){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=a,this.removeEmptyString=i}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 lu=/[\-:]([a-z])/g;function cu(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(lu,cu);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(lu,cu);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(lu,cu);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 du(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")&&(AS(t,n,o,s)&&(n=null),s||o===null?TS(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 mr=ES.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Al=Symbol.for("react.element"),Po=Symbol.for("react.portal"),To=Symbol.for("react.fragment"),uu=Symbol.for("react.strict_mode"),fu=Symbol.for("react.profiler"),fx=Symbol.for("react.provider"),mx=Symbol.for("react.context"),mu=Symbol.for("react.forward_ref"),hu=Symbol.for("react.suspense"),pu=Symbol.for("react.suspense_list"),xu=Symbol.for("react.memo"),$r=Symbol.for("react.lazy"),hx=Symbol.for("react.offscreen"),px=Symbol.iterator;function Va(e){return e===null||typeof e!="object"?null:(e=px&&e[px]||e["@@iterator"],typeof e=="function"?e:null)}var Ze=Object.assign,gu;function Ha(e){if(gu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);gu=t&&t[1]||""}return` | |
| 35 | -`+gu+e}var vu=!1;function yu(e,t){if(!e||vu)return"";vu=!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 | -`),a=s.stack.split(` | |
| 37 | -`),i=o.length-1,c=a.length-1;1<=i&&0<=c&&o[i]!==a[c];)c--;for(;1<=i&&0<=c;i--,c--)if(o[i]!==a[c]){if(i!==1||c!==1)do if(i--,c--,0>c||o[i]!==a[c]){var d=` | |
| 38 | -`+o[i].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=i&&0<=c);break}}}finally{vu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ha(e):""}function OS(e){switch(e.tag){case 5:return Ha(e.type);case 16:return Ha("Lazy");case 13:return Ha("Suspense");case 19:return Ha("SuspenseList");case 0:case 2:case 15:return e=yu(e.type,!1),e;case 11:return e=yu(e.type.render,!1),e;case 1:return e=yu(e.type,!0),e;default:return""}}function bu(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 To:return"Fragment";case Po:return"Portal";case fu:return"Profiler";case uu:return"StrictMode";case hu:return"Suspense";case pu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mx:return(e.displayName||"Context")+".Consumer";case fx:return(e._context.displayName||"Context")+".Provider";case mu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xu:return t=e.displayName||null,t!==null?t:bu(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return bu(e(t))}catch(n){}}return null}function IS(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 bu(t);case 8:return t===uu?"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 zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function MS(e){var t=xx(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){s=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(i){s=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ol(e){e._valueTracker||(e._valueTracker=MS(e))}function gx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=xx(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Il(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 ju(e,t){var n=t.checked;return Ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function vx(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=zr(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 yx(e,t){t=t.checked,t!=null&&du(e,"checked",t,!1)}function wu(e,t){yx(e,t);var n=zr(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")?Nu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nu(e,t.type,zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bx(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 Nu(e,t,n){(t!=="number"||Il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wa=Array.isArray;function Ro(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=""+zr(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 Su(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return Ze({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(Wa(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zr(n)}}function wx(e,t){var n=zr(t.value),s=zr(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 Nx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Sx(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 Cu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Sx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ml,Cx=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(Ml=Ml||document.createElement("div"),Ml.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ml.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ka={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},DS=["Webkit","ms","Moz","O"];Object.keys(Ka).forEach(function(e){DS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ka[t]=Ka[e]})});function kx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ka.hasOwnProperty(e)&&Ka[e]?(""+t).trim():t+"px"}function _x(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,o=kx(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,o):e[n]=o}}var FS=Ze({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 ku(e,t){if(t){if(FS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function _u(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 Eu=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tu=null,Ao=null,Oo=null;function Ex(e){if(e=pi(e)){if(typeof Tu!="function")throw Error(K(280));var t=e.stateNode;t&&(t=sc(t),Tu(e.stateNode,e.type,t))}}function Px(e){Ao?Oo?Oo.push(e):Oo=[e]:Ao=e}function Tx(){if(Ao){var e=Ao,t=Oo;if(Oo=Ao=null,Ex(e),t)for(e=0;e<t.length;e++)Ex(t[e])}}function Rx(e,t){return e(t)}function Ax(){}var Ru=!1;function Ox(e,t,n){if(Ru)return e(t,n);Ru=!0;try{return Rx(e,t,n)}finally{Ru=!1,(Ao!==null||Oo!==null)&&(Ax(),Tx())}}function Qa(e,t){var n=e.stateNode;if(n===null)return null;var s=sc(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(K(231,t,typeof n));return n}var Au=!1;if(fr)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){Au=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch(e){Au=!1}function LS(e,t,n,s,o,a,i,c,d){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var Xa=!1,Dl=null,Fl=!1,Ou=null,$S={onError:function(e){Xa=!0,Dl=e}};function zS(e,t,n,s,o,a,i,c,d){Xa=!1,Dl=null,LS.apply($S,arguments)}function US(e,t,n,s,o,a,i,c,d){if(zS.apply(this,arguments),Xa){if(Xa){var u=Dl;Xa=!1,Dl=null}else throw Error(K(198));Fl||(Fl=!0,Ou=u)}}function Ls(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 Ix(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 Mx(e){if(Ls(e)!==e)throw Error(K(188))}function BS(e){var t=e.alternate;if(!t){if(t=Ls(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,s=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(s=o.return,s!==null){n=s;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Mx(o),e;if(a===s)return Mx(o),t;a=a.sibling}throw Error(K(188))}if(n.return!==s.return)n=o,s=a;else{for(var i=!1,c=o.child;c;){if(c===n){i=!0,n=o,s=a;break}if(c===s){i=!0,s=o,n=a;break}c=c.sibling}if(!i){for(c=a.child;c;){if(c===n){i=!0,n=a,s=o;break}if(c===s){i=!0,s=a,n=o;break}c=c.sibling}if(!i)throw Error(K(189))}}if(n.alternate!==s)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function Dx(e){return e=BS(e),e!==null?Fx(e):null}function Fx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fx(e);if(t!==null)return t;e=e.sibling}return null}var Lx=Wt.unstable_scheduleCallback,$x=Wt.unstable_cancelCallback,VS=Wt.unstable_shouldYield,HS=Wt.unstable_requestPaint,it=Wt.unstable_now,WS=Wt.unstable_getCurrentPriorityLevel,Iu=Wt.unstable_ImmediatePriority,zx=Wt.unstable_UserBlockingPriority,Ll=Wt.unstable_NormalPriority,qS=Wt.unstable_LowPriority,Ux=Wt.unstable_IdlePriority,$l=null,Un=null;function KS(e){if(Un&&typeof Un.onCommitFiberRoot=="function")try{Un.onCommitFiberRoot($l,e,void 0,(e.current.flags&128)===128)}catch(t){}}var wn=Math.clz32?Math.clz32:XS,QS=Math.log,GS=Math.LN2;function XS(e){return e>>>=0,e===0?32:31-(QS(e)/GS|0)|0}var zl=64,Ul=4194304;function Ya(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 Bl(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var c=i&~o;c!==0?s=Ya(c):(a&=i,a!==0&&(s=Ya(a)))}else i=n&~o,i!==0?s=Ya(i):a!==0&&(s=Ya(a));if(s===0)return 0;if(t!==0&&t!==s&&!(t&o)&&(o=s&-s,a=t&-t,o>=a||o===16&&(a&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-wn(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 ZS(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-wn(a),c=1<<i,d=o[i];d===-1?(!(c&n)||c&s)&&(o[i]=YS(c,t)):d<=t&&(e.expiredLanes|=c),a&=~c}}function Mu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Bx(){var e=zl;return zl<<=1,!(zl&4194240)&&(zl=64),e}function Du(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Za(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wn(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-wn(n),a=1<<o;t[o]=0,s[o]=-1,e[o]=-1,n&=~a}}function Fu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-wn(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}var ze=0;function Vx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Hx,Lu,Wx,qx,Kx,$u=!1,Vl=[],Ur=null,Br=null,Vr=null,Ja=new Map,ei=new Map,Hr=[],eC="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 Qx(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Br=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Ja.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(t.pointerId)}}function ti(e,t,n,s,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:a,targetContainers:[o]},t!==null&&(t=pi(t),t!==null&&Lu(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function tC(e,t,n,s,o){switch(t){case"focusin":return Ur=ti(Ur,e,t,n,s,o),!0;case"dragenter":return Br=ti(Br,e,t,n,s,o),!0;case"mouseover":return Vr=ti(Vr,e,t,n,s,o),!0;case"pointerover":var a=o.pointerId;return Ja.set(a,ti(Ja.get(a)||null,e,t,n,s,o)),!0;case"gotpointercapture":return a=o.pointerId,ei.set(a,ti(ei.get(a)||null,e,t,n,s,o)),!0}return!1}function Gx(e){var t=$s(e.target);if(t!==null){var n=Ls(t);if(n!==null){if(t=n.tag,t===13){if(t=Ix(n),t!==null){e.blockedOn=t,Kx(e.priority,function(){Wx(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 Hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Eu=s,n.target.dispatchEvent(s),Eu=null}else return t=pi(n),t!==null&&Lu(t),e.blockedOn=n,!1;t.shift()}return!0}function Xx(e,t,n){Hl(e)&&n.delete(t)}function nC(){$u=!1,Ur!==null&&Hl(Ur)&&(Ur=null),Br!==null&&Hl(Br)&&(Br=null),Vr!==null&&Hl(Vr)&&(Vr=null),Ja.forEach(Xx),ei.forEach(Xx)}function ni(e,t){e.blockedOn===t&&(e.blockedOn=null,$u||($u=!0,Wt.unstable_scheduleCallback(Wt.unstable_NormalPriority,nC)))}function ri(e){function t(o){return ni(o,e)}if(0<Vl.length){ni(Vl[0],e);for(var n=1;n<Vl.length;n++){var s=Vl[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Ur!==null&&ni(Ur,e),Br!==null&&ni(Br,e),Vr!==null&&ni(Vr,e),Ja.forEach(t),ei.forEach(t),n=0;n<Hr.length;n++)s=Hr[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Hr.length&&(n=Hr[0],n.blockedOn===null);)Gx(n),n.blockedOn===null&&Hr.shift()}var Io=mr.ReactCurrentBatchConfig,Wl=!0;function rC(e,t,n,s){var o=ze,a=Io.transition;Io.transition=null;try{ze=1,zu(e,t,n,s)}finally{ze=o,Io.transition=a}}function sC(e,t,n,s){var o=ze,a=Io.transition;Io.transition=null;try{ze=4,zu(e,t,n,s)}finally{ze=o,Io.transition=a}}function zu(e,t,n,s){if(Wl){var o=Uu(e,t,n,s);if(o===null)sf(e,t,s,ql,n),Qx(e,s);else if(tC(o,e,t,n,s))s.stopPropagation();else if(Qx(e,s),t&4&&-1<eC.indexOf(e)){for(;o!==null;){var a=pi(o);if(a!==null&&Hx(a),a=Uu(e,t,n,s),a===null&&sf(e,t,s,ql,n),a===o)break;o=a}o!==null&&s.stopPropagation()}else sf(e,t,s,null,n)}}var ql=null;function Uu(e,t,n,s){if(ql=null,e=Pu(s),e=$s(e),e!==null)if(t=Ls(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ix(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 ql=e,null}function Yx(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(WS()){case Iu:return 1;case zx:return 4;case Ll:case qS:return 16;case Ux:return 536870912;default:return 16}default:return 16}}var Wr=null,Bu=null,Kl=null;function Zx(){if(Kl)return Kl;var e,t=Bu,n=t.length,s,o="value"in Wr?Wr.value:Wr.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(s=1;s<=i&&t[n-s]===o[a-s];s++);return Kl=o.slice(e,1<s?1-s:void 0)}function Ql(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 Gl(){return!0}function Jx(){return!1}function qt(e){function t(n,s,o,a,i){this._reactName=n,this._targetInst=o,this.type=s,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(a):a[c]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Gl:Jx,this.isPropagationStopped=Jx,this}return Ze(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=Gl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),t}var Mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vu=qt(Mo),si=Ze({},Mo,{view:0,detail:0}),oC=qt(si),Hu,Wu,oi,Xl=Ze({},si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ku,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!==oi&&(oi&&e.type==="mousemove"?(Hu=e.screenX-oi.screenX,Wu=e.screenY-oi.screenY):Wu=Hu=0,oi=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:Wu}}),eg=qt(Xl),aC=Ze({},Xl,{dataTransfer:0}),iC=qt(aC),lC=Ze({},si,{relatedTarget:0}),qu=qt(lC),cC=Ze({},Mo,{animationName:0,elapsedTime:0,pseudoElement:0}),dC=qt(cC),uC=Ze({},Mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fC=qt(uC),mC=Ze({},Mo,{data:0}),tg=qt(mC),hC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pC={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"},xC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xC[e])?!!t[e]:!1}function Ku(){return gC}var vC=Ze({},si,{key:function(e){if(e.key){var t=hC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ql(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ku,charCode:function(e){return e.type==="keypress"?Ql(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ql(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yC=qt(vC),bC=Ze({},Xl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ng=qt(bC),jC=Ze({},si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ku}),wC=qt(jC),NC=Ze({},Mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),SC=qt(NC),CC=Ze({},Xl,{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}),kC=qt(CC),_C=[9,13,27,32],Qu=fr&&"CompositionEvent"in window,ai=null;fr&&"documentMode"in document&&(ai=document.documentMode);var EC=fr&&"TextEvent"in window&&!ai,rg=fr&&(!Qu||ai&&8<ai&&11>=ai),sg=" ",og=!1;function ag(e,t){switch(e){case"keyup":return _C.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Do=!1;function PC(e,t){switch(e){case"compositionend":return ig(t);case"keypress":return t.which!==32?null:(og=!0,sg);case"textInput":return e=t.data,e===sg&&og?null:e;default:return null}}function TC(e,t){if(Do)return e==="compositionend"||!Qu&&ag(e,t)?(e=Zx(),Kl=Bu=Wr=null,Do=!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 rg&&t.locale!=="ko"?null:t.data;default:return null}}var RC={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 lg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!RC[e.type]:t==="textarea"}function cg(e,t,n,s){Px(s),t=tc(t,"onChange"),0<t.length&&(n=new Vu("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ii=null,li=null;function AC(e){_g(e,0)}function Yl(e){var t=Uo(e);if(gx(t))return e}function OC(e,t){if(e==="change")return t}var dg=!1;if(fr){var Gu;if(fr){var Xu="oninput"in document;if(!Xu){var ug=document.createElement("div");ug.setAttribute("oninput","return;"),Xu=typeof ug.oninput=="function"}Gu=Xu}else Gu=!1;dg=Gu&&(!document.documentMode||9<document.documentMode)}function fg(){ii&&(ii.detachEvent("onpropertychange",mg),li=ii=null)}function mg(e){if(e.propertyName==="value"&&Yl(li)){var t=[];cg(t,li,e,Pu(e)),Ox(AC,t)}}function IC(e,t,n){e==="focusin"?(fg(),ii=t,li=n,ii.attachEvent("onpropertychange",mg)):e==="focusout"&&fg()}function MC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yl(li)}function DC(e,t){if(e==="click")return Yl(t)}function FC(e,t){if(e==="input"||e==="change")return Yl(t)}function LC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nn=typeof Object.is=="function"?Object.is:LC;function ci(e,t){if(Nn(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(!iu.call(t,o)||!Nn(e[o],t[o]))return!1}return!0}function hg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pg(e,t){var n=hg(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=hg(n)}}function xg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gg(){for(var e=window,t=Il();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=Il(e.document)}return t}function Yu(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 $C(e){var t=gg(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xg(n.ownerDocument.documentElement,n)){if(s!==null&&Yu(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,a=Math.min(s.start,o);s=s.end===void 0?a:Math.min(s.end,o),!e.extend&&a>s&&(o=s,s=a,a=o),o=pg(n,a);var i=pg(n,s);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>s?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zC=fr&&"documentMode"in document&&11>=document.documentMode,Fo=null,Zu=null,di=null,Ju=!1;function vg(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ju||Fo==null||Fo!==Il(s)||(s=Fo,"selectionStart"in s&&Yu(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}),di&&ci(di,s)||(di=s,s=tc(Zu,"onSelect"),0<s.length&&(t=new Vu("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Fo)))}function Zl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Lo={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionend:Zl("Transition","TransitionEnd")},ef={},yg={};fr&&(yg=document.createElement("div").style,"AnimationEvent"in window||(delete Lo.animationend.animation,delete Lo.animationiteration.animation,delete Lo.animationstart.animation),"TransitionEvent"in window||delete Lo.transitionend.transition);function Jl(e){if(ef[e])return ef[e];if(!Lo[e])return e;var t=Lo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yg)return ef[e]=t[n];return e}var bg=Jl("animationend"),jg=Jl("animationiteration"),wg=Jl("animationstart"),Ng=Jl("transitionend"),Sg=new Map,Cg="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 qr(e,t){Sg.set(e,t),Fs(t,[e])}for(var tf=0;tf<Cg.length;tf++){var nf=Cg[tf],UC=nf.toLowerCase(),BC=nf[0].toUpperCase()+nf.slice(1);qr(UC,"on"+BC)}qr(bg,"onAnimationEnd"),qr(jg,"onAnimationIteration"),qr(wg,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(Ng,"onTransitionEnd"),Eo("onMouseEnter",["mouseout","mouseover"]),Eo("onMouseLeave",["mouseout","mouseover"]),Eo("onPointerEnter",["pointerout","pointerover"]),Eo("onPointerLeave",["pointerout","pointerover"]),Fs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="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(" "),VC=new Set("cancel close invalid load scroll toggle".split(" ").concat(ui));function kg(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,US(s,t,void 0,e),e.currentTarget=null}function _g(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 a=void 0;if(t)for(var i=s.length-1;0<=i;i--){var c=s[i],d=c.instance,u=c.currentTarget;if(c=c.listener,d!==a&&o.isPropagationStopped())break e;kg(o,c,u),a=d}else for(i=0;i<s.length;i++){if(c=s[i],d=c.instance,u=c.currentTarget,c=c.listener,d!==a&&o.isPropagationStopped())break e;kg(o,c,u),a=d}}}if(Fl)throw e=Ou,Fl=!1,Ou=null,e}function We(e,t){var n=t[uf];n===void 0&&(n=t[uf]=new Set);var s=e+"__bubble";n.has(s)||(Eg(t,e,2,!1),n.add(s))}function rf(e,t,n){var s=0;t&&(s|=4),Eg(n,e,s,t)}var ec="_reactListening"+Math.random().toString(36).slice(2);function fi(e){if(!e[ec]){e[ec]=!0,cx.forEach(function(n){n!=="selectionchange"&&(VC.has(n)||rf(n,!1,e),rf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ec]||(t[ec]=!0,rf("selectionchange",!1,t))}}function Eg(e,t,n,s){switch(Yx(t)){case 1:var o=rC;break;case 4:o=sC;break;default:o=zu}n=o.bind(null,t,n,e),o=void 0,!Au||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 sf(e,t,n,s,o){var a=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var i=s.tag;if(i===3||i===4){var c=s.stateNode.containerInfo;if(c===o||c.nodeType===8&&c.parentNode===o)break;if(i===4)for(i=s.return;i!==null;){var d=i.tag;if((d===3||d===4)&&(d=i.stateNode.containerInfo,d===o||d.nodeType===8&&d.parentNode===o))return;i=i.return}for(;c!==null;){if(i=$s(c),i===null)return;if(d=i.tag,d===5||d===6){s=a=i;continue e}c=c.parentNode}}s=s.return}Ox(function(){var u=a,h=Pu(n),m=[];e:{var v=Sg.get(e);if(v!==void 0){var g=Vu,j=e;switch(e){case"keypress":if(Ql(n)===0)break e;case"keydown":case"keyup":g=yC;break;case"focusin":j="focus",g=qu;break;case"focusout":j="blur",g=qu;break;case"beforeblur":case"afterblur":g=qu;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":g=eg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=iC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=wC;break;case bg:case jg:case wg:g=dC;break;case Ng:g=SC;break;case"scroll":g=oC;break;case"wheel":g=kC;break;case"copy":case"cut":case"paste":g=fC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ng}var b=(t&4)!==0,w=!b&&e==="scroll",y=b?v!==null?v+"Capture":null:v;b=[];for(var p=u,x;p!==null;){x=p;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,y!==null&&(N=Qa(p,y),N!=null&&b.push(mi(p,N,x)))),w)break;p=p.return}0<b.length&&(v=new g(v,j,null,n,h),m.push({event:v,listeners:b}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",v&&n!==Eu&&(j=n.relatedTarget||n.fromElement)&&($s(j)||j[hr]))break e;if((g||v)&&(v=h.window===h?h:(v=h.ownerDocument)?v.defaultView||v.parentWindow:window,g?(j=n.relatedTarget||n.toElement,g=u,j=j?$s(j):null,j!==null&&(w=Ls(j),j!==w||j.tag!==5&&j.tag!==6)&&(j=null)):(g=null,j=u),g!==j)){if(b=eg,N="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(b=ng,N="onPointerLeave",y="onPointerEnter",p="pointer"),w=g==null?v:Uo(g),x=j==null?v:Uo(j),v=new b(N,p+"leave",g,n,h),v.target=w,v.relatedTarget=x,N=null,$s(h)===u&&(b=new b(y,p+"enter",j,n,h),b.target=x,b.relatedTarget=w,N=b),w=N,g&&j)t:{for(b=g,y=j,p=0,x=b;x;x=$o(x))p++;for(x=0,N=y;N;N=$o(N))x++;for(;0<p-x;)b=$o(b),p--;for(;0<x-p;)y=$o(y),x--;for(;p--;){if(b===y||y!==null&&b===y.alternate)break t;b=$o(b),y=$o(y)}b=null}else b=null;g!==null&&Pg(m,v,g,b,!1),j!==null&&w!==null&&Pg(m,w,j,b,!0)}}e:{if(v=u?Uo(u):window,g=v.nodeName&&v.nodeName.toLowerCase(),g==="select"||g==="input"&&v.type==="file")var S=OC;else if(lg(v))if(dg)S=FC;else{S=MC;var k=IC}else(g=v.nodeName)&&g.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(S=DC);if(S&&(S=S(e,u))){cg(m,S,n,h);break e}k&&k(e,v,u),e==="focusout"&&(k=v._wrapperState)&&k.controlled&&v.type==="number"&&Nu(v,"number",v.value)}switch(k=u?Uo(u):window,e){case"focusin":(lg(k)||k.contentEditable==="true")&&(Fo=k,Zu=u,di=null);break;case"focusout":di=Zu=Fo=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,vg(m,n,h);break;case"selectionchange":if(zC)break;case"keydown":case"keyup":vg(m,n,h)}var E;if(Qu)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Do?ag(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(rg&&n.locale!=="ko"&&(Do||C!=="onCompositionStart"?C==="onCompositionEnd"&&Do&&(E=Zx()):(Wr=h,Bu="value"in Wr?Wr.value:Wr.textContent,Do=!0)),k=tc(u,C),0<k.length&&(C=new tg(C,e,null,n,h),m.push({event:C,listeners:k}),E?C.data=E:(E=ig(n),E!==null&&(C.data=E)))),(E=EC?PC(e,n):TC(e,n))&&(u=tc(u,"onBeforeInput"),0<u.length&&(h=new tg("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:u}),h.data=E))}_g(m,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function tc(e,t){for(var n=t+"Capture",s=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=Qa(e,n),a!=null&&s.unshift(mi(e,a,o)),a=Qa(e,t),a!=null&&s.push(mi(e,a,o))),e=e.return}return s}function $o(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pg(e,t,n,s,o){for(var a=t._reactName,i=[];n!==null&&n!==s;){var c=n,d=c.alternate,u=c.stateNode;if(d!==null&&d===s)break;c.tag===5&&u!==null&&(c=u,o?(d=Qa(n,a),d!=null&&i.unshift(mi(n,d,c))):o||(d=Qa(n,a),d!=null&&i.push(mi(n,d,c)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var HC=/\r\n?/g,WC=/\u0000|\uFFFD/g;function Tg(e){return(typeof e=="string"?e:""+e).replace(HC,` | |
| 39 | -`).replace(WC,"")}function nc(e,t,n){if(t=Tg(t),Tg(e)!==t&&n)throw Error(K(425))}function rc(){}var of=null,af=null;function lf(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 cf=typeof setTimeout=="function"?setTimeout:void 0,qC=typeof clearTimeout=="function"?clearTimeout:void 0,Rg=typeof Promise=="function"?Promise:void 0,KC=typeof queueMicrotask=="function"?queueMicrotask:typeof Rg!="undefined"?function(e){return Rg.resolve(null).then(e).catch(QC)}:cf;function QC(e){setTimeout(function(){throw e})}function df(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),ri(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=o}while(n);ri(t)}function Kr(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 Ag(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 zo=Math.random().toString(36).slice(2),Bn="__reactFiber$"+zo,hi="__reactProps$"+zo,hr="__reactContainer$"+zo,uf="__reactEvents$"+zo,GC="__reactListeners$"+zo,XC="__reactHandles$"+zo;function $s(e){var t=e[Bn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hr]||n[Bn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ag(e);e!==null;){if(n=e[Bn])return n;e=Ag(e)}return t}e=n,n=e.parentNode}return null}function pi(e){return e=e[Bn]||e[hr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Uo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function sc(e){return e[hi]||null}var ff=[],Bo=-1;function Qr(e){return{current:e}}function qe(e){0>Bo||(e.current=ff[Bo],ff[Bo]=null,Bo--)}function Ve(e,t){Bo++,ff[Bo]=e.current,e.current=t}var Gr={},jt=Qr(Gr),It=Qr(!1),zs=Gr;function Vo(e,t){var n=e.type.contextTypes;if(!n)return Gr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mt(e){return e=e.childContextTypes,e!=null}function oc(){qe(It),qe(jt)}function Og(e,t,n){if(jt.current!==Gr)throw Error(K(168));Ve(jt,t),Ve(It,n)}function Ig(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(K(108,IS(e)||"Unknown",o));return Ze({},n,s)}function ac(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gr,zs=jt.current,Ve(jt,e),Ve(It,It.current),!0}function Mg(e,t,n){var s=e.stateNode;if(!s)throw Error(K(169));n?(e=Ig(e,t,zs),s.__reactInternalMemoizedMergedChildContext=e,qe(It),qe(jt),Ve(jt,e)):qe(It),Ve(It,n)}var pr=null,ic=!1,mf=!1;function Dg(e){pr===null?pr=[e]:pr.push(e)}function YC(e){ic=!0,Dg(e)}function Xr(){if(!mf&&pr!==null){mf=!0;var e=0,t=ze;try{var n=pr;for(ze=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}pr=null,ic=!1}catch(o){throw pr!==null&&(pr=pr.slice(e+1)),Lx(Iu,Xr),o}finally{ze=t,mf=!1}}return null}var Ho=[],Wo=0,lc=null,cc=0,an=[],ln=0,Us=null,xr=1,gr="";function Bs(e,t){Ho[Wo++]=cc,Ho[Wo++]=lc,lc=e,cc=t}function Fg(e,t,n){an[ln++]=xr,an[ln++]=gr,an[ln++]=Us,Us=e;var s=xr;e=gr;var o=32-wn(s)-1;s&=~(1<<o),n+=1;var a=32-wn(t)+o;if(30<a){var i=o-o%5;a=(s&(1<<i)-1).toString(32),s>>=i,o-=i,xr=1<<32-wn(t)+o|n<<o|s,gr=a+e}else xr=1<<a|n<<o|s,gr=e}function hf(e){e.return!==null&&(Bs(e,1),Fg(e,1,0))}function pf(e){for(;e===lc;)lc=Ho[--Wo],Ho[Wo]=null,cc=Ho[--Wo],Ho[Wo]=null;for(;e===Us;)Us=an[--ln],an[ln]=null,gr=an[--ln],an[ln]=null,xr=an[--ln],an[ln]=null}var Kt=null,Qt=null,Ge=!1,Sn=null;function Lg(e,t){var n=fn(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 $g(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,Kt=e,Qt=Kr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Kt=e,Qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Us!==null?{id:xr,overflow:gr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=fn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Kt=e,Qt=null,!0):!1;default:return!1}}function xf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gf(e){if(Ge){var t=Qt;if(t){var n=t;if(!$g(e,t)){if(xf(e))throw Error(K(418));t=Kr(n.nextSibling);var s=Kt;t&&$g(e,t)?Lg(s,n):(e.flags=e.flags&-4097|2,Ge=!1,Kt=e)}}else{if(xf(e))throw Error(K(418));e.flags=e.flags&-4097|2,Ge=!1,Kt=e}}}function zg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kt=e}function dc(e){if(e!==Kt)return!1;if(!Ge)return zg(e),Ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lf(e.type,e.memoizedProps)),t&&(t=Qt)){if(xf(e))throw Ug(),Error(K(418));for(;t;)Lg(e,t),t=Kr(t.nextSibling)}if(zg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qt=Kr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qt=null}}else Qt=Kt?Kr(e.stateNode.nextSibling):null;return!0}function Ug(){for(var e=Qt;e;)e=Kr(e.nextSibling)}function qo(){Qt=Kt=null,Ge=!1}function vf(e){Sn===null?Sn=[e]:Sn.push(e)}var ZC=mr.ReactCurrentBatchConfig;function xi(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(K(309));var s=n.stateNode}if(!s)throw Error(K(147,e));var o=s,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var c=o.refs;i===null?delete c[a]:c[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(K(284));if(!n._owner)throw Error(K(290,e))}return e}function uc(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bg(e){var t=e._init;return t(e._payload)}function Vg(e){function t(y,p){if(e){var x=y.deletions;x===null?(y.deletions=[p],y.flags|=16):x.push(p)}}function n(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function s(y,p){for(y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function o(y,p){return y=ss(y,p),y.index=0,y.sibling=null,y}function a(y,p,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<p?(y.flags|=2,p):x):(y.flags|=2,p)):(y.flags|=1048576,p)}function i(y){return e&&y.alternate===null&&(y.flags|=2),y}function c(y,p,x,N){return p===null||p.tag!==6?(p=cm(x,y.mode,N),p.return=y,p):(p=o(p,x),p.return=y,p)}function d(y,p,x,N){var S=x.type;return S===To?h(y,p,x.props.children,N,x.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$r&&Bg(S)===p.type)?(N=o(p,x.props),N.ref=xi(y,p,x),N.return=y,N):(N=Mc(x.type,x.key,x.props,null,y.mode,N),N.ref=xi(y,p,x),N.return=y,N)}function u(y,p,x,N){return p===null||p.tag!==4||p.stateNode.containerInfo!==x.containerInfo||p.stateNode.implementation!==x.implementation?(p=dm(x,y.mode,N),p.return=y,p):(p=o(p,x.children||[]),p.return=y,p)}function h(y,p,x,N,S){return p===null||p.tag!==7?(p=Xs(x,y.mode,N,S),p.return=y,p):(p=o(p,x),p.return=y,p)}function m(y,p,x){if(typeof p=="string"&&p!==""||typeof p=="number")return p=cm(""+p,y.mode,x),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Al:return x=Mc(p.type,p.key,p.props,null,y.mode,x),x.ref=xi(y,null,p),x.return=y,x;case Po:return p=dm(p,y.mode,x),p.return=y,p;case $r:var N=p._init;return m(y,N(p._payload),x)}if(Wa(p)||Va(p))return p=Xs(p,y.mode,x,null),p.return=y,p;uc(y,p)}return null}function v(y,p,x,N){var S=p!==null?p.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:c(y,p,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Al:return x.key===S?d(y,p,x,N):null;case Po:return x.key===S?u(y,p,x,N):null;case $r:return S=x._init,v(y,p,S(x._payload),N)}if(Wa(x)||Va(x))return S!==null?null:h(y,p,x,N,null);uc(y,x)}return null}function g(y,p,x,N,S){if(typeof N=="string"&&N!==""||typeof N=="number")return y=y.get(x)||null,c(p,y,""+N,S);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Al:return y=y.get(N.key===null?x:N.key)||null,d(p,y,N,S);case Po:return y=y.get(N.key===null?x:N.key)||null,u(p,y,N,S);case $r:var k=N._init;return g(y,p,x,k(N._payload),S)}if(Wa(N)||Va(N))return y=y.get(x)||null,h(p,y,N,S,null);uc(p,N)}return null}function j(y,p,x,N){for(var S=null,k=null,E=p,C=p=0,R=null;E!==null&&C<x.length;C++){E.index>C?(R=E,E=null):R=E.sibling;var T=v(y,E,x[C],N);if(T===null){E===null&&(E=R);break}e&&E&&T.alternate===null&&t(y,E),p=a(T,p,C),k===null?S=T:k.sibling=T,k=T,E=R}if(C===x.length)return n(y,E),Ge&&Bs(y,C),S;if(E===null){for(;C<x.length;C++)E=m(y,x[C],N),E!==null&&(p=a(E,p,C),k===null?S=E:k.sibling=E,k=E);return Ge&&Bs(y,C),S}for(E=s(y,E);C<x.length;C++)R=g(E,y,C,x[C],N),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?C:R.key),p=a(R,p,C),k===null?S=R:k.sibling=R,k=R);return e&&E.forEach(function(A){return t(y,A)}),Ge&&Bs(y,C),S}function b(y,p,x,N){var S=Va(x);if(typeof S!="function")throw Error(K(150));if(x=S.call(x),x==null)throw Error(K(151));for(var k=S=null,E=p,C=p=0,R=null,T=x.next();E!==null&&!T.done;C++,T=x.next()){E.index>C?(R=E,E=null):R=E.sibling;var A=v(y,E,T.value,N);if(A===null){E===null&&(E=R);break}e&&E&&A.alternate===null&&t(y,E),p=a(A,p,C),k===null?S=A:k.sibling=A,k=A,E=R}if(T.done)return n(y,E),Ge&&Bs(y,C),S;if(E===null){for(;!T.done;C++,T=x.next())T=m(y,T.value,N),T!==null&&(p=a(T,p,C),k===null?S=T:k.sibling=T,k=T);return Ge&&Bs(y,C),S}for(E=s(y,E);!T.done;C++,T=x.next())T=g(E,y,C,T.value,N),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?C:T.key),p=a(T,p,C),k===null?S=T:k.sibling=T,k=T);return e&&E.forEach(function(M){return t(y,M)}),Ge&&Bs(y,C),S}function w(y,p,x,N){if(typeof x=="object"&&x!==null&&x.type===To&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Al:e:{for(var S=x.key,k=p;k!==null;){if(k.key===S){if(S=x.type,S===To){if(k.tag===7){n(y,k.sibling),p=o(k,x.props.children),p.return=y,y=p;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$r&&Bg(S)===k.type){n(y,k.sibling),p=o(k,x.props),p.ref=xi(y,k,x),p.return=y,y=p;break e}n(y,k);break}else t(y,k);k=k.sibling}x.type===To?(p=Xs(x.props.children,y.mode,N,x.key),p.return=y,y=p):(N=Mc(x.type,x.key,x.props,null,y.mode,N),N.ref=xi(y,p,x),N.return=y,y=N)}return i(y);case Po:e:{for(k=x.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){n(y,p.sibling),p=o(p,x.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=dm(x,y.mode,N),p.return=y,y=p}return i(y);case $r:return k=x._init,w(y,p,k(x._payload),N)}if(Wa(x))return j(y,p,x,N);if(Va(x))return b(y,p,x,N);uc(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,p!==null&&p.tag===6?(n(y,p.sibling),p=o(p,x),p.return=y,y=p):(n(y,p),p=cm(x,y.mode,N),p.return=y,y=p),i(y)):n(y,p)}return w}var Ko=Vg(!0),Hg=Vg(!1),fc=Qr(null),mc=null,Qo=null,yf=null;function bf(){yf=Qo=mc=null}function jf(e){var t=fc.current;qe(fc),e._currentValue=t}function wf(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 Go(e,t){mc=e,yf=Qo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Dt=!0),e.firstContext=null)}function cn(e){var t=e._currentValue;if(yf!==e)if(e={context:e,memoizedValue:t,next:null},Qo===null){if(mc===null)throw Error(K(308));Qo=e,mc.dependencies={lanes:0,firstContext:e}}else Qo=Qo.next=e;return t}var Vs=null;function Nf(e){Vs===null?Vs=[e]:Vs.push(e)}function Wg(e,t,n,s){var o=t.interleaved;return o===null?(n.next=n,Nf(t)):(n.next=o.next,o.next=n),t.interleaved=n,vr(e,s)}function vr(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 Yr=!1;function Sf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qg(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 yr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zr(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Fe&2){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,vr(e,n)}return o=s.interleaved,o===null?(t.next=t,Nf(s)):(t.next=o.next,o.next=t),s.interleaved=t,vr(e,n)}function hc(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,Fu(e,n)}}function Kg(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:a,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 pc(e,t,n,s){var o=e.updateQueue;Yr=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,c=o.shared.pending;if(c!==null){o.shared.pending=null;var d=c,u=d.next;d.next=null,i===null?a=u:i.next=u,i=d;var h=e.alternate;h!==null&&(h=h.updateQueue,c=h.lastBaseUpdate,c!==i&&(c===null?h.firstBaseUpdate=u:c.next=u,h.lastBaseUpdate=d))}if(a!==null){var m=o.baseState;i=0,h=u=d=null,c=a;do{var v=c.lane,g=c.eventTime;if((s&v)===v){h!==null&&(h=h.next={eventTime:g,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var j=e,b=c;switch(v=t,g=n,b.tag){case 1:if(j=b.payload,typeof j=="function"){m=j.call(g,m,v);break e}m=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=b.payload,v=typeof j=="function"?j.call(g,m,v):j,v==null)break e;m=Ze({},m,v);break e;case 2:Yr=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[c]:v.push(c))}else g={eventTime:g,lane:v,tag:c.tag,payload:c.payload,callback:c.callback,next:null},h===null?(u=h=g,d=m):h=h.next=g,i|=v;if(c=c.next,c===null){if(c=o.shared.pending,c===null)break;v=c,c=v.next,v.next=null,o.lastBaseUpdate=v,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 i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);qs|=i,e.lanes=i,e.memoizedState=m}}function Qg(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(K(191,o));o.call(s)}}}var gi={},Vn=Qr(gi),vi=Qr(gi),yi=Qr(gi);function Hs(e){if(e===gi)throw Error(K(174));return e}function Cf(e,t){switch(Ve(yi,t),Ve(vi,e),Ve(Vn,gi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cu(t,e)}qe(Vn),Ve(Vn,t)}function Xo(){qe(Vn),qe(vi),qe(yi)}function Gg(e){Hs(yi.current);var t=Hs(Vn.current),n=Cu(t,e.type);t!==n&&(Ve(vi,e),Ve(Vn,n))}function kf(e){vi.current===e&&(qe(Vn),qe(vi))}var Je=Qr(0);function xc(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 _f=[];function Ef(){for(var e=0;e<_f.length;e++)_f[e]._workInProgressVersionPrimary=null;_f.length=0}var gc=mr.ReactCurrentDispatcher,Pf=mr.ReactCurrentBatchConfig,Ws=0,et=null,ct=null,ft=null,vc=!1,bi=!1,ji=0,JC=0;function wt(){throw Error(K(321))}function Tf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nn(e[n],t[n]))return!1;return!0}function Rf(e,t,n,s,o,a){if(Ws=a,et=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,gc.current=e===null||e.memoizedState===null?rk:sk,e=n(s,o),bi){a=0;do{if(bi=!1,ji=0,25<=a)throw Error(K(301));a+=1,ft=ct=null,t.updateQueue=null,gc.current=ok,e=n(s,o)}while(bi)}if(gc.current=jc,t=ct!==null&&ct.next!==null,Ws=0,ft=ct=et=null,vc=!1,t)throw Error(K(300));return e}function Af(){var e=ji!==0;return ji=0,e}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?et.memoizedState=ft=e:ft=ft.next=e,ft}function dn(){if(ct===null){var e=et.alternate;e=e!==null?e.memoizedState:null}else e=ct.next;var t=ft===null?et.memoizedState:ft.next;if(t!==null)ft=t,ct=e;else{if(e===null)throw Error(K(310));ct=e,e={memoizedState:ct.memoizedState,baseState:ct.baseState,baseQueue:ct.baseQueue,queue:ct.queue,next:null},ft===null?et.memoizedState=ft=e:ft=ft.next=e}return ft}function wi(e,t){return typeof t=="function"?t(e):t}function Of(e){var t=dn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var s=ct,o=s.baseQueue,a=n.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}s.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,s=s.baseState;var c=i=null,d=null,u=a;do{var h=u.lane;if((Ws&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?(c=d=m,i=s):d=d.next=m,et.lanes|=h,qs|=h}u=u.next}while(u!==null&&u!==a);d===null?i=s:d.next=c,Nn(s,t.memoizedState)||(Dt=!0),t.memoizedState=s,t.baseState=i,t.baseQueue=d,n.lastRenderedState=s}if(e=n.interleaved,e!==null){o=e;do a=o.lane,et.lanes|=a,qs|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function If(e){var t=dn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var s=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);Nn(a,t.memoizedState)||(Dt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,s]}function Xg(){}function Yg(e,t){var n=et,s=dn(),o=t(),a=!Nn(s.memoizedState,o);if(a&&(s.memoizedState=o,Dt=!0),s=s.queue,Mf(ev.bind(null,n,s,e),[e]),s.getSnapshot!==t||a||ft!==null&&ft.memoizedState.tag&1){if(n.flags|=2048,Ni(9,Jg.bind(null,n,s,o,t),void 0,null),mt===null)throw Error(K(349));Ws&30||Zg(n,t,o)}return o}function Zg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=et.updateQueue,t===null?(t={lastEffect:null,stores:null},et.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jg(e,t,n,s){t.value=n,t.getSnapshot=s,tv(t)&&nv(e)}function ev(e,t,n){return n(function(){tv(t)&&nv(e)})}function tv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nn(e,n)}catch(s){return!0}}function nv(e){var t=vr(e,1);t!==null&&En(t,e,1,-1)}function rv(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:wi,lastRenderedState:e},t.queue=e,e=e.dispatch=nk.bind(null,et,e),[t.memoizedState,e]}function Ni(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=et.updateQueue,t===null?(t={lastEffect:null,stores:null},et.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 sv(){return dn().memoizedState}function yc(e,t,n,s){var o=Hn();et.flags|=e,o.memoizedState=Ni(1|t,n,void 0,s===void 0?null:s)}function bc(e,t,n,s){var o=dn();s=s===void 0?null:s;var a=void 0;if(ct!==null){var i=ct.memoizedState;if(a=i.destroy,s!==null&&Tf(s,i.deps)){o.memoizedState=Ni(t,n,a,s);return}}et.flags|=e,o.memoizedState=Ni(1|t,n,a,s)}function ov(e,t){return yc(8390656,8,e,t)}function Mf(e,t){return bc(2048,8,e,t)}function av(e,t){return bc(4,2,e,t)}function iv(e,t){return bc(4,4,e,t)}function lv(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 cv(e,t,n){return n=n!=null?n.concat([e]):null,bc(4,4,lv.bind(null,t,e),n)}function Df(){}function dv(e,t){var n=dn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Tf(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function uv(e,t){var n=dn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Tf(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function fv(e,t,n){return Ws&21?(Nn(n,t)||(n=Bx(),et.lanes|=n,qs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Dt=!0),e.memoizedState=n)}function ek(e,t){var n=ze;ze=n!==0&&4>n?n:4,e(!0);var s=Pf.transition;Pf.transition={};try{e(!1),t()}finally{ze=n,Pf.transition=s}}function mv(){return dn().memoizedState}function tk(e,t,n){var s=ns(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},hv(e))pv(t,n);else if(n=Wg(e,t,n,s),n!==null){var o=Rt();En(n,e,s,o),xv(n,t,s)}}function nk(e,t,n){var s=ns(e),o={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(hv(e))pv(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,c=a(i,n);if(o.hasEagerState=!0,o.eagerState=c,Nn(c,i)){var d=t.interleaved;d===null?(o.next=o,Nf(t)):(o.next=d.next,d.next=o),t.interleaved=o;return}}catch(u){}finally{}n=Wg(e,t,o,s),n!==null&&(o=Rt(),En(n,e,s,o),xv(n,t,s))}}function hv(e){var t=e.alternate;return e===et||t!==null&&t===et}function pv(e,t){bi=vc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xv(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Fu(e,n)}}var jc={readContext:cn,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},rk={readContext:cn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:ov,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yc(4194308,4,lv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yc(4194308,4,e,t)},useInsertionEffect:function(e,t){return yc(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=tk.bind(null,et,e),[s.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:rv,useDebugValue:Df,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=rv(!1),t=e[0];return e=ek.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=et,o=Hn();if(Ge){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),mt===null)throw Error(K(349));Ws&30||Zg(s,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ov(ev.bind(null,s,a,e),[e]),s.flags|=2048,Ni(9,Jg.bind(null,s,a,n,t),void 0,null),n},useId:function(){var e=Hn(),t=mt.identifierPrefix;if(Ge){var n=gr,s=xr;n=(s&~(1<<32-wn(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=ji++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=JC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sk={readContext:cn,useCallback:dv,useContext:cn,useEffect:Mf,useImperativeHandle:cv,useInsertionEffect:av,useLayoutEffect:iv,useMemo:uv,useReducer:Of,useRef:sv,useState:function(){return Of(wi)},useDebugValue:Df,useDeferredValue:function(e){var t=dn();return fv(t,ct.memoizedState,e)},useTransition:function(){var e=Of(wi)[0],t=dn().memoizedState;return[e,t]},useMutableSource:Xg,useSyncExternalStore:Yg,useId:mv,unstable_isNewReconciler:!1},ok={readContext:cn,useCallback:dv,useContext:cn,useEffect:Mf,useImperativeHandle:cv,useInsertionEffect:av,useLayoutEffect:iv,useMemo:uv,useReducer:If,useRef:sv,useState:function(){return If(wi)},useDebugValue:Df,useDeferredValue:function(e){var t=dn();return ct===null?t.memoizedState=e:fv(t,ct.memoizedState,e)},useTransition:function(){var e=If(wi)[0],t=dn().memoizedState;return[e,t]},useMutableSource:Xg,useSyncExternalStore:Yg,useId:mv,unstable_isNewReconciler:!1};function Cn(e,t){if(e&&e.defaultProps){t=Ze({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ff(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Ze({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wc={isMounted:function(e){return(e=e._reactInternals)?Ls(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Rt(),o=ns(e),a=yr(s,o);a.payload=t,n!=null&&(a.callback=n),t=Zr(e,a,o),t!==null&&(En(t,e,o,s),hc(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Rt(),o=ns(e),a=yr(s,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Zr(e,a,o),t!==null&&(En(t,e,o,s),hc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),s=ns(e),o=yr(n,s);o.tag=2,t!=null&&(o.callback=t),t=Zr(e,o,s),t!==null&&(En(t,e,s,n),hc(t,e,s))}};function gv(e,t,n,s,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,a,i):t.prototype&&t.prototype.isPureReactComponent?!ci(n,s)||!ci(o,a):!0}function vv(e,t,n){var s=!1,o=Gr,a=t.contextType;return typeof a=="object"&&a!==null?a=cn(a):(o=Mt(t)?zs:jt.current,s=t.contextTypes,a=(s=s!=null)?Vo(e,o):Gr),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wc,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function yv(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&&wc.enqueueReplaceState(t,t.state,null)}function Lf(e,t,n,s){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Sf(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=cn(a):(a=Mt(t)?zs:jt.current,o.context=Vo(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Ff(e,t,a,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&&wc.enqueueReplaceState(o,o.state,null),pc(e,n,o,s),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Yo(e,t){try{var n="",s=t;do n+=OS(s),s=s.return;while(s);var o=n}catch(a){o=` | |
| 40 | -Error generating stack: `+a.message+` | |
| 41 | -`+a.stack}return{value:e,source:t,stack:o,digest:null}}function $f(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function zf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ak=typeof WeakMap=="function"?WeakMap:Map;function bv(e,t,n){n=yr(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Pc||(Pc=!0,tm=s),zf(e,t)},n}function jv(e,t,n){n=yr(-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(){zf(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){zf(e,t),typeof s!="function"&&(es===null?es=new Set([this]):es.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function wv(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new ak;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=bk.bind(null,e,t,n),t.then(e,e))}function Nv(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 Sv(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=yr(-1,1),t.tag=2,Zr(n,t,1))),n.lanes|=1),e)}var ik=mr.ReactCurrentOwner,Dt=!1;function Tt(e,t,n,s){t.child=e===null?Hg(t,null,n,s):Ko(t,e.child,n,s)}function Cv(e,t,n,s,o){n=n.render;var a=t.ref;return Go(t,o),s=Rf(e,t,n,s,a,o),n=Af(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,br(e,t,o)):(Ge&&n&&hf(t),t.flags|=1,Tt(e,t,s,o),t.child)}function kv(e,t,n,s,o){if(e===null){var a=n.type;return typeof a=="function"&&!lm(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,_v(e,t,a,s,o)):(e=Mc(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:ci,n(i,s)&&e.ref===t.ref)return br(e,t,o)}return t.flags|=1,e=ss(a,s),e.ref=t.ref,e.return=t,t.child=e}function _v(e,t,n,s,o){if(e!==null){var a=e.memoizedProps;if(ci(a,s)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=s=a,(e.lanes&o)!==0)e.flags&131072&&(Dt=!0);else return t.lanes=e.lanes,br(e,t,o)}return Uf(e,t,n,s,o)}function Ev(e,t,n){var s=t.pendingProps,o=s.children,a=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(Jo,Gt),Gt|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ve(Jo,Gt),Gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=a!==null?a.baseLanes:n,Ve(Jo,Gt),Gt|=s}else a!==null?(s=a.baseLanes|n,t.memoizedState=null):s=n,Ve(Jo,Gt),Gt|=s;return Tt(e,t,o,n),t.child}function Pv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Uf(e,t,n,s,o){var a=Mt(n)?zs:jt.current;return a=Vo(t,a),Go(t,o),n=Rf(e,t,n,s,a,o),s=Af(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,br(e,t,o)):(Ge&&s&&hf(t),t.flags|=1,Tt(e,t,n,o),t.child)}function Tv(e,t,n,s,o){if(Mt(n)){var a=!0;ac(t)}else a=!1;if(Go(t,o),t.stateNode===null)Sc(e,t),vv(t,n,s),Lf(t,n,s,o),s=!0;else if(e===null){var i=t.stateNode,c=t.memoizedProps;i.props=c;var d=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=cn(u):(u=Mt(n)?zs:jt.current,u=Vo(t,u));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==s||d!==u)&&yv(t,i,s,u),Yr=!1;var v=t.memoizedState;i.state=v,pc(t,s,i,o),d=t.memoizedState,c!==s||v!==d||It.current||Yr?(typeof h=="function"&&(Ff(t,n,h,s),d=t.memoizedState),(c=Yr||gv(t,n,c,s,v,d,u))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),i.props=s,i.state=d,i.context=u,s=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{i=t.stateNode,qg(e,t),c=t.memoizedProps,u=t.type===t.elementType?c:Cn(t.type,c),i.props=u,m=t.pendingProps,v=i.context,d=n.contextType,typeof d=="object"&&d!==null?d=cn(d):(d=Mt(n)?zs:jt.current,d=Vo(t,d));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==m||v!==d)&&yv(t,i,s,d),Yr=!1,v=t.memoizedState,i.state=v,pc(t,s,i,o);var j=t.memoizedState;c!==m||v!==j||It.current||Yr?(typeof g=="function"&&(Ff(t,n,g,s),j=t.memoizedState),(u=Yr||gv(t,n,u,s,v,j,d)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(s,j,d),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(s,j,d)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=j),i.props=s,i.state=j,i.context=d,s=u):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),s=!1)}return Bf(e,t,n,s,a,o)}function Bf(e,t,n,s,o,a){Pv(e,t);var i=(t.flags&128)!==0;if(!s&&!i)return o&&Mg(t,n,!1),br(e,t,a);s=t.stateNode,ik.current=t;var c=i&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&i?(t.child=Ko(t,e.child,null,a),t.child=Ko(t,null,c,a)):Tt(e,t,c,a),t.memoizedState=s.state,o&&Mg(t,n,!0),t.child}function Rv(e){var t=e.stateNode;t.pendingContext?Og(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Og(e,t.context,!1),Cf(e,t.containerInfo)}function Av(e,t,n,s,o){return qo(),vf(o),t.flags|=256,Tt(e,t,n,s),t.child}var Vf={dehydrated:null,treeContext:null,retryLane:0};function Hf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ov(e,t,n){var s=t.pendingProps,o=Je.current,a=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(o&2)!==0),c?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ve(Je,o&1),e===null)return gf(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):(i=s.children,e=s.fallback,a?(s=t.mode,a=t.child,i={mode:"hidden",children:i},!(s&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=Dc(i,s,0,null),e=Xs(e,s,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Hf(n),t.memoizedState=Vf,e):Wf(t,i));if(o=e.memoizedState,o!==null&&(c=o.dehydrated,c!==null))return lk(e,t,i,s,c,o,n);if(a){a=s.fallback,i=t.mode,o=e.child,c=o.sibling;var d={mode:"hidden",children:s.children};return!(i&1)&&t.child!==o?(s=t.child,s.childLanes=0,s.pendingProps=d,t.deletions=null):(s=ss(o,d),s.subtreeFlags=o.subtreeFlags&14680064),c!==null?a=ss(c,a):(a=Xs(a,i,n,null),a.flags|=2),a.return=t,s.return=t,s.sibling=a,t.child=s,s=a,a=t.child,i=e.child.memoizedState,i=i===null?Hf(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=Vf,s}return a=e.child,e=a.sibling,s=ss(a,{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 Wf(e,t){return t=Dc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Nc(e,t,n,s){return s!==null&&vf(s),Ko(t,e.child,null,n),e=Wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lk(e,t,n,s,o,a,i){if(n)return t.flags&256?(t.flags&=-257,s=$f(Error(K(422))),Nc(e,t,i,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=s.fallback,o=t.mode,s=Dc({mode:"visible",children:s.children},o,0,null),a=Xs(a,o,i,null),a.flags|=2,s.return=t,a.return=t,s.sibling=a,t.child=s,t.mode&1&&Ko(t,e.child,null,i),t.child.memoizedState=Hf(i),t.memoizedState=Vf,a);if(!(t.mode&1))return Nc(e,t,i,null);if(o.data==="$!"){if(s=o.nextSibling&&o.nextSibling.dataset,s)var c=s.dgst;return s=c,a=Error(K(419)),s=$f(a,s,void 0),Nc(e,t,i,s)}if(c=(i&e.childLanes)!==0,Dt||c){if(s=mt,s!==null){switch(i&-i){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|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,vr(e,o),En(s,e,o,-1))}return im(),s=$f(Error(K(421))),Nc(e,t,i,s)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=jk.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Qt=Kr(o.nextSibling),Kt=t,Ge=!0,Sn=null,e!==null&&(an[ln++]=xr,an[ln++]=gr,an[ln++]=Us,xr=e.id,gr=e.overflow,Us=t),t=Wf(t,s.children),t.flags|=4096,t)}function Iv(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),wf(e.return,t,n)}function qf(e,t,n,s,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=s,a.tail=n,a.tailMode=o)}function Mv(e,t,n){var s=t.pendingProps,o=s.revealOrder,a=s.tail;if(Tt(e,t,s.children,n),s=Je.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&&Iv(e,n,t);else if(e.tag===19)Iv(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(Ve(Je,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&&xc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qf(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&xc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qf(t,!0,n,null,a);break;case"together":qf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function br(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=ss(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ss(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ck(e,t,n){switch(t.tag){case 3:Rv(t),qo();break;case 5:Gg(t);break;case 1:Mt(t.type)&&ac(t);break;case 4:Cf(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,o=t.memoizedProps.value;Ve(fc,s._currentValue),s._currentValue=o;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Ve(Je,Je.current&1),t.flags|=128,null):n&t.child.childLanes?Ov(e,t,n):(Ve(Je,Je.current&1),e=br(e,t,n),e!==null?e.sibling:null);Ve(Je,Je.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return Mv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ve(Je,Je.current),s)break;return null;case 22:case 23:return t.lanes=0,Ev(e,t,n)}return br(e,t,n)}var Dv,Kf,Fv,Lv;Dv=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}},Kf=function(){},Fv=function(e,t,n,s){var o=e.memoizedProps;if(o!==s){e=t.stateNode,Hs(Vn.current);var a=null;switch(n){case"input":o=ju(e,o),s=ju(e,s),a=[];break;case"select":o=Ze({},o,{value:void 0}),s=Ze({},s,{value:void 0}),a=[];break;case"textarea":o=Su(e,o),s=Su(e,s),a=[];break;default:typeof o.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=rc)}ku(n,s);var i;n=null;for(u in o)if(!s.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var c=o[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ba.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in s){var d=s[u];if(c=o!=null?o[u]:void 0,s.hasOwnProperty(u)&&d!==c&&(d!=null||c!=null))if(u==="style")if(c){for(i in c)!c.hasOwnProperty(i)||d&&d.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in d)d.hasOwnProperty(i)&&c[i]!==d[i]&&(n||(n={}),n[i]=d[i])}else n||(a||(a=[]),a.push(u,n)),n=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(a=a||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(a=a||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ba.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&We("scroll",e),a||c===d||(a=[])):(a=a||[]).push(u,d))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Lv=function(e,t,n,s){n!==s&&(t.flags|=4)};function Si(e,t){if(!Ge)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 dk(e,t,n){var s=t.pendingProps;switch(pf(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)&&oc(),Nt(t),null;case 3:return s=t.stateNode,Xo(),qe(It),qe(jt),Ef(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(dc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Sn!==null&&(sm(Sn),Sn=null))),Kf(e,t),Nt(t),null;case 5:kf(t);var o=Hs(yi.current);if(n=t.type,e!==null&&t.stateNode!=null)Fv(e,t,n,s,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(K(166));return Nt(t),null}if(e=Hs(Vn.current),dc(t)){s=t.stateNode,n=t.type;var a=t.memoizedProps;switch(s[Bn]=t,s[hi]=a,e=(t.mode&1)!==0,n){case"dialog":We("cancel",s),We("close",s);break;case"iframe":case"object":case"embed":We("load",s);break;case"video":case"audio":for(o=0;o<ui.length;o++)We(ui[o],s);break;case"source":We("error",s);break;case"img":case"image":case"link":We("error",s),We("load",s);break;case"details":We("toggle",s);break;case"input":vx(s,a),We("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!a.multiple},We("invalid",s);break;case"textarea":jx(s,a),We("invalid",s)}ku(n,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="children"?typeof c=="string"?s.textContent!==c&&(a.suppressHydrationWarning!==!0&&nc(s.textContent,c,e),o=["children",c]):typeof c=="number"&&s.textContent!==""+c&&(a.suppressHydrationWarning!==!0&&nc(s.textContent,c,e),o=["children",""+c]):Ba.hasOwnProperty(i)&&c!=null&&i==="onScroll"&&We("scroll",s)}switch(n){case"input":Ol(s),bx(s,a,!0);break;case"textarea":Ol(s),Nx(s);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(s.onclick=rc)}s=o,t.updateQueue=s,s!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Sx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=i.createElement(n,{is:s.is}):(e=i.createElement(n),n==="select"&&(i=e,s.multiple?i.multiple=!0:s.size&&(i.size=s.size))):e=i.createElementNS(e,n),e[Bn]=t,e[hi]=s,Dv(e,t,!1,!1),t.stateNode=e;e:{switch(i=_u(n,s),n){case"dialog":We("cancel",e),We("close",e),o=s;break;case"iframe":case"object":case"embed":We("load",e),o=s;break;case"video":case"audio":for(o=0;o<ui.length;o++)We(ui[o],e);o=s;break;case"source":We("error",e),o=s;break;case"img":case"image":case"link":We("error",e),We("load",e),o=s;break;case"details":We("toggle",e),o=s;break;case"input":vx(e,s),o=ju(e,s),We("invalid",e);break;case"option":o=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},o=Ze({},s,{value:void 0}),We("invalid",e);break;case"textarea":jx(e,s),o=Su(e,s),We("invalid",e);break;default:o=s}ku(n,o),c=o;for(a in c)if(c.hasOwnProperty(a)){var d=c[a];a==="style"?_x(e,d):a==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&Cx(e,d)):a==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&qa(e,d):typeof d=="number"&&qa(e,""+d):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Ba.hasOwnProperty(a)?d!=null&&a==="onScroll"&&We("scroll",e):d!=null&&du(e,a,d,i))}switch(n){case"input":Ol(e),bx(e,s,!1);break;case"textarea":Ol(e),Nx(e);break;case"option":s.value!=null&&e.setAttribute("value",""+zr(s.value));break;case"select":e.multiple=!!s.multiple,a=s.value,a!=null?Ro(e,!!s.multiple,a,!1):s.defaultValue!=null&&Ro(e,!!s.multiple,s.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=rc)}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)Lv(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(K(166));if(n=Hs(yi.current),Hs(Vn.current),dc(t)){if(s=t.stateNode,n=t.memoizedProps,s[Bn]=t,(a=s.nodeValue!==n)&&(e=Kt,e!==null))switch(e.tag){case 3:nc(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nc(s.nodeValue,n,(e.mode&1)!==0)}a&&(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(qe(Je),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ge&&Qt!==null&&t.mode&1&&!(t.flags&128))Ug(),qo(),t.flags|=98560,a=!1;else if(a=dc(t),s!==null&&s.dehydrated!==null){if(e===null){if(!a)throw Error(K(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(K(317));a[Bn]=t}else qo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nt(t),a=!1}else Sn!==null&&(sm(Sn),Sn=null),a=!0;if(!a)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||Je.current&1?dt===0&&(dt=3):im())),t.updateQueue!==null&&(t.flags|=4),Nt(t),null);case 4:return Xo(),Kf(e,t),e===null&&fi(t.stateNode.containerInfo),Nt(t),null;case 10:return jf(t.type._context),Nt(t),null;case 17:return Mt(t.type)&&oc(),Nt(t),null;case 19:if(qe(Je),a=t.memoizedState,a===null)return Nt(t),null;if(s=(t.flags&128)!==0,i=a.rendering,i===null)if(s)Si(a,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=xc(e),i!==null){for(t.flags|=128,Si(a,!1),s=i.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)a=n,e=s,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ve(Je,Je.current&1|2),t.child}e=e.sibling}a.tail!==null&&it()>ea&&(t.flags|=128,s=!0,Si(a,!1),t.lanes=4194304)}else{if(!s)if(e=xc(i),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Si(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Ge)return Nt(t),null}else 2*it()-a.renderingStartTime>ea&&n!==1073741824&&(t.flags|=128,s=!0,Si(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=it(),t.sibling=null,n=Je.current,Ve(Je,s?n&1|2:n&1),t):(Nt(t),null);case 22:case 23:return am(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?Gt&1073741824&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function uk(e,t){switch(pf(t),t.tag){case 1:return Mt(t.type)&&oc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xo(),qe(It),qe(jt),Ef(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return kf(t),null;case 13:if(qe(Je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));qo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return qe(Je),null;case 4:return Xo(),null;case 10:return jf(t.type._context),null;case 22:case 23:return am(),null;case 24:return null;default:return null}}var Cc=!1,St=!1,fk=typeof WeakSet=="function"?WeakSet:Set,ie=null;function Zo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){rt(e,t,s)}else n.current=null}function Qf(e,t,n){try{n()}catch(s){rt(e,t,s)}}var $v=!1;function mk(e,t){if(of=Wl,e=gg(),Yu(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,a=s.focusNode;s=s.focusOffset;try{n.nodeType,a.nodeType}catch(N){n=null;break e}var i=0,c=-1,d=-1,u=0,h=0,m=e,v=null;t:for(;;){for(var g;m!==n||o!==0&&m.nodeType!==3||(c=i+o),m!==a||s!==0&&m.nodeType!==3||(d=i+s),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)v=m,m=g;for(;;){if(m===e)break t;if(v===n&&++u===o&&(c=i),v===a&&++h===s&&(d=i),(g=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=g}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(af={focusedElem:e,selectionRange:n},Wl=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var j=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(j!==null){var b=j.memoizedProps,w=j.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Cn(t.type,b),w);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(N){rt(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return j=$v,$v=!1,j}function Ci(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 a=o.destroy;o.destroy=void 0,a!==void 0&&Qf(t,n,a)}o=o.next}while(o!==s)}}function kc(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 Gf(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 zv(e){var t=e.alternate;t!==null&&(e.alternate=null,zv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bn],delete t[hi],delete t[uf],delete t[GC],delete t[XC])),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 Uv(e){return e.tag===5||e.tag===3||e.tag===4}function Bv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uv(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 Xf(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=rc));else if(s!==4&&(e=e.child,e!==null))for(Xf(e,t,n),e=e.sibling;e!==null;)Xf(e,t,n),e=e.sibling}function Yf(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(Yf(e,t,n),e=e.sibling;e!==null;)Yf(e,t,n),e=e.sibling}var gt=null,kn=!1;function Jr(e,t,n){for(n=n.child;n!==null;)Vv(e,t,n),n=n.sibling}function Vv(e,t,n){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount($l,n)}catch(c){}switch(n.tag){case 5:St||Zo(n,t);case 6:var s=gt,o=kn;gt=null,Jr(e,t,n),gt=s,kn=o,gt!==null&&(kn?(e=gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):gt.removeChild(n.stateNode));break;case 18:gt!==null&&(kn?(e=gt,n=n.stateNode,e.nodeType===8?df(e.parentNode,n):e.nodeType===1&&df(e,n),ri(e)):df(gt,n.stateNode));break;case 4:s=gt,o=kn,gt=n.stateNode.containerInfo,kn=!0,Jr(e,t,n),gt=s,kn=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 a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Qf(n,t,i),o=o.next}while(o!==s)}Jr(e,t,n);break;case 1:if(!St&&(Zo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(c){rt(n,t,c)}Jr(e,t,n);break;case 21:Jr(e,t,n);break;case 22:n.mode&1?(St=(s=St)||n.memoizedState!==null,Jr(e,t,n),St=s):Jr(e,t,n);break;default:Jr(e,t,n)}}function Hv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fk),t.forEach(function(s){var o=wk.bind(null,e,s);n.has(s)||(n.add(s),s.then(o,o))})}}function _n(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var o=n[s];try{var a=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 5:gt=c.stateNode,kn=!1;break e;case 3:gt=c.stateNode.containerInfo,kn=!0;break e;case 4:gt=c.stateNode.containerInfo,kn=!0;break e}c=c.return}if(gt===null)throw Error(K(160));Vv(a,i,o),gt=null,kn=!1;var d=o.alternate;d!==null&&(d.return=null),o.return=null}catch(u){rt(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Wv(t,e),t=t.sibling}function Wv(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_n(t,e),Wn(e),s&4){try{Ci(3,e,e.return),kc(3,e)}catch(b){rt(e,e.return,b)}try{Ci(5,e,e.return)}catch(b){rt(e,e.return,b)}}break;case 1:_n(t,e),Wn(e),s&512&&n!==null&&Zo(n,n.return);break;case 5:if(_n(t,e),Wn(e),s&512&&n!==null&&Zo(n,n.return),e.flags&32){var o=e.stateNode;try{qa(o,"")}catch(b){rt(e,e.return,b)}}if(s&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=n!==null?n.memoizedProps:a,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{c==="input"&&a.type==="radio"&&a.name!=null&&yx(o,a),_u(c,i);var u=_u(c,a);for(i=0;i<d.length;i+=2){var h=d[i],m=d[i+1];h==="style"?_x(o,m):h==="dangerouslySetInnerHTML"?Cx(o,m):h==="children"?qa(o,m):du(o,h,m,u)}switch(c){case"input":wu(o,a);break;case"textarea":wx(o,a);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var g=a.value;g!=null?Ro(o,!!a.multiple,g,!1):v!==!!a.multiple&&(a.defaultValue!=null?Ro(o,!!a.multiple,a.defaultValue,!0):Ro(o,!!a.multiple,a.multiple?[]:"",!1))}o[hi]=a}catch(b){rt(e,e.return,b)}}break;case 6:if(_n(t,e),Wn(e),s&4){if(e.stateNode===null)throw Error(K(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(b){rt(e,e.return,b)}}break;case 3:if(_n(t,e),Wn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ri(t.containerInfo)}catch(b){rt(e,e.return,b)}break;case 4:_n(t,e),Wn(e);break;case 13:_n(t,e),Wn(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(em=it())),s&4&&Hv(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(St=(u=St)||h,_n(t,e),St=u):_n(t,e),Wn(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&e.mode&1)for(ie=e,h=e.child;h!==null;){for(m=ie=h;ie!==null;){switch(v=ie,g=v.child,v.tag){case 0:case 11:case 14:case 15:Ci(4,v,v.return);break;case 1:Zo(v,v.return);var j=v.stateNode;if(typeof j.componentWillUnmount=="function"){s=v,n=v.return;try{t=s,j.props=t.memoizedProps,j.state=t.memoizedState,j.componentWillUnmount()}catch(b){rt(s,n,b)}}break;case 5:Zo(v,v.return);break;case 22:if(v.memoizedState!==null){Qv(m);continue}}g!==null?(g.return=v,ie=g):Qv(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{o=m.stateNode,u?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(c=m.stateNode,d=m.memoizedProps.style,i=d!=null&&d.hasOwnProperty("display")?d.display:null,c.style.display=kx("display",i))}catch(b){rt(e,e.return,b)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(b){rt(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:_n(t,e),Wn(e),s&4&&Hv(e);break;case 21:break;default:_n(t,e),Wn(e)}}function Wn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Uv(n)){var s=n;break e}n=n.return}throw Error(K(160))}switch(s.tag){case 5:var o=s.stateNode;s.flags&32&&(qa(o,""),s.flags&=-33);var a=Bv(e);Yf(e,a,o);break;case 3:case 4:var i=s.stateNode.containerInfo,c=Bv(e);Xf(e,c,i);break;default:throw Error(K(161))}}catch(d){rt(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hk(e,t,n){ie=e,qv(e)}function qv(e,t,n){for(var s=(e.mode&1)!==0;ie!==null;){var o=ie,a=o.child;if(o.tag===22&&s){var i=o.memoizedState!==null||Cc;if(!i){var c=o.alternate,d=c!==null&&c.memoizedState!==null||St;c=Cc;var u=St;if(Cc=i,(St=d)&&!u)for(ie=o;ie!==null;)i=ie,d=i.child,i.tag===22&&i.memoizedState!==null?Gv(o):d!==null?(d.return=i,ie=d):Gv(o);for(;a!==null;)ie=a,qv(a),a=a.sibling;ie=o,Cc=c,St=u}Kv(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,ie=a):Kv(e)}}function Kv(e){for(;ie!==null;){var t=ie;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:St||kc(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:Cn(t.type,n.memoizedProps);s.componentDidUpdate(o,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Qg(t,a,s);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Qg(t,i,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;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&&ri(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}St||t.flags&512&&Gf(t)}catch(v){rt(t,t.return,v)}}if(t===e){ie=null;break}if(n=t.sibling,n!==null){n.return=t.return,ie=n;break}ie=t.return}}function Qv(e){for(;ie!==null;){var t=ie;if(t===e){ie=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ie=n;break}ie=t.return}}function Gv(e){for(;ie!==null;){var t=ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kc(4,t)}catch(d){rt(t,n,d)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var o=t.return;try{s.componentDidMount()}catch(d){rt(t,o,d)}}var a=t.return;try{Gf(t)}catch(d){rt(t,a,d)}break;case 5:var i=t.return;try{Gf(t)}catch(d){rt(t,i,d)}}}catch(d){rt(t,t.return,d)}if(t===e){ie=null;break}var c=t.sibling;if(c!==null){c.return=t.return,ie=c;break}ie=t.return}}var pk=Math.ceil,_c=mr.ReactCurrentDispatcher,Zf=mr.ReactCurrentOwner,un=mr.ReactCurrentBatchConfig,Fe=0,mt=null,lt=null,vt=0,Gt=0,Jo=Qr(0),dt=0,ki=null,qs=0,Ec=0,Jf=0,_i=null,Ft=null,em=0,ea=1/0,jr=null,Pc=!1,tm=null,es=null,Tc=!1,ts=null,Rc=0,Ei=0,nm=null,Ac=-1,Oc=0;function Rt(){return Fe&6?it():Ac!==-1?Ac:Ac=it()}function ns(e){return e.mode&1?Fe&2&&vt!==0?vt&-vt:ZC.transition!==null?(Oc===0&&(Oc=Bx()),Oc):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Yx(e.type)),e):1}function En(e,t,n,s){if(50<Ei)throw Ei=0,nm=null,Error(K(185));Za(e,n,s),(!(Fe&2)||e!==mt)&&(e===mt&&(!(Fe&2)&&(Ec|=n),dt===4&&rs(e,vt)),Lt(e,s),n===1&&Fe===0&&!(t.mode&1)&&(ea=it()+500,ic&&Xr()))}function Lt(e,t){var n=e.callbackNode;ZS(e,t);var s=Bl(e,e===mt?vt:0);if(s===0)n!==null&&$x(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&$x(n),t===1)e.tag===0?YC(Yv.bind(null,e)):Dg(Yv.bind(null,e)),KC(function(){!(Fe&6)&&Xr()}),n=null;else{switch(Vx(s)){case 1:n=Iu;break;case 4:n=zx;break;case 16:n=Ll;break;case 536870912:n=Ux;break;default:n=Ll}n=oy(n,Xv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Xv(e,t){if(Ac=-1,Oc=0,Fe&6)throw Error(K(327));var n=e.callbackNode;if(ta()&&e.callbackNode!==n)return null;var s=Bl(e,e===mt?vt:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=Ic(e,s);else{t=s;var o=Fe;Fe|=2;var a=Jv();(mt!==e||vt!==t)&&(jr=null,ea=it()+500,Qs(e,t));do try{vk();break}catch(c){Zv(e,c)}while(!0);bf(),_c.current=a,Fe=o,lt!==null?t=0:(mt=null,vt=0,t=dt)}if(t!==0){if(t===2&&(o=Mu(e),o!==0&&(s=o,t=rm(e,o))),t===1)throw n=ki,Qs(e,0),rs(e,s),Lt(e,it()),n;if(t===6)rs(e,s);else{if(o=e.current.alternate,!(s&30)&&!xk(o)&&(t=Ic(e,s),t===2&&(a=Mu(e),a!==0&&(s=a,t=rm(e,a))),t===1))throw n=ki,Qs(e,0),rs(e,s),Lt(e,it()),n;switch(e.finishedWork=o,e.finishedLanes=s,t){case 0:case 1:throw Error(K(345));case 2:Gs(e,Ft,jr);break;case 3:if(rs(e,s),(s&130023424)===s&&(t=em+500-it(),10<t)){if(Bl(e,0)!==0)break;if(o=e.suspendedLanes,(o&s)!==s){Rt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=cf(Gs.bind(null,e,Ft,jr),t);break}Gs(e,Ft,jr);break;case 4:if(rs(e,s),(s&4194240)===s)break;for(t=e.eventTimes,o=-1;0<s;){var i=31-wn(s);a=1<<i,i=t[i],i>o&&(o=i),s&=~a}if(s=o,s=it()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*pk(s/1960))-s,10<s){e.timeoutHandle=cf(Gs.bind(null,e,Ft,jr),s);break}Gs(e,Ft,jr);break;case 5:Gs(e,Ft,jr);break;default:throw Error(K(329))}}}return Lt(e,it()),e.callbackNode===n?Xv.bind(null,e):null}function rm(e,t){var n=_i;return e.current.memoizedState.isDehydrated&&(Qs(e,t).flags|=256),e=Ic(e,t),e!==2&&(t=Ft,Ft=n,t!==null&&sm(t)),e}function sm(e){Ft===null?Ft=e:Ft.push.apply(Ft,e)}function xk(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],a=o.getSnapshot;o=o.value;try{if(!Nn(a(),o))return!1}catch(i){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 rs(e,t){for(t&=~Jf,t&=~Ec,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wn(t),s=1<<n;e[n]=-1,t&=~s}}function Yv(e){if(Fe&6)throw Error(K(327));ta();var t=Bl(e,0);if(!(t&1))return Lt(e,it()),null;var n=Ic(e,t);if(e.tag!==0&&n===2){var s=Mu(e);s!==0&&(t=s,n=rm(e,s))}if(n===1)throw n=ki,Qs(e,0),rs(e,t),Lt(e,it()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gs(e,Ft,jr),Lt(e,it()),null}function om(e,t){var n=Fe;Fe|=1;try{return e(t)}finally{Fe=n,Fe===0&&(ea=it()+500,ic&&Xr())}}function Ks(e){ts!==null&&ts.tag===0&&!(Fe&6)&&ta();var t=Fe;Fe|=1;var n=un.transition,s=ze;try{if(un.transition=null,ze=1,e)return e()}finally{ze=s,un.transition=n,Fe=t,!(Fe&6)&&Xr()}}function am(){Gt=Jo.current,qe(Jo)}function Qs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,qC(n)),lt!==null)for(n=lt.return;n!==null;){var s=n;switch(pf(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&oc();break;case 3:Xo(),qe(It),qe(jt),Ef();break;case 5:kf(s);break;case 4:Xo();break;case 13:qe(Je);break;case 19:qe(Je);break;case 10:jf(s.type._context);break;case 22:case 23:am()}n=n.return}if(mt=e,lt=e=ss(e.current,null),vt=Gt=t,dt=0,ki=null,Jf=Ec=qs=0,Ft=_i=null,Vs!==null){for(t=0;t<Vs.length;t++)if(n=Vs[t],s=n.interleaved,s!==null){n.interleaved=null;var o=s.next,a=n.pending;if(a!==null){var i=a.next;a.next=o,s.next=i}n.pending=s}Vs=null}return e}function Zv(e,t){do{var n=lt;try{if(bf(),gc.current=jc,vc){for(var s=et.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}vc=!1}if(Ws=0,ft=ct=et=null,bi=!1,ji=0,Zf.current=null,n===null||n.return===null){dt=1,ki=t,lt=null;break}e:{var a=e,i=n.return,c=n,d=t;if(t=vt,c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var u=d,h=c,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var v=h.alternate;v?(h.updateQueue=v.updateQueue,h.memoizedState=v.memoizedState,h.lanes=v.lanes):(h.updateQueue=null,h.memoizedState=null)}var g=Nv(i);if(g!==null){g.flags&=-257,Sv(g,i,c,a,t),g.mode&1&&wv(a,u,t),t=g,d=u;var j=t.updateQueue;if(j===null){var b=new Set;b.add(d),t.updateQueue=b}else j.add(d);break e}else{if(!(t&1)){wv(a,u,t),im();break e}d=Error(K(426))}}else if(Ge&&c.mode&1){var w=Nv(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Sv(w,i,c,a,t),vf(Yo(d,c));break e}}a=d=Yo(d,c),dt!==4&&(dt=2),_i===null?_i=[a]:_i.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=bv(a,d,t);Kg(a,y);break e;case 1:c=d;var p=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof p.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(es===null||!es.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var N=jv(a,c,t);Kg(a,N);break e}}a=a.return}while(a!==null)}ty(n)}catch(S){t=S,lt===n&&n!==null&&(lt=n=n.return);continue}break}while(!0)}function Jv(){var e=_c.current;return _c.current=jc,e===null?jc:e}function im(){(dt===0||dt===3||dt===2)&&(dt=4),mt===null||!(qs&268435455)&&!(Ec&268435455)||rs(mt,vt)}function Ic(e,t){var n=Fe;Fe|=2;var s=Jv();(mt!==e||vt!==t)&&(jr=null,Qs(e,t));do try{gk();break}catch(o){Zv(e,o)}while(!0);if(bf(),Fe=n,_c.current=s,lt!==null)throw Error(K(261));return mt=null,vt=0,dt}function gk(){for(;lt!==null;)ey(lt)}function vk(){for(;lt!==null&&!VS();)ey(lt)}function ey(e){var t=sy(e.alternate,e,Gt);e.memoizedProps=e.pendingProps,t===null?ty(e):lt=t,Zf.current=null}function ty(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=uk(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=dk(n,t,Gt),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 Gs(e,t,n){var s=ze,o=un.transition;try{un.transition=null,ze=1,yk(e,t,n,s)}finally{un.transition=o,ze=s}return null}function yk(e,t,n,s){do ta();while(ts!==null);if(Fe&6)throw Error(K(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(K(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(JS(e,a),e===mt&&(lt=mt=null,vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Tc||(Tc=!0,oy(Ll,function(){return ta(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=un.transition,un.transition=null;var i=ze;ze=1;var c=Fe;Fe|=4,Zf.current=null,mk(e,n),Wv(n,e),$C(af),Wl=!!of,af=of=null,e.current=n,hk(n),HS(),Fe=c,ze=i,un.transition=a}else e.current=n;if(Tc&&(Tc=!1,ts=e,Rc=o),a=e.pendingLanes,a===0&&(es=null),KS(n.stateNode),Lt(e,it()),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(Pc)throw Pc=!1,e=tm,tm=null,e;return Rc&1&&e.tag!==0&&ta(),a=e.pendingLanes,a&1?e===nm?Ei++:(Ei=0,nm=e):Ei=0,Xr(),null}function ta(){if(ts!==null){var e=Vx(Rc),t=un.transition,n=ze;try{if(un.transition=null,ze=16>e?16:e,ts===null)var s=!1;else{if(e=ts,ts=null,Rc=0,Fe&6)throw Error(K(331));var o=Fe;for(Fe|=4,ie=e.current;ie!==null;){var a=ie,i=a.child;if(ie.flags&16){var c=a.deletions;if(c!==null){for(var d=0;d<c.length;d++){var u=c[d];for(ie=u;ie!==null;){var h=ie;switch(h.tag){case 0:case 11:case 15:Ci(8,h,a)}var m=h.child;if(m!==null)m.return=h,ie=m;else for(;ie!==null;){h=ie;var v=h.sibling,g=h.return;if(zv(h),h===u){ie=null;break}if(v!==null){v.return=g,ie=v;break}ie=g}}}var j=a.alternate;if(j!==null){var b=j.child;if(b!==null){j.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}ie=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,ie=i;else e:for(;ie!==null;){if(a=ie,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Ci(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,ie=y;break e}ie=a.return}}var p=e.current;for(ie=p;ie!==null;){i=ie;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,ie=x;else e:for(i=p;ie!==null;){if(c=ie,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:kc(9,c)}}catch(S){rt(c,c.return,S)}if(c===i){ie=null;break e}var N=c.sibling;if(N!==null){N.return=c.return,ie=N;break e}ie=c.return}}if(Fe=o,Xr(),Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot($l,e)}catch(S){}s=!0}return s}finally{ze=n,un.transition=t}}return!1}function ny(e,t,n){t=Yo(n,t),t=bv(e,t,1),e=Zr(e,t,1),t=Rt(),e!==null&&(Za(e,1,t),Lt(e,t))}function rt(e,t,n){if(e.tag===3)ny(e,e,n);else for(;t!==null;){if(t.tag===3){ny(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(es===null||!es.has(s))){e=Yo(n,e),e=jv(t,e,1),t=Zr(t,e,1),e=Rt(),t!==null&&(Za(t,1,e),Lt(t,e));break}}t=t.return}}function bk(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>it()-em?Qs(e,0):Jf|=n),Lt(e,t)}function ry(e,t){t===0&&(e.mode&1?(t=Ul,Ul<<=1,!(Ul&130023424)&&(Ul=4194304)):t=1);var n=Rt();e=vr(e,t),e!==null&&(Za(e,t,n),Lt(e,n))}function jk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ry(e,n)}function wk(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(K(314))}s!==null&&s.delete(t),ry(e,n)}var sy;sy=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,ck(e,t,n);Dt=!!(e.flags&131072)}else Dt=!1,Ge&&t.flags&1048576&&Fg(t,cc,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Sc(e,t),e=t.pendingProps;var o=Vo(t,jt.current);Go(t,n),o=Rf(null,t,s,e,o,n);var a=Af();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)?(a=!0,ac(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sf(t),o.updater=wc,t.stateNode=o,o._reactInternals=t,Lf(t,s,e,n),t=Bf(null,t,s,!0,a,n)):(t.tag=0,Ge&&a&&hf(t),Tt(null,t,o,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Sc(e,t),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=Sk(s),e=Cn(s,e),o){case 0:t=Uf(null,t,s,e,n);break e;case 1:t=Tv(null,t,s,e,n);break e;case 11:t=Cv(null,t,s,e,n);break e;case 14:t=kv(null,t,s,Cn(s.type,e),n);break e}throw Error(K(306,s,""))}return t;case 0:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Cn(s,o),Uf(e,t,s,o,n);case 1:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Cn(s,o),Tv(e,t,s,o,n);case 3:e:{if(Rv(t),e===null)throw Error(K(387));s=t.pendingProps,a=t.memoizedState,o=a.element,qg(e,t),pc(t,s,null,n);var i=t.memoizedState;if(s=i.element,a.isDehydrated)if(a={element:s,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Yo(Error(K(423)),t),t=Av(e,t,s,n,o);break e}else if(s!==o){o=Yo(Error(K(424)),t),t=Av(e,t,s,n,o);break e}else for(Qt=Kr(t.stateNode.containerInfo.firstChild),Kt=t,Ge=!0,Sn=null,n=Hg(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qo(),s===o){t=br(e,t,n);break e}Tt(e,t,s,n)}t=t.child}return t;case 5:return Gg(t),e===null&&gf(t),s=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,lf(s,o)?i=null:a!==null&&lf(s,a)&&(t.flags|=32),Pv(e,t),Tt(e,t,i,n),t.child;case 6:return e===null&&gf(t),null;case 13:return Ov(e,t,n);case 4:return Cf(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ko(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:Cn(s,o),Cv(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,a=t.memoizedProps,i=o.value,Ve(fc,s._currentValue),s._currentValue=i,a!==null)if(Nn(a.value,i)){if(a.children===o.children&&!It.current){t=br(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var c=a.dependencies;if(c!==null){i=a.child;for(var d=c.firstContext;d!==null;){if(d.context===s){if(a.tag===1){d=yr(-1,n&-n),d.tag=2;var u=a.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}}a.lanes|=n,d=a.alternate,d!==null&&(d.lanes|=n),wf(a.return,n,t),c.lanes|=n;break}d=d.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(K(341));i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),wf(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Tt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,s=t.pendingProps.children,Go(t,n),o=cn(o),s=s(o),t.flags|=1,Tt(e,t,s,n),t.child;case 14:return s=t.type,o=Cn(s,t.pendingProps),o=Cn(s.type,o),kv(e,t,s,o,n);case 15:return _v(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Cn(s,o),Sc(e,t),t.tag=1,Mt(s)?(e=!0,ac(t)):e=!1,Go(t,n),vv(t,s,o),Lf(t,s,o,n),Bf(null,t,s,!0,e,n);case 19:return Mv(e,t,n);case 22:return Ev(e,t,n)}throw Error(K(156,t.tag))};function oy(e,t){return Lx(e,t)}function Nk(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 fn(e,t,n,s){return new Nk(e,t,n,s)}function lm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sk(e){if(typeof e=="function")return lm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mu)return 11;if(e===xu)return 14}return 2}function ss(e,t){var n=e.alternate;return n===null?(n=fn(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 Mc(e,t,n,s,o,a){var i=2;if(s=e,typeof e=="function")lm(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case To:return Xs(n.children,o,a,t);case uu:i=8,o|=8;break;case fu:return e=fn(12,n,t,o|2),e.elementType=fu,e.lanes=a,e;case hu:return e=fn(13,n,t,o),e.elementType=hu,e.lanes=a,e;case pu:return e=fn(19,n,t,o),e.elementType=pu,e.lanes=a,e;case hx:return Dc(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fx:i=10;break e;case mx:i=9;break e;case mu:i=11;break e;case xu:i=14;break e;case $r:i=16,s=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=fn(i,n,t,o),t.elementType=e,t.type=s,t.lanes=a,t}function Xs(e,t,n,s){return e=fn(7,e,s,t),e.lanes=n,e}function Dc(e,t,n,s){return e=fn(22,e,s,t),e.elementType=hx,e.lanes=n,e.stateNode={isHidden:!1},e}function cm(e,t,n){return e=fn(6,e,null,t),e.lanes=n,e}function dm(e,t,n){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ck(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=Du(0),this.expirationTimes=Du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.identifierPrefix=s,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function um(e,t,n,s,o,a,i,c,d){return e=new Ck(e,t,n,c,d),t===1?(t=1,a===!0&&(t|=8)):t=0,a=fn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sf(a),e}function kk(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Po,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function ay(e){if(!e)return Gr;e=e._reactInternals;e:{if(Ls(e)!==e||e.tag!==1)throw Error(K(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(K(171))}if(e.tag===1){var n=e.type;if(Mt(n))return Ig(e,n,t)}return t}function iy(e,t,n,s,o,a,i,c,d){return e=um(n,s,!0,e,o,a,i,c,d),e.context=ay(null),n=e.current,s=Rt(),o=ns(n),a=yr(s,o),a.callback=t!=null?t:null,Zr(n,a,o),e.current.lanes=o,Za(e,o,s),Lt(e,s),e}function Fc(e,t,n,s){var o=t.current,a=Rt(),i=ns(o);return n=ay(n),t.context===null?t.context=n:t.pendingContext=n,t=yr(a,i),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Zr(o,t,i),e!==null&&(En(e,o,i,a),hc(e,o,i)),i}function Lc(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 ly(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fm(e,t){ly(e,t),(e=e.alternate)&&ly(e,t)}function _k(){return null}var cy=typeof reportError=="function"?reportError:function(e){console.error(e)};function mm(e){this._internalRoot=e}$c.prototype.render=mm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));Fc(e,t,null,null)},$c.prototype.unmount=mm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ks(function(){Fc(null,e,null,null)}),t[hr]=null}};function $c(e){this._internalRoot=e}$c.prototype.unstable_scheduleHydration=function(e){if(e){var t=qx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Hr.length&&t!==0&&t<Hr[n].priority;n++);Hr.splice(n,0,e),n===0&&Gx(e)}};function hm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dy(){}function Ek(e,t,n,s,o){if(o){if(typeof s=="function"){var a=s;s=function(){var u=Lc(i);a.call(u)}}var i=iy(t,s,e,0,null,!1,!1,"",dy);return e._reactRootContainer=i,e[hr]=i.current,fi(e.nodeType===8?e.parentNode:e),Ks(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof s=="function"){var c=s;s=function(){var u=Lc(d);c.call(u)}}var d=um(e,0,!1,null,null,!1,!1,"",dy);return e._reactRootContainer=d,e[hr]=d.current,fi(e.nodeType===8?e.parentNode:e),Ks(function(){Fc(t,d,n,s)}),d}function Uc(e,t,n,s,o){var a=n._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var c=o;o=function(){var d=Lc(i);c.call(d)}}Fc(t,i,e,o)}else i=Ek(n,t,e,o,s);return Lc(i)}Hx=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ya(t.pendingLanes);n!==0&&(Fu(t,n|1),Lt(t,it()),!(Fe&6)&&(ea=it()+500,Xr()))}break;case 13:Ks(function(){var s=vr(e,1);if(s!==null){var o=Rt();En(s,e,1,o)}}),fm(e,1)}},Lu=function(e){if(e.tag===13){var t=vr(e,134217728);if(t!==null){var n=Rt();En(t,e,134217728,n)}fm(e,134217728)}},Wx=function(e){if(e.tag===13){var t=ns(e),n=vr(e,t);if(n!==null){var s=Rt();En(n,e,t,s)}fm(e,t)}},qx=function(){return ze},Kx=function(e,t){var n=ze;try{return ze=e,t()}finally{ze=n}},Tu=function(e,t,n){switch(t){case"input":if(wu(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=sc(s);if(!o)throw Error(K(90));gx(s),wu(s,o)}}}break;case"textarea":wx(e,n);break;case"select":t=n.value,t!=null&&Ro(e,!!n.multiple,t,!1)}},Rx=om,Ax=Ks;var Pk={usingClientEntryPoint:!1,Events:[pi,Uo,sc,Px,Tx,om]},Pi={findFiberByHostInstance:$s,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tk={bundleType:Pi.bundleType,version:Pi.version,rendererPackageName:Pi.rendererPackageName,rendererConfig:Pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Dx(e),e===null?null:e.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||_k,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 Bc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bc.isDisabled&&Bc.supportsFiber)try{$l=Bc.inject(Tk),Un=Bc}catch(e){}}Ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pk,Ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hm(t))throw Error(K(200));return kk(e,t,null,n)},Ht.createRoot=function(e,t){if(!hm(e))throw Error(K(299));var n=!1,s="",o=cy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=um(e,1,!1,null,null,n,!1,s,o),e[hr]=t.current,fi(e.nodeType===8?e.parentNode:e),new mm(t)},Ht.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(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=Dx(t),e=e===null?null:e.stateNode,e},Ht.flushSync=function(e){return Ks(e)},Ht.hydrate=function(e,t,n){if(!zc(t))throw Error(K(200));return Uc(null,e,t,!0,n)},Ht.hydrateRoot=function(e,t,n){if(!hm(e))throw Error(K(405));var s=n!=null&&n.hydratedSources||null,o=!1,a="",i=cy;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=iy(t,null,e,1,n!=null?n:null,o,!1,a,i),e[hr]=t.current,fi(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 $c(t)},Ht.render=function(e,t,n){if(!zc(t))throw Error(K(200));return Uc(null,e,t,!1,n)},Ht.unmountComponentAtNode=function(e){if(!zc(e))throw Error(K(40));return e._reactRootContainer?(Ks(function(){Uc(null,null,e,!1,function(){e._reactRootContainer=null,e[hr]=null})}),!0):!1},Ht.unstable_batchedUpdates=om,Ht.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!zc(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return Uc(e,t,n,!1,s)},Ht.version="18.3.1-next-f1338f8080-20240426";function uy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uy)}catch(e){console.error(e)}}uy(),ax.exports=Ht;var Ys=ax.exports;const fy=nt(Ys);var my,hy=Ys;my=hy.createRoot,hy.hydrateRoot;var Zs=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(){}},Rk=(BN=class extends Zs{constructor(){super();ae(this,ho);ae(this,bs);ae(this,wa);Y(this,wa,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,bs)||this.setEventListener(_(this,wa))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,bs))==null||t.call(this),Y(this,bs,void 0))}setEventListener(t){var n;Y(this,wa,t),(n=_(this,bs))==null||n.call(this),Y(this,bs,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){_(this,ho)!==t&&(Y(this,ho,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,ho)=="boolean"?_(this,ho):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ho=new WeakMap,bs=new WeakMap,wa=new WeakMap,BN),pm=new Rk,Ak={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ok=(VN=class{constructor(){ae(this,js,Ak);ae(this,Rp,!1)}setTimeoutProvider(e){Y(this,js,e)}setTimeout(e,t){return _(this,js).setTimeout(e,t)}clearTimeout(e){_(this,js).clearTimeout(e)}setInterval(e,t){return _(this,js).setInterval(e,t)}clearInterval(e){_(this,js).clearInterval(e)}},js=new WeakMap,Rp=new WeakMap,VN),Js=new Ok;function Ik(e){setTimeout(e,0)}var Mk=typeof window=="undefined"||"Deno"in globalThis;function Ct(){}function Dk(e,t){return typeof e=="function"?e(t):e}function xm(e){return typeof e=="number"&&e>=0&&e!==1/0}function py(e,t){return Math.max(e+(t||0)-Date.now(),0)}function os(e,t){return typeof e=="function"?e(t):e}function mn(e,t){return typeof e=="function"?e(t):e}function xy(e,t){const{type:n="all",exact:s,fetchStatus:o,predicate:a,queryKey:i,stale:c}=e;if(i){if(s){if(t.queryHash!==gm(i,t.options))return!1}else if(!Ti(t.queryKey,i))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||a&&!a(t))}function gy(e,t){const{exact:n,status:s,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(eo(t.options.mutationKey)!==eo(a))return!1}else if(!Ti(t.options.mutationKey,a))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function gm(e,t){return((t==null?void 0:t.queryKeyHashFn)||eo)(e)}function eo(e){return JSON.stringify(e,(t,n)=>ym(n)?Object.keys(n).sort().reduce((s,o)=>(s[o]=n[o],s),{}):n)}function Ti(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ti(e[n],t[n])):!1}var Fk=Object.prototype.hasOwnProperty;function vm(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=vy(e)&&vy(t);if(!s&&!(ym(e)&&ym(t)))return t;const a=(s?e:Object.keys(e)).length,i=s?t:Object.keys(t),c=i.length,d=s?new Array(c):{};let u=0;for(let h=0;h<c;h++){const m=s?h:i[h],v=e[m],g=t[m];if(v===g){d[m]=v,(s?h<a:Fk.call(e,m))&&u++;continue}if(v===null||g===null||typeof v!="object"||typeof g!="object"){d[m]=g;continue}const j=vm(v,g,n+1);d[m]=j,j===v&&u++}return a===c&&u===a?e:d}function Ri(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 vy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ym(e){if(!yy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!yy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function yy(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lk(e){return new Promise(t=>{Js.setTimeout(t,e)})}function bm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vm(e,t):t}function $k(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function zk(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var jm=Symbol();function by(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===jm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function wm(e,t){return typeof e=="function"?e(...t):!!e}function Uk(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 Ai=(()=>{let e=()=>Mk;return{isServer(){return e()},setIsServer(t){e=t}}})();function Nm(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});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 Bk=Ik;function Vk(){let e=[],t=0,n=c=>{c()},s=c=>{c()},o=Bk;const a=c=>{t?e.push(c):o(()=>{n(c)})},i=()=>{const c=e;e=[],c.length&&o(()=>{s(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||i()}return d},batchCalls:c=>(...d)=>{a(()=>{c(...d)})},schedule:a,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{o=c}}}var st=Vk(),Hk=(HN=class extends Zs{constructor(){super();ae(this,Na,!0);ae(this,ws);ae(this,Sa);Y(this,Sa,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(){_(this,ws)||this.setEventListener(_(this,Sa))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,ws))==null||t.call(this),Y(this,ws,void 0))}setEventListener(t){var n;Y(this,Sa,t),(n=_(this,ws))==null||n.call(this),Y(this,ws,t(this.setOnline.bind(this)))}setOnline(t){_(this,Na)!==t&&(Y(this,Na,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return _(this,Na)}},Na=new WeakMap,ws=new WeakMap,Sa=new WeakMap,HN),Vc=new Hk;function Wk(e){return Math.min(1e3*2**e,3e4)}function jy(e){return(e!=null?e:"online")==="online"?Vc.isOnline():!0}var Sm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function wy(e){let t=!1,n=0,s;const o=Nm(),a=()=>o.status!=="pending",i=b=>{var w;if(!a()){const y=new Sm(b);v(y),(w=e.onCancel)==null||w.call(e,y)}},c=()=>{t=!0},d=()=>{t=!1},u=()=>pm.isFocused()&&(e.networkMode==="always"||Vc.isOnline())&&e.canRun(),h=()=>jy(e.networkMode)&&e.canRun(),m=b=>{a()||(s==null||s(),o.resolve(b))},v=b=>{a()||(s==null||s(),o.reject(b))},g=()=>new Promise(b=>{var w;s=y=>{(a()||u())&&b(y)},(w=e.onPause)==null||w.call(e)}).then(()=>{var b;s=void 0,a()||(b=e.onContinue)==null||b.call(e)}),j=()=>{if(a())return;let b;const w=n===0?e.initialPromise:void 0;try{b=w!=null?w:e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(m).catch(y=>{var k,E,C;if(a())return;const p=(k=e.retry)!=null?k:Ai.isServer()?0:3,x=(E=e.retryDelay)!=null?E:Wk,N=typeof x=="function"?x(n,y):x,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,y);if(t||!S){v(y);return}n++,(C=e.onFail)==null||C.call(e,n,y),Lk(N).then(()=>u()?void 0:g()).then(()=>{t?v(y):j()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:c,continueRetry:d,canStart:h,start:()=>(h()?j():g().then(j),o)}}var Ny=(WN=class{constructor(){ae(this,po)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xm(this.gcTime)&&Y(this,po,Js.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Ai.isServer()?1/0:5*60*1e3)}clearGcTimeout(){_(this,po)!==void 0&&(Js.clearTimeout(_(this,po)),Y(this,po,void 0))}},po=new WeakMap,WN),qk=(qN=class extends Ny{constructor(t){var n;super();ae(this,nn);ae(this,xo);ae(this,Ca);ae(this,yn);ae(this,go);ae(this,pt);ae(this,gl);ae(this,vo);Y(this,vo,!1),Y(this,gl,t.defaultOptions),this.setOptions(t.options),this.observers=[],Y(this,go,t.client),Y(this,yn,_(this,go).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Y(this,xo,ky(this.options)),this.state=(n=t.state)!=null?n:_(this,xo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_(this,pt))==null?void 0:t.promise}setOptions(t){if(this.options={..._(this,gl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=ky(this.options);n.data!==void 0&&(this.setState(Cy(n.data,n.dataUpdatedAt)),Y(this,xo,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,yn).remove(this)}setData(t,n){const s=bm(this.state.data,t,this.options);return be(this,nn,Lr).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){be(this,nn,Lr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,o;const n=(s=_(this,pt))==null?void 0:s.promise;return(o=_(this,pt))==null||o.cancel(t),n?n.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return _(this,xo)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>mn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>os(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:!py(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,pt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,pt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,yn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_(this,pt)&&(_(this,vo)||be(this,nn,sS).call(this)?_(this,pt).cancel({revert:!0}):_(this,pt).cancelRetry()),this.scheduleGc()),_(this,yn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,nn,Lr).call(this,{type:"invalidate"})}async fetch(t,n){var d,u,h,m,v,g,j,b,w,y,p,x;if(this.state.fetchStatus!=="idle"&&((d=_(this,pt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,pt))return _(this,pt).continueRetry(),_(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:()=>(Y(this,vo,!0),s.signal)})},a=()=>{const N=by(this.options,n),k=(()=>{const E={client:_(this,go),queryKey:this.queryKey,meta:this.meta};return o(E),E})();return Y(this,vo,!1),this.options.persister?this.options.persister(N,k,this):N(k)},c=(()=>{const N={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_(this,go),state:this.state,fetchFn:a};return o(N),N})();(u=this.options.behavior)==null||u.onFetch(c,this),Y(this,Ca,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=c.fetchOptions)==null?void 0:h.meta))&&be(this,nn,Lr).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),Y(this,pt,wy({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:N=>{N instanceof Sm&&N.revert&&this.setState({..._(this,Ca),fetchStatus:"idle"}),s.abort()},onFail:(N,S)=>{be(this,nn,Lr).call(this,{type:"failed",failureCount:N,error:S})},onPause:()=>{be(this,nn,Lr).call(this,{type:"pause"})},onContinue:()=>{be(this,nn,Lr).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const N=await _(this,pt).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(g=(v=_(this,yn).config).onSuccess)==null||g.call(v,N,this),(b=(j=_(this,yn).config).onSettled)==null||b.call(j,N,this.state.error,this),N}catch(N){if(N instanceof Sm){if(N.silent)return _(this,pt).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw be(this,nn,Lr).call(this,{type:"error",error:N}),(y=(w=_(this,yn).config).onError)==null||y.call(w,N,this),(x=(p=_(this,yn).config).onSettled)==null||x.call(p,this.state.data,N,this),N}finally{this.scheduleGc()}}},xo=new WeakMap,Ca=new WeakMap,yn=new WeakMap,go=new WeakMap,pt=new WeakMap,gl=new WeakMap,vo=new WeakMap,nn=new WeakSet,sS=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Lr=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,...Sy(s.data,this.options),fetchMeta:(o=t.meta)!=null?o:null};case"success":const a={...s,...Cy(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Y(this,Ca,t.manual?a:void 0),a;case"error":const i=t.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),st.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),_(this,yn).notify({query:this,type:"updated",action:t})})},qN);function Sy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Cy(e,t){return{data:e,dataUpdatedAt:t!=null?t:Date.now(),error:null,isInvalidated:!1,status:"success"}}function ky(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 Cm=(KN=class extends Zs{constructor(t,n){super();ae(this,$e);ae(this,Bt);ae(this,Me);ae(this,vl);ae(this,At);ae(this,yo);ae(this,ka);ae(this,Rr);ae(this,Ns);ae(this,yl);ae(this,_a);ae(this,Ea);ae(this,bo);ae(this,jo);ae(this,Ss);ae(this,Pa,new Set);this.options=n,Y(this,Bt,t),Y(this,Ns,null),Y(this,Rr,Nm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Me).addObserver(this),_y(_(this,Me),this.options)?be(this,$e,_l).call(this):this.updateResult(),be(this,$e,Fp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return km(_(this,Me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return km(_(this,Me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,be(this,$e,Lp).call(this),be(this,$e,$p).call(this),_(this,Me).removeObserver(this)}setOptions(t){const n=this.options,s=_(this,Me);if(this.options=_(this,Bt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mn(this.options.enabled,_(this,Me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");be(this,$e,zp).call(this),_(this,Me).setOptions(this.options),n._defaulted&&!Ri(this.options,n)&&_(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Me),observer:this});const o=this.hasListeners();o&&Ey(_(this,Me),s,this.options,n)&&be(this,$e,_l).call(this),this.updateResult(),o&&(_(this,Me)!==s||mn(this.options.enabled,_(this,Me))!==mn(n.enabled,_(this,Me))||os(this.options.staleTime,_(this,Me))!==os(n.staleTime,_(this,Me)))&&be(this,$e,Ip).call(this);const a=be(this,$e,Mp).call(this);o&&(_(this,Me)!==s||mn(this.options.enabled,_(this,Me))!==mn(n.enabled,_(this,Me))||a!==_(this,Ss))&&be(this,$e,Dp).call(this,a)}getOptimisticResult(t){const n=_(this,Bt).getQueryCache().build(_(this,Bt),t),s=this.createResult(n,t);return Qk(this,s)&&(Y(this,At,s),Y(this,ka,this.options),Y(this,yo,_(this,Me).state)),s}getCurrentResult(){return _(this,At)}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&&_(this,Rr).status==="pending"&&_(this,Rr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(t){_(this,Pa).add(t)}getCurrentQuery(){return _(this,Me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,Bt).defaultQueryOptions(t),s=_(this,Bt).getQueryCache().build(_(this,Bt),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){var n;return be(this,$e,_l).call(this,{...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),_(this,At)))}createResult(t,n){var R;const s=_(this,Me),o=this.options,a=_(this,At),i=_(this,yo),c=_(this,ka),u=t!==s?t.state:_(this,vl),{state:h}=t;let m={...h},v=!1,g;if(n._optimisticResults){const T=this.hasListeners(),A=!T&&_y(t,n),M=T&&Ey(t,s,n,o);(A||M)&&(m={...m,...Sy(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:j,errorUpdatedAt:b,status:w}=m;g=m.data;let y=!1;if(n.placeholderData!==void 0&&g===void 0&&w==="pending"){let T;a!=null&&a.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(T=a.data,y=!0):T=typeof n.placeholderData=="function"?n.placeholderData((R=_(this,Ea))==null?void 0:R.state.data,_(this,Ea)):n.placeholderData,T!==void 0&&(w="success",g=bm(a==null?void 0:a.data,T,n),v=!0)}if(n.select&&g!==void 0&&!y)if(a&&g===(i==null?void 0:i.data)&&n.select===_(this,yl))g=_(this,_a);else try{Y(this,yl,n.select),g=n.select(g),g=bm(a==null?void 0:a.data,g,n),Y(this,_a,g),Y(this,Ns,null)}catch(T){Y(this,Ns,T)}_(this,Ns)&&(j=_(this,Ns),g=_(this,_a),b=Date.now(),w="error");const p=m.fetchStatus==="fetching",x=w==="pending",N=w==="error",S=x&&p,k=g!==void 0,C={status:w,fetchStatus:m.fetchStatus,isPending:x,isSuccess:w==="success",isError:N,isInitialLoading:S,isLoading:S,data:g,dataUpdatedAt:m.dataUpdatedAt,error:j,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&&!x,isLoadingError:N&&!k,isPaused:m.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:N&&k,isStale:_m(t,n),refetch:this.refetch,promise:_(this,Rr),isEnabled:mn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=C.data!==void 0,A=C.status==="error"&&!T,M=re=>{A?re.reject(C.error):T&&re.resolve(C.data)},B=()=>{const re=Y(this,Rr,C.promise=Nm());M(re)},O=_(this,Rr);switch(O.status){case"pending":t.queryHash===s.queryHash&&M(O);break;case"fulfilled":(A||C.data!==O.value)&&B();break;case"rejected":(!A||C.error!==O.reason)&&B();break}}return C}updateResult(){const t=_(this,At),n=this.createResult(_(this,Me),this.options);if(Y(this,yo,_(this,Me).state),Y(this,ka,this.options),_(this,yo).data!==void 0&&Y(this,Ea,_(this,Me)),Ri(n,t))return;Y(this,At,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!_(this,Pa).size)return!0;const i=new Set(a!=null?a:_(this,Pa));return this.options.throwOnError&&i.add("error"),Object.keys(_(this,At)).some(c=>{const d=c;return _(this,At)[d]!==t[d]&&i.has(d)})};be(this,$e,oS).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&be(this,$e,Fp).call(this)}},Bt=new WeakMap,Me=new WeakMap,vl=new WeakMap,At=new WeakMap,yo=new WeakMap,ka=new WeakMap,Rr=new WeakMap,Ns=new WeakMap,yl=new WeakMap,_a=new WeakMap,Ea=new WeakMap,bo=new WeakMap,jo=new WeakMap,Ss=new WeakMap,Pa=new WeakMap,$e=new WeakSet,_l=function(t){be(this,$e,zp).call(this);let n=_(this,Me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ct)),n},Ip=function(){be(this,$e,Lp).call(this);const t=os(this.options.staleTime,_(this,Me));if(Ai.isServer()||_(this,At).isStale||!xm(t))return;const s=py(_(this,At).dataUpdatedAt,t)+1;Y(this,bo,Js.setTimeout(()=>{_(this,At).isStale||this.updateResult()},s))},Mp=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Me)):this.options.refetchInterval)!=null?t:!1},Dp=function(t){be(this,$e,$p).call(this),Y(this,Ss,t),!(Ai.isServer()||mn(this.options.enabled,_(this,Me))===!1||!xm(_(this,Ss))||_(this,Ss)===0)&&Y(this,jo,Js.setInterval(()=>{(this.options.refetchIntervalInBackground||pm.isFocused())&&be(this,$e,_l).call(this)},_(this,Ss)))},Fp=function(){be(this,$e,Ip).call(this),be(this,$e,Dp).call(this,be(this,$e,Mp).call(this))},Lp=function(){_(this,bo)!==void 0&&(Js.clearTimeout(_(this,bo)),Y(this,bo,void 0))},$p=function(){_(this,jo)!==void 0&&(Js.clearInterval(_(this,jo)),Y(this,jo,void 0))},zp=function(){const t=_(this,Bt).getQueryCache().build(_(this,Bt),this.options);if(t===_(this,Me))return;const n=_(this,Me);Y(this,Me,t),Y(this,vl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},oS=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,At))}),_(this,Bt).getQueryCache().notify({query:_(this,Me),type:"observerResultsUpdated"})})},KN);function Kk(e,t){return mn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _y(e,t){return Kk(e,t)||e.state.data!==void 0&&km(e,t,t.refetchOnMount)}function km(e,t,n){if(mn(t.enabled,e)!==!1&&os(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&_m(e,t)}return!1}function Ey(e,t,n,s){return(e!==t||mn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&_m(e,n)}function _m(e,t){return mn(t.enabled,e)!==!1&&e.isStaleByTime(os(t.staleTime,e))}function Qk(e,t){return!Ri(e.getCurrentResult(),t)}function Py(e){return{onFetch:(t,n)=>{var h,m,v,g,j;const s=t.options,o=(v=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:v.direction,a=((g=t.state.data)==null?void 0:g.pages)||[],i=((j=t.state.data)==null?void 0:j.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const u=async()=>{var x;let b=!1;const w=N=>{Uk(N,()=>t.signal,()=>b=!0)},y=by(t.options,t.fetchOptions),p=async(N,S,k)=>{if(b)return Promise.reject();if(S==null&&N.pages.length)return Promise.resolve(N);const C=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return w(M),M})(),R=await y(C),{maxPages:T}=t.options,A=k?zk:$k;return{pages:A(N.pages,R,T),pageParams:A(N.pageParams,S,T)}};if(o&&a.length){const N=o==="backward",S=N?Gk:Ty,k={pages:a,pageParams:i},E=S(s,k);c=await p(k,E,N)}else{const N=e!=null?e:a.length;do{const S=d===0?(x=i[0])!=null?x:s.initialPageParam:Ty(s,c);if(d>0&&S==null)break;c=await p(c,S),d++}while(d<N)}return c};t.options.persister?t.fetchFn=()=>{var b,w;return(w=(b=t.options).persister)==null?void 0:w.call(b,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Ty(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 Xk=(QN=class extends Ny{constructor(t){super();ae(this,ir);ae(this,bl);ae(this,ar);ae(this,kt);ae(this,wo);Y(this,bl,t.client),this.mutationId=t.mutationId,Y(this,kt,t.mutationCache),Y(this,ar,[]),this.state=t.state||Ry(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,ar).includes(t)||(_(this,ar).push(t),this.clearGcTimeout(),_(this,kt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Y(this,ar,_(this,ar).filter(n=>n!==t)),this.scheduleGc(),_(this,kt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,ar).length||(this.state.status==="pending"?this.scheduleGc():_(this,kt).remove(this))}continue(){var t,n;return(n=(t=_(this,wo))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}async execute(t){var i,c,d,u,h,m,v,g,j,b,w,y,p,x,N,S,k,E,C;const n=()=>{be(this,ir,Ms).call(this,{type:"continue"})},s={client:_(this,bl),meta:this.options.meta,mutationKey:this.options.mutationKey};Y(this,wo,wy({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(R,T)=>{be(this,ir,Ms).call(this,{type:"failed",failureCount:R,error:T})},onPause:()=>{be(this,ir,Ms).call(this,{type:"pause"})},onContinue:n,retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,kt).canRun(this)}));const o=this.state.status==="pending",a=!_(this,wo).canStart();try{if(o)n();else{be(this,ir,Ms).call(this,{type:"pending",variables:t,isPaused:a}),_(this,kt).config.onMutate&&await _(this,kt).config.onMutate(t,this,s);const T=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,t,s));T!==this.state.context&&be(this,ir,Ms).call(this,{type:"pending",context:T,variables:t,isPaused:a})}const R=await _(this,wo).start();return await((h=(u=_(this,kt).config).onSuccess)==null?void 0:h.call(u,R,t,this.state.context,this,s)),await((v=(m=this.options).onSuccess)==null?void 0:v.call(m,R,t,this.state.context,s)),await((j=(g=_(this,kt).config).onSettled)==null?void 0:j.call(g,R,null,this.state.variables,this.state.context,this,s)),await((w=(b=this.options).onSettled)==null?void 0:w.call(b,R,null,t,this.state.context,s)),be(this,ir,Ms).call(this,{type:"success",data:R}),R}catch(R){try{await((p=(y=_(this,kt).config).onError)==null?void 0:p.call(y,R,t,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((N=(x=this.options).onError)==null?void 0:N.call(x,R,t,this.state.context,s))}catch(T){Promise.reject(T)}try{await((k=(S=_(this,kt).config).onSettled)==null?void 0:k.call(S,void 0,R,this.state.variables,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((C=(E=this.options).onSettled)==null?void 0:C.call(E,void 0,R,t,this.state.context,s))}catch(T){Promise.reject(T)}throw be(this,ir,Ms).call(this,{type:"error",error:R}),R}finally{_(this,kt).runNext(this)}}},bl=new WeakMap,ar=new WeakMap,kt=new WeakMap,wo=new WeakMap,ir=new WeakSet,Ms=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),st.batch(()=>{_(this,ar).forEach(s=>{s.onMutationUpdate(t)}),_(this,kt).notify({mutation:this,type:"updated",action:t})})},QN);function Ry(){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 Zs{constructor(t={}){super();ae(this,Ar);ae(this,Fn);ae(this,jl);this.config=t,Y(this,Ar,new Set),Y(this,Fn,new Map),Y(this,jl,0)}build(t,n,s){const o=new Xk({client:t,mutationCache:this,mutationId:++eu(this,jl)._,options:t.defaultMutationOptions(n),state:s});return this.add(o),o}add(t){_(this,Ar).add(t);const n=Hc(t);if(typeof n=="string"){const s=_(this,Fn).get(n);s?s.push(t):_(this,Fn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_(this,Ar).delete(t)){const n=Hc(t);if(typeof n=="string"){const s=_(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&&_(this,Fn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Hc(t);if(typeof n=="string"){const s=_(this,Fn).get(n),o=s==null?void 0:s.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){var s,o;const n=Hc(t);if(typeof n=="string"){const a=(s=_(this,Fn).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(o=a==null?void 0:a.continue())!=null?o:Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{_(this,Ar).forEach(t=>{this.notify({type:"removed",mutation:t})}),_(this,Ar).clear(),_(this,Fn).clear()})}getAll(){return Array.from(_(this,Ar))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>gy(n,s))}findAll(t={}){return this.getAll().filter(n=>gy(t,n))}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return st.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ct))))}},Ar=new WeakMap,Fn=new WeakMap,jl=new WeakMap,GN);function Hc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Zk=(XN=class extends Zs{constructor(n,s){super();ae(this,Mr);ae(this,Or);ae(this,Cs);ae(this,Vt);ae(this,Ir);Y(this,Or,n),this.setOptions(s),this.bindMethods(),be(this,Mr,tu).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=_(this,Or).defaultMutationOptions(n),Ri(this.options,s)||_(this,Or).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Vt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&eo(s.mutationKey)!==eo(this.options.mutationKey)?this.reset():((o=_(this,Vt))==null?void 0:o.state.status)==="pending"&&_(this,Vt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_(this,Vt))==null||n.removeObserver(this)}onMutationUpdate(n){be(this,Mr,tu).call(this),be(this,Mr,Up).call(this,n)}getCurrentResult(){return _(this,Cs)}reset(){var n;(n=_(this,Vt))==null||n.removeObserver(this),Y(this,Vt,void 0),be(this,Mr,tu).call(this),be(this,Mr,Up).call(this)}mutate(n,s){var o;return Y(this,Ir,s),(o=_(this,Vt))==null||o.removeObserver(this),Y(this,Vt,_(this,Or).getMutationCache().build(_(this,Or),this.options)),_(this,Vt).addObserver(this),_(this,Vt).execute(n)}},Or=new WeakMap,Cs=new WeakMap,Vt=new WeakMap,Ir=new WeakMap,Mr=new WeakSet,tu=function(){var s,o;const n=(o=(s=_(this,Vt))==null?void 0:s.state)!=null?o:Ry();Y(this,Cs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Up=function(n){st.batch(()=>{var s,o,a,i,c,d,u,h;if(_(this,Ir)&&this.hasListeners()){const m=_(this,Cs).variables,v=_(this,Cs).context,g={client:_(this,Or),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(s=_(this,Ir)).onSuccess)==null||o.call(s,n.data,m,v,g)}catch(j){Promise.reject(j)}try{(i=(a=_(this,Ir)).onSettled)==null||i.call(a,n.data,null,m,v,g)}catch(j){Promise.reject(j)}}else if((n==null?void 0:n.type)==="error"){try{(d=(c=_(this,Ir)).onError)==null||d.call(c,n.error,m,v,g)}catch(j){Promise.reject(j)}try{(h=(u=_(this,Ir)).onSettled)==null||h.call(u,void 0,n.error,m,v,g)}catch(j){Promise.reject(j)}}}this.listeners.forEach(m=>{m(_(this,Cs))})})},XN);function Ay(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 e2=(YN=class extends Zs{constructor(t,n,s){super();ae(this,bt);ae(this,Ta);ae(this,rn);ae(this,Ra);ae(this,Aa);ae(this,bn);ae(this,ks);ae(this,wl);ae(this,Nl);ae(this,Sl);ae(this,Cl,[]);Y(this,Ta,t),Y(this,Aa,s),Y(this,Ra,[]),Y(this,bn,[]),Y(this,rn,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&_(this,bn).forEach(t=>{t.subscribe(n=>{be(this,bt,Wp).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,_(this,bn).forEach(t=>{t.destroy()})}setQueries(t,n){Y(this,Ra,t),Y(this,Aa,n),st.batch(()=>{const s=_(this,bn),o=be(this,bt,Hp).call(this,_(this,Ra));o.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const a=o.map(m=>m.observer),i=a.map(m=>m.getCurrentResult()),c=s.length!==a.length,d=a.some((m,v)=>m!==s[v]),u=c||d,h=u?!0:i.some((m,v)=>{const g=_(this,rn)[v];return!g||!Ri(m,g)});!u&&!h||(u&&(Y(this,Cl,o),Y(this,bn,a)),Y(this,rn,i),this.hasListeners()&&(u&&(Ay(s,a).forEach(m=>{m.destroy()}),Ay(a,s).forEach(m=>{m.subscribe(v=>{be(this,bt,Wp).call(this,m,v)})})),be(this,bt,qp).call(this)))})}getCurrentResult(){return _(this,rn)}getQueries(){return _(this,bn).map(t=>t.getCurrentQuery())}getObservers(){return _(this,bn)}getOptimisticResult(t,n){const s=be(this,bt,Hp).call(this,t),o=s.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions)),a=s.map(i=>i.defaultedQueryOptions.queryHash);return[o,i=>be(this,bt,Vp).call(this,i!=null?i:o,n,a),()=>be(this,bt,Bp).call(this,o,s)]}},Ta=new WeakMap,rn=new WeakMap,Ra=new WeakMap,Aa=new WeakMap,bn=new WeakMap,ks=new WeakMap,wl=new WeakMap,Nl=new WeakMap,Sl=new WeakMap,Cl=new WeakMap,bt=new WeakSet,Bp=function(t,n){return n.map((s,o)=>{const a=t[o];return s.defaultedQueryOptions.notifyOnChangeProps?a:s.observer.trackResult(a,i=>{n.forEach(c=>{c.observer.trackProp(i)})})})},Vp=function(t,n,s){if(n){const o=_(this,Sl),a=s!==void 0&&o!==void 0&&(o.length!==s.length||s.some((i,c)=>i!==o[c]));return(!_(this,ks)||_(this,rn)!==_(this,Nl)||a||n!==_(this,wl))&&(Y(this,wl,n),Y(this,Nl,_(this,rn)),s!==void 0&&Y(this,Sl,s),Y(this,ks,vm(_(this,ks),n(t)))),_(this,ks)}return t},Hp=function(t){const n=new Map;_(this,bn).forEach(o=>{const a=o.options.queryHash;if(!a)return;const i=n.get(a);i?i.push(o):n.set(a,[o])});const s=[];return t.forEach(o=>{var d;const a=_(this,Ta).defaultQueryOptions(o),i=(d=n.get(a.queryHash))==null?void 0:d.shift(),c=i!=null?i:new Cm(_(this,Ta),a);s.push({defaultedQueryOptions:a,observer:c})}),s},Wp=function(t,n){const s=_(this,bn).indexOf(t);s!==-1&&(Y(this,rn,Jk(_(this,rn),s,n)),be(this,bt,qp).call(this))},qp=function(){var t;if(this.hasListeners()){const n=_(this,ks),s=be(this,bt,Bp).call(this,_(this,rn),_(this,Cl)),o=be(this,bt,Vp).call(this,s,(t=_(this,Aa))==null?void 0:t.combine);n!==o&&st.batch(()=>{this.listeners.forEach(a=>{a(_(this,rn))})})}},YN),t2=(ZN=class extends Zs{constructor(t={}){super();ae(this,lr);this.config=t,Y(this,lr,new Map)}build(t,n,s){var c;const o=n.queryKey,a=(c=n.queryHash)!=null?c:gm(o,n);let i=this.get(a);return i||(i=new qk({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){_(this,lr).has(t.queryHash)||(_(this,lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,lr).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,lr).get(t)}getAll(){return[..._(this,lr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>xy(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>xy(t,s)):n}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lr=new WeakMap,ZN),n2=(JN=class{constructor(e={}){ae(this,at);ae(this,_s);ae(this,Es);ae(this,Oa);ae(this,Ia);ae(this,Ps);ae(this,Ma);ae(this,Da);Y(this,at,e.queryCache||new t2),Y(this,_s,e.mutationCache||new Yk),Y(this,Es,e.defaultOptions||{}),Y(this,Oa,new Map),Y(this,Ia,new Map),Y(this,Ps,0)}mount(){eu(this,Ps)._++,_(this,Ps)===1&&(Y(this,Ma,pm.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,at).onFocus())})),Y(this,Da,Vc.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,at).onOnline())})))}unmount(){var e,t;eu(this,Ps)._--,_(this,Ps)===0&&((e=_(this,Ma))==null||e.call(this),Y(this,Ma,void 0),(t=_(this,Da))==null||t.call(this),Y(this,Da,void 0))}isFetching(e){return _(this,at).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,_s).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,at).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_(this,at).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(os(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return _(this,at).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=_(this,at).get(s.queryHash),a=o==null?void 0:o.state.data,i=Dk(t,a);if(i!==void 0)return _(this,at).build(this,s).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return st.batch(()=>_(this,at).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,at).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,at);st.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,at);return st.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=st.batch(()=>_(this,at).findAll(e).map(o=>o.cancel(n)));return Promise.all(s).then(Ct).catch(Ct)}invalidateQueries(e,t={}){return st.batch(()=>{var n,s;return _(this,at).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=st.batch(()=>_(this,at).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ct)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Ct)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,at).build(this,t);return n.isStaleByTime(os(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=Py(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e.behavior=Py(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vc.isOnline()?_(this,_s).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,at)}getMutationCache(){return _(this,_s)}getDefaultOptions(){return _(this,Es)}setDefaultOptions(e){Y(this,Es,e)}setQueryDefaults(e,t){_(this,Oa).set(eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,Oa).values()],n={};return t.forEach(s=>{Ti(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){_(this,Ia).set(eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,Ia).values()],n={};return t.forEach(s=>{Ti(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,Es).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gm(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===jm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,Es).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,at).clear(),_(this,_s).clear()}},at=new WeakMap,_s=new WeakMap,Es=new WeakMap,Oa=new WeakMap,Ia=new WeakMap,Ps=new WeakMap,Ma=new WeakMap,Da=new WeakMap,JN),Oy=f.createContext(void 0),Xe=e=>{const t=f.useContext(Oy);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},r2=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(Oy.Provider,{value:e,children:t})),Iy=f.createContext(!1),My=()=>f.useContext(Iy);Iy.Provider;function s2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var o2=f.createContext(s2()),Dy=()=>f.useContext(o2),Fy=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?wm(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},Ly=e=>{f.useEffect(()=>{e.clearReset()},[e])},$y=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||wm(n,[e.error,s])),zy=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))}},a2=(e,t)=>e.isLoading&&e.isFetching&&!t,Em=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Pm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function i2({queries:e,...t},n){const s=Xe(),o=My(),a=Dy(),i=f.useMemo(()=>e.map(b=>{const w=s.defaultQueryOptions(b);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,s,o]);i.forEach(b=>{zy(b);const w=s.getQueryCache().get(b.queryHash);Fy(b,a,w)}),Ly(a);const[c]=f.useState(()=>new e2(s,i,t)),[d,u,h]=c.getOptimisticResult(i,t.combine),m=!o&&t.subscribed!==!1;f.useSyncExternalStore(f.useCallback(b=>m?c.subscribe(st.batchCalls(b)):Ct,[c,m]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setQueries(i,t)},[i,t,c]);const g=d.some((b,w)=>Em(i[w],b))?d.flatMap((b,w)=>{const y=i[w];if(y&&Em(y,b)){const p=new Cm(s,y);return Pm(y,p,a)}return[]}):[];if(g.length>0)throw Promise.all(g);const j=d.find((b,w)=>{const y=i[w];return y&&$y({result:b,errorResetBoundary:a,throwOnError:y.throwOnError,query:s.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(j!=null&&j.error)throw j.error;return u(h())}function l2(e,t,n){var v,g,j,b;const s=My(),o=Dy(),a=Xe(),i=a.defaultQueryOptions(e);(g=(v=a.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||g.call(v,i);const c=a.getQueryCache().get(i.queryHash);i._optimisticResults=s?"isRestoring":"optimistic",zy(i),Fy(i,o,c),Ly(o);const d=!a.getQueryCache().get(i.queryHash),[u]=f.useState(()=>new t(a,i)),h=u.getOptimisticResult(i),m=!s&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(w=>{const y=m?u.subscribe(st.batchCalls(w)):Ct;return u.updateResult(),y},[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f.useEffect(()=>{u.setOptions(i)},[i,u]),Em(i,h))throw Pm(i,u,o);if($y({result:h,errorResetBoundary:o,throwOnError:i.throwOnError,query:c,suspense:i.suspense}))throw h.error;if((b=(j=a.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||b.call(j,i,h),i.experimental_prefetchInRender&&!Ai.isServer()&&a2(h,s)){const w=d?Pm(i,u,o):c==null?void 0:c.promise;w==null||w.catch(Ct).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?h:u.trackResult(h)}function Ce(e,t){return l2(e,Cm)}function Te(e,t){const n=Xe(),[s]=f.useState(()=>new Zk(n,e));f.useEffect(()=>{s.setOptions(e)},[s,e]);const o=f.useSyncExternalStore(f.useCallback(i=>s.subscribe(st.batchCalls(i)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=f.useCallback((i,c)=>{s.mutate(i,c).catch(Ct)},[s]);if(o.error&&wm(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}/** | |
| 35 | + */var $C=f,rn=LC;function X(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 qx=new Set,Qi={};function Bs(e,t){Ta(e,t),Ta(e+"Capture",t)}function Ta(e,t){for(Qi[e]=t,e=0;e<t.length;e++)qx.add(t[e])}var gr=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Lu=Object.prototype.hasOwnProperty,zC=/^[: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]*$/,Hx={},Wx={};function UC(e){return Lu.call(Wx,e)?!0:Lu.call(Hx,e)?!1:zC.test(e)?Wx[e]=!0:(Hx[e]=!0,!1)}function BC(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 VC(e,t,n,s){if(t===null||typeof t=="undefined"||BC(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 Ft(e,t,n,s,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nt[e]=new Ft(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nt[t]=new Ft(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nt[e]=new Ft(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nt[e]=new Ft(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){Nt[e]=new Ft(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Nt[e]=new Ft(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Nt[e]=new Ft(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Nt[e]=new Ft(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Nt[e]=new Ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var $u=/[\-:]([a-z])/g;function zu(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($u,zu);Nt[t]=new Ft(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($u,zu);Nt[t]=new Ft(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($u,zu);Nt[t]=new Ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Nt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!1,!1)}),Nt.xlinkHref=new Ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Nt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Uu(e,t,n,s){var a=Nt.hasOwnProperty(t)?Nt[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(VC(t,n,a,s)&&(n=null),s||a===null?UC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,s=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var vr=$C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hl=Symbol.for("react.element"),Ra=Symbol.for("react.portal"),Aa=Symbol.for("react.fragment"),Bu=Symbol.for("react.strict_mode"),Vu=Symbol.for("react.profiler"),Kx=Symbol.for("react.provider"),Qx=Symbol.for("react.context"),qu=Symbol.for("react.forward_ref"),Hu=Symbol.for("react.suspense"),Wu=Symbol.for("react.suspense_list"),Ku=Symbol.for("react.memo"),Hr=Symbol.for("react.lazy"),Gx=Symbol.for("react.offscreen"),Yx=Symbol.iterator;function Gi(e){return e===null||typeof e!="object"?null:(e=Yx&&e[Yx]||e["@@iterator"],typeof e=="function"?e:null)}var st=Object.assign,Qu;function Yi(e){if(Qu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qu=t&&t[1]||""}return` | |
| 36 | +`+Qu+e}var Gu=!1;function Yu(e,t){if(!e||Gu)return"";Gu=!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 a=u.stack.split(` | |
| 37 | +`),i=s.stack.split(` | |
| 38 | +`),o=a.length-1,c=i.length-1;1<=o&&0<=c&&a[o]!==i[c];)c--;for(;1<=o&&0<=c;o--,c--)if(a[o]!==i[c]){if(o!==1||c!==1)do if(o--,c--,0>c||a[o]!==i[c]){var d=` | |
| 39 | +`+a[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=o&&0<=c);break}}}finally{Gu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yi(e):""}function qC(e){switch(e.tag){case 5:return Yi(e.type);case 16:return Yi("Lazy");case 13:return Yi("Suspense");case 19:return Yi("SuspenseList");case 0:case 2:case 15:return e=Yu(e.type,!1),e;case 11:return e=Yu(e.type.render,!1),e;case 1:return e=Yu(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 Aa:return"Fragment";case Ra:return"Portal";case Vu:return"Profiler";case Bu:return"StrictMode";case Hu:return"Suspense";case Wu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qx:return(e.displayName||"Context")+".Consumer";case Kx:return(e._context.displayName||"Context")+".Provider";case qu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ku:return t=e.displayName||null,t!==null?t:Xu(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return Xu(e(t))}catch(n){}}return null}function HC(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===Bu?"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 Wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function WC(e){var t=Xx(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 a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){s=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(o){s=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wl(e){e._valueTracker||(e._valueTracker=WC(e))}function Zx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Xx(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Kl(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 Zu(e,t){var n=t.checked;return st({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Jx(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Wr(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 eg(e,t){t=t.checked,t!=null&&Uu(e,"checked",t,!1)}function Ju(e,t){eg(e,t);var n=Wr(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")?ef(e,t.type,n):t.hasOwnProperty("defaultValue")&&ef(e,t.type,Wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tg(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 ef(e,t,n){(t!=="number"||Kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xi=Array.isArray;function Oa(e,t,n,s){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Wr(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function tf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(X(91));return st({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ng(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(X(92));if(Xi(n)){if(1<n.length)throw Error(X(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wr(n)}}function rg(e,t){var n=Wr(t.value),s=Wr(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 sg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ag(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 nf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ag(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ql,ig=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ql=Ql||document.createElement("div"),Ql.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ql.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ji={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},KC=["Webkit","ms","Moz","O"];Object.keys(Ji).forEach(function(e){KC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ji[t]=Ji[e]})});function og(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ji.hasOwnProperty(e)&&Ji[e]?(""+t).trim():t+"px"}function lg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=og(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var QC=st({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 rf(e,t){if(t){if(QC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function sf(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 af=null;function of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lf=null,Ia=null,Ma=null;function cg(e){if(e=wo(e)){if(typeof lf!="function")throw Error(X(280));var t=e.stateNode;t&&(t=gc(t),lf(e.stateNode,e.type,t))}}function dg(e){Ia?Ma?Ma.push(e):Ma=[e]:Ia=e}function ug(){if(Ia){var e=Ia,t=Ma;if(Ma=Ia=null,cg(e),t)for(e=0;e<t.length;e++)cg(t[e])}}function fg(e,t){return e(t)}function mg(){}var cf=!1;function hg(e,t,n){if(cf)return e(t,n);cf=!0;try{return fg(e,t,n)}finally{cf=!1,(Ia!==null||Ma!==null)&&(mg(),ug())}}function eo(e,t){var n=e.stateNode;if(n===null)return null;var s=gc(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(X(231,t,typeof n));return n}var df=!1;if(gr)try{var to={};Object.defineProperty(to,"passive",{get:function(){df=!0}}),window.addEventListener("test",to,to),window.removeEventListener("test",to,to)}catch(e){df=!1}function GC(e,t,n,s,a,i,o,c,d){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var no=!1,Gl=null,Yl=!1,uf=null,YC={onError:function(e){no=!0,Gl=e}};function XC(e,t,n,s,a,i,o,c,d){no=!1,Gl=null,GC.apply(YC,arguments)}function ZC(e,t,n,s,a,i,o,c,d){if(XC.apply(this,arguments),no){if(no){var u=Gl;no=!1,Gl=null}else throw Error(X(198));Yl||(Yl=!0,uf=u)}}function Vs(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 pg(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 xg(e){if(Vs(e)!==e)throw Error(X(188))}function JC(e){var t=e.alternate;if(!t){if(t=Vs(e),t===null)throw Error(X(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return xg(a),e;if(i===s)return xg(a),t;i=i.sibling}throw Error(X(188))}if(n.return!==s.return)n=a,s=i;else{for(var o=!1,c=a.child;c;){if(c===n){o=!0,n=a,s=i;break}if(c===s){o=!0,s=a,n=i;break}c=c.sibling}if(!o){for(c=i.child;c;){if(c===n){o=!0,n=i,s=a;break}if(c===s){o=!0,s=i,n=a;break}c=c.sibling}if(!o)throw Error(X(189))}}if(n.alternate!==s)throw Error(X(190))}if(n.tag!==3)throw Error(X(188));return n.stateNode.current===n?e:t}function gg(e){return e=JC(e),e!==null?vg(e):null}function vg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vg(e);if(t!==null)return t;e=e.sibling}return null}var yg=rn.unstable_scheduleCallback,bg=rn.unstable_cancelCallback,ek=rn.unstable_shouldYield,tk=rn.unstable_requestPaint,ft=rn.unstable_now,nk=rn.unstable_getCurrentPriorityLevel,ff=rn.unstable_ImmediatePriority,jg=rn.unstable_UserBlockingPriority,Xl=rn.unstable_NormalPriority,rk=rn.unstable_LowPriority,wg=rn.unstable_IdlePriority,Zl=null,Zn=null;function sk(e){if(Zn&&typeof Zn.onCommitFiberRoot=="function")try{Zn.onCommitFiberRoot(Zl,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Tn=Math.clz32?Math.clz32:ok,ak=Math.log,ik=Math.LN2;function ok(e){return e>>>=0,e===0?32:31-(ak(e)/ik|0)|0}var Jl=64,ec=4194304;function ro(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 tc(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var c=o&~a;c!==0?s=ro(c):(i&=o,i!==0&&(s=ro(i)))}else o=n&~a,o!==0?s=ro(o):i!==0&&(s=ro(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&a)&&(a=s&-s,i=t&-t,a>=i||a===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-Tn(t),a=1<<n,s|=e[n],t&=~a;return s}function lk(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 ck(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Tn(i),c=1<<o,d=a[o];d===-1?(!(c&n)||c&s)&&(a[o]=lk(c,t)):d<=t&&(e.expiredLanes|=c),i&=~c}}function mf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ng(){var e=Jl;return Jl<<=1,!(Jl&4194240)&&(Jl=64),e}function hf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function so(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tn(t),e[t]=n}function dk(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 a=31-Tn(n),i=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~i}}function pf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Tn(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var Ke=0;function Sg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Cg,xf,kg,_g,Eg,gf=!1,nc=[],Kr=null,Qr=null,Gr=null,ao=new Map,io=new Map,Yr=[],uk="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 Pg(e,t){switch(e){case"focusin":case"focusout":Kr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":ao.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":io.delete(t.pointerId)}}function oo(e,t,n,s,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[a]},t!==null&&(t=wo(t),t!==null&&xf(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function fk(e,t,n,s,a){switch(t){case"focusin":return Kr=oo(Kr,e,t,n,s,a),!0;case"dragenter":return Qr=oo(Qr,e,t,n,s,a),!0;case"mouseover":return Gr=oo(Gr,e,t,n,s,a),!0;case"pointerover":var i=a.pointerId;return ao.set(i,oo(ao.get(i)||null,e,t,n,s,a)),!0;case"gotpointercapture":return i=a.pointerId,io.set(i,oo(io.get(i)||null,e,t,n,s,a)),!0}return!1}function Tg(e){var t=qs(e.target);if(t!==null){var n=Vs(t);if(n!==null){if(t=n.tag,t===13){if(t=pg(n),t!==null){e.blockedOn=t,Eg(e.priority,function(){kg(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 rc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);af=s,n.target.dispatchEvent(s),af=null}else return t=wo(n),t!==null&&xf(t),e.blockedOn=n,!1;t.shift()}return!0}function Rg(e,t,n){rc(e)&&n.delete(t)}function mk(){gf=!1,Kr!==null&&rc(Kr)&&(Kr=null),Qr!==null&&rc(Qr)&&(Qr=null),Gr!==null&&rc(Gr)&&(Gr=null),ao.forEach(Rg),io.forEach(Rg)}function lo(e,t){e.blockedOn===t&&(e.blockedOn=null,gf||(gf=!0,rn.unstable_scheduleCallback(rn.unstable_NormalPriority,mk)))}function co(e){function t(a){return lo(a,e)}if(0<nc.length){lo(nc[0],e);for(var n=1;n<nc.length;n++){var s=nc[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Kr!==null&&lo(Kr,e),Qr!==null&&lo(Qr,e),Gr!==null&&lo(Gr,e),ao.forEach(t),io.forEach(t),n=0;n<Yr.length;n++)s=Yr[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Yr.length&&(n=Yr[0],n.blockedOn===null);)Tg(n),n.blockedOn===null&&Yr.shift()}var Da=vr.ReactCurrentBatchConfig,sc=!0;function hk(e,t,n,s){var a=Ke,i=Da.transition;Da.transition=null;try{Ke=1,vf(e,t,n,s)}finally{Ke=a,Da.transition=i}}function pk(e,t,n,s){var a=Ke,i=Da.transition;Da.transition=null;try{Ke=4,vf(e,t,n,s)}finally{Ke=a,Da.transition=i}}function vf(e,t,n,s){if(sc){var a=yf(e,t,n,s);if(a===null)Df(e,t,s,ac,n),Pg(e,s);else if(fk(a,e,t,n,s))s.stopPropagation();else if(Pg(e,s),t&4&&-1<uk.indexOf(e)){for(;a!==null;){var i=wo(a);if(i!==null&&Cg(i),i=yf(e,t,n,s),i===null&&Df(e,t,s,ac,n),i===a)break;a=i}a!==null&&s.stopPropagation()}else Df(e,t,s,null,n)}}var ac=null;function yf(e,t,n,s){if(ac=null,e=of(s),e=qs(e),e!==null)if(t=Vs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pg(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 ac=e,null}function Ag(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(nk()){case ff:return 1;case jg:return 4;case Xl:case rk:return 16;case wg:return 536870912;default:return 16}default:return 16}}var Xr=null,bf=null,ic=null;function Og(){if(ic)return ic;var e,t=bf,n=t.length,s,a="value"in Xr?Xr.value:Xr.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(s=1;s<=o&&t[n-s]===a[i-s];s++);return ic=a.slice(e,1<s?1-s:void 0)}function oc(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 lc(){return!0}function Ig(){return!1}function sn(e){function t(n,s,a,i,o){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?lc:Ig,this.isPropagationStopped=Ig,this}return st(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=lc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lc)},persist:function(){},isPersistent:lc}),t}var Fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jf=sn(Fa),uo=st({},Fa,{view:0,detail:0}),xk=sn(uo),wf,Nf,fo,cc=st({},uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cf,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!==fo&&(fo&&e.type==="mousemove"?(wf=e.screenX-fo.screenX,Nf=e.screenY-fo.screenY):Nf=wf=0,fo=e),wf)},movementY:function(e){return"movementY"in e?e.movementY:Nf}}),Mg=sn(cc),gk=st({},cc,{dataTransfer:0}),vk=sn(gk),yk=st({},uo,{relatedTarget:0}),Sf=sn(yk),bk=st({},Fa,{animationName:0,elapsedTime:0,pseudoElement:0}),jk=sn(bk),wk=st({},Fa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Nk=sn(wk),Sk=st({},Fa,{data:0}),Dg=sn(Sk),Ck={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kk={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"},_k={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ek(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_k[e])?!!t[e]:!1}function Cf(){return Ek}var Pk=st({},uo,{key:function(e){if(e.key){var t=Ck[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cf,charCode:function(e){return e.type==="keypress"?oc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tk=sn(Pk),Rk=st({},cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fg=sn(Rk),Ak=st({},uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cf}),Ok=sn(Ak),Ik=st({},Fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mk=sn(Ik),Dk=st({},cc,{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}),Fk=sn(Dk),Lk=[9,13,27,32],kf=gr&&"CompositionEvent"in window,mo=null;gr&&"documentMode"in document&&(mo=document.documentMode);var $k=gr&&"TextEvent"in window&&!mo,Lg=gr&&(!kf||mo&&8<mo&&11>=mo),$g=" ",zg=!1;function Ug(e,t){switch(e){case"keyup":return Lk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var La=!1;function zk(e,t){switch(e){case"compositionend":return Bg(t);case"keypress":return t.which!==32?null:(zg=!0,$g);case"textInput":return e=t.data,e===$g&&zg?null:e;default:return null}}function Uk(e,t){if(La)return e==="compositionend"||!kf&&Ug(e,t)?(e=Og(),ic=bf=Xr=null,La=!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 Lg&&t.locale!=="ko"?null:t.data;default:return null}}var Bk={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 Vg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bk[e.type]:t==="textarea"}function qg(e,t,n,s){dg(s),t=hc(t,"onChange"),0<t.length&&(n=new jf("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ho=null,po=null;function Vk(e){lv(e,0)}function dc(e){var t=Va(e);if(Zx(t))return e}function qk(e,t){if(e==="change")return t}var Hg=!1;if(gr){var _f;if(gr){var Ef="oninput"in document;if(!Ef){var Wg=document.createElement("div");Wg.setAttribute("oninput","return;"),Ef=typeof Wg.oninput=="function"}_f=Ef}else _f=!1;Hg=_f&&(!document.documentMode||9<document.documentMode)}function Kg(){ho&&(ho.detachEvent("onpropertychange",Qg),po=ho=null)}function Qg(e){if(e.propertyName==="value"&&dc(po)){var t=[];qg(t,po,e,of(e)),hg(Vk,t)}}function Hk(e,t,n){e==="focusin"?(Kg(),ho=t,po=n,ho.attachEvent("onpropertychange",Qg)):e==="focusout"&&Kg()}function Wk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dc(po)}function Kk(e,t){if(e==="click")return dc(t)}function Qk(e,t){if(e==="input"||e==="change")return dc(t)}function Gk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rn=typeof Object.is=="function"?Object.is:Gk;function xo(e,t){if(Rn(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 a=n[s];if(!Lu.call(t,a)||!Rn(e[a],t[a]))return!1}return!0}function Gg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yg(e,t){var n=Gg(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=Gg(n)}}function Xg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zg(){for(var e=window,t=Kl();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=Kl(e.document)}return t}function Pf(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 Yk(e){var t=Zg(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xg(n.ownerDocument.documentElement,n)){if(s!==null&&Pf(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 a=n.textContent.length,i=Math.min(s.start,a);s=s.end===void 0?i:Math.min(s.end,a),!e.extend&&i>s&&(a=s,s=i,i=a),a=Yg(n,i);var o=Yg(n,s);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Xk=gr&&"documentMode"in document&&11>=document.documentMode,$a=null,Tf=null,go=null,Rf=!1;function Jg(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rf||$a==null||$a!==Kl(s)||(s=$a,"selectionStart"in s&&Pf(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}),go&&xo(go,s)||(go=s,s=hc(Tf,"onSelect"),0<s.length&&(t=new jf("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=$a)))}function uc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var za={animationend:uc("Animation","AnimationEnd"),animationiteration:uc("Animation","AnimationIteration"),animationstart:uc("Animation","AnimationStart"),transitionend:uc("Transition","TransitionEnd")},Af={},ev={};gr&&(ev=document.createElement("div").style,"AnimationEvent"in window||(delete za.animationend.animation,delete za.animationiteration.animation,delete za.animationstart.animation),"TransitionEvent"in window||delete za.transitionend.transition);function fc(e){if(Af[e])return Af[e];if(!za[e])return e;var t=za[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ev)return Af[e]=t[n];return e}var tv=fc("animationend"),nv=fc("animationiteration"),rv=fc("animationstart"),sv=fc("transitionend"),av=new Map,iv="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 Zr(e,t){av.set(e,t),Bs(t,[e])}for(var Of=0;Of<iv.length;Of++){var If=iv[Of],Zk=If.toLowerCase(),Jk=If[0].toUpperCase()+If.slice(1);Zr(Zk,"on"+Jk)}Zr(tv,"onAnimationEnd"),Zr(nv,"onAnimationIteration"),Zr(rv,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(sv,"onTransitionEnd"),Ta("onMouseEnter",["mouseout","mouseover"]),Ta("onMouseLeave",["mouseout","mouseover"]),Ta("onPointerEnter",["pointerout","pointerover"]),Ta("onPointerLeave",["pointerout","pointerover"]),Bs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),e2=new Set("cancel close invalid load scroll toggle".split(" ").concat(vo));function ov(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,ZC(s,t,void 0,e),e.currentTarget=null}function lv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var o=s.length-1;0<=o;o--){var c=s[o],d=c.instance,u=c.currentTarget;if(c=c.listener,d!==i&&a.isPropagationStopped())break e;ov(a,c,u),i=d}else for(o=0;o<s.length;o++){if(c=s[o],d=c.instance,u=c.currentTarget,c=c.listener,d!==i&&a.isPropagationStopped())break e;ov(a,c,u),i=d}}}if(Yl)throw e=uf,Yl=!1,uf=null,e}function et(e,t){var n=t[Bf];n===void 0&&(n=t[Bf]=new Set);var s=e+"__bubble";n.has(s)||(cv(t,e,2,!1),n.add(s))}function Mf(e,t,n){var s=0;t&&(s|=4),cv(n,e,s,t)}var mc="_reactListening"+Math.random().toString(36).slice(2);function yo(e){if(!e[mc]){e[mc]=!0,qx.forEach(function(n){n!=="selectionchange"&&(e2.has(n)||Mf(n,!1,e),Mf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mc]||(t[mc]=!0,Mf("selectionchange",!1,t))}}function cv(e,t,n,s){switch(Ag(t)){case 1:var a=hk;break;case 4:a=pk;break;default:a=vf}n=a.bind(null,t,n,e),a=void 0,!df||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Df(e,t,n,s,a){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var o=s.tag;if(o===3||o===4){var c=s.stateNode.containerInfo;if(c===a||c.nodeType===8&&c.parentNode===a)break;if(o===4)for(o=s.return;o!==null;){var d=o.tag;if((d===3||d===4)&&(d=o.stateNode.containerInfo,d===a||d.nodeType===8&&d.parentNode===a))return;o=o.return}for(;c!==null;){if(o=qs(c),o===null)return;if(d=o.tag,d===5||d===6){s=i=o;continue e}c=c.parentNode}}s=s.return}hg(function(){var u=i,h=of(n),m=[];e:{var y=av.get(e);if(y!==void 0){var v=jf,w=e;switch(e){case"keypress":if(oc(n)===0)break e;case"keydown":case"keyup":v=Tk;break;case"focusin":w="focus",v=Sf;break;case"focusout":w="blur",v=Sf;break;case"beforeblur":case"afterblur":v=Sf;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":v=Mg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=vk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Ok;break;case tv:case nv:case rv:v=jk;break;case sv:v=Mk;break;case"scroll":v=xk;break;case"wheel":v=Fk;break;case"copy":case"cut":case"paste":v=Nk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Fg}var g=(t&4)!==0,j=!g&&e==="scroll",b=g?y!==null?y+"Capture":null:y;g=[];for(var p=u,x;p!==null;){x=p;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,b!==null&&(N=eo(p,b),N!=null&&g.push(bo(p,N,x)))),j)break;p=p.return}0<g.length&&(y=new v(y,w,null,n,h),m.push({event:y,listeners:g}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",y&&n!==af&&(w=n.relatedTarget||n.fromElement)&&(qs(w)||w[yr]))break e;if((v||y)&&(y=h.window===h?h:(y=h.ownerDocument)?y.defaultView||y.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=u,w=w?qs(w):null,w!==null&&(j=Vs(w),w!==j||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=u),v!==w)){if(g=Mg,N="onMouseLeave",b="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=Fg,N="onPointerLeave",b="onPointerEnter",p="pointer"),j=v==null?y:Va(v),x=w==null?y:Va(w),y=new g(N,p+"leave",v,n,h),y.target=j,y.relatedTarget=x,N=null,qs(h)===u&&(g=new g(b,p+"enter",w,n,h),g.target=x,g.relatedTarget=j,N=g),j=N,v&&w)t:{for(g=v,b=w,p=0,x=g;x;x=Ua(x))p++;for(x=0,N=b;N;N=Ua(N))x++;for(;0<p-x;)g=Ua(g),p--;for(;0<x-p;)b=Ua(b),x--;for(;p--;){if(g===b||b!==null&&g===b.alternate)break t;g=Ua(g),b=Ua(b)}g=null}else g=null;v!==null&&dv(m,y,v,g,!1),w!==null&&j!==null&&dv(m,j,w,g,!0)}}e:{if(y=u?Va(u):window,v=y.nodeName&&y.nodeName.toLowerCase(),v==="select"||v==="input"&&y.type==="file")var S=qk;else if(Vg(y))if(Hg)S=Qk;else{S=Wk;var k=Hk}else(v=y.nodeName)&&v.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(S=Kk);if(S&&(S=S(e,u))){qg(m,S,n,h);break e}k&&k(e,y,u),e==="focusout"&&(k=y._wrapperState)&&k.controlled&&y.type==="number"&&ef(y,"number",y.value)}switch(k=u?Va(u):window,e){case"focusin":(Vg(k)||k.contentEditable==="true")&&($a=k,Tf=u,go=null);break;case"focusout":go=Tf=$a=null;break;case"mousedown":Rf=!0;break;case"contextmenu":case"mouseup":case"dragend":Rf=!1,Jg(m,n,h);break;case"selectionchange":if(Xk)break;case"keydown":case"keyup":Jg(m,n,h)}var _;if(kf)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else La?Ug(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Lg&&n.locale!=="ko"&&(La||C!=="onCompositionStart"?C==="onCompositionEnd"&&La&&(_=Og()):(Xr=h,bf="value"in Xr?Xr.value:Xr.textContent,La=!0)),k=hc(u,C),0<k.length&&(C=new Dg(C,e,null,n,h),m.push({event:C,listeners:k}),_?C.data=_:(_=Bg(n),_!==null&&(C.data=_)))),(_=$k?zk(e,n):Uk(e,n))&&(u=hc(u,"onBeforeInput"),0<u.length&&(h=new Dg("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:u}),h.data=_))}lv(m,t)})}function bo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hc(e,t){for(var n=t+"Capture",s=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=eo(e,n),i!=null&&s.unshift(bo(e,i,a)),i=eo(e,t),i!=null&&s.push(bo(e,i,a))),e=e.return}return s}function Ua(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function dv(e,t,n,s,a){for(var i=t._reactName,o=[];n!==null&&n!==s;){var c=n,d=c.alternate,u=c.stateNode;if(d!==null&&d===s)break;c.tag===5&&u!==null&&(c=u,a?(d=eo(n,i),d!=null&&o.unshift(bo(n,d,c))):a||(d=eo(n,i),d!=null&&o.push(bo(n,d,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var t2=/\r\n?/g,n2=/\u0000|\uFFFD/g;function uv(e){return(typeof e=="string"?e:""+e).replace(t2,` | |
| 40 | +`).replace(n2,"")}function pc(e,t,n){if(t=uv(t),uv(e)!==t&&n)throw Error(X(425))}function xc(){}var Ff=null,Lf=null;function $f(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 zf=typeof setTimeout=="function"?setTimeout:void 0,r2=typeof clearTimeout=="function"?clearTimeout:void 0,fv=typeof Promise=="function"?Promise:void 0,s2=typeof queueMicrotask=="function"?queueMicrotask:typeof fv!="undefined"?function(e){return fv.resolve(null).then(e).catch(a2)}:zf;function a2(e){setTimeout(function(){throw e})}function Uf(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),co(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);co(t)}function Jr(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 mv(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 Ba=Math.random().toString(36).slice(2),Jn="__reactFiber$"+Ba,jo="__reactProps$"+Ba,yr="__reactContainer$"+Ba,Bf="__reactEvents$"+Ba,i2="__reactListeners$"+Ba,o2="__reactHandles$"+Ba;function qs(e){var t=e[Jn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yr]||n[Jn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mv(e);e!==null;){if(n=e[Jn])return n;e=mv(e)}return t}e=n,n=e.parentNode}return null}function wo(e){return e=e[Jn]||e[yr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Va(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(X(33))}function gc(e){return e[jo]||null}var Vf=[],qa=-1;function es(e){return{current:e}}function tt(e){0>qa||(e.current=Vf[qa],Vf[qa]=null,qa--)}function Xe(e,t){qa++,Vf[qa]=e.current,e.current=t}var ts={},Tt=es(ts),Ht=es(!1),Hs=ts;function Ha(e,t){var n=e.type.contextTypes;if(!n)return ts;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Wt(e){return e=e.childContextTypes,e!=null}function vc(){tt(Ht),tt(Tt)}function hv(e,t,n){if(Tt.current!==ts)throw Error(X(168));Xe(Tt,t),Xe(Ht,n)}function pv(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(X(108,HC(e)||"Unknown",a));return st({},n,s)}function yc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ts,Hs=Tt.current,Xe(Tt,e),Xe(Ht,Ht.current),!0}function xv(e,t,n){var s=e.stateNode;if(!s)throw Error(X(169));n?(e=pv(e,t,Hs),s.__reactInternalMemoizedMergedChildContext=e,tt(Ht),tt(Tt),Xe(Tt,e)):tt(Ht),Xe(Ht,n)}var br=null,bc=!1,qf=!1;function gv(e){br===null?br=[e]:br.push(e)}function l2(e){bc=!0,gv(e)}function ns(){if(!qf&&br!==null){qf=!0;var e=0,t=Ke;try{var n=br;for(Ke=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}br=null,bc=!1}catch(a){throw br!==null&&(br=br.slice(e+1)),yg(ff,ns),a}finally{Ke=t,qf=!1}}return null}var Wa=[],Ka=0,jc=null,wc=0,gn=[],vn=0,Ws=null,jr=1,wr="";function Ks(e,t){Wa[Ka++]=wc,Wa[Ka++]=jc,jc=e,wc=t}function vv(e,t,n){gn[vn++]=jr,gn[vn++]=wr,gn[vn++]=Ws,Ws=e;var s=jr;e=wr;var a=32-Tn(s)-1;s&=~(1<<a),n+=1;var i=32-Tn(t)+a;if(30<i){var o=a-a%5;i=(s&(1<<o)-1).toString(32),s>>=o,a-=o,jr=1<<32-Tn(t)+a|n<<a|s,wr=i+e}else jr=1<<i|n<<a|s,wr=e}function Hf(e){e.return!==null&&(Ks(e,1),vv(e,1,0))}function Wf(e){for(;e===jc;)jc=Wa[--Ka],Wa[Ka]=null,wc=Wa[--Ka],Wa[Ka]=null;for(;e===Ws;)Ws=gn[--vn],gn[vn]=null,wr=gn[--vn],gn[vn]=null,jr=gn[--vn],gn[vn]=null}var an=null,on=null,rt=!1,An=null;function yv(e,t){var n=wn(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 bv(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,an=e,on=Jr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,an=e,on=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ws!==null?{id:jr,overflow:wr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=wn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,an=e,on=null,!0):!1;default:return!1}}function Kf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qf(e){if(rt){var t=on;if(t){var n=t;if(!bv(e,t)){if(Kf(e))throw Error(X(418));t=Jr(n.nextSibling);var s=an;t&&bv(e,t)?yv(s,n):(e.flags=e.flags&-4097|2,rt=!1,an=e)}}else{if(Kf(e))throw Error(X(418));e.flags=e.flags&-4097|2,rt=!1,an=e}}}function jv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;an=e}function Nc(e){if(e!==an)return!1;if(!rt)return jv(e),rt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$f(e.type,e.memoizedProps)),t&&(t=on)){if(Kf(e))throw wv(),Error(X(418));for(;t;)yv(e,t),t=Jr(t.nextSibling)}if(jv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(X(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){on=Jr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}on=null}}else on=an?Jr(e.stateNode.nextSibling):null;return!0}function wv(){for(var e=on;e;)e=Jr(e.nextSibling)}function Qa(){on=an=null,rt=!1}function Gf(e){An===null?An=[e]:An.push(e)}var c2=vr.ReactCurrentBatchConfig;function No(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(X(309));var s=n.stateNode}if(!s)throw Error(X(147,e));var a=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var c=a.refs;o===null?delete c[i]:c[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(X(284));if(!n._owner)throw Error(X(290,e))}return e}function Sc(e,t){throw e=Object.prototype.toString.call(t),Error(X(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nv(e){var t=e._init;return t(e._payload)}function Sv(e){function t(b,p){if(e){var x=b.deletions;x===null?(b.deletions=[p],b.flags|=16):x.push(p)}}function n(b,p){if(!e)return null;for(;p!==null;)t(b,p),p=p.sibling;return null}function s(b,p){for(b=new Map;p!==null;)p.key!==null?b.set(p.key,p):b.set(p.index,p),p=p.sibling;return b}function a(b,p){return b=ds(b,p),b.index=0,b.sibling=null,b}function i(b,p,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<p?(b.flags|=2,p):x):(b.flags|=2,p)):(b.flags|=1048576,p)}function o(b){return e&&b.alternate===null&&(b.flags|=2),b}function c(b,p,x,N){return p===null||p.tag!==6?(p=zm(x,b.mode,N),p.return=b,p):(p=a(p,x),p.return=b,p)}function d(b,p,x,N){var S=x.type;return S===Aa?h(b,p,x.props.children,N,x.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Hr&&Nv(S)===p.type)?(N=a(p,x.props),N.ref=No(b,p,x),N.return=b,N):(N=Qc(x.type,x.key,x.props,null,b.mode,N),N.ref=No(b,p,x),N.return=b,N)}function u(b,p,x,N){return p===null||p.tag!==4||p.stateNode.containerInfo!==x.containerInfo||p.stateNode.implementation!==x.implementation?(p=Um(x,b.mode,N),p.return=b,p):(p=a(p,x.children||[]),p.return=b,p)}function h(b,p,x,N,S){return p===null||p.tag!==7?(p=ta(x,b.mode,N,S),p.return=b,p):(p=a(p,x),p.return=b,p)}function m(b,p,x){if(typeof p=="string"&&p!==""||typeof p=="number")return p=zm(""+p,b.mode,x),p.return=b,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Hl:return x=Qc(p.type,p.key,p.props,null,b.mode,x),x.ref=No(b,null,p),x.return=b,x;case Ra:return p=Um(p,b.mode,x),p.return=b,p;case Hr:var N=p._init;return m(b,N(p._payload),x)}if(Xi(p)||Gi(p))return p=ta(p,b.mode,x,null),p.return=b,p;Sc(b,p)}return null}function y(b,p,x,N){var S=p!==null?p.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:c(b,p,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Hl:return x.key===S?d(b,p,x,N):null;case Ra:return x.key===S?u(b,p,x,N):null;case Hr:return S=x._init,y(b,p,S(x._payload),N)}if(Xi(x)||Gi(x))return S!==null?null:h(b,p,x,N,null);Sc(b,x)}return null}function v(b,p,x,N,S){if(typeof N=="string"&&N!==""||typeof N=="number")return b=b.get(x)||null,c(p,b,""+N,S);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Hl:return b=b.get(N.key===null?x:N.key)||null,d(p,b,N,S);case Ra:return b=b.get(N.key===null?x:N.key)||null,u(p,b,N,S);case Hr:var k=N._init;return v(b,p,x,k(N._payload),S)}if(Xi(N)||Gi(N))return b=b.get(x)||null,h(p,b,N,S,null);Sc(p,N)}return null}function w(b,p,x,N){for(var S=null,k=null,_=p,C=p=0,R=null;_!==null&&C<x.length;C++){_.index>C?(R=_,_=null):R=_.sibling;var T=y(b,_,x[C],N);if(T===null){_===null&&(_=R);break}e&&_&&T.alternate===null&&t(b,_),p=i(T,p,C),k===null?S=T:k.sibling=T,k=T,_=R}if(C===x.length)return n(b,_),rt&&Ks(b,C),S;if(_===null){for(;C<x.length;C++)_=m(b,x[C],N),_!==null&&(p=i(_,p,C),k===null?S=_:k.sibling=_,k=_);return rt&&Ks(b,C),S}for(_=s(b,_);C<x.length;C++)R=v(_,b,C,x[C],N),R!==null&&(e&&R.alternate!==null&&_.delete(R.key===null?C:R.key),p=i(R,p,C),k===null?S=R:k.sibling=R,k=R);return e&&_.forEach(function(O){return t(b,O)}),rt&&Ks(b,C),S}function g(b,p,x,N){var S=Gi(x);if(typeof S!="function")throw Error(X(150));if(x=S.call(x),x==null)throw Error(X(151));for(var k=S=null,_=p,C=p=0,R=null,T=x.next();_!==null&&!T.done;C++,T=x.next()){_.index>C?(R=_,_=null):R=_.sibling;var O=y(b,_,T.value,N);if(O===null){_===null&&(_=R);break}e&&_&&O.alternate===null&&t(b,_),p=i(O,p,C),k===null?S=O:k.sibling=O,k=O,_=R}if(T.done)return n(b,_),rt&&Ks(b,C),S;if(_===null){for(;!T.done;C++,T=x.next())T=m(b,T.value,N),T!==null&&(p=i(T,p,C),k===null?S=T:k.sibling=T,k=T);return rt&&Ks(b,C),S}for(_=s(b,_);!T.done;C++,T=x.next())T=v(_,b,C,T.value,N),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?C:T.key),p=i(T,p,C),k===null?S=T:k.sibling=T,k=T);return e&&_.forEach(function(M){return t(b,M)}),rt&&Ks(b,C),S}function j(b,p,x,N){if(typeof x=="object"&&x!==null&&x.type===Aa&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Hl:e:{for(var S=x.key,k=p;k!==null;){if(k.key===S){if(S=x.type,S===Aa){if(k.tag===7){n(b,k.sibling),p=a(k,x.props.children),p.return=b,b=p;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Hr&&Nv(S)===k.type){n(b,k.sibling),p=a(k,x.props),p.ref=No(b,k,x),p.return=b,b=p;break e}n(b,k);break}else t(b,k);k=k.sibling}x.type===Aa?(p=ta(x.props.children,b.mode,N,x.key),p.return=b,b=p):(N=Qc(x.type,x.key,x.props,null,b.mode,N),N.ref=No(b,p,x),N.return=b,b=N)}return o(b);case Ra:e:{for(k=x.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){n(b,p.sibling),p=a(p,x.children||[]),p.return=b,b=p;break e}else{n(b,p);break}else t(b,p);p=p.sibling}p=Um(x,b.mode,N),p.return=b,b=p}return o(b);case Hr:return k=x._init,j(b,p,k(x._payload),N)}if(Xi(x))return w(b,p,x,N);if(Gi(x))return g(b,p,x,N);Sc(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,p!==null&&p.tag===6?(n(b,p.sibling),p=a(p,x),p.return=b,b=p):(n(b,p),p=zm(x,b.mode,N),p.return=b,b=p),o(b)):n(b,p)}return j}var Ga=Sv(!0),Cv=Sv(!1),Cc=es(null),kc=null,Ya=null,Yf=null;function Xf(){Yf=Ya=kc=null}function Zf(e){var t=Cc.current;tt(Cc),e._currentValue=t}function Jf(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 Xa(e,t){kc=e,Yf=Ya=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kt=!0),e.firstContext=null)}function yn(e){var t=e._currentValue;if(Yf!==e)if(e={context:e,memoizedValue:t,next:null},Ya===null){if(kc===null)throw Error(X(308));Ya=e,kc.dependencies={lanes:0,firstContext:e}}else Ya=Ya.next=e;return t}var Qs=null;function em(e){Qs===null?Qs=[e]:Qs.push(e)}function kv(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,em(t)):(n.next=a.next,a.next=n),t.interleaved=n,Nr(e,s)}function Nr(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 rs=!1;function tm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _v(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 Sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ss(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,ze&2){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,Nr(e,n)}return a=s.interleaved,a===null?(t.next=t,em(s)):(t.next=a.next,a.next=t),s.interleaved=t,Nr(e,n)}function _c(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,pf(e,n)}}function Ev(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:s.baseState,firstBaseUpdate:a,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 Ec(e,t,n,s){var a=e.updateQueue;rs=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var d=c,u=d.next;d.next=null,o===null?i=u:o.next=u,o=d;var h=e.alternate;h!==null&&(h=h.updateQueue,c=h.lastBaseUpdate,c!==o&&(c===null?h.firstBaseUpdate=u:c.next=u,h.lastBaseUpdate=d))}if(i!==null){var m=a.baseState;o=0,h=u=d=null,c=i;do{var y=c.lane,v=c.eventTime;if((s&y)===y){h!==null&&(h=h.next={eventTime:v,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var w=e,g=c;switch(y=t,v=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){m=w.call(v,m,y);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,y=typeof w=="function"?w.call(v,m,y):w,y==null)break e;m=st({},m,y);break e;case 2:rs=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,y=a.effects,y===null?a.effects=[c]:y.push(c))}else v={eventTime:v,lane:y,tag:c.tag,payload:c.payload,callback:c.callback,next:null},h===null?(u=h=v,d=m):h=h.next=v,o|=y;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;y=c,c=y.next,y.next=null,a.lastBaseUpdate=y,a.shared.pending=null}}while(!0);if(h===null&&(d=m),a.baseState=d,a.firstBaseUpdate=u,a.lastBaseUpdate=h,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);Xs|=o,e.lanes=o,e.memoizedState=m}}function Pv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(X(191,a));a.call(s)}}}var So={},er=es(So),Co=es(So),ko=es(So);function Gs(e){if(e===So)throw Error(X(174));return e}function nm(e,t){switch(Xe(ko,t),Xe(Co,e),Xe(er,So),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nf(t,e)}tt(er),Xe(er,t)}function Za(){tt(er),tt(Co),tt(ko)}function Tv(e){Gs(ko.current);var t=Gs(er.current),n=nf(t,e.type);t!==n&&(Xe(Co,e),Xe(er,n))}function rm(e){Co.current===e&&(tt(er),tt(Co))}var at=es(0);function Pc(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 sm=[];function am(){for(var e=0;e<sm.length;e++)sm[e]._workInProgressVersionPrimary=null;sm.length=0}var Tc=vr.ReactCurrentDispatcher,im=vr.ReactCurrentBatchConfig,Ys=0,it=null,xt=null,yt=null,Rc=!1,_o=!1,Eo=0,d2=0;function Rt(){throw Error(X(321))}function om(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rn(e[n],t[n]))return!1;return!0}function lm(e,t,n,s,a,i){if(Ys=i,it=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Tc.current=e===null||e.memoizedState===null?h2:p2,e=n(s,a),_o){i=0;do{if(_o=!1,Eo=0,25<=i)throw Error(X(301));i+=1,yt=xt=null,t.updateQueue=null,Tc.current=x2,e=n(s,a)}while(_o)}if(Tc.current=Ic,t=xt!==null&&xt.next!==null,Ys=0,yt=xt=it=null,Rc=!1,t)throw Error(X(300));return e}function cm(){var e=Eo!==0;return Eo=0,e}function tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?it.memoizedState=yt=e:yt=yt.next=e,yt}function bn(){if(xt===null){var e=it.alternate;e=e!==null?e.memoizedState:null}else e=xt.next;var t=yt===null?it.memoizedState:yt.next;if(t!==null)yt=t,xt=e;else{if(e===null)throw Error(X(310));xt=e,e={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},yt===null?it.memoizedState=yt=e:yt=yt.next=e}return yt}function Po(e,t){return typeof t=="function"?t(e):t}function dm(e){var t=bn(),n=t.queue;if(n===null)throw Error(X(311));n.lastRenderedReducer=e;var s=xt,a=s.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}s.baseQueue=a=i,n.pending=null}if(a!==null){i=a.next,s=s.baseState;var c=o=null,d=null,u=i;do{var h=u.lane;if((Ys&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?(c=d=m,o=s):d=d.next=m,it.lanes|=h,Xs|=h}u=u.next}while(u!==null&&u!==i);d===null?o=s:d.next=c,Rn(s,t.memoizedState)||(Kt=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=d,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do i=a.lane,it.lanes|=i,Xs|=i,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function um(e){var t=bn(),n=t.queue;if(n===null)throw Error(X(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);Rn(i,t.memoizedState)||(Kt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,s]}function Rv(){}function Av(e,t){var n=it,s=bn(),a=t(),i=!Rn(s.memoizedState,a);if(i&&(s.memoizedState=a,Kt=!0),s=s.queue,fm(Mv.bind(null,n,s,e),[e]),s.getSnapshot!==t||i||yt!==null&&yt.memoizedState.tag&1){if(n.flags|=2048,To(9,Iv.bind(null,n,s,a,t),void 0,null),bt===null)throw Error(X(349));Ys&30||Ov(n,t,a)}return a}function Ov(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=it.updateQueue,t===null?(t={lastEffect:null,stores:null},it.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Iv(e,t,n,s){t.value=n,t.getSnapshot=s,Dv(t)&&Fv(e)}function Mv(e,t,n){return n(function(){Dv(t)&&Fv(e)})}function Dv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rn(e,n)}catch(s){return!0}}function Fv(e){var t=Nr(e,1);t!==null&&Dn(t,e,1,-1)}function Lv(e){var t=tr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t.queue=e,e=e.dispatch=m2.bind(null,it,e),[t.memoizedState,e]}function To(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=it.updateQueue,t===null?(t={lastEffect:null,stores:null},it.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 $v(){return bn().memoizedState}function Ac(e,t,n,s){var a=tr();it.flags|=e,a.memoizedState=To(1|t,n,void 0,s===void 0?null:s)}function Oc(e,t,n,s){var a=bn();s=s===void 0?null:s;var i=void 0;if(xt!==null){var o=xt.memoizedState;if(i=o.destroy,s!==null&&om(s,o.deps)){a.memoizedState=To(t,n,i,s);return}}it.flags|=e,a.memoizedState=To(1|t,n,i,s)}function zv(e,t){return Ac(8390656,8,e,t)}function fm(e,t){return Oc(2048,8,e,t)}function Uv(e,t){return Oc(4,2,e,t)}function Bv(e,t){return Oc(4,4,e,t)}function Vv(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 qv(e,t,n){return n=n!=null?n.concat([e]):null,Oc(4,4,Vv.bind(null,t,e),n)}function mm(){}function Hv(e,t){var n=bn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&om(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Wv(e,t){var n=bn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&om(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Kv(e,t,n){return Ys&21?(Rn(n,t)||(n=Ng(),it.lanes|=n,Xs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kt=!0),e.memoizedState=n)}function u2(e,t){var n=Ke;Ke=n!==0&&4>n?n:4,e(!0);var s=im.transition;im.transition={};try{e(!1),t()}finally{Ke=n,im.transition=s}}function Qv(){return bn().memoizedState}function f2(e,t,n){var s=ls(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Gv(e))Yv(t,n);else if(n=kv(e,t,n,s),n!==null){var a=$t();Dn(n,e,s,a),Xv(n,t,s)}}function m2(e,t,n){var s=ls(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gv(e))Yv(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,c=i(o,n);if(a.hasEagerState=!0,a.eagerState=c,Rn(c,o)){var d=t.interleaved;d===null?(a.next=a,em(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch(u){}finally{}n=kv(e,t,a,s),n!==null&&(a=$t(),Dn(n,e,s,a),Xv(n,t,s))}}function Gv(e){var t=e.alternate;return e===it||t!==null&&t===it}function Yv(e,t){_o=Rc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xv(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,pf(e,n)}}var Ic={readContext:yn,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useInsertionEffect:Rt,useLayoutEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useMutableSource:Rt,useSyncExternalStore:Rt,useId:Rt,unstable_isNewReconciler:!1},h2={readContext:yn,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:yn,useEffect:zv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ac(4194308,4,Vv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ac(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ac(4,2,e,t)},useMemo:function(e,t){var n=tr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=tr();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=f2.bind(null,it,e),[s.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:Lv,useDebugValue:mm,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=Lv(!1),t=e[0];return e=u2.bind(null,e[1]),tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=it,a=tr();if(rt){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),bt===null)throw Error(X(349));Ys&30||Ov(s,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,zv(Mv.bind(null,s,i,e),[e]),s.flags|=2048,To(9,Iv.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=tr(),t=bt.identifierPrefix;if(rt){var n=wr,s=jr;n=(s&~(1<<32-Tn(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Eo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=d2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},p2={readContext:yn,useCallback:Hv,useContext:yn,useEffect:fm,useImperativeHandle:qv,useInsertionEffect:Uv,useLayoutEffect:Bv,useMemo:Wv,useReducer:dm,useRef:$v,useState:function(){return dm(Po)},useDebugValue:mm,useDeferredValue:function(e){var t=bn();return Kv(t,xt.memoizedState,e)},useTransition:function(){var e=dm(Po)[0],t=bn().memoizedState;return[e,t]},useMutableSource:Rv,useSyncExternalStore:Av,useId:Qv,unstable_isNewReconciler:!1},x2={readContext:yn,useCallback:Hv,useContext:yn,useEffect:fm,useImperativeHandle:qv,useInsertionEffect:Uv,useLayoutEffect:Bv,useMemo:Wv,useReducer:um,useRef:$v,useState:function(){return um(Po)},useDebugValue:mm,useDeferredValue:function(e){var t=bn();return xt===null?t.memoizedState=e:Kv(t,xt.memoizedState,e)},useTransition:function(){var e=um(Po)[0],t=bn().memoizedState;return[e,t]},useMutableSource:Rv,useSyncExternalStore:Av,useId:Qv,unstable_isNewReconciler:!1};function On(e,t){if(e&&e.defaultProps){t=st({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hm(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:st({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Mc={isMounted:function(e){return(e=e._reactInternals)?Vs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=$t(),a=ls(e),i=Sr(s,a);i.payload=t,n!=null&&(i.callback=n),t=ss(e,i,a),t!==null&&(Dn(t,e,a,s),_c(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=$t(),a=ls(e),i=Sr(s,a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ss(e,i,a),t!==null&&(Dn(t,e,a,s),_c(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$t(),s=ls(e),a=Sr(n,s);a.tag=2,t!=null&&(a.callback=t),t=ss(e,a,s),t!==null&&(Dn(t,e,s,n),_c(t,e,s))}};function Zv(e,t,n,s,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,o):t.prototype&&t.prototype.isPureReactComponent?!xo(n,s)||!xo(a,i):!0}function Jv(e,t,n){var s=!1,a=ts,i=t.contextType;return typeof i=="object"&&i!==null?i=yn(i):(a=Wt(t)?Hs:Tt.current,s=t.contextTypes,i=(s=s!=null)?Ha(e,a):ts),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Mc,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function ey(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&&Mc.enqueueReplaceState(t,t.state,null)}function pm(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},tm(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=yn(i):(i=Wt(t)?Hs:Tt.current,a.context=Ha(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(hm(e,t,i,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Mc.enqueueReplaceState(a,a.state,null),Ec(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Ja(e,t){try{var n="",s=t;do n+=qC(s),s=s.return;while(s);var a=n}catch(i){a=` | |
| 41 | +Error generating stack: `+i.message+` | |
| 42 | +`+i.stack}return{value:e,source:t,stack:a,digest:null}}function xm(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function gm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var g2=typeof WeakMap=="function"?WeakMap:Map;function ty(e,t,n){n=Sr(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Bc||(Bc=!0,Am=s),gm(e,t)},n}function ny(e,t,n){n=Sr(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;n.payload=function(){return s(a)},n.callback=function(){gm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){gm(e,t),typeof s!="function"&&(is===null?is=new Set([this]):is.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ry(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new g2;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=R2.bind(null,e,t,n),t.then(e,e))}function sy(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 ay(e,t,n,s,a){return e.mode&1?(e.flags|=65536,e.lanes=a,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=Sr(-1,1),t.tag=2,ss(n,t,1))),n.lanes|=1),e)}var v2=vr.ReactCurrentOwner,Kt=!1;function Lt(e,t,n,s){t.child=e===null?Cv(t,null,n,s):Ga(t,e.child,n,s)}function iy(e,t,n,s,a){n=n.render;var i=t.ref;return Xa(t,a),s=lm(e,t,n,s,i,a),n=cm(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Cr(e,t,a)):(rt&&n&&Hf(t),t.flags|=1,Lt(e,t,s,a),t.child)}function oy(e,t,n,s,a){if(e===null){var i=n.type;return typeof i=="function"&&!$m(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ly(e,t,i,s,a)):(e=Qc(n.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:xo,n(o,s)&&e.ref===t.ref)return Cr(e,t,a)}return t.flags|=1,e=ds(i,s),e.ref=t.ref,e.return=t,t.child=e}function ly(e,t,n,s,a){if(e!==null){var i=e.memoizedProps;if(xo(i,s)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=s=i,(e.lanes&a)!==0)e.flags&131072&&(Kt=!0);else return t.lanes=e.lanes,Cr(e,t,a)}return vm(e,t,n,s,a)}function cy(e,t,n){var s=t.pendingProps,a=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(ti,ln),ln|=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,Xe(ti,ln),ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:n,Xe(ti,ln),ln|=s}else i!==null?(s=i.baseLanes|n,t.memoizedState=null):s=n,Xe(ti,ln),ln|=s;return Lt(e,t,a,n),t.child}function dy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vm(e,t,n,s,a){var i=Wt(n)?Hs:Tt.current;return i=Ha(t,i),Xa(t,a),n=lm(e,t,n,s,i,a),s=cm(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Cr(e,t,a)):(rt&&s&&Hf(t),t.flags|=1,Lt(e,t,n,a),t.child)}function uy(e,t,n,s,a){if(Wt(n)){var i=!0;yc(t)}else i=!1;if(Xa(t,a),t.stateNode===null)Fc(e,t),Jv(t,n,s),pm(t,n,s,a),s=!0;else if(e===null){var o=t.stateNode,c=t.memoizedProps;o.props=c;var d=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=yn(u):(u=Wt(n)?Hs:Tt.current,u=Ha(t,u));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==s||d!==u)&&ey(t,o,s,u),rs=!1;var y=t.memoizedState;o.state=y,Ec(t,s,o,a),d=t.memoizedState,c!==s||y!==d||Ht.current||rs?(typeof h=="function"&&(hm(t,n,h,s),d=t.memoizedState),(c=rs||Zv(t,n,c,s,y,d,u))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),o.props=s,o.state=d,o.context=u,s=c):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{o=t.stateNode,_v(e,t),c=t.memoizedProps,u=t.type===t.elementType?c:On(t.type,c),o.props=u,m=t.pendingProps,y=o.context,d=n.contextType,typeof d=="object"&&d!==null?d=yn(d):(d=Wt(n)?Hs:Tt.current,d=Ha(t,d));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==m||y!==d)&&ey(t,o,s,d),rs=!1,y=t.memoizedState,o.state=y,Ec(t,s,o,a);var w=t.memoizedState;c!==m||y!==w||Ht.current||rs?(typeof v=="function"&&(hm(t,n,v,s),w=t.memoizedState),(u=rs||Zv(t,n,u,s,y,w,d)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(s,w,d),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(s,w,d)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=w),o.props=s,o.state=w,o.context=d,s=u):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),s=!1)}return ym(e,t,n,s,i,a)}function ym(e,t,n,s,a,i){dy(e,t);var o=(t.flags&128)!==0;if(!s&&!o)return a&&xv(t,n,!1),Cr(e,t,i);s=t.stateNode,v2.current=t;var c=o&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&o?(t.child=Ga(t,e.child,null,i),t.child=Ga(t,null,c,i)):Lt(e,t,c,i),t.memoizedState=s.state,a&&xv(t,n,!0),t.child}function fy(e){var t=e.stateNode;t.pendingContext?hv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hv(e,t.context,!1),nm(e,t.containerInfo)}function my(e,t,n,s,a){return Qa(),Gf(a),t.flags|=256,Lt(e,t,n,s),t.child}var bm={dehydrated:null,treeContext:null,retryLane:0};function jm(e){return{baseLanes:e,cachePool:null,transitions:null}}function hy(e,t,n){var s=t.pendingProps,a=at.current,i=!1,o=(t.flags&128)!==0,c;if((c=o)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!==0),c?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Xe(at,a&1),e===null)return Qf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=s.children,e=s.fallback,i?(s=t.mode,i=t.child,o={mode:"hidden",children:o},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Gc(o,s,0,null),e=ta(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=jm(n),t.memoizedState=bm,e):wm(t,o));if(a=e.memoizedState,a!==null&&(c=a.dehydrated,c!==null))return y2(e,t,o,s,c,a,n);if(i){i=s.fallback,o=t.mode,a=e.child,c=a.sibling;var d={mode:"hidden",children:s.children};return!(o&1)&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=d,t.deletions=null):(s=ds(a,d),s.subtreeFlags=a.subtreeFlags&14680064),c!==null?i=ds(c,i):(i=ta(i,o,n,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,o=e.child.memoizedState,o=o===null?jm(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=bm,s}return i=e.child,e=i.sibling,s=ds(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 wm(e,t){return t=Gc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Dc(e,t,n,s){return s!==null&&Gf(s),Ga(t,e.child,null,n),e=wm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function y2(e,t,n,s,a,i,o){if(n)return t.flags&256?(t.flags&=-257,s=xm(Error(X(422))),Dc(e,t,o,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,a=t.mode,s=Gc({mode:"visible",children:s.children},a,0,null),i=ta(i,a,o,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&Ga(t,e.child,null,o),t.child.memoizedState=jm(o),t.memoizedState=bm,i);if(!(t.mode&1))return Dc(e,t,o,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var c=s.dgst;return s=c,i=Error(X(419)),s=xm(i,s,void 0),Dc(e,t,o,s)}if(c=(o&e.childLanes)!==0,Kt||c){if(s=bt,s!==null){switch(o&-o){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(s.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Nr(e,a),Dn(s,e,a,-1))}return Lm(),s=xm(Error(X(421))),Dc(e,t,o,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=A2.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,on=Jr(a.nextSibling),an=t,rt=!0,An=null,e!==null&&(gn[vn++]=jr,gn[vn++]=wr,gn[vn++]=Ws,jr=e.id,wr=e.overflow,Ws=t),t=wm(t,s.children),t.flags|=4096,t)}function py(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Jf(e.return,t,n)}function Nm(e,t,n,s,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=a)}function xy(e,t,n){var s=t.pendingProps,a=s.revealOrder,i=s.tail;if(Lt(e,t,s.children,n),s=at.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&&py(e,n,t);else if(e.tag===19)py(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(Xe(at,s),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Pc(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Nm(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Pc(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Nm(t,!0,n,null,i);break;case"together":Nm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Cr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(X(153));if(t.child!==null){for(e=t.child,n=ds(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ds(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function b2(e,t,n){switch(t.tag){case 3:fy(t),Qa();break;case 5:Tv(t);break;case 1:Wt(t.type)&&yc(t);break;case 4:nm(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;Xe(Cc,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Xe(at,at.current&1),t.flags|=128,null):n&t.child.childLanes?hy(e,t,n):(Xe(at,at.current&1),e=Cr(e,t,n),e!==null?e.sibling:null);Xe(at,at.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return xy(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Xe(at,at.current),s)break;return null;case 22:case 23:return t.lanes=0,cy(e,t,n)}return Cr(e,t,n)}var gy,Sm,vy,yy;gy=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}},Sm=function(){},vy=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Gs(er.current);var i=null;switch(n){case"input":a=Zu(e,a),s=Zu(e,s),i=[];break;case"select":a=st({},a,{value:void 0}),s=st({},s,{value:void 0}),i=[];break;case"textarea":a=tf(e,a),s=tf(e,s),i=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=xc)}rf(n,s);var o;n=null;for(u in a)if(!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var c=a[u];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in s){var d=s[u];if(c=a!=null?a[u]:void 0,s.hasOwnProperty(u)&&d!==c&&(d!=null||c!=null))if(u==="style")if(c){for(o in c)!c.hasOwnProperty(o)||d&&d.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in d)d.hasOwnProperty(o)&&c[o]!==d[o]&&(n||(n={}),n[o]=d[o])}else n||(i||(i=[]),i.push(u,n)),n=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(i=i||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(i=i||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qi.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&et("scroll",e),i||c===d||(i=[])):(i=i||[]).push(u,d))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},yy=function(e,t,n,s){n!==s&&(t.flags|=4)};function Ro(e,t){if(!rt)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 At(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function j2(e,t,n){var s=t.pendingProps;switch(Wf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(t),null;case 1:return Wt(t.type)&&vc(),At(t),null;case 3:return s=t.stateNode,Za(),tt(Ht),tt(Tt),am(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Nc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,An!==null&&(Mm(An),An=null))),Sm(e,t),At(t),null;case 5:rm(t);var a=Gs(ko.current);if(n=t.type,e!==null&&t.stateNode!=null)vy(e,t,n,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(X(166));return At(t),null}if(e=Gs(er.current),Nc(t)){s=t.stateNode,n=t.type;var i=t.memoizedProps;switch(s[Jn]=t,s[jo]=i,e=(t.mode&1)!==0,n){case"dialog":et("cancel",s),et("close",s);break;case"iframe":case"object":case"embed":et("load",s);break;case"video":case"audio":for(a=0;a<vo.length;a++)et(vo[a],s);break;case"source":et("error",s);break;case"img":case"image":case"link":et("error",s),et("load",s);break;case"details":et("toggle",s);break;case"input":Jx(s,i),et("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},et("invalid",s);break;case"textarea":ng(s,i),et("invalid",s)}rf(n,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var c=i[o];o==="children"?typeof c=="string"?s.textContent!==c&&(i.suppressHydrationWarning!==!0&&pc(s.textContent,c,e),a=["children",c]):typeof c=="number"&&s.textContent!==""+c&&(i.suppressHydrationWarning!==!0&&pc(s.textContent,c,e),a=["children",""+c]):Qi.hasOwnProperty(o)&&c!=null&&o==="onScroll"&&et("scroll",s)}switch(n){case"input":Wl(s),tg(s,i,!0);break;case"textarea":Wl(s),sg(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=xc)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ag(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=o.createElement(n,{is:s.is}):(e=o.createElement(n),n==="select"&&(o=e,s.multiple?o.multiple=!0:s.size&&(o.size=s.size))):e=o.createElementNS(e,n),e[Jn]=t,e[jo]=s,gy(e,t,!1,!1),t.stateNode=e;e:{switch(o=sf(n,s),n){case"dialog":et("cancel",e),et("close",e),a=s;break;case"iframe":case"object":case"embed":et("load",e),a=s;break;case"video":case"audio":for(a=0;a<vo.length;a++)et(vo[a],e);a=s;break;case"source":et("error",e),a=s;break;case"img":case"image":case"link":et("error",e),et("load",e),a=s;break;case"details":et("toggle",e),a=s;break;case"input":Jx(e,s),a=Zu(e,s),et("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=st({},s,{value:void 0}),et("invalid",e);break;case"textarea":ng(e,s),a=tf(e,s),et("invalid",e);break;default:a=s}rf(n,a),c=a;for(i in c)if(c.hasOwnProperty(i)){var d=c[i];i==="style"?lg(e,d):i==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&ig(e,d)):i==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&Zi(e,d):typeof d=="number"&&Zi(e,""+d):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qi.hasOwnProperty(i)?d!=null&&i==="onScroll"&&et("scroll",e):d!=null&&Uu(e,i,d,o))}switch(n){case"input":Wl(e),tg(e,s,!1);break;case"textarea":Wl(e),sg(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Wr(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?Oa(e,!!s.multiple,i,!1):s.defaultValue!=null&&Oa(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=xc)}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 At(t),null;case 6:if(e&&t.stateNode!=null)yy(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(X(166));if(n=Gs(ko.current),Gs(er.current),Nc(t)){if(s=t.stateNode,n=t.memoizedProps,s[Jn]=t,(i=s.nodeValue!==n)&&(e=an,e!==null))switch(e.tag){case 3:pc(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pc(s.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Jn]=t,t.stateNode=s}return At(t),null;case 13:if(tt(at),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(rt&&on!==null&&t.mode&1&&!(t.flags&128))wv(),Qa(),t.flags|=98560,i=!1;else if(i=Nc(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(X(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(X(317));i[Jn]=t}else Qa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;At(t),i=!1}else An!==null&&(Mm(An),An=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||at.current&1?gt===0&&(gt=3):Lm())),t.updateQueue!==null&&(t.flags|=4),At(t),null);case 4:return Za(),Sm(e,t),e===null&&yo(t.stateNode.containerInfo),At(t),null;case 10:return Zf(t.type._context),At(t),null;case 17:return Wt(t.type)&&vc(),At(t),null;case 19:if(tt(at),i=t.memoizedState,i===null)return At(t),null;if(s=(t.flags&128)!==0,o=i.rendering,o===null)if(s)Ro(i,!1);else{if(gt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Pc(e),o!==null){for(t.flags|=128,Ro(i,!1),s=o.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,o=i.alternate,o===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=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Xe(at,at.current&1|2),t.child}e=e.sibling}i.tail!==null&&ft()>ni&&(t.flags|=128,s=!0,Ro(i,!1),t.lanes=4194304)}else{if(!s)if(e=Pc(o),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ro(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!rt)return At(t),null}else 2*ft()-i.renderingStartTime>ni&&n!==1073741824&&(t.flags|=128,s=!0,Ro(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ft(),t.sibling=null,n=at.current,Xe(at,s?n&1|2:n&1),t):(At(t),null);case 22:case 23:return Fm(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?ln&1073741824&&(At(t),t.subtreeFlags&6&&(t.flags|=8192)):At(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function w2(e,t){switch(Wf(t),t.tag){case 1:return Wt(t.type)&&vc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Za(),tt(Ht),tt(Tt),am(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rm(t),null;case 13:if(tt(at),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));Qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tt(at),null;case 4:return Za(),null;case 10:return Zf(t.type._context),null;case 22:case 23:return Fm(),null;case 24:return null;default:return null}}var Lc=!1,Ot=!1,N2=typeof WeakSet=="function"?WeakSet:Set,ue=null;function ei(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){lt(e,t,s)}else n.current=null}function Cm(e,t,n){try{n()}catch(s){lt(e,t,s)}}var by=!1;function S2(e,t){if(Ff=sc,e=Zg(),Pf(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 a=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch(N){n=null;break e}var o=0,c=-1,d=-1,u=0,h=0,m=e,y=null;t:for(;;){for(var v;m!==n||a!==0&&m.nodeType!==3||(c=o+a),m!==i||s!==0&&m.nodeType!==3||(d=o+s),m.nodeType===3&&(o+=m.nodeValue.length),(v=m.firstChild)!==null;)y=m,m=v;for(;;){if(m===e)break t;if(y===n&&++u===a&&(c=o),y===i&&++h===s&&(d=o),(v=m.nextSibling)!==null)break;m=y,y=m.parentNode}m=v}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lf={focusedElem:e,selectionRange:n},sc=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;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 g=w.memoizedProps,j=w.memoizedState,b=t.stateNode,p=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:On(t.type,g),j);b.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(N){lt(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return w=by,by=!1,w}function Ao(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Cm(t,n,i)}a=a.next}while(a!==s)}}function $c(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 km(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 jy(e){var t=e.alternate;t!==null&&(e.alternate=null,jy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jn],delete t[jo],delete t[Bf],delete t[i2],delete t[o2])),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 wy(e){return e.tag===5||e.tag===3||e.tag===4}function Ny(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wy(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 _m(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=xc));else if(s!==4&&(e=e.child,e!==null))for(_m(e,t,n),e=e.sibling;e!==null;)_m(e,t,n),e=e.sibling}function Em(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(Em(e,t,n),e=e.sibling;e!==null;)Em(e,t,n),e=e.sibling}var St=null,In=!1;function as(e,t,n){for(n=n.child;n!==null;)Sy(e,t,n),n=n.sibling}function Sy(e,t,n){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(Zl,n)}catch(c){}switch(n.tag){case 5:Ot||ei(n,t);case 6:var s=St,a=In;St=null,as(e,t,n),St=s,In=a,St!==null&&(In?(e=St,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):St.removeChild(n.stateNode));break;case 18:St!==null&&(In?(e=St,n=n.stateNode,e.nodeType===8?Uf(e.parentNode,n):e.nodeType===1&&Uf(e,n),co(e)):Uf(St,n.stateNode));break;case 4:s=St,a=In,St=n.stateNode.containerInfo,In=!0,as(e,t,n),St=s,In=a;break;case 0:case 11:case 14:case 15:if(!Ot&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Cm(n,t,o),a=a.next}while(a!==s)}as(e,t,n);break;case 1:if(!Ot&&(ei(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(c){lt(n,t,c)}as(e,t,n);break;case 21:as(e,t,n);break;case 22:n.mode&1?(Ot=(s=Ot)||n.memoizedState!==null,as(e,t,n),Ot=s):as(e,t,n);break;default:as(e,t,n)}}function Cy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N2),t.forEach(function(s){var a=O2.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function Mn(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var i=e,o=t,c=o;e:for(;c!==null;){switch(c.tag){case 5:St=c.stateNode,In=!1;break e;case 3:St=c.stateNode.containerInfo,In=!0;break e;case 4:St=c.stateNode.containerInfo,In=!0;break e}c=c.return}if(St===null)throw Error(X(160));Sy(i,o,a),St=null,In=!1;var d=a.alternate;d!==null&&(d.return=null),a.return=null}catch(u){lt(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ky(t,e),t=t.sibling}function ky(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mn(t,e),nr(e),s&4){try{Ao(3,e,e.return),$c(3,e)}catch(g){lt(e,e.return,g)}try{Ao(5,e,e.return)}catch(g){lt(e,e.return,g)}}break;case 1:Mn(t,e),nr(e),s&512&&n!==null&&ei(n,n.return);break;case 5:if(Mn(t,e),nr(e),s&512&&n!==null&&ei(n,n.return),e.flags&32){var a=e.stateNode;try{Zi(a,"")}catch(g){lt(e,e.return,g)}}if(s&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{c==="input"&&i.type==="radio"&&i.name!=null&&eg(a,i),sf(c,o);var u=sf(c,i);for(o=0;o<d.length;o+=2){var h=d[o],m=d[o+1];h==="style"?lg(a,m):h==="dangerouslySetInnerHTML"?ig(a,m):h==="children"?Zi(a,m):Uu(a,h,m,u)}switch(c){case"input":Ju(a,i);break;case"textarea":rg(a,i);break;case"select":var y=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Oa(a,!!i.multiple,v,!1):y!==!!i.multiple&&(i.defaultValue!=null?Oa(a,!!i.multiple,i.defaultValue,!0):Oa(a,!!i.multiple,i.multiple?[]:"",!1))}a[jo]=i}catch(g){lt(e,e.return,g)}}break;case 6:if(Mn(t,e),nr(e),s&4){if(e.stateNode===null)throw Error(X(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(g){lt(e,e.return,g)}}break;case 3:if(Mn(t,e),nr(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{co(t.containerInfo)}catch(g){lt(e,e.return,g)}break;case 4:Mn(t,e),nr(e);break;case 13:Mn(t,e),nr(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(Rm=ft())),s&4&&Cy(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Ot=(u=Ot)||h,Mn(t,e),Ot=u):Mn(t,e),nr(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&e.mode&1)for(ue=e,h=e.child;h!==null;){for(m=ue=h;ue!==null;){switch(y=ue,v=y.child,y.tag){case 0:case 11:case 14:case 15:Ao(4,y,y.return);break;case 1:ei(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(g){lt(s,n,g)}}break;case 5:ei(y,y.return);break;case 22:if(y.memoizedState!==null){Py(m);continue}}v!==null?(v.return=y,ue=v):Py(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{a=m.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(c=m.stateNode,d=m.memoizedProps.style,o=d!=null&&d.hasOwnProperty("display")?d.display:null,c.style.display=og("display",o))}catch(g){lt(e,e.return,g)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(g){lt(e,e.return,g)}}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:Mn(t,e),nr(e),s&4&&Cy(e);break;case 21:break;default:Mn(t,e),nr(e)}}function nr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wy(n)){var s=n;break e}n=n.return}throw Error(X(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(Zi(a,""),s.flags&=-33);var i=Ny(e);Em(e,i,a);break;case 3:case 4:var o=s.stateNode.containerInfo,c=Ny(e);_m(e,c,o);break;default:throw Error(X(161))}}catch(d){lt(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function C2(e,t,n){ue=e,_y(e)}function _y(e,t,n){for(var s=(e.mode&1)!==0;ue!==null;){var a=ue,i=a.child;if(a.tag===22&&s){var o=a.memoizedState!==null||Lc;if(!o){var c=a.alternate,d=c!==null&&c.memoizedState!==null||Ot;c=Lc;var u=Ot;if(Lc=o,(Ot=d)&&!u)for(ue=a;ue!==null;)o=ue,d=o.child,o.tag===22&&o.memoizedState!==null?Ty(a):d!==null?(d.return=o,ue=d):Ty(a);for(;i!==null;)ue=i,_y(i),i=i.sibling;ue=a,Lc=c,Ot=u}Ey(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,ue=i):Ey(e)}}function Ey(e){for(;ue!==null;){var t=ue;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ot||$c(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Ot)if(n===null)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:On(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Pv(t,i,s);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Pv(t,o,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;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&&co(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(X(163))}Ot||t.flags&512&&km(t)}catch(y){lt(t,t.return,y)}}if(t===e){ue=null;break}if(n=t.sibling,n!==null){n.return=t.return,ue=n;break}ue=t.return}}function Py(e){for(;ue!==null;){var t=ue;if(t===e){ue=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ue=n;break}ue=t.return}}function Ty(e){for(;ue!==null;){var t=ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$c(4,t)}catch(d){lt(t,n,d)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(d){lt(t,a,d)}}var i=t.return;try{km(t)}catch(d){lt(t,i,d)}break;case 5:var o=t.return;try{km(t)}catch(d){lt(t,o,d)}}}catch(d){lt(t,t.return,d)}if(t===e){ue=null;break}var c=t.sibling;if(c!==null){c.return=t.return,ue=c;break}ue=t.return}}var k2=Math.ceil,zc=vr.ReactCurrentDispatcher,Pm=vr.ReactCurrentOwner,jn=vr.ReactCurrentBatchConfig,ze=0,bt=null,mt=null,Ct=0,ln=0,ti=es(0),gt=0,Oo=null,Xs=0,Uc=0,Tm=0,Io=null,Qt=null,Rm=0,ni=1/0,kr=null,Bc=!1,Am=null,is=null,Vc=!1,os=null,qc=0,Mo=0,Om=null,Hc=-1,Wc=0;function $t(){return ze&6?ft():Hc!==-1?Hc:Hc=ft()}function ls(e){return e.mode&1?ze&2&&Ct!==0?Ct&-Ct:c2.transition!==null?(Wc===0&&(Wc=Ng()),Wc):(e=Ke,e!==0||(e=window.event,e=e===void 0?16:Ag(e.type)),e):1}function Dn(e,t,n,s){if(50<Mo)throw Mo=0,Om=null,Error(X(185));so(e,n,s),(!(ze&2)||e!==bt)&&(e===bt&&(!(ze&2)&&(Uc|=n),gt===4&&cs(e,Ct)),Gt(e,s),n===1&&ze===0&&!(t.mode&1)&&(ni=ft()+500,bc&&ns()))}function Gt(e,t){var n=e.callbackNode;ck(e,t);var s=tc(e,e===bt?Ct:0);if(s===0)n!==null&&bg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&bg(n),t===1)e.tag===0?l2(Ay.bind(null,e)):gv(Ay.bind(null,e)),s2(function(){!(ze&6)&&ns()}),n=null;else{switch(Sg(s)){case 1:n=ff;break;case 4:n=jg;break;case 16:n=Xl;break;case 536870912:n=wg;break;default:n=Xl}n=zy(n,Ry.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ry(e,t){if(Hc=-1,Wc=0,ze&6)throw Error(X(327));var n=e.callbackNode;if(ri()&&e.callbackNode!==n)return null;var s=tc(e,e===bt?Ct:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=Kc(e,s);else{t=s;var a=ze;ze|=2;var i=Iy();(bt!==e||Ct!==t)&&(kr=null,ni=ft()+500,Js(e,t));do try{P2();break}catch(c){Oy(e,c)}while(!0);Xf(),zc.current=i,ze=a,mt!==null?t=0:(bt=null,Ct=0,t=gt)}if(t!==0){if(t===2&&(a=mf(e),a!==0&&(s=a,t=Im(e,a))),t===1)throw n=Oo,Js(e,0),cs(e,s),Gt(e,ft()),n;if(t===6)cs(e,s);else{if(a=e.current.alternate,!(s&30)&&!_2(a)&&(t=Kc(e,s),t===2&&(i=mf(e),i!==0&&(s=i,t=Im(e,i))),t===1))throw n=Oo,Js(e,0),cs(e,s),Gt(e,ft()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(X(345));case 2:ea(e,Qt,kr);break;case 3:if(cs(e,s),(s&130023424)===s&&(t=Rm+500-ft(),10<t)){if(tc(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){$t(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=zf(ea.bind(null,e,Qt,kr),t);break}ea(e,Qt,kr);break;case 4:if(cs(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var o=31-Tn(s);i=1<<o,o=t[o],o>a&&(a=o),s&=~i}if(s=a,s=ft()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*k2(s/1960))-s,10<s){e.timeoutHandle=zf(ea.bind(null,e,Qt,kr),s);break}ea(e,Qt,kr);break;case 5:ea(e,Qt,kr);break;default:throw Error(X(329))}}}return Gt(e,ft()),e.callbackNode===n?Ry.bind(null,e):null}function Im(e,t){var n=Io;return e.current.memoizedState.isDehydrated&&(Js(e,t).flags|=256),e=Kc(e,t),e!==2&&(t=Qt,Qt=n,t!==null&&Mm(t)),e}function Mm(e){Qt===null?Qt=e:Qt.push.apply(Qt,e)}function _2(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 a=n[s],i=a.getSnapshot;a=a.value;try{if(!Rn(i(),a))return!1}catch(o){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 cs(e,t){for(t&=~Tm,t&=~Uc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tn(t),s=1<<n;e[n]=-1,t&=~s}}function Ay(e){if(ze&6)throw Error(X(327));ri();var t=tc(e,0);if(!(t&1))return Gt(e,ft()),null;var n=Kc(e,t);if(e.tag!==0&&n===2){var s=mf(e);s!==0&&(t=s,n=Im(e,s))}if(n===1)throw n=Oo,Js(e,0),cs(e,t),Gt(e,ft()),n;if(n===6)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ea(e,Qt,kr),Gt(e,ft()),null}function Dm(e,t){var n=ze;ze|=1;try{return e(t)}finally{ze=n,ze===0&&(ni=ft()+500,bc&&ns())}}function Zs(e){os!==null&&os.tag===0&&!(ze&6)&&ri();var t=ze;ze|=1;var n=jn.transition,s=Ke;try{if(jn.transition=null,Ke=1,e)return e()}finally{Ke=s,jn.transition=n,ze=t,!(ze&6)&&ns()}}function Fm(){ln=ti.current,tt(ti)}function Js(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,r2(n)),mt!==null)for(n=mt.return;n!==null;){var s=n;switch(Wf(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&vc();break;case 3:Za(),tt(Ht),tt(Tt),am();break;case 5:rm(s);break;case 4:Za();break;case 13:tt(at);break;case 19:tt(at);break;case 10:Zf(s.type._context);break;case 22:case 23:Fm()}n=n.return}if(bt=e,mt=e=ds(e.current,null),Ct=ln=t,gt=0,Oo=null,Tm=Uc=Xs=0,Qt=Io=null,Qs!==null){for(t=0;t<Qs.length;t++)if(n=Qs[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,i=n.pending;if(i!==null){var o=i.next;i.next=a,s.next=o}n.pending=s}Qs=null}return e}function Oy(e,t){do{var n=mt;try{if(Xf(),Tc.current=Ic,Rc){for(var s=it.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Rc=!1}if(Ys=0,yt=xt=it=null,_o=!1,Eo=0,Pm.current=null,n===null||n.return===null){gt=1,Oo=t,mt=null;break}e:{var i=e,o=n.return,c=n,d=t;if(t=Ct,c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var u=d,h=c,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 v=sy(o);if(v!==null){v.flags&=-257,ay(v,o,c,i,t),v.mode&1&&ry(i,u,t),t=v,d=u;var w=t.updateQueue;if(w===null){var g=new Set;g.add(d),t.updateQueue=g}else w.add(d);break e}else{if(!(t&1)){ry(i,u,t),Lm();break e}d=Error(X(426))}}else if(rt&&c.mode&1){var j=sy(o);if(j!==null){!(j.flags&65536)&&(j.flags|=256),ay(j,o,c,i,t),Gf(Ja(d,c));break e}}i=d=Ja(d,c),gt!==4&&(gt=2),Io===null?Io=[i]:Io.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=ty(i,d,t);Ev(i,b);break e;case 1:c=d;var p=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(is===null||!is.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=ny(i,c,t);Ev(i,N);break e}}i=i.return}while(i!==null)}Dy(n)}catch(S){t=S,mt===n&&n!==null&&(mt=n=n.return);continue}break}while(!0)}function Iy(){var e=zc.current;return zc.current=Ic,e===null?Ic:e}function Lm(){(gt===0||gt===3||gt===2)&&(gt=4),bt===null||!(Xs&268435455)&&!(Uc&268435455)||cs(bt,Ct)}function Kc(e,t){var n=ze;ze|=2;var s=Iy();(bt!==e||Ct!==t)&&(kr=null,Js(e,t));do try{E2();break}catch(a){Oy(e,a)}while(!0);if(Xf(),ze=n,zc.current=s,mt!==null)throw Error(X(261));return bt=null,Ct=0,gt}function E2(){for(;mt!==null;)My(mt)}function P2(){for(;mt!==null&&!ek();)My(mt)}function My(e){var t=$y(e.alternate,e,ln);e.memoizedProps=e.pendingProps,t===null?Dy(e):mt=t,Pm.current=null}function Dy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=w2(n,t),n!==null){n.flags&=32767,mt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{gt=6,mt=null;return}}else if(n=j2(n,t,ln),n!==null){mt=n;return}if(t=t.sibling,t!==null){mt=t;return}mt=t=e}while(t!==null);gt===0&&(gt=5)}function ea(e,t,n){var s=Ke,a=jn.transition;try{jn.transition=null,Ke=1,T2(e,t,n,s)}finally{jn.transition=a,Ke=s}return null}function T2(e,t,n,s){do ri();while(os!==null);if(ze&6)throw Error(X(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(X(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(dk(e,i),e===bt&&(mt=bt=null,Ct=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vc||(Vc=!0,zy(Xl,function(){return ri(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=jn.transition,jn.transition=null;var o=Ke;Ke=1;var c=ze;ze|=4,Pm.current=null,S2(e,n),ky(n,e),Yk(Lf),sc=!!Ff,Lf=Ff=null,e.current=n,C2(n),tk(),ze=c,Ke=o,jn.transition=i}else e.current=n;if(Vc&&(Vc=!1,os=e,qc=a),i=e.pendingLanes,i===0&&(is=null),sk(n.stateNode),Gt(e,ft()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(Bc)throw Bc=!1,e=Am,Am=null,e;return qc&1&&e.tag!==0&&ri(),i=e.pendingLanes,i&1?e===Om?Mo++:(Mo=0,Om=e):Mo=0,ns(),null}function ri(){if(os!==null){var e=Sg(qc),t=jn.transition,n=Ke;try{if(jn.transition=null,Ke=16>e?16:e,os===null)var s=!1;else{if(e=os,os=null,qc=0,ze&6)throw Error(X(331));var a=ze;for(ze|=4,ue=e.current;ue!==null;){var i=ue,o=i.child;if(ue.flags&16){var c=i.deletions;if(c!==null){for(var d=0;d<c.length;d++){var u=c[d];for(ue=u;ue!==null;){var h=ue;switch(h.tag){case 0:case 11:case 15:Ao(8,h,i)}var m=h.child;if(m!==null)m.return=h,ue=m;else for(;ue!==null;){h=ue;var y=h.sibling,v=h.return;if(jy(h),h===u){ue=null;break}if(y!==null){y.return=v,ue=y;break}ue=v}}}var w=i.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var j=g.sibling;g.sibling=null,g=j}while(g!==null)}}ue=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,ue=o;else e:for(;ue!==null;){if(i=ue,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ao(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,ue=b;break e}ue=i.return}}var p=e.current;for(ue=p;ue!==null;){o=ue;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,ue=x;else e:for(o=p;ue!==null;){if(c=ue,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:$c(9,c)}}catch(S){lt(c,c.return,S)}if(c===o){ue=null;break e}var N=c.sibling;if(N!==null){N.return=c.return,ue=N;break e}ue=c.return}}if(ze=a,ns(),Zn&&typeof Zn.onPostCommitFiberRoot=="function")try{Zn.onPostCommitFiberRoot(Zl,e)}catch(S){}s=!0}return s}finally{Ke=n,jn.transition=t}}return!1}function Fy(e,t,n){t=Ja(n,t),t=ty(e,t,1),e=ss(e,t,1),t=$t(),e!==null&&(so(e,1,t),Gt(e,t))}function lt(e,t,n){if(e.tag===3)Fy(e,e,n);else for(;t!==null;){if(t.tag===3){Fy(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(is===null||!is.has(s))){e=Ja(n,e),e=ny(t,e,1),t=ss(t,e,1),e=$t(),t!==null&&(so(t,1,e),Gt(t,e));break}}t=t.return}}function R2(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=$t(),e.pingedLanes|=e.suspendedLanes&n,bt===e&&(Ct&n)===n&&(gt===4||gt===3&&(Ct&130023424)===Ct&&500>ft()-Rm?Js(e,0):Tm|=n),Gt(e,t)}function Ly(e,t){t===0&&(e.mode&1?(t=ec,ec<<=1,!(ec&130023424)&&(ec=4194304)):t=1);var n=$t();e=Nr(e,t),e!==null&&(so(e,t,n),Gt(e,n))}function A2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ly(e,n)}function O2(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(X(314))}s!==null&&s.delete(t),Ly(e,n)}var $y;$y=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ht.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,b2(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,rt&&t.flags&1048576&&vv(t,wc,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Fc(e,t),e=t.pendingProps;var a=Ha(t,Tt.current);Xa(t,n),a=lm(null,t,s,e,a,n);var i=cm();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wt(s)?(i=!0,yc(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,tm(t),a.updater=Mc,t.stateNode=a,a._reactInternals=t,pm(t,s,e,n),t=ym(null,t,s,!0,i,n)):(t.tag=0,rt&&i&&Hf(t),Lt(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Fc(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=M2(s),e=On(s,e),a){case 0:t=vm(null,t,s,e,n);break e;case 1:t=uy(null,t,s,e,n);break e;case 11:t=iy(null,t,s,e,n);break e;case 14:t=oy(null,t,s,On(s.type,e),n);break e}throw Error(X(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:On(s,a),vm(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:On(s,a),uy(e,t,s,a,n);case 3:e:{if(fy(t),e===null)throw Error(X(387));s=t.pendingProps,i=t.memoizedState,a=i.element,_v(e,t),Ec(t,s,null,n);var o=t.memoizedState;if(s=o.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Ja(Error(X(423)),t),t=my(e,t,s,n,a);break e}else if(s!==a){a=Ja(Error(X(424)),t),t=my(e,t,s,n,a);break e}else for(on=Jr(t.stateNode.containerInfo.firstChild),an=t,rt=!0,An=null,n=Cv(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qa(),s===a){t=Cr(e,t,n);break e}Lt(e,t,s,n)}t=t.child}return t;case 5:return Tv(t),e===null&&Qf(t),s=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,$f(s,a)?o=null:i!==null&&$f(s,i)&&(t.flags|=32),dy(e,t),Lt(e,t,o,n),t.child;case 6:return e===null&&Qf(t),null;case 13:return hy(e,t,n);case 4:return nm(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ga(t,null,s,n):Lt(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:On(s,a),iy(e,t,s,a,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,Xe(Cc,s._currentValue),s._currentValue=o,i!==null)if(Rn(i.value,o)){if(i.children===a.children&&!Ht.current){t=Cr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){o=i.child;for(var d=c.firstContext;d!==null;){if(d.context===s){if(i.tag===1){d=Sr(-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),Jf(i.return,n,t),c.lanes|=n;break}d=d.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(X(341));o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Jf(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Lt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,Xa(t,n),a=yn(a),s=s(a),t.flags|=1,Lt(e,t,s,n),t.child;case 14:return s=t.type,a=On(s,t.pendingProps),a=On(s.type,a),oy(e,t,s,a,n);case 15:return ly(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:On(s,a),Fc(e,t),t.tag=1,Wt(s)?(e=!0,yc(t)):e=!1,Xa(t,n),Jv(t,s,a),pm(t,s,a,n),ym(null,t,s,!0,e,n);case 19:return xy(e,t,n);case 22:return cy(e,t,n)}throw Error(X(156,t.tag))};function zy(e,t){return yg(e,t)}function I2(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 wn(e,t,n,s){return new I2(e,t,n,s)}function $m(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M2(e){if(typeof e=="function")return $m(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qu)return 11;if(e===Ku)return 14}return 2}function ds(e,t){var n=e.alternate;return n===null?(n=wn(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 Qc(e,t,n,s,a,i){var o=2;if(s=e,typeof e=="function")$m(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Aa:return ta(n.children,a,i,t);case Bu:o=8,a|=8;break;case Vu:return e=wn(12,n,t,a|2),e.elementType=Vu,e.lanes=i,e;case Hu:return e=wn(13,n,t,a),e.elementType=Hu,e.lanes=i,e;case Wu:return e=wn(19,n,t,a),e.elementType=Wu,e.lanes=i,e;case Gx:return Gc(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kx:o=10;break e;case Qx:o=9;break e;case qu:o=11;break e;case Ku:o=14;break e;case Hr:o=16,s=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=wn(o,n,t,a),t.elementType=e,t.type=s,t.lanes=i,t}function ta(e,t,n,s){return e=wn(7,e,s,t),e.lanes=n,e}function Gc(e,t,n,s){return e=wn(22,e,s,t),e.elementType=Gx,e.lanes=n,e.stateNode={isHidden:!1},e}function zm(e,t,n){return e=wn(6,e,null,t),e.lanes=n,e}function Um(e,t,n){return t=wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function D2(e,t,n,s,a){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=hf(0),this.expirationTimes=hf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hf(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Bm(e,t,n,s,a,i,o,c,d){return e=new D2(e,t,n,c,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=wn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tm(i),e}function F2(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ra,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Uy(e){if(!e)return ts;e=e._reactInternals;e:{if(Vs(e)!==e||e.tag!==1)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Wt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(X(171))}if(e.tag===1){var n=e.type;if(Wt(n))return pv(e,n,t)}return t}function By(e,t,n,s,a,i,o,c,d){return e=Bm(n,s,!0,e,a,i,o,c,d),e.context=Uy(null),n=e.current,s=$t(),a=ls(n),i=Sr(s,a),i.callback=t!=null?t:null,ss(n,i,a),e.current.lanes=a,so(e,a,s),Gt(e,s),e}function Yc(e,t,n,s){var a=t.current,i=$t(),o=ls(a);return n=Uy(n),t.context===null?t.context=n:t.pendingContext=n,t=Sr(i,o),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=ss(a,t,o),e!==null&&(Dn(e,a,o,i),_c(e,a,o)),o}function Xc(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 Vy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vm(e,t){Vy(e,t),(e=e.alternate)&&Vy(e,t)}function L2(){return null}var qy=typeof reportError=="function"?reportError:function(e){console.error(e)};function qm(e){this._internalRoot=e}Zc.prototype.render=qm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(X(409));Yc(e,t,null,null)},Zc.prototype.unmount=qm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zs(function(){Yc(null,e,null,null)}),t[yr]=null}};function Zc(e){this._internalRoot=e}Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_g();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yr.length&&t!==0&&t<Yr[n].priority;n++);Yr.splice(n,0,e),n===0&&Tg(e)}};function Hm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hy(){}function $2(e,t,n,s,a){if(a){if(typeof s=="function"){var i=s;s=function(){var u=Xc(o);i.call(u)}}var o=By(t,s,e,0,null,!1,!1,"",Hy);return e._reactRootContainer=o,e[yr]=o.current,yo(e.nodeType===8?e.parentNode:e),Zs(),o}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var c=s;s=function(){var u=Xc(d);c.call(u)}}var d=Bm(e,0,!1,null,null,!1,!1,"",Hy);return e._reactRootContainer=d,e[yr]=d.current,yo(e.nodeType===8?e.parentNode:e),Zs(function(){Yc(t,d,n,s)}),d}function ed(e,t,n,s,a){var i=n._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var c=a;a=function(){var d=Xc(o);c.call(d)}}Yc(t,o,e,a)}else o=$2(n,t,e,a,s);return Xc(o)}Cg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ro(t.pendingLanes);n!==0&&(pf(t,n|1),Gt(t,ft()),!(ze&6)&&(ni=ft()+500,ns()))}break;case 13:Zs(function(){var s=Nr(e,1);if(s!==null){var a=$t();Dn(s,e,1,a)}}),Vm(e,1)}},xf=function(e){if(e.tag===13){var t=Nr(e,134217728);if(t!==null){var n=$t();Dn(t,e,134217728,n)}Vm(e,134217728)}},kg=function(e){if(e.tag===13){var t=ls(e),n=Nr(e,t);if(n!==null){var s=$t();Dn(n,e,t,s)}Vm(e,t)}},_g=function(){return Ke},Eg=function(e,t){var n=Ke;try{return Ke=e,t()}finally{Ke=n}},lf=function(e,t,n){switch(t){case"input":if(Ju(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 a=gc(s);if(!a)throw Error(X(90));Zx(s),Ju(s,a)}}}break;case"textarea":rg(e,n);break;case"select":t=n.value,t!=null&&Oa(e,!!n.multiple,t,!1)}},fg=Dm,mg=Zs;var z2={usingClientEntryPoint:!1,Events:[wo,Va,gc,dg,ug,Dm]},Do={findFiberByHostInstance:qs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},U2={bundleType:Do.bundleType,version:Do.version,rendererPackageName:Do.rendererPackageName,rendererConfig:Do.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gg(e),e===null?null:e.stateNode},findFiberByHostInstance:Do.findFiberByHostInstance||L2,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 td=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!td.isDisabled&&td.supportsFiber)try{Zl=td.inject(U2),Zn=td}catch(e){}}nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z2,nn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hm(t))throw Error(X(200));return F2(e,t,null,n)},nn.createRoot=function(e,t){if(!Hm(e))throw Error(X(299));var n=!1,s="",a=qy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Bm(e,1,!1,null,null,n,!1,s,a),e[yr]=t.current,yo(e.nodeType===8?e.parentNode:e),new qm(t)},nn.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(X(188)):(e=Object.keys(e).join(","),Error(X(268,e)));return e=gg(t),e=e===null?null:e.stateNode,e},nn.flushSync=function(e){return Zs(e)},nn.hydrate=function(e,t,n){if(!Jc(t))throw Error(X(200));return ed(null,e,t,!0,n)},nn.hydrateRoot=function(e,t,n){if(!Hm(e))throw Error(X(405));var s=n!=null&&n.hydratedSources||null,a=!1,i="",o=qy;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=By(t,null,e,1,n!=null?n:null,a,!1,i,o),e[yr]=t.current,yo(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Zc(t)},nn.render=function(e,t,n){if(!Jc(t))throw Error(X(200));return ed(null,e,t,!1,n)},nn.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(X(40));return e._reactRootContainer?(Zs(function(){ed(null,null,e,!1,function(){e._reactRootContainer=null,e[yr]=null})}),!0):!1},nn.unstable_batchedUpdates=Dm,nn.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Jc(n))throw Error(X(200));if(e==null||e._reactInternals===void 0)throw Error(X(38));return ed(e,t,n,!1,s)},nn.version="18.3.1-next-f1338f8080-20240426";function Wy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wy)}catch(e){console.error(e)}}Wy(),Ux.exports=nn;var na=Ux.exports;const Ky=ot(na);var Qy,Gy=na;Qy=Gy.createRoot,Gy.hydrateRoot;var ra=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(){}},B2=(XS=class extends ra{constructor(){super();de(this,va);de(this,Es);de(this,Pi);J(this,Pi,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){E(this,Es)||this.setEventListener(E(this,Pi))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Es))==null||t.call(this),J(this,Es,void 0))}setEventListener(t){var n;J(this,Pi,t),(n=E(this,Es))==null||n.call(this),J(this,Es,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){E(this,va)!==t&&(J(this,va,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof E(this,va)=="boolean"?E(this,va):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},va=new WeakMap,Es=new WeakMap,Pi=new WeakMap,XS),Wm=new B2,V2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},q2=(ZS=class{constructor(){de(this,Ps,V2);de(this,mx,!1)}setTimeoutProvider(e){J(this,Ps,e)}setTimeout(e,t){return E(this,Ps).setTimeout(e,t)}clearTimeout(e){E(this,Ps).clearTimeout(e)}setInterval(e,t){return E(this,Ps).setInterval(e,t)}clearInterval(e){E(this,Ps).clearInterval(e)}},Ps=new WeakMap,mx=new WeakMap,ZS),sa=new q2;function H2(e){setTimeout(e,0)}var W2=typeof window=="undefined"||"Deno"in globalThis;function It(){}function K2(e,t){return typeof e=="function"?e(t):e}function Km(e){return typeof e=="number"&&e>=0&&e!==1/0}function Yy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function us(e,t){return typeof e=="function"?e(t):e}function Nn(e,t){return typeof e=="function"?e(t):e}function Xy(e,t){const{type:n="all",exact:s,fetchStatus:a,predicate:i,queryKey:o,stale:c}=e;if(o){if(s){if(t.queryHash!==Qm(o,t.options))return!1}else if(!Fo(t.queryKey,o))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||i&&!i(t))}function Zy(e,t){const{exact:n,status:s,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(aa(t.options.mutationKey)!==aa(i))return!1}else if(!Fo(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function Qm(e,t){return((t==null?void 0:t.queryKeyHashFn)||aa)(e)}function aa(e){return JSON.stringify(e,(t,n)=>Ym(n)?Object.keys(n).sort().reduce((s,a)=>(s[a]=n[a],s),{}):n)}function Fo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Fo(e[n],t[n])):!1}var Q2=Object.prototype.hasOwnProperty;function Gm(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=Jy(e)&&Jy(t);if(!s&&!(Ym(e)&&Ym(t)))return t;const i=(s?e:Object.keys(e)).length,o=s?t:Object.keys(t),c=o.length,d=s?new Array(c):{};let u=0;for(let h=0;h<c;h++){const m=s?h:o[h],y=e[m],v=t[m];if(y===v){d[m]=y,(s?h<i:Q2.call(e,m))&&u++;continue}if(y===null||v===null||typeof y!="object"||typeof v!="object"){d[m]=v;continue}const w=Gm(y,v,n+1);d[m]=w,w===y&&u++}return i===c&&u===i?e:d}function Lo(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 Jy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ym(e){if(!eb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!eb(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function eb(e){return Object.prototype.toString.call(e)==="[object Object]"}function G2(e){return new Promise(t=>{sa.setTimeout(t,e)})}function Xm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Gm(e,t):t}function Y2(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function X2(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Zm=Symbol();function tb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Zm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Jm(e,t){return typeof e=="function"?e(...t):!!e}function Z2(e,t,n){let s=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a!=null||(a=t()),s||(s=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var $o=(()=>{let e=()=>W2;return{isServer(){return e()},setIsServer(t){e=t}}})();function eh(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function s(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},n.reject=a=>{s({status:"rejected",reason:a}),t(a)},n}var J2=H2;function e_(){let e=[],t=0,n=c=>{c()},s=c=>{c()},a=J2;const i=c=>{t?e.push(c):a(()=>{n(c)})},o=()=>{const c=e;e=[],c.length&&a(()=>{s(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||o()}return d},batchCalls:c=>(...d)=>{i(()=>{c(...d)})},schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{a=c}}}var ct=e_(),t_=(JS=class extends ra{constructor(){super();de(this,Ti,!0);de(this,Ts);de(this,Ri);J(this,Ri,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,Ts)||this.setEventListener(E(this,Ri))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Ts))==null||t.call(this),J(this,Ts,void 0))}setEventListener(t){var n;J(this,Ri,t),(n=E(this,Ts))==null||n.call(this),J(this,Ts,t(this.setOnline.bind(this)))}setOnline(t){E(this,Ti)!==t&&(J(this,Ti,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return E(this,Ti)}},Ti=new WeakMap,Ts=new WeakMap,Ri=new WeakMap,JS),nd=new t_;function n_(e){return Math.min(1e3*2**e,3e4)}function nb(e){return(e!=null?e:"online")==="online"?nd.isOnline():!0}var th=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function rb(e){let t=!1,n=0,s;const a=eh(),i=()=>a.status!=="pending",o=g=>{var j;if(!i()){const b=new th(g);y(b),(j=e.onCancel)==null||j.call(e,b)}},c=()=>{t=!0},d=()=>{t=!1},u=()=>Wm.isFocused()&&(e.networkMode==="always"||nd.isOnline())&&e.canRun(),h=()=>nb(e.networkMode)&&e.canRun(),m=g=>{i()||(s==null||s(),a.resolve(g))},y=g=>{i()||(s==null||s(),a.reject(g))},v=()=>new Promise(g=>{var j;s=b=>{(i()||u())&&g(b)},(j=e.onPause)==null||j.call(e)}).then(()=>{var g;s=void 0,i()||(g=e.onContinue)==null||g.call(e)}),w=()=>{if(i())return;let g;const j=n===0?e.initialPromise:void 0;try{g=j!=null?j:e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(m).catch(b=>{var k,_,C;if(i())return;const p=(k=e.retry)!=null?k:$o.isServer()?0:3,x=(_=e.retryDelay)!=null?_:n_,N=typeof x=="function"?x(n,b):x,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,b);if(t||!S){y(b);return}n++,(C=e.onFail)==null||C.call(e,n,b),G2(N).then(()=>u()?void 0:v()).then(()=>{t?y(b):w()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(s==null||s(),a),cancelRetry:c,continueRetry:d,canStart:h,start:()=>(h()?w():v().then(w),a)}}var sb=(eC=class{constructor(){de(this,ya)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Km(this.gcTime)&&J(this,ya,sa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:$o.isServer()?1/0:5*60*1e3)}clearGcTimeout(){E(this,ya)!==void 0&&(sa.clearTimeout(E(this,ya)),J(this,ya,void 0))}},ya=new WeakMap,eC),r_=(tC=class extends sb{constructor(t){var n;super();de(this,hn);de(this,ba);de(this,Ai);de(this,En);de(this,ja);de(this,wt);de(this,Sl);de(this,wa);J(this,wa,!1),J(this,Sl,t.defaultOptions),this.setOptions(t.options),this.observers=[],J(this,ja,t.client),J(this,En,E(this,ja).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,ba,ob(this.options)),this.state=(n=t.state)!=null?n:E(this,ba),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,wt))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,Sl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=ob(this.options);n.data!==void 0&&(this.setState(ib(n.data,n.dataUpdatedAt)),J(this,ba,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,En).remove(this)}setData(t,n){const s=Xm(this.state.data,t,this.options);return Se(this,hn,qr).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){Se(this,hn,qr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,a;const n=(s=E(this,wt))==null?void 0:s.promise;return(a=E(this,wt))==null||a.cancel(t),n?n.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,ba)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Nn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>us(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:!Yy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,wt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,wt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,En).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,wt)&&(E(this,wa)||Se(this,hn,pC).call(this)?E(this,wt).cancel({revert:!0}):E(this,wt).cancelRetry()),this.scheduleGc()),E(this,En).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,hn,qr).call(this,{type:"invalidate"})}async fetch(t,n){var d,u,h,m,y,v,w,g,j,b,p,x;if(this.state.fetchStatus!=="idle"&&((d=E(this,wt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(E(this,wt))return E(this,wt).continueRetry(),E(this,wt).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,a=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(J(this,wa,!0),s.signal)})},i=()=>{const N=tb(this.options,n),k=(()=>{const _={client:E(this,ja),queryKey:this.queryKey,meta:this.meta};return a(_),_})();return J(this,wa,!1),this.options.persister?this.options.persister(N,k,this):N(k)},c=(()=>{const N={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:E(this,ja),state:this.state,fetchFn:i};return a(N),N})();(u=this.options.behavior)==null||u.onFetch(c,this),J(this,Ai,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=c.fetchOptions)==null?void 0:h.meta))&&Se(this,hn,qr).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),J(this,wt,rb({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:N=>{N instanceof th&&N.revert&&this.setState({...E(this,Ai),fetchStatus:"idle"}),s.abort()},onFail:(N,S)=>{Se(this,hn,qr).call(this,{type:"failed",failureCount:N,error:S})},onPause:()=>{Se(this,hn,qr).call(this,{type:"pause"})},onContinue:()=>{Se(this,hn,qr).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const N=await E(this,wt).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(v=(y=E(this,En).config).onSuccess)==null||v.call(y,N,this),(g=(w=E(this,En).config).onSettled)==null||g.call(w,N,this.state.error,this),N}catch(N){if(N instanceof th){if(N.silent)return E(this,wt).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw Se(this,hn,qr).call(this,{type:"error",error:N}),(b=(j=E(this,En).config).onError)==null||b.call(j,N,this),(x=(p=E(this,En).config).onSettled)==null||x.call(p,this.state.data,N,this),N}finally{this.scheduleGc()}}},ba=new WeakMap,Ai=new WeakMap,En=new WeakMap,ja=new WeakMap,wt=new WeakMap,Sl=new WeakMap,wa=new WeakMap,hn=new WeakSet,pC=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},qr=function(t){const n=s=>{var a;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,...ab(s.data,this.options),fetchMeta:(a=t.meta)!=null?a:null};case"success":const i={...s,...ib(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,Ai,t.manual?i:void 0),i;case"error":const o=t.error;return{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),ct.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),E(this,En).notify({query:this,type:"updated",action:t})})},tC);function ab(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ib(e,t){return{data:e,dataUpdatedAt:t!=null?t:Date.now(),error:null,isInvalidated:!1,status:"success"}}function ob(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 nh=(nC=class extends ra{constructor(t,n){super();de(this,He);de(this,Xt);de(this,Le);de(this,Cl);de(this,Bt);de(this,Na);de(this,Oi);de(this,Dr);de(this,Rs);de(this,kl);de(this,Ii);de(this,Mi);de(this,Sa);de(this,Ca);de(this,As);de(this,Di,new Set);this.options=n,J(this,Xt,t),J(this,Rs,null),J(this,Dr,eh()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Le).addObserver(this),lb(E(this,Le),this.options)?Se(this,He,zl).call(this):this.updateResult(),Se(this,He,vx).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rh(E(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rh(E(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,He,yx).call(this),Se(this,He,bx).call(this),E(this,Le).removeObserver(this)}setOptions(t){const n=this.options,s=E(this,Le);if(this.options=E(this,Xt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nn(this.options.enabled,E(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,He,jx).call(this),E(this,Le).setOptions(this.options),n._defaulted&&!Lo(this.options,n)&&E(this,Xt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Le),observer:this});const a=this.hasListeners();a&&cb(E(this,Le),s,this.options,n)&&Se(this,He,zl).call(this),this.updateResult(),a&&(E(this,Le)!==s||Nn(this.options.enabled,E(this,Le))!==Nn(n.enabled,E(this,Le))||us(this.options.staleTime,E(this,Le))!==us(n.staleTime,E(this,Le)))&&Se(this,He,px).call(this);const i=Se(this,He,xx).call(this);a&&(E(this,Le)!==s||Nn(this.options.enabled,E(this,Le))!==Nn(n.enabled,E(this,Le))||i!==E(this,As))&&Se(this,He,gx).call(this,i)}getOptimisticResult(t){const n=E(this,Xt).getQueryCache().build(E(this,Xt),t),s=this.createResult(n,t);return a_(this,s)&&(J(this,Bt,s),J(this,Oi,this.options),J(this,Na,E(this,Le).state)),s}getCurrentResult(){return E(this,Bt)}trackResult(t,n){return new Proxy(t,{get:(s,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Dr).status==="pending"&&E(this,Dr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,a))})}trackProp(t){E(this,Di).add(t)}getCurrentQuery(){return E(this,Le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=E(this,Xt).defaultQueryOptions(t),s=E(this,Xt).getQueryCache().build(E(this,Xt),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){var n;return Se(this,He,zl).call(this,{...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),E(this,Bt)))}createResult(t,n){var R;const s=E(this,Le),a=this.options,i=E(this,Bt),o=E(this,Na),c=E(this,Oi),u=t!==s?t.state:E(this,Cl),{state:h}=t;let m={...h},y=!1,v;if(n._optimisticResults){const T=this.hasListeners(),O=!T&&lb(t,n),M=T&&cb(t,s,n,a);(O||M)&&(m={...m,...ab(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:w,errorUpdatedAt:g,status:j}=m;v=m.data;let b=!1;if(n.placeholderData!==void 0&&v===void 0&&j==="pending"){let T;i!=null&&i.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(T=i.data,b=!0):T=typeof n.placeholderData=="function"?n.placeholderData((R=E(this,Mi))==null?void 0:R.state.data,E(this,Mi)):n.placeholderData,T!==void 0&&(j="success",v=Xm(i==null?void 0:i.data,T,n),y=!0)}if(n.select&&v!==void 0&&!b)if(i&&v===(o==null?void 0:o.data)&&n.select===E(this,kl))v=E(this,Ii);else try{J(this,kl,n.select),v=n.select(v),v=Xm(i==null?void 0:i.data,v,n),J(this,Ii,v),J(this,Rs,null)}catch(T){J(this,Rs,T)}E(this,Rs)&&(w=E(this,Rs),v=E(this,Ii),g=Date.now(),j="error");const p=m.fetchStatus==="fetching",x=j==="pending",N=j==="error",S=x&&p,k=v!==void 0,C={status:j,fetchStatus:m.fetchStatus,isPending:x,isSuccess:j==="success",isError:N,isInitialLoading:S,isLoading:S,data:v,dataUpdatedAt:m.dataUpdatedAt,error:w,errorUpdatedAt:g,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&&!x,isLoadingError:N&&!k,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:N&&k,isStale:sh(t,n),refetch:this.refetch,promise:E(this,Dr),isEnabled:Nn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=C.data!==void 0,O=C.status==="error"&&!T,M=ne=>{O?ne.reject(C.error):T&&ne.resolve(C.data)},B=()=>{const ne=J(this,Dr,C.promise=eh());M(ne)},I=E(this,Dr);switch(I.status){case"pending":t.queryHash===s.queryHash&&M(I);break;case"fulfilled":(O||C.data!==I.value)&&B();break;case"rejected":(!O||C.error!==I.reason)&&B();break}}return C}updateResult(){const t=E(this,Bt),n=this.createResult(E(this,Le),this.options);if(J(this,Na,E(this,Le).state),J(this,Oi,this.options),E(this,Na).data!==void 0&&J(this,Mi,E(this,Le)),Lo(n,t))return;J(this,Bt,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!E(this,Di).size)return!0;const o=new Set(i!=null?i:E(this,Di));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,Bt)).some(c=>{const d=c;return E(this,Bt)[d]!==t[d]&&o.has(d)})};Se(this,He,xC).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,He,vx).call(this)}},Xt=new WeakMap,Le=new WeakMap,Cl=new WeakMap,Bt=new WeakMap,Na=new WeakMap,Oi=new WeakMap,Dr=new WeakMap,Rs=new WeakMap,kl=new WeakMap,Ii=new WeakMap,Mi=new WeakMap,Sa=new WeakMap,Ca=new WeakMap,As=new WeakMap,Di=new WeakMap,He=new WeakSet,zl=function(t){Se(this,He,jx).call(this);let n=E(this,Le).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(It)),n},px=function(){Se(this,He,yx).call(this);const t=us(this.options.staleTime,E(this,Le));if($o.isServer()||E(this,Bt).isStale||!Km(t))return;const s=Yy(E(this,Bt).dataUpdatedAt,t)+1;J(this,Sa,sa.setTimeout(()=>{E(this,Bt).isStale||this.updateResult()},s))},xx=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Le)):this.options.refetchInterval)!=null?t:!1},gx=function(t){Se(this,He,bx).call(this),J(this,As,t),!($o.isServer()||Nn(this.options.enabled,E(this,Le))===!1||!Km(E(this,As))||E(this,As)===0)&&J(this,Ca,sa.setInterval(()=>{(this.options.refetchIntervalInBackground||Wm.isFocused())&&Se(this,He,zl).call(this)},E(this,As)))},vx=function(){Se(this,He,px).call(this),Se(this,He,gx).call(this,Se(this,He,xx).call(this))},yx=function(){E(this,Sa)!==void 0&&(sa.clearTimeout(E(this,Sa)),J(this,Sa,void 0))},bx=function(){E(this,Ca)!==void 0&&(sa.clearInterval(E(this,Ca)),J(this,Ca,void 0))},jx=function(){const t=E(this,Xt).getQueryCache().build(E(this,Xt),this.options);if(t===E(this,Le))return;const n=E(this,Le);J(this,Le,t),J(this,Cl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},xC=function(t){ct.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(E(this,Bt))}),E(this,Xt).getQueryCache().notify({query:E(this,Le),type:"observerResultsUpdated"})})},nC);function s_(e,t){return Nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lb(e,t){return s_(e,t)||e.state.data!==void 0&&rh(e,t,t.refetchOnMount)}function rh(e,t,n){if(Nn(t.enabled,e)!==!1&&us(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&sh(e,t)}return!1}function cb(e,t,n,s){return(e!==t||Nn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&sh(e,n)}function sh(e,t){return Nn(t.enabled,e)!==!1&&e.isStaleByTime(us(t.staleTime,e))}function a_(e,t){return!Lo(e.getCurrentResult(),t)}function db(e){return{onFetch:(t,n)=>{var h,m,y,v,w;const s=t.options,a=(y=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,i=((v=t.state.data)==null?void 0:v.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const u=async()=>{var x;let g=!1;const j=N=>{Z2(N,()=>t.signal,()=>g=!0)},b=tb(t.options,t.fetchOptions),p=async(N,S,k)=>{if(g)return Promise.reject();if(S==null&&N.pages.length)return Promise.resolve(N);const C=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return j(M),M})(),R=await b(C),{maxPages:T}=t.options,O=k?X2:Y2;return{pages:O(N.pages,R,T),pageParams:O(N.pageParams,S,T)}};if(a&&i.length){const N=a==="backward",S=N?i_:ub,k={pages:i,pageParams:o},_=S(s,k);c=await p(k,_,N)}else{const N=e!=null?e:i.length;do{const S=d===0?(x=o[0])!=null?x:s.initialPageParam:ub(s,c);if(d>0&&S==null)break;c=await p(c,S),d++}while(d<N)}return c};t.options.persister?t.fetchFn=()=>{var g,j;return(j=(g=t.options).persister)==null?void 0:j.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function ub(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 i_(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 o_=(rC=class extends sb{constructor(t){super();de(this,fr);de(this,_l);de(this,ur);de(this,Mt);de(this,ka);J(this,_l,t.client),this.mutationId=t.mutationId,J(this,Mt,t.mutationCache),J(this,ur,[]),this.state=t.state||fb(),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,ur).includes(t)||(E(this,ur).push(t),this.clearGcTimeout(),E(this,Mt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,ur,E(this,ur).filter(n=>n!==t)),this.scheduleGc(),E(this,Mt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,ur).length||(this.state.status==="pending"?this.scheduleGc():E(this,Mt).remove(this))}continue(){var t,n;return(n=(t=E(this,ka))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}async execute(t){var o,c,d,u,h,m,y,v,w,g,j,b,p,x,N,S,k,_,C;const n=()=>{Se(this,fr,zs).call(this,{type:"continue"})},s={client:E(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,ka,rb({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(R,T)=>{Se(this,fr,zs).call(this,{type:"failed",failureCount:R,error:T})},onPause:()=>{Se(this,fr,zs).call(this,{type:"pause"})},onContinue:n,retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Mt).canRun(this)}));const a=this.state.status==="pending",i=!E(this,ka).canStart();try{if(a)n();else{Se(this,fr,zs).call(this,{type:"pending",variables:t,isPaused:i}),E(this,Mt).config.onMutate&&await E(this,Mt).config.onMutate(t,this,s);const T=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,t,s));T!==this.state.context&&Se(this,fr,zs).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const R=await E(this,ka).start();return await((h=(u=E(this,Mt).config).onSuccess)==null?void 0:h.call(u,R,t,this.state.context,this,s)),await((y=(m=this.options).onSuccess)==null?void 0:y.call(m,R,t,this.state.context,s)),await((w=(v=E(this,Mt).config).onSettled)==null?void 0:w.call(v,R,null,this.state.variables,this.state.context,this,s)),await((j=(g=this.options).onSettled)==null?void 0:j.call(g,R,null,t,this.state.context,s)),Se(this,fr,zs).call(this,{type:"success",data:R}),R}catch(R){try{await((p=(b=E(this,Mt).config).onError)==null?void 0:p.call(b,R,t,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((N=(x=this.options).onError)==null?void 0:N.call(x,R,t,this.state.context,s))}catch(T){Promise.reject(T)}try{await((k=(S=E(this,Mt).config).onSettled)==null?void 0:k.call(S,void 0,R,this.state.variables,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((C=(_=this.options).onSettled)==null?void 0:C.call(_,void 0,R,t,this.state.context,s))}catch(T){Promise.reject(T)}throw Se(this,fr,zs).call(this,{type:"error",error:R}),R}finally{E(this,Mt).runNext(this)}}},_l=new WeakMap,ur=new WeakMap,Mt=new WeakMap,ka=new WeakMap,fr=new WeakSet,zs=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),ct.batch(()=>{E(this,ur).forEach(s=>{s.onMutationUpdate(t)}),E(this,Mt).notify({mutation:this,type:"updated",action:t})})},rC);function fb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var l_=(sC=class extends ra{constructor(t={}){super();de(this,Fr);de(this,Qn);de(this,El);this.config=t,J(this,Fr,new Set),J(this,Qn,new Map),J(this,El,0)}build(t,n,s){const a=new o_({client:t,mutationCache:this,mutationId:++Ru(this,El)._,options:t.defaultMutationOptions(n),state:s});return this.add(a),a}add(t){E(this,Fr).add(t);const n=rd(t);if(typeof n=="string"){const s=E(this,Qn).get(n);s?s.push(t):E(this,Qn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,Fr).delete(t)){const n=rd(t);if(typeof n=="string"){const s=E(this,Qn).get(n);if(s)if(s.length>1){const a=s.indexOf(t);a!==-1&&s.splice(a,1)}else s[0]===t&&E(this,Qn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=rd(t);if(typeof n=="string"){const s=E(this,Qn).get(n),a=s==null?void 0:s.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var s,a;const n=rd(t);if(typeof n=="string"){const i=(s=E(this,Qn).get(n))==null?void 0:s.find(o=>o!==t&&o.state.isPaused);return(a=i==null?void 0:i.continue())!=null?a:Promise.resolve()}else return Promise.resolve()}clear(){ct.batch(()=>{E(this,Fr).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,Fr).clear(),E(this,Qn).clear()})}getAll(){return Array.from(E(this,Fr))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Zy(n,s))}findAll(t={}){return this.getAll().filter(n=>Zy(t,n))}notify(t){ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ct.batch(()=>Promise.all(t.map(n=>n.continue().catch(It))))}},Fr=new WeakMap,Qn=new WeakMap,El=new WeakMap,sC);function rd(e){var t;return(t=e.options.scope)==null?void 0:t.id}var c_=(aC=class extends ra{constructor(n,s){super();de(this,zr);de(this,Lr);de(this,Os);de(this,Zt);de(this,$r);J(this,Lr,n),this.setOptions(s),this.bindMethods(),Se(this,zr,Au).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const s=this.options;this.options=E(this,Lr).defaultMutationOptions(n),Lo(this.options,s)||E(this,Lr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Zt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&aa(s.mutationKey)!==aa(this.options.mutationKey)?this.reset():((a=E(this,Zt))==null?void 0:a.state.status)==="pending"&&E(this,Zt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=E(this,Zt))==null||n.removeObserver(this)}onMutationUpdate(n){Se(this,zr,Au).call(this),Se(this,zr,wx).call(this,n)}getCurrentResult(){return E(this,Os)}reset(){var n;(n=E(this,Zt))==null||n.removeObserver(this),J(this,Zt,void 0),Se(this,zr,Au).call(this),Se(this,zr,wx).call(this)}mutate(n,s){var a;return J(this,$r,s),(a=E(this,Zt))==null||a.removeObserver(this),J(this,Zt,E(this,Lr).getMutationCache().build(E(this,Lr),this.options)),E(this,Zt).addObserver(this),E(this,Zt).execute(n)}},Lr=new WeakMap,Os=new WeakMap,Zt=new WeakMap,$r=new WeakMap,zr=new WeakSet,Au=function(){var s,a;const n=(a=(s=E(this,Zt))==null?void 0:s.state)!=null?a:fb();J(this,Os,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},wx=function(n){ct.batch(()=>{var s,a,i,o,c,d,u,h;if(E(this,$r)&&this.hasListeners()){const m=E(this,Os).variables,y=E(this,Os).context,v={client:E(this,Lr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(s=E(this,$r)).onSuccess)==null||a.call(s,n.data,m,y,v)}catch(w){Promise.reject(w)}try{(o=(i=E(this,$r)).onSettled)==null||o.call(i,n.data,null,m,y,v)}catch(w){Promise.reject(w)}}else if((n==null?void 0:n.type)==="error"){try{(d=(c=E(this,$r)).onError)==null||d.call(c,n.error,m,y,v)}catch(w){Promise.reject(w)}try{(h=(u=E(this,$r)).onSettled)==null||h.call(u,void 0,n.error,m,y,v)}catch(w){Promise.reject(w)}}}this.listeners.forEach(m=>{m(E(this,Os))})})},aC);function mb(e,t){const n=new Set(t);return e.filter(s=>!n.has(s))}function d_(e,t,n){const s=e.slice(0);return s[t]=n,s}var u_=(iC=class extends ra{constructor(t,n,s){super();de(this,Pt);de(this,Fi);de(this,pn);de(this,Li);de(this,$i);de(this,Pn);de(this,Is);de(this,Pl);de(this,Tl);de(this,Rl);de(this,Al,[]);J(this,Fi,t),J(this,$i,s),J(this,Li,[]),J(this,Pn,[]),J(this,pn,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&E(this,Pn).forEach(t=>{t.subscribe(n=>{Se(this,Pt,kx).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,E(this,Pn).forEach(t=>{t.destroy()})}setQueries(t,n){J(this,Li,t),J(this,$i,n),ct.batch(()=>{const s=E(this,Pn),a=Se(this,Pt,Cx).call(this,E(this,Li));a.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const i=a.map(m=>m.observer),o=i.map(m=>m.getCurrentResult()),c=s.length!==i.length,d=i.some((m,y)=>m!==s[y]),u=c||d,h=u?!0:o.some((m,y)=>{const v=E(this,pn)[y];return!v||!Lo(m,v)});!u&&!h||(u&&(J(this,Al,a),J(this,Pn,i)),J(this,pn,o),this.hasListeners()&&(u&&(mb(s,i).forEach(m=>{m.destroy()}),mb(i,s).forEach(m=>{m.subscribe(y=>{Se(this,Pt,kx).call(this,m,y)})})),Se(this,Pt,_x).call(this)))})}getCurrentResult(){return E(this,pn)}getQueries(){return E(this,Pn).map(t=>t.getCurrentQuery())}getObservers(){return E(this,Pn)}getOptimisticResult(t,n){const s=Se(this,Pt,Cx).call(this,t),a=s.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions)),i=s.map(o=>o.defaultedQueryOptions.queryHash);return[a,o=>Se(this,Pt,Sx).call(this,o!=null?o:a,n,i),()=>Se(this,Pt,Nx).call(this,a,s)]}},Fi=new WeakMap,pn=new WeakMap,Li=new WeakMap,$i=new WeakMap,Pn=new WeakMap,Is=new WeakMap,Pl=new WeakMap,Tl=new WeakMap,Rl=new WeakMap,Al=new WeakMap,Pt=new WeakSet,Nx=function(t,n){return n.map((s,a)=>{const i=t[a];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,o=>{n.forEach(c=>{c.observer.trackProp(o)})})})},Sx=function(t,n,s){if(n){const a=E(this,Rl),i=s!==void 0&&a!==void 0&&(a.length!==s.length||s.some((o,c)=>o!==a[c]));return(!E(this,Is)||E(this,pn)!==E(this,Tl)||i||n!==E(this,Pl))&&(J(this,Pl,n),J(this,Tl,E(this,pn)),s!==void 0&&J(this,Rl,s),J(this,Is,Gm(E(this,Is),n(t)))),E(this,Is)}return t},Cx=function(t){const n=new Map;E(this,Pn).forEach(a=>{const i=a.options.queryHash;if(!i)return;const o=n.get(i);o?o.push(a):n.set(i,[a])});const s=[];return t.forEach(a=>{var d;const i=E(this,Fi).defaultQueryOptions(a),o=(d=n.get(i.queryHash))==null?void 0:d.shift(),c=o!=null?o:new nh(E(this,Fi),i);s.push({defaultedQueryOptions:i,observer:c})}),s},kx=function(t,n){const s=E(this,Pn).indexOf(t);s!==-1&&(J(this,pn,d_(E(this,pn),s,n)),Se(this,Pt,_x).call(this))},_x=function(){var t;if(this.hasListeners()){const n=E(this,Is),s=Se(this,Pt,Nx).call(this,E(this,pn),E(this,Al)),a=Se(this,Pt,Sx).call(this,s,(t=E(this,$i))==null?void 0:t.combine);n!==a&&ct.batch(()=>{this.listeners.forEach(i=>{i(E(this,pn))})})}},iC),f_=(oC=class extends ra{constructor(t={}){super();de(this,mr);this.config=t,J(this,mr,new Map)}build(t,n,s){var c;const a=n.queryKey,i=(c=n.queryHash)!=null?c:Qm(a,n);let o=this.get(i);return o||(o=new r_({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){E(this,mr).has(t.queryHash)||(E(this,mr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=E(this,mr).get(t.queryHash);n&&(t.destroy(),n===t&&E(this,mr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ct.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,mr).get(t)}getAll(){return[...E(this,mr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Xy(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Xy(t,s)):n}notify(t){ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ct.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ct.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mr=new WeakMap,oC),m_=(lC=class{constructor(e={}){de(this,ut);de(this,Ms);de(this,Ds);de(this,zi);de(this,Ui);de(this,Fs);de(this,Bi);de(this,Vi);J(this,ut,e.queryCache||new f_),J(this,Ms,e.mutationCache||new l_),J(this,Ds,e.defaultOptions||{}),J(this,zi,new Map),J(this,Ui,new Map),J(this,Fs,0)}mount(){Ru(this,Fs)._++,E(this,Fs)===1&&(J(this,Bi,Wm.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,ut).onFocus())})),J(this,Vi,nd.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,ut).onOnline())})))}unmount(){var e,t;Ru(this,Fs)._--,E(this,Fs)===0&&((e=E(this,Bi))==null||e.call(this),J(this,Bi,void 0),(t=E(this,Vi))==null||t.call(this),J(this,Vi,void 0))}isFetching(e){return E(this,ut).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,Ms).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,ut).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=E(this,ut).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(us(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return E(this,ut).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),a=E(this,ut).get(s.queryHash),i=a==null?void 0:a.state.data,o=K2(t,i);if(o!==void 0)return E(this,ut).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ct.batch(()=>E(this,ut).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,ut).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=E(this,ut);ct.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=E(this,ut);return ct.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=ct.batch(()=>E(this,ut).findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(It).catch(It)}invalidateQueries(e,t={}){return ct.batch(()=>{var n,s;return E(this,ut).findAll(e).forEach(a=>{a.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 a;const n={...t,cancelRefetch:(a=t.cancelRefetch)!=null?a:!0},s=ct.batch(()=>E(this,ut).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(It)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(s).then(It)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=E(this,ut).build(this,t);return n.isStaleByTime(us(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(It).catch(It)}fetchInfiniteQuery(e){return e.behavior=db(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(It).catch(It)}ensureInfiniteQueryData(e){return e.behavior=db(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return nd.isOnline()?E(this,Ms).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,ut)}getMutationCache(){return E(this,Ms)}getDefaultOptions(){return E(this,Ds)}setDefaultOptions(e){J(this,Ds,e)}setQueryDefaults(e,t){E(this,zi).set(aa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,zi).values()],n={};return t.forEach(s=>{Fo(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){E(this,Ui).set(aa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,Ui).values()],n={};return t.forEach(s=>{Fo(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,Ds).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qm(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===Zm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,Ds).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,ut).clear(),E(this,Ms).clear()}},ut=new WeakMap,Ms=new WeakMap,Ds=new WeakMap,zi=new WeakMap,Ui=new WeakMap,Fs=new WeakMap,Bi=new WeakMap,Vi=new WeakMap,lC),hb=f.createContext(void 0),Ze=e=>{const t=f.useContext(hb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},h_=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(hb.Provider,{value:e,children:t})),pb=f.createContext(!1),xb=()=>f.useContext(pb);pb.Provider;function p_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var x_=f.createContext(p_()),gb=()=>f.useContext(x_),vb=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Jm(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},yb=e=>{f.useEffect(()=>{e.clearReset()},[e])},bb=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||Jm(n,[e.error,s])),jb=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a!=null?a:1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...a)=>n(s(...a)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},g_=(e,t)=>e.isLoading&&e.isFetching&&!t,ah=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ih=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function v_({queries:e,...t},n){const s=Ze(),a=xb(),i=gb(),o=f.useMemo(()=>e.map(g=>{const j=s.defaultQueryOptions(g);return j._optimisticResults=a?"isRestoring":"optimistic",j}),[e,s,a]);o.forEach(g=>{jb(g);const j=s.getQueryCache().get(g.queryHash);vb(g,i,j)}),yb(i);const[c]=f.useState(()=>new u_(s,o,t)),[d,u,h]=c.getOptimisticResult(o,t.combine),m=!a&&t.subscribed!==!1;f.useSyncExternalStore(f.useCallback(g=>m?c.subscribe(ct.batchCalls(g)):It,[c,m]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setQueries(o,t)},[o,t,c]);const v=d.some((g,j)=>ah(o[j],g))?d.flatMap((g,j)=>{const b=o[j];if(b&&ah(b,g)){const p=new nh(s,b);return ih(b,p,i)}return[]}):[];if(v.length>0)throw Promise.all(v);const w=d.find((g,j)=>{const b=o[j];return b&&bb({result:g,errorResetBoundary:i,throwOnError:b.throwOnError,query:s.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(w!=null&&w.error)throw w.error;return u(h())}function y_(e,t,n){var y,v,w,g;const s=xb(),a=gb(),i=Ze(),o=i.defaultQueryOptions(e);(v=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||v.call(y,o);const c=i.getQueryCache().get(o.queryHash);o._optimisticResults=s?"isRestoring":"optimistic",jb(o),vb(o,a,c),yb(a);const d=!i.getQueryCache().get(o.queryHash),[u]=f.useState(()=>new t(i,o)),h=u.getOptimisticResult(o),m=!s&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(j=>{const b=m?u.subscribe(ct.batchCalls(j)):It;return u.updateResult(),b},[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f.useEffect(()=>{u.setOptions(o)},[o,u]),ah(o,h))throw ih(o,u,a);if(bb({result:h,errorResetBoundary:a,throwOnError:o.throwOnError,query:c,suspense:o.suspense}))throw h.error;if((g=(w=i.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||g.call(w,o,h),o.experimental_prefetchInRender&&!$o.isServer()&&g_(h,s)){const j=d?ih(o,u,a):c==null?void 0:c.promise;j==null||j.catch(It).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?h:u.trackResult(h)}function we(e,t){return y_(e,nh)}function Ee(e,t){const n=Ze(),[s]=f.useState(()=>new c_(n,e));f.useEffect(()=>{s.setOptions(e)},[s,e]);const a=f.useSyncExternalStore(f.useCallback(o=>s.subscribe(ct.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i=f.useCallback((o,c)=>{s.mutate(o,c).catch(It)},[s]);if(a.error&&Jm(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}/** | |
| 42 | 43 | * @remix-run/router v1.23.2 |
| 43 | 44 | * |
| 44 | 45 | * Copyright (c) Remix Software Inc. |
| 45 | 46 | * |
| @@ -46,9 +47,9 @@ | ||
| 46 | 47 | * This source code is licensed under the MIT license found in the |
| 47 | 48 | * LICENSE.md file in the root directory of this source tree. |
| 48 | 49 | * |
| 49 | 50 | * @license MIT |
| 50 | - */function Oi(){return Oi=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},Oi.apply(this,arguments)}var as;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(as||(as={}));const Uy="popstate";function c2(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:c="",hash:d=""}=to(o.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),Tm("",{pathname:i,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(o,a){let i=o.document.querySelector("base"),c="";if(i&&i.getAttribute("href")){let d=o.location.href,u=d.indexOf("#");c=u===-1?d:d.slice(0,u)}return c+"#"+(typeof a=="string"?a:qc(a))}function s(o,a){Wc(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return u2(t,n,s,e)}function ot(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Wc(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function d2(){return Math.random().toString(36).substr(2,8)}function By(e,t){return{usr:e.state,key:e.key,idx:t}}function Tm(e,t,n,s){return n===void 0&&(n=null),Oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?to(t):t,{state:n,key:t&&t.key||s||d2()})}function qc(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 to(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 u2(e,t,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:a=!1}=s,i=o.history,c=as.Pop,d=null,u=h();u==null&&(u=0,i.replaceState(Oi({},i.state,{idx:u}),""));function h(){return(i.state||{idx:null}).idx}function m(){c=as.Pop;let w=h(),y=w==null?null:w-u;u=w,d&&d({action:c,location:b.location,delta:y})}function v(w,y){c=as.Push;let p=Tm(b.location,w,y);n&&n(p,w),u=h()+1;let x=By(p,u),N=b.createHref(p);try{i.pushState(x,"",N)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(N)}a&&d&&d({action:c,location:b.location,delta:1})}function g(w,y){c=as.Replace;let p=Tm(b.location,w,y);n&&n(p,w),u=h();let x=By(p,u),N=b.createHref(p);i.replaceState(x,"",N),a&&d&&d({action:c,location:b.location,delta:0})}function j(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof w=="string"?w:qc(w);return p=p.replace(/ $/,"%20"),ot(y,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,y)}let b={get action(){return c},get location(){return e(o,i)},listen(w){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(Uy,m),d=w,()=>{o.removeEventListener(Uy,m),d=null}},createHref(w){return t(o,w)},createURL:j,encodeLocation(w){let y=j(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:v,replace:g,go(w){return i.go(w)}};return b}var Vy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vy||(Vy={}));function f2(e,t,n){return n===void 0&&(n="/"),m2(e,t,n)}function m2(e,t,n,s){let o=typeof t=="string"?to(t):t,a=na(o.pathname||"/",n);if(a==null)return null;let i=Hy(e);h2(i);let c=null;for(let d=0;c==null&&d<i.length;++d){let u=C2(a);c=N2(i[d],u)}return c}function Hy(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let o=(a,i,c)=>{let d={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};d.relativePath.startsWith("/")&&(ot(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);a.children&&a.children.length>0&&(ot(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Hy(a.children,t,h,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:j2(u,a.index),routesMeta:h})};return e.forEach((a,i)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))o(a,i);else for(let d of Wy(a.path))o(a,i,d)}),t}function Wy(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(s.length===0)return o?[a,""]:[a];let i=Wy(s.join("/")),c=[];return c.push(...i.map(d=>d===""?a:[a,d].join("/"))),o&&c.push(...i),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function h2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:w2(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const p2=/^:[\w-]+$/,x2=3,g2=2,v2=1,y2=10,b2=-2,qy=e=>e==="*";function j2(e,t){let n=e.split("/"),s=n.length;return n.some(qy)&&(s+=b2),t&&(s+=g2),n.filter(o=>!qy(o)).reduce((o,a)=>o+(p2.test(a)?x2:a===""?v2:y2),s)}function w2(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 N2(e,t,n){let{routesMeta:s}=e,o={},a="/",i=[];for(let c=0;c<s.length;++c){let d=s[c],u=c===s.length-1,h=a==="/"?t:t.slice(a.length)||"/",m=Rm({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},h),v=d.route;if(!m)return null;Object.assign(o,m.params),i.push({params:o,pathname:is([a,m.pathname]),pathnameBase:T2(is([a,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(a=is([a,m.pathnameBase]))}return i}function Rm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=S2(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:s.reduce((u,h,m)=>{let{paramName:v,isOptional:g}=h;if(v==="*"){let b=c[m]||"";i=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const j=c[m];return g&&!j?u[v]=void 0:u[v]=(j||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function S2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Wc(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,(i,c,d)=>(s.push({paramName:c,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 C2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wc(!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 na(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 k2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_2=e=>k2.test(e);function E2(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?to(e):e,a;if(n)if(_2(n))a=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),Wc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?a=Ky(n.substring(1),"/"):a=Ky(n,t)}else a=t;return{pathname:a,search:R2(s),hash:A2(o)}}function Ky(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 Am(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 P2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qy(e,t){let n=P2(e);return t?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Gy(e,t,n,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=to(e):(o=Oi({},e),ot(!o.pathname||!o.pathname.includes("?"),Am("?","pathname","search",o)),ot(!o.pathname||!o.pathname.includes("#"),Am("#","pathname","hash",o)),ot(!o.search||!o.search.includes("#"),Am("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,c;if(i==null)c=n;else{let m=t.length-1;if(!s&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),m-=1;o.pathname=v.join("/")}c=m>=0?t[m]:"/"}let d=E2(o,c),u=i&&i!=="/"&&i.endsWith("/"),h=(a||i===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||h)&&(d.pathname+="/"),d}const is=e=>e.join("/").replace(/\/\/+/g,"/"),T2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,A2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function O2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Xy=["post","put","patch","delete"];new Set(Xy);const I2=["get",...Xy];new Set(I2);/** | |
| 51 | + */function zo(){return zo=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},zo.apply(this,arguments)}var fs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(fs||(fs={}));const wb="popstate";function b_(e){e===void 0&&(e={});function t(a,i){let{pathname:o="/",search:c="",hash:d=""}=ia(a.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),oh("",{pathname:o,search:c,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){let o=a.document.querySelector("base"),c="";if(o&&o.getAttribute("href")){let d=a.location.href,u=d.indexOf("#");c=u===-1?d:d.slice(0,u)}return c+"#"+(typeof i=="string"?i:ad(i))}function s(a,i){sd(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return w_(t,n,s,e)}function dt(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function sd(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function j_(){return Math.random().toString(36).substr(2,8)}function Nb(e,t){return{usr:e.state,key:e.key,idx:t}}function oh(e,t,n,s){return n===void 0&&(n=null),zo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ia(t):t,{state:n,key:t&&t.key||s||j_()})}function ad(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 ia(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 w_(e,t,n,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:i=!1}=s,o=a.history,c=fs.Pop,d=null,u=h();u==null&&(u=0,o.replaceState(zo({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function m(){c=fs.Pop;let j=h(),b=j==null?null:j-u;u=j,d&&d({action:c,location:g.location,delta:b})}function y(j,b){c=fs.Push;let p=oh(g.location,j,b);n&&n(p,j),u=h()+1;let x=Nb(p,u),N=g.createHref(p);try{o.pushState(x,"",N)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(N)}i&&d&&d({action:c,location:g.location,delta:1})}function v(j,b){c=fs.Replace;let p=oh(g.location,j,b);n&&n(p,j),u=h();let x=Nb(p,u),N=g.createHref(p);o.replaceState(x,"",N),i&&d&&d({action:c,location:g.location,delta:0})}function w(j){let b=a.location.origin!=="null"?a.location.origin:a.location.href,p=typeof j=="string"?j:ad(j);return p=p.replace(/ $/,"%20"),dt(b,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,b)}let g={get action(){return c},get location(){return e(a,o)},listen(j){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(wb,m),d=j,()=>{a.removeEventListener(wb,m),d=null}},createHref(j){return t(a,j)},createURL:w,encodeLocation(j){let b=w(j);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:y,replace:v,go(j){return o.go(j)}};return g}var Sb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sb||(Sb={}));function N_(e,t,n){return n===void 0&&(n="/"),S_(e,t,n)}function S_(e,t,n,s){let a=typeof t=="string"?ia(t):t,i=si(a.pathname||"/",n);if(i==null)return null;let o=Cb(e);C_(o);let c=null;for(let d=0;c==null&&d<o.length;++d){let u=D_(i);c=I_(o[d],u)}return c}function Cb(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let a=(i,o,c)=>{let d={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};d.relativePath.startsWith("/")&&(dt(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=ms([s,d.relativePath]),h=n.concat(d);i.children&&i.children.length>0&&(dt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Cb(i.children,t,h,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:A_(u,i.index),routesMeta:h})};return e.forEach((i,o)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))a(i,o);else for(let d of kb(i.path))a(i,o,d)}),t}function kb(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(s.length===0)return a?[i,""]:[i];let o=kb(s.join("/")),c=[];return c.push(...o.map(d=>d===""?i:[i,d].join("/"))),a&&c.push(...o),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function C_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:O_(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const k_=/^:[\w-]+$/,__=3,E_=2,P_=1,T_=10,R_=-2,_b=e=>e==="*";function A_(e,t){let n=e.split("/"),s=n.length;return n.some(_b)&&(s+=R_),t&&(s+=E_),n.filter(a=>!_b(a)).reduce((a,i)=>a+(k_.test(i)?__:i===""?P_:T_),s)}function O_(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function I_(e,t,n){let{routesMeta:s}=e,a={},i="/",o=[];for(let c=0;c<s.length;++c){let d=s[c],u=c===s.length-1,h=i==="/"?t:t.slice(i.length)||"/",m=lh({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},h),y=d.route;if(!m)return null;Object.assign(a,m.params),o.push({params:a,pathname:ms([i,m.pathname]),pathnameBase:U_(ms([i,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(i=ms([i,m.pathnameBase]))}return o}function lh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=M_(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:s.reduce((u,h,m)=>{let{paramName:y,isOptional:v}=h;if(y==="*"){let g=c[m]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const w=c[m];return v&&!w?u[y]=void 0:u[y]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function M_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sd(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,d)=>(s.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function D_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sd(!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 si(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 F_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,L_=e=>F_.test(e);function $_(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:a=""}=typeof e=="string"?ia(e):e,i;if(n)if(L_(n))i=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),sd(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Eb(n.substring(1),"/"):i=Eb(n,t)}else i=t;return{pathname:i,search:B_(s),hash:V_(a)}}function Eb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ch(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 z_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Pb(e,t){let n=z_(e);return t?n.map((s,a)=>a===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Tb(e,t,n,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=ia(e):(a=zo({},e),dt(!a.pathname||!a.pathname.includes("?"),ch("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),ch("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),ch("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,c;if(o==null)c=n;else{let m=t.length-1;if(!s&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),m-=1;a.pathname=y.join("/")}c=m>=0?t[m]:"/"}let d=$_(a,c),u=o&&o!=="/"&&o.endsWith("/"),h=(i||o===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||h)&&(d.pathname+="/"),d}const ms=e=>e.join("/").replace(/\/\/+/g,"/"),U_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,V_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function q_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Rb=["post","put","patch","delete"];new Set(Rb);const H_=["get",...Rb];new Set(H_);/** | |
| 51 | 52 | * React Router v6.30.3 |
| 52 | 53 | * |
| 53 | 54 | * Copyright (c) Remix Software Inc. |
| 54 | 55 | * |
| @@ -55,9 +56,9 @@ | ||
| 55 | 56 | * This source code is licensed under the MIT license found in the |
| 56 | 57 | * LICENSE.md file in the root directory of this source tree. |
| 57 | 58 | * |
| 58 | 59 | * @license MIT |
| 59 | - */function Ii(){return Ii=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},Ii.apply(this,arguments)}const Kc=f.createContext(null),Yy=f.createContext(null),ls=f.createContext(null),Qc=f.createContext(null),wr=f.createContext({outlet:null,matches:[],isDataRoute:!1}),Zy=f.createContext(null);function M2(e,t){let{relative:n}=t===void 0?{}:t;Mi()||ot(!1);let{basename:s,navigator:o}=f.useContext(ls),{hash:a,pathname:i,search:c}=Xc(e,{relative:n}),d=i;return s!=="/"&&(d=i==="/"?s:is([s,i])),o.createHref({pathname:d,search:c,hash:a})}function Mi(){return f.useContext(Qc)!=null}function cs(){return Mi()||ot(!1),f.useContext(Qc).location}function Jy(e){f.useContext(ls).static||f.useLayoutEffect(e)}function qn(){let{isDataRoute:e}=f.useContext(wr);return e?X2():D2()}function D2(){Mi()||ot(!1);let e=f.useContext(Kc),{basename:t,future:n,navigator:s}=f.useContext(ls),{matches:o}=f.useContext(wr),{pathname:a}=cs(),i=JSON.stringify(Qy(o,n.v7_relativeSplatPath)),c=f.useRef(!1);return Jy(()=>{c.current=!0}),f.useCallback(function(u,h){if(h===void 0&&(h={}),!c.current)return;if(typeof u=="number"){s.go(u);return}let m=Gy(u,JSON.parse(i),a,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,i,a,e])}const F2=f.createContext(null);function L2(e){let t=f.useContext(wr).outlet;return t&&f.createElement(F2.Provider,{value:e},t)}function Gc(){let{matches:e}=f.useContext(wr),t=e[e.length-1];return t?t.params:{}}function Xc(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=f.useContext(ls),{matches:o}=f.useContext(wr),{pathname:a}=cs(),i=JSON.stringify(Qy(o,s.v7_relativeSplatPath));return f.useMemo(()=>Gy(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function $2(e,t){return z2(e,t)}function z2(e,t,n,s){Mi()||ot(!1);let{navigator:o}=f.useContext(ls),{matches:a}=f.useContext(wr),i=a[a.length-1],c=i?i.params:{};i&&i.pathname;let d=i?i.pathnameBase:"/";i&&i.route;let u=cs(),h;if(t){var m;let w=typeof t=="string"?to(t):t;d==="/"||(m=w.pathname)!=null&&m.startsWith(d)||ot(!1),h=w}else h=u;let v=h.pathname||"/",g=v;if(d!=="/"){let w=d.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(w.length).join("/")}let j=f2(e,{pathname:g}),b=W2(j&&j.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:is([d,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:is([d,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n,s);return t&&b?f.createElement(Qc.Provider,{value:{location:Ii({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:as.Pop}},b):b}function U2(){let e=G2(),t=O2(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 B2=f.createElement(U2,null);class V2 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(wr.Provider,{value:this.props.routeContext},f.createElement(Zy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function H2(e){let{routeContext:t,match:n,children:s}=e,o=f.useContext(Kc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(wr.Provider,{value:t},s)}function W2(e,t,n,s){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=s)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,c=(o=n)==null?void 0:o.errors;if(c!=null){let h=i.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);h>=0||ot(!1),i=i.slice(0,Math.min(i.length,h+1))}let d=!1,u=-1;if(n&&s&&s.v7_partialHydration)for(let h=0;h<i.length;h++){let m=i[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=h),m.route.id){let{loaderData:v,errors:g}=n,j=m.route.loader&&v[m.route.id]===void 0&&(!g||g[m.route.id]===void 0);if(m.route.lazy||j){d=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((h,m,v)=>{let g,j=!1,b=null,w=null;n&&(g=c&&m.route.id?c[m.route.id]:void 0,b=m.route.errorElement||B2,d&&(u<0&&v===0?(Y2("route-fallback"),j=!0,w=null):u===v&&(j=!0,w=m.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,v+1)),p=()=>{let x;return g?x=b:j?x=w:m.route.Component?x=f.createElement(m.route.Component,null):m.route.element?x=m.route.element:x=h,f.createElement(H2,{match:m,routeContext:{outlet:h,matches:y,isDataRoute:n!=null},children:x})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?f.createElement(V2,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:p(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):p()},null)}var e0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(e0||{}),t0=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}(t0||{});function q2(e){let t=f.useContext(Kc);return t||ot(!1),t}function K2(e){let t=f.useContext(Yy);return t||ot(!1),t}function Q2(e){let t=f.useContext(wr);return t||ot(!1),t}function n0(e){let t=Q2(),n=t.matches[t.matches.length-1];return n.route.id||ot(!1),n.route.id}function G2(){var e;let t=f.useContext(Zy),n=K2(),s=n0();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function X2(){let{router:e}=q2(e0.UseNavigateStable),t=n0(t0.UseNavigateStable),n=f.useRef(!1);return Jy(()=>{n.current=!0}),f.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ii({fromRouteId:t},a)))},[e,t])}const r0={};function Y2(e,t,n){r0[e]||(r0[e]=!0)}function Z2(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function J2(e){return L2(e.context)}function tt(e){ot(!1)}function e_(e){let{basename:t="/",children:n=null,location:s,navigationType:o=as.Pop,navigator:a,static:i=!1,future:c}=e;Mi()&&ot(!1);let d=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:d,navigator:a,static:i,future:Ii({v7_relativeSplatPath:!1},c)}),[d,c,a,i]);typeof s=="string"&&(s=to(s));let{pathname:h="/",search:m="",hash:v="",state:g=null,key:j="default"}=s,b=f.useMemo(()=>{let w=na(h,d);return w==null?null:{location:{pathname:w,search:m,hash:v,state:g,key:j},navigationType:o}},[d,h,m,v,g,j,o]);return b==null?null:f.createElement(ls.Provider,{value:u},f.createElement(Qc.Provider,{children:n,value:b}))}function t_(e){let{children:t,location:n}=e;return $2(Om(t),n)}new Promise(()=>{});function Om(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(s,o)=>{if(!f.isValidElement(s))return;let a=[...t,o];if(s.type===f.Fragment){n.push.apply(n,Om(s.props.children,a));return}s.type!==tt&&ot(!1),!s.props.index||!s.props.children||ot(!1);let i={id:s.props.id||a.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&&(i.children=Om(s.props.children,a)),n.push(i)}),n}/** | |
| 60 | + */function Uo(){return Uo=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},Uo.apply(this,arguments)}const id=f.createContext(null),Ab=f.createContext(null),hs=f.createContext(null),od=f.createContext(null),_r=f.createContext({outlet:null,matches:[],isDataRoute:!1}),Ob=f.createContext(null);function W_(e,t){let{relative:n}=t===void 0?{}:t;Bo()||dt(!1);let{basename:s,navigator:a}=f.useContext(hs),{hash:i,pathname:o,search:c}=ld(e,{relative:n}),d=o;return s!=="/"&&(d=o==="/"?s:ms([s,o])),a.createHref({pathname:d,search:c,hash:i})}function Bo(){return f.useContext(od)!=null}function ps(){return Bo()||dt(!1),f.useContext(od).location}function Ib(e){f.useContext(hs).static||f.useLayoutEffect(e)}function Sn(){let{isDataRoute:e}=f.useContext(_r);return e?oE():K_()}function K_(){Bo()||dt(!1);let e=f.useContext(id),{basename:t,future:n,navigator:s}=f.useContext(hs),{matches:a}=f.useContext(_r),{pathname:i}=ps(),o=JSON.stringify(Pb(a,n.v7_relativeSplatPath)),c=f.useRef(!1);return Ib(()=>{c.current=!0}),f.useCallback(function(u,h){if(h===void 0&&(h={}),!c.current)return;if(typeof u=="number"){s.go(u);return}let m=Tb(u,JSON.parse(o),i,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ms([t,m.pathname])),(h.replace?s.replace:s.push)(m,h.state,h)},[t,s,o,i,e])}const Q_=f.createContext(null);function G_(e){let t=f.useContext(_r).outlet;return t&&f.createElement(Q_.Provider,{value:e},t)}function ai(){let{matches:e}=f.useContext(_r),t=e[e.length-1];return t?t.params:{}}function ld(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=f.useContext(hs),{matches:a}=f.useContext(_r),{pathname:i}=ps(),o=JSON.stringify(Pb(a,s.v7_relativeSplatPath));return f.useMemo(()=>Tb(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Y_(e,t){return X_(e,t)}function X_(e,t,n,s){Bo()||dt(!1);let{navigator:a}=f.useContext(hs),{matches:i}=f.useContext(_r),o=i[i.length-1],c=o?o.params:{};o&&o.pathname;let d=o?o.pathnameBase:"/";o&&o.route;let u=ps(),h;if(t){var m;let j=typeof t=="string"?ia(t):t;d==="/"||(m=j.pathname)!=null&&m.startsWith(d)||dt(!1),h=j}else h=u;let y=h.pathname||"/",v=y;if(d!=="/"){let j=d.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(j.length).join("/")}let w=N_(e,{pathname:v}),g=nE(w&&w.map(j=>Object.assign({},j,{params:Object.assign({},c,j.params),pathname:ms([d,a.encodeLocation?a.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?d:ms([d,a.encodeLocation?a.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),i,n,s);return t&&g?f.createElement(od.Provider,{value:{location:Uo({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:fs.Pop}},g):g}function Z_(){let e=iE(),t=q_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={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:a},n):null,null)}const J_=f.createElement(Z_,null);class eE 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(_r.Provider,{value:this.props.routeContext},f.createElement(Ob.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tE(e){let{routeContext:t,match:n,children:s}=e,a=f.useContext(id);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(_r.Provider,{value:t},s)}function nE(e,t,n,s){var a;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 o=e,c=(a=n)==null?void 0:a.errors;if(c!=null){let h=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);h>=0||dt(!1),o=o.slice(0,Math.min(o.length,h+1))}let d=!1,u=-1;if(n&&s&&s.v7_partialHydration)for(let h=0;h<o.length;h++){let m=o[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=h),m.route.id){let{loaderData:y,errors:v}=n,w=m.route.loader&&y[m.route.id]===void 0&&(!v||v[m.route.id]===void 0);if(m.route.lazy||w){d=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((h,m,y)=>{let v,w=!1,g=null,j=null;n&&(v=c&&m.route.id?c[m.route.id]:void 0,g=m.route.errorElement||J_,d&&(u<0&&y===0?(lE("route-fallback"),w=!0,j=null):u===y&&(w=!0,j=m.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,y+1)),p=()=>{let x;return v?x=g:w?x=j:m.route.Component?x=f.createElement(m.route.Component,null):m.route.element?x=m.route.element:x=h,f.createElement(tE,{match:m,routeContext:{outlet:h,matches:b,isDataRoute:n!=null},children:x})};return n&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?f.createElement(eE,{location:n.location,revalidation:n.revalidation,component:g,error:v,children:p(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):p()},null)}var Mb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Mb||{}),Db=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}(Db||{});function rE(e){let t=f.useContext(id);return t||dt(!1),t}function sE(e){let t=f.useContext(Ab);return t||dt(!1),t}function aE(e){let t=f.useContext(_r);return t||dt(!1),t}function Fb(e){let t=aE(),n=t.matches[t.matches.length-1];return n.route.id||dt(!1),n.route.id}function iE(){var e;let t=f.useContext(Ob),n=sE(),s=Fb();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function oE(){let{router:e}=rE(Mb.UseNavigateStable),t=Fb(Db.UseNavigateStable),n=f.useRef(!1);return Ib(()=>{n.current=!0}),f.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Uo({fromRouteId:t},i)))},[e,t])}const Lb={};function lE(e,t,n){Lb[e]||(Lb[e]=!0)}function cE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function dE(e){return G_(e.context)}function Ge(e){dt(!1)}function uE(e){let{basename:t="/",children:n=null,location:s,navigationType:a=fs.Pop,navigator:i,static:o=!1,future:c}=e;Bo()&&dt(!1);let d=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:d,navigator:i,static:o,future:Uo({v7_relativeSplatPath:!1},c)}),[d,c,i,o]);typeof s=="string"&&(s=ia(s));let{pathname:h="/",search:m="",hash:y="",state:v=null,key:w="default"}=s,g=f.useMemo(()=>{let j=si(h,d);return j==null?null:{location:{pathname:j,search:m,hash:y,state:v,key:w},navigationType:a}},[d,h,m,y,v,w,a]);return g==null?null:f.createElement(hs.Provider,{value:u},f.createElement(od.Provider,{children:n,value:g}))}function fE(e){let{children:t,location:n}=e;return Y_(dh(t),n)}new Promise(()=>{});function dh(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(s,a)=>{if(!f.isValidElement(s))return;let i=[...t,a];if(s.type===f.Fragment){n.push.apply(n,dh(s.props.children,i));return}s.type!==Ge&&dt(!1),!s.props.index||!s.props.children||dt(!1);let o={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&&(o.children=dh(s.props.children,i)),n.push(o)}),n}/** | |
| 60 | 61 | * React Router DOM v6.30.3 |
| 61 | 62 | * |
| 62 | 63 | * Copyright (c) Remix Software Inc. |
| 63 | 64 | * |
| @@ -64,366 +65,391 @@ | ||
| 64 | 65 | * This source code is licensed under the MIT license found in the |
| 65 | 66 | * LICENSE.md file in the root directory of this source tree. |
| 66 | 67 | * |
| 67 | 68 | * @license MIT |
| 68 | - */function Yc(){return Yc=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},Yc.apply(this,arguments)}function s0(e,t){if(e==null)return{};var n={},s=Object.keys(e),o,a;for(a=0;a<s.length;a++)o=s[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function n_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function r_(e,t){return e.button===0&&(!t||t==="_self")&&!n_(e)}function Im(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 s_(e,t){let n=Im(e);return t&&t.forEach((s,o)=>{n.has(o)||t.getAll(o).forEach(a=>{n.append(o,a)})}),n}const o_=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],a_=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],i_="6";try{window.__reactRouterVersion=i_}catch(e){}const l_=f.createContext({isTransitioning:!1}),o0=Rl["startTransition"];function c_(e){let{basename:t,children:n,future:s,window:o}=e,a=f.useRef();a.current==null&&(a.current=c2({window:o,v5Compat:!0}));let i=a.current,[c,d]=f.useState({action:i.action,location:i.location}),{v7_startTransition:u}=s||{},h=f.useCallback(m=>{u&&o0?o0(()=>d(m)):d(m)},[d,u]);return f.useLayoutEffect(()=>i.listen(h),[i,h]),f.useEffect(()=>Z2(s),[s]),f.createElement(e_,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:i,future:s})}const d_=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",u_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hn=f.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:a,replace:i,state:c,target:d,to:u,preventScrollReset:h,viewTransition:m}=t,v=s0(t,o_),{basename:g}=f.useContext(ls),j,b=!1;if(typeof u=="string"&&u_.test(u)&&(j=u,d_))try{let x=new URL(window.location.href),N=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=na(N.pathname,g);N.origin===x.origin&&S!=null?u=S+N.search+N.hash:b=!0}catch(x){}let w=M2(u,{relative:o}),y=h_(u,{replace:i,state:c,target:d,preventScrollReset:h,relative:o,viewTransition:m});function p(x){s&&s(x),x.defaultPrevented||y(x)}return f.createElement("a",Yc({},v,{href:j||w,onClick:b||a?s:p,ref:n,target:d}))}),f_=f.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:o=!1,className:a="",end:i=!1,style:c,to:d,viewTransition:u,children:h}=t,m=s0(t,a_),v=Xc(d,{relative:m.relative}),g=cs(),j=f.useContext(Yy),{navigator:b,basename:w}=f.useContext(ls),y=j!=null&&x_(v)&&u===!0,p=b.encodeLocation?b.encodeLocation(v).pathname:v.pathname,x=g.pathname,N=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;o||(x=x.toLowerCase(),N=N?N.toLowerCase():null,p=p.toLowerCase()),N&&w&&(N=na(N,w)||N);const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let k=x===p||!i&&x.startsWith(p)&&x.charAt(S)==="/",E=N!=null&&(N===p||!i&&N.startsWith(p)&&N.charAt(p.length)==="/"),C={isActive:k,isPending:E,isTransitioning:y},R=k?s:void 0,T;typeof a=="function"?T=a(C):T=[a,k?"active":null,E?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let A=typeof c=="function"?c(C):c;return f.createElement(hn,Yc({},m,{"aria-current":R,className:T,ref:n,style:A,to:d,viewTransition:u}),typeof h=="function"?h(C):h)});var Mm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Mm||(Mm={}));var a0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(a0||(a0={}));function m_(e){let t=f.useContext(Kc);return t||ot(!1),t}function h_(e,t){let{target:n,replace:s,state:o,preventScrollReset:a,relative:i,viewTransition:c}=t===void 0?{}:t,d=qn(),u=cs(),h=Xc(e,{relative:i});return f.useCallback(m=>{if(r_(m,n)){m.preventDefault();let v=s!==void 0?s:qc(u)===qc(h);d(e,{replace:v,state:o,preventScrollReset:a,relative:i,viewTransition:c})}},[u,d,h,s,o,n,e,a,i,c])}function p_(e){let t=f.useRef(Im(e)),n=f.useRef(!1),s=cs(),o=f.useMemo(()=>s_(s.search,n.current?null:t.current),[s.search]),a=qn(),i=f.useCallback((c,d)=>{const u=Im(typeof c=="function"?c(o):c);n.current=!0,a("?"+u,d)},[a,o]);return[o,i]}function x_(e,t){t===void 0&&(t={});let n=f.useContext(l_);n==null&&ot(!1);let{basename:s}=m_(Mm.useViewTransitionState),o=Xc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=na(n.currentLocation.pathname,s)||n.currentLocation.pathname,i=na(n.nextLocation.pathname,s)||n.nextLocation.pathname;return Rm(o.pathname,i)!=null||Rm(o.pathname,a)!=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 ra(e){return $t().loadedAddons.includes(e)}class Dm extends Error{constructor(n,s,o){var a,i,c,d;super(n);za(this,"status");za(this,"code");za(this,"missing");za(this,"body");this.name="ApiError",this.status=s,this.body=o,this.code=(i=o==null?void 0:o.code)!=null?i:(a=o==null?void 0:o.data)==null?void 0:a.code,this.missing=(d=o==null?void 0:o.missing)!=null?d:(c=o==null?void 0:o.data)==null?void 0:c.missing}}async function Z(e,t={}){var c;const n=$t(),s=n.restUrl.replace(/\/+$/,""),o=e.replace(/^\/+/,""),a=`${s}/${o}`,i=await fetch(a,{...t,headers:{"Content-Type":"application/json","X-WP-Nonce":n.nonce,...t.headers}});if(!i.ok){const d=await i.json().catch(()=>({message:i.statusText})),u=(d==null?void 0:d.message)||((c=d==null?void 0:d.data)==null?void 0:c.message)||i.statusText;throw new Dm(u,i.status,d)}return i.json()}const Di={},Fm=new Set,g_=Object.freeze([]);function v_(){Fm.forEach(e=>e())}function y_(e,t,n){typeof e!="string"||e===""||typeof t!="string"||t===""||typeof n!="function"&&typeof n!="object"||(Di[e]||(Di[e]=[]),!Di[e].some(s=>s.name===t)&&(Di[e].push({name:t,Component:n}),v_()))}function i0(e){return Fm.add(e),()=>{Fm.delete(e)}}function l0(e){var t;return(t=Di[e])!=null?t:g_}let Zc=null;function b_(){return Zc||(typeof window!="undefined"&&!window.f12DoiRegisterComponent&&(window.f12DoiRegisterComponent=(e,t,n)=>{y_(e,t,n)}),Zc=(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,a;return(a=(o=s.ui)==null?void 0:o.bundles)!=null?a:[]}).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})(),Zc)}const j_=1,w_=1e6;let Lm=0;function N_(){return Lm=(Lm+1)%Number.MAX_SAFE_INTEGER,Lm.toString()}const $m=new Map,c0=e=>{if($m.has(e))return;const t=setTimeout(()=>{$m.delete(e),Fi({type:"REMOVE_TOAST",toastId:e})},w_);$m.set(e,t)},S_=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,j_)};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?c0(n):e.toasts.forEach(s=>{c0(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)}}},Jc=[];let ed={toasts:[]};function Fi(e){ed=S_(ed,e),Jc.forEach(t=>{t(ed)})}function C_({...e}){const t=N_(),n=o=>Fi({type:"UPDATE_TOAST",toast:{...o,id:t}}),s=()=>Fi({type:"DISMISS_TOAST",toastId:t});return Fi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||s()}}}),{id:t,dismiss:s,update:n}}function k_(){const[e,t]=f.useState(ed);return f.useEffect(()=>(Jc.push(t),()=>{const n=Jc.indexOf(t);n>-1&&Jc.splice(n,1)}),[e]),{...e,toast:C_,dismiss:n=>Fi({type:"DISMISS_TOAST",toastId:n})}}function pe(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 d0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function sa(...e){return t=>{let n=!1;const s=e.map(o=>{const a=d0(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<s.length;o++){const a=s[o];typeof a=="function"?a():d0(e[o],null)}}}}function De(...e){return f.useCallback(sa(...e),e)}function __(e,t){const n=f.createContext(t),s=a=>{const{children:i,...c}=a,d=f.useMemo(()=>c,Object.values(c));return r.jsx(n.Provider,{value:d,children:i})};s.displayName=e+"Provider";function o(a){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[s,o]}function Xt(e,t=[]){let n=[];function s(a,i){const c=f.createContext(i),d=n.length;n=[...n,i];const u=m=>{var y;const{scope:v,children:g,...j}=m,b=((y=v==null?void 0:v[e])==null?void 0:y[d])||c,w=f.useMemo(()=>j,Object.values(j));return r.jsx(b.Provider,{value:w,children:g})};u.displayName=a+"Provider";function h(m,v){var b;const g=((b=v==null?void 0:v[e])==null?void 0:b[d])||c,j=f.useContext(g);if(j)return j;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[u,h]}const o=()=>{const a=n.map(i=>f.createContext(i));return function(c){const d=(c==null?void 0:c[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[s,E_(o,...t)]}function E_(...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(a){const i=s.reduce((c,{useScope:d,scopeName:u})=>{const m=d(a)[`__scope${u}`];return{...c,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function u0(e){const t=P_(e),n=f.forwardRef((s,o)=>{const{children:a,...i}=s,c=f.Children.toArray(a),d=c.find(R_);if(d){const u=d.props.children,h=c.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,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function P_(e){const t=f.forwardRef((n,s)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const i=O_(o),c=A_(a,o.props);return o.type!==f.Fragment&&(c.ref=s?sa(s,i):i),f.cloneElement(o,c)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T_=Symbol("radix.slottable");function R_(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T_}function A_(e,t){const n={...t};for(const s in t){const o=e[s],a=t[s];/^on[A-Z]/.test(s)?o&&a?n[s]=(...c)=>{const d=a(...c);return o(...c),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...a}:s==="className"&&(n[s]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function O_(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 td(e){const t=e+"CollectionProvider",[n,s]=Xt(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:w,children:y}=b,p=V.useRef(null),x=V.useRef(new Map).current;return r.jsx(o,{scope:w,itemMap:x,collectionRef:p,children:y})};i.displayName=t;const c=e+"CollectionSlot",d=u0(c),u=V.forwardRef((b,w)=>{const{scope:y,children:p}=b,x=a(c,y),N=De(w,x.collectionRef);return r.jsx(d,{ref:N,children:p})});u.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",v=u0(h),g=V.forwardRef((b,w)=>{const{scope:y,children:p,...x}=b,N=V.useRef(null),S=De(w,N),k=a(h,y);return V.useEffect(()=>(k.itemMap.set(N,{ref:N,...x}),()=>void k.itemMap.delete(N))),r.jsx(v,{[m]:"",ref:S,children:p})});g.displayName=h;function j(b){const w=a(e+"CollectionConsumer",b);return V.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const x=Array.from(p.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((k,E)=>x.indexOf(k.ref.current)-x.indexOf(E.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:g},j,s]}function I_(e){const t=M_(e),n=f.forwardRef((s,o)=>{const{children:a,...i}=s,c=f.Children.toArray(a),d=c.find(F_);if(d){const u=d.props.children,h=c.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,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function M_(e){const t=f.forwardRef((n,s)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const i=$_(o),c=L_(a,o.props);return o.type!==f.Fragment&&(c.ref=s?sa(s,i):i),f.cloneElement(o,c)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var D_=Symbol("radix.slottable");function F_(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===D_}function L_(e,t){const n={...t};for(const s in t){const o=e[s],a=t[s];/^on[A-Z]/.test(s)?o&&a?n[s]=(...c)=>{const d=a(...c);return o(...c),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...a}:s==="className"&&(n[s]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function $_(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 z_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=z_.reduce((e,t)=>{const n=I_(`Primitive.${t}`),s=f.forwardRef((o,a)=>{const{asChild:i,...c}=o,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:a})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function f0(e,t){e&&Ys.flushSync(()=>e.dispatchEvent(t))}function pn(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 U_(e,t=globalThis==null?void 0:globalThis.document){const n=pn(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 B_="DismissableLayer",zm="dismissableLayer.update",V_="dismissableLayer.pointerDownOutside",H_="dismissableLayer.focusOutside",m0,h0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Li=f.forwardRef((e,t)=>{var E;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...d}=e,u=f.useContext(h0),[h,m]=f.useState(null),v=(E=h==null?void 0:h.ownerDocument)!=null?E:globalThis==null?void 0:globalThis.document,[,g]=f.useState({}),j=De(t,C=>m(C)),b=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(w),p=h?b.indexOf(h):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,N=p>=y,S=q_(C=>{const R=C.target,T=[...u.branches].some(A=>A.contains(R));!N||T||(o==null||o(C),i==null||i(C),C.defaultPrevented||c==null||c())},v),k=K_(C=>{const R=C.target;[...u.branches].some(A=>A.contains(R))||(a==null||a(C),i==null||i(C),C.defaultPrevented||c==null||c())},v);return U_(C=>{p===u.layers.size-1&&(s==null||s(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},v),f.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(m0=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),x0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=m0)}},[h,v,n,u]),f.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),x0())},[h,u]),f.useEffect(()=>{const C=()=>g({});return document.addEventListener(zm,C),()=>document.removeEventListener(zm,C)},[]),r.jsx(Se.div,{...d,ref:j,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)})});Li.displayName=B_;var W_="DismissableLayerBranch",p0=f.forwardRef((e,t)=>{const n=f.useContext(h0),s=f.useRef(null),o=De(t,s);return f.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),r.jsx(Se.div,{...e,ref:o})});p0.displayName=W_;function q_(e,t=globalThis==null?void 0:globalThis.document){const n=pn(e),s=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=c=>{if(c.target&&!s.current){let d=function(){g0(V_,n,u,{discrete:!0})};const u={originalEvent:c};c.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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function K_(e,t=globalThis==null?void 0:globalThis.document){const n=pn(e),s=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!s.current&&g0(H_,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function x0(){const e=new CustomEvent(zm);document.dispatchEvent(e)}function g0(e,t,n,{discrete:s}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?f0(o,a):o.dispatchEvent(a)}var Q_=Li,G_=p0,ht=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},X_="Portal",$i=f.forwardRef((e,t)=>{var c;const{container:n,...s}=e,[o,a]=f.useState(!1);ht(()=>a(!0),[]);const i=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?fy.createPortal(r.jsx(Se.div,{...s,ref:t}),i):null});$i.displayName=X_;function Y_(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=Z_(t),o=typeof n=="function"?n({present:s.isPresent}):f.Children.only(n),a=De(s.ref,J_(o));return typeof n=="function"||s.isPresent?f.cloneElement(o,{ref:a}):null};Kn.displayName="Presence";function Z_(e){const[t,n]=f.useState(),s=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[c,d]=Y_(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=nd(s.current);a.current=c==="mounted"?u:"none"},[c]),ht(()=>{const u=s.current,h=o.current;if(h!==e){const v=a.current,g=nd(u);e?d("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(h&&v!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ht(()=>{var u;if(t){let h;const m=(u=t.ownerDocument.defaultView)!=null?u:window,v=j=>{const w=nd(s.current).includes(CSS.escape(j.animationName));if(j.target===t&&w&&(d("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},g=j=>{j.target===t&&(a.current=nd(s.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(u=>{s.current=u?getComputedStyle(u):null,n(u)},[])}}function nd(e){return(e==null?void 0:e.animationName)||"none"}function J_(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 eE=Rl[" useInsertionEffect ".trim().toString()]||ht;function xn({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[o,a,i]=tE({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const h=f.useRef(e!==void 0);f.useEffect(()=>{const m=h.current;m!==c&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${c?"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=c},[c,s])}const u=f.useCallback(h=>{var m;if(c){const v=nE(h)?h(e):h;v!==e&&((m=i.current)==null||m.call(i,v))}else a(h)},[c,e,a,i]);return[d,u]}function tE({defaultProp:e,onChange:t}){const[n,s]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return eE(()=>{a.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=a.current)==null||i.call(a,n),o.current=n)},[n,o]),[n,s,a]}function nE(e){return typeof e=="function"}var v0=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"}),rE="VisuallyHidden",rd=f.forwardRef((e,t)=>r.jsx(Se.span,{...e,ref:t,style:{...v0,...e.style}}));rd.displayName=rE;var sE=rd,Um="ToastProvider",[Bm,oE,aE]=td("Toast"),[y0]=Xt("Toast",[aE]),[iE,sd]=y0(Um),b0=e=>{const{__scopeToast:t,label:n="Notification",duration:s=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[c,d]=f.useState(null),[u,h]=f.useState(0),m=f.useRef(!1),v=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Um}\`. Expected non-empty \`string\`.`),r.jsx(Bm.Provider,{scope:t,children:r.jsx(iE,{scope:t,label:n,duration:s,swipeDirection:o,swipeThreshold:a,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:f.useCallback(()=>h(g=>g+1),[]),onToastRemove:f.useCallback(()=>h(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v,children:i})})};b0.displayName=Um;var j0="ToastViewport",lE=["F8"],Vm="toast.viewportPause",Hm="toast.viewportResume",w0=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:s=lE,label:o="Notifications ({hotkey})",...a}=e,i=sd(j0,n),c=oE(n),d=f.useRef(null),u=f.useRef(null),h=f.useRef(null),m=f.useRef(null),v=De(t,m,i.onViewportChange),g=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=i.toastCount>0;f.useEffect(()=>{const w=y=>{var x;s.length!==0&&s.every(N=>y[N]||y.code===N)&&((x=m.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[s]),f.useEffect(()=>{const w=d.current,y=m.current;if(j&&w&&y){const p=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(Vm);y.dispatchEvent(k),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(Hm);y.dispatchEvent(k),i.isClosePausedRef.current=!1}},N=k=>{!w.contains(k.relatedTarget)&&x()},S=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",p),w.addEventListener("focusout",N),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",N),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",x)}}},[j,i.isClosePausedRef]);const b=f.useCallback(({tabbingDirection:w})=>{const p=c().map(x=>{const N=x.ref.current,S=[N,...jE(N)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?p.reverse():p).flat()},[c]);return f.useEffect(()=>{const w=m.current;if(w){const y=p=>{var S,k,E;const x=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!x){const C=document.activeElement,R=p.shiftKey;if(p.target===w&&R){(S=u.current)==null||S.focus();return}const M=b({tabbingDirection:R?"backwards":"forwards"}),B=M.findIndex(O=>O===C);Km(M.slice(B+1))?p.preventDefault():R?(k=u.current)==null||k.focus():(E=h.current)==null||E.focus()}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[c,b]),r.jsxs(G_,{ref:d,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:j?void 0:"none"},children:[j&&r.jsx(Wm,{ref:u,onFocusFromOutsideViewport:()=>{const w=b({tabbingDirection:"forwards"});Km(w)}}),r.jsx(Bm.Slot,{scope:n,children:r.jsx(Se.ol,{tabIndex:-1,...a,ref:v})}),j&&r.jsx(Wm,{ref:h,onFocusFromOutsideViewport:()=>{const w=b({tabbingDirection:"backwards"});Km(w)}})]})});w0.displayName=j0;var N0="ToastFocusProxy",Wm=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:s,...o}=e,a=sd(N0,n);return r.jsx(rd,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const c=i.relatedTarget;!((u=a.viewport)!=null&&u.contains(c))&&s()}})});Wm.displayName=N0;var zi="Toast",cE="toast.swipeStart",dE="toast.swipeMove",uE="toast.swipeCancel",fE="toast.swipeEnd",S0=f.forwardRef((e,t)=>{const{forceMount:n,open:s,defaultOpen:o,onOpenChange:a,...i}=e,[c,d]=xn({prop:s,defaultProp:o!=null?o:!0,onChange:a,caller:zi});return r.jsx(Kn,{present:n||c,children:r.jsx(pE,{open:c,...i,ref:t,onClose:()=>d(!1),onPause:pn(e.onPause),onResume:pn(e.onResume),onSwipeStart:pe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(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:pe(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:pe(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)})})})});S0.displayName=zi;var[mE,hE]=y0(zi,{onClose(){}}),pE=f.forwardRef((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:h,onSwipeMove:m,onSwipeCancel:v,onSwipeEnd:g,...j}=e,b=sd(zi,n),[w,y]=f.useState(null),p=De(t,O=>y(O)),x=f.useRef(null),N=f.useRef(null),S=o||b.duration,k=f.useRef(0),E=f.useRef(S),C=f.useRef(0),{onToastAdd:R,onToastRemove:T}=b,A=pn(()=>{var re;(w==null?void 0:w.contains(document.activeElement))&&((re=b.viewport)==null||re.focus()),i()}),M=f.useCallback(O=>{!O||O===1/0||(window.clearTimeout(C.current),k.current=new Date().getTime(),C.current=window.setTimeout(A,O))},[A]);f.useEffect(()=>{const O=b.viewport;if(O){const re=()=>{M(E.current),u==null||u()},D=()=>{const te=new Date().getTime()-k.current;E.current=E.current-te,window.clearTimeout(C.current),d==null||d()};return O.addEventListener(Vm,D),O.addEventListener(Hm,re),()=>{O.removeEventListener(Vm,D),O.removeEventListener(Hm,re)}}},[b.viewport,S,d,u,M]),f.useEffect(()=>{a&&!b.isClosePausedRef.current&&M(S)},[a,S,b.isClosePausedRef,M]),f.useEffect(()=>(R(),()=>T()),[R,T]);const B=f.useMemo(()=>w?R0(w):null,[w]);return b.viewport?r.jsxs(r.Fragment,{children:[B&&r.jsx(xE,{__scopeToast:n,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:B}),r.jsx(mE,{scope:n,onClose:A,children:Ys.createPortal(r.jsx(Bm.ItemSlot,{scope:n,children:r.jsx(Q_,{asChild:!0,onEscapeKeyDown:pe(c,()=>{b.isFocusedToastEscapeKeyDownRef.current||A(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(Se.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":b.swipeDirection,...j,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,O=>{O.key==="Escape"&&(c==null||c(O.nativeEvent),O.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:pe(e.onPointerDown,O=>{O.button===0&&(x.current={x:O.clientX,y:O.clientY})}),onPointerMove:pe(e.onPointerMove,O=>{if(!x.current)return;const re=O.clientX-x.current.x,D=O.clientY-x.current.y,te=!!N.current,I=["left","right"].includes(b.swipeDirection),F=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,J=I?F(0,re):0,xe=I?0:F(0,D),P=O.pointerType==="touch"?10:2,$={x:J,y:xe},W={originalEvent:O,delta:$};te?(N.current=$,od(dE,m,W,{discrete:!1})):A0($,b.swipeDirection,P)?(N.current=$,od(cE,h,W,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(re)>P||Math.abs(D)>P)&&(x.current=null)}),onPointerUp:pe(e.onPointerUp,O=>{const re=N.current,D=O.target;if(D.hasPointerCapture(O.pointerId)&&D.releasePointerCapture(O.pointerId),N.current=null,x.current=null,re){const te=O.currentTarget,I={originalEvent:O,delta:re};A0(re,b.swipeDirection,b.swipeThreshold)?od(fE,g,I,{discrete:!0}):od(uE,v,I,{discrete:!0}),te.addEventListener("click",F=>F.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),xE=e=>{const{__scopeToast:t,children:n,...s}=e,o=sd(zi,t),[a,i]=f.useState(!1),[c,d]=f.useState(!1);return yE(()=>i(!0)),f.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:r.jsx($i,{asChild:!0,children:r.jsx(rd,{...s,children:a&&r.jsxs(r.Fragment,{children:[o.label," ",n]})})})},gE="ToastTitle",C0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(Se.div,{...s,ref:t})});C0.displayName=gE;var vE="ToastDescription",k0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(Se.div,{...s,ref:t})});k0.displayName=vE;var _0="ToastAction",E0=f.forwardRef((e,t)=>{const{altText:n,...s}=e;return n.trim()?r.jsx(T0,{altText:n,asChild:!0,children:r.jsx(qm,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${_0}\`. Expected non-empty \`string\`.`),null)});E0.displayName=_0;var P0="ToastClose",qm=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e,o=hE(P0,n);return r.jsx(T0,{asChild:!0,children:r.jsx(Se.button,{type:"button",...s,ref:t,onClick:pe(e.onClick,o.onClose)})})});qm.displayName=P0;var T0=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:s,...o}=e;return r.jsx(Se.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...o,ref:t})});function R0(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",a=s.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=s.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...R0(s))}}),t}function od(e,t,n,{discrete:s}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),s?f0(o,a):o.dispatchEvent(a)}var A0=(e,t,n=0)=>{const s=Math.abs(e.x),o=Math.abs(e.y),a=s>o;return t==="left"||t==="right"?a&&s>n:!a&&o>n};function yE(e=()=>{}){const t=pn(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 jE(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 Km(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var wE=b0,O0=w0,I0=S0,M0=C0,D0=k0,F0=E0,L0=qm;function $0(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=$0(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function z0(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$0(e))&&(s&&(s+=" "),s+=t);return s}const U0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,B0=z0,oa=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return B0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const h=n==null?void 0:n[u],m=a==null?void 0:a[u];if(h===null)return null;const v=U0(h)||U0(m);return o[u][v]}),c=n&&Object.entries(n).reduce((u,h)=>{let[m,v]=h;return v===void 0||(u[m]=v),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,h)=>{let{class:m,className:v,...g}=h;return Object.entries(g).every(j=>{let[b,w]=j;return Array.isArray(w)?w.includes({...a,...c}[b]):{...a,...c}[b]===w})?[...u,m,v]:u},[]);return B0(e,i,d,n==null?void 0:n.class,n==null?void 0:n.className)};/** | |
| 69 | + */function cd(){return cd=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},cd.apply(this,arguments)}function $b(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function mE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hE(e,t){return e.button===0&&(!t||t==="_self")&&!mE(e)}function uh(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(a=>[n,a]):[[n,s]])},[]))}function pE(e,t){let n=uh(e);return t&&t.forEach((s,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}const xE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gE=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],vE="6";try{window.__reactRouterVersion=vE}catch(e){}const yE=f.createContext({isTransitioning:!1}),zb=ql["startTransition"];function bE(e){let{basename:t,children:n,future:s,window:a}=e,i=f.useRef();i.current==null&&(i.current=b_({window:a,v5Compat:!0}));let o=i.current,[c,d]=f.useState({action:o.action,location:o.location}),{v7_startTransition:u}=s||{},h=f.useCallback(m=>{u&&zb?zb(()=>d(m)):d(m)},[d,u]);return f.useLayoutEffect(()=>o.listen(h),[o,h]),f.useEffect(()=>cE(s),[s]),f.createElement(uE,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:o,future:s})}const jE=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",wE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vt=f.forwardRef(function(t,n){let{onClick:s,relative:a,reloadDocument:i,replace:o,state:c,target:d,to:u,preventScrollReset:h,viewTransition:m}=t,y=$b(t,xE),{basename:v}=f.useContext(hs),w,g=!1;if(typeof u=="string"&&wE.test(u)&&(w=u,jE))try{let x=new URL(window.location.href),N=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=si(N.pathname,v);N.origin===x.origin&&S!=null?u=S+N.search+N.hash:g=!0}catch(x){}let j=W_(u,{relative:a}),b=SE(u,{replace:o,state:c,target:d,preventScrollReset:h,relative:a,viewTransition:m});function p(x){s&&s(x),x.defaultPrevented||b(x)}return f.createElement("a",cd({},y,{href:w||j,onClick:g||i?s:p,ref:n,target:d}))}),Ub=f.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:a=!1,className:i="",end:o=!1,style:c,to:d,viewTransition:u,children:h}=t,m=$b(t,gE),y=ld(d,{relative:m.relative}),v=ps(),w=f.useContext(Ab),{navigator:g,basename:j}=f.useContext(hs),b=w!=null&&CE(y)&&u===!0,p=g.encodeLocation?g.encodeLocation(y).pathname:y.pathname,x=v.pathname,N=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;a||(x=x.toLowerCase(),N=N?N.toLowerCase():null,p=p.toLowerCase()),N&&j&&(N=si(N,j)||N);const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let k=x===p||!o&&x.startsWith(p)&&x.charAt(S)==="/",_=N!=null&&(N===p||!o&&N.startsWith(p)&&N.charAt(p.length)==="/"),C={isActive:k,isPending:_,isTransitioning:b},R=k?s:void 0,T;typeof i=="function"?T=i(C):T=[i,k?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let O=typeof c=="function"?c(C):c;return f.createElement(vt,cd({},m,{"aria-current":R,className:T,ref:n,style:O,to:d,viewTransition:u}),typeof h=="function"?h(C):h)});var fh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fh||(fh={}));var Bb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bb||(Bb={}));function NE(e){let t=f.useContext(id);return t||dt(!1),t}function SE(e,t){let{target:n,replace:s,state:a,preventScrollReset:i,relative:o,viewTransition:c}=t===void 0?{}:t,d=Sn(),u=ps(),h=ld(e,{relative:o});return f.useCallback(m=>{if(hE(m,n)){m.preventDefault();let y=s!==void 0?s:ad(u)===ad(h);d(e,{replace:y,state:a,preventScrollReset:i,relative:o,viewTransition:c})}},[u,d,h,s,a,n,e,i,o,c])}function Vb(e){let t=f.useRef(uh(e)),n=f.useRef(!1),s=ps(),a=f.useMemo(()=>pE(s.search,n.current?null:t.current),[s.search]),i=Sn(),o=f.useCallback((c,d)=>{const u=uh(typeof c=="function"?c(a):c);n.current=!0,i("?"+u,d)},[i,a]);return[a,o]}function CE(e,t){t===void 0&&(t={});let n=f.useContext(yE);n==null&&dt(!1);let{basename:s}=NE(fh.useViewTransitionState),a=ld(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=si(n.currentLocation.pathname,s)||n.currentLocation.pathname,o=si(n.nextLocation.pathname,s)||n.nextLocation.pathname;return lh(a.pathname,o)!=null||lh(a.pathname,i)!=null}function ht(){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 oa(e){return ht().loadedAddons.includes(e)}function kE(e){return ht().registeredAddons.includes(e)}class dd extends Error{constructor(n,s,a){var i,o,c,d;super(n);Wi(this,"status");Wi(this,"code");Wi(this,"missing");Wi(this,"body");this.name="ApiError",this.status=s,this.body=a,this.code=(o=a==null?void 0:a.code)!=null?o:(i=a==null?void 0:a.data)==null?void 0:i.code,this.missing=(d=a==null?void 0:a.missing)!=null?d:(c=a==null?void 0:a.data)==null?void 0:c.missing}}async function Q(e,t={}){var c;const n=ht(),s=n.restUrl.replace(/\/+$/,""),a=e.replace(/^\/+/,""),i=`${s}/${a}`,o=await fetch(i,{...t,headers:{"Content-Type":"application/json","X-WP-Nonce":n.nonce,...t.headers}});if(!o.ok){const d=await o.json().catch(()=>({message:o.statusText})),u=(d==null?void 0:d.message)||((c=d==null?void 0:d.data)==null?void 0:c.message)||o.statusText;throw new dd(u,o.status,d)}return o.json()}const Vo={},mh=new Set,_E=Object.freeze([]);function EE(){mh.forEach(e=>e())}function PE(e,t,n){typeof e!="string"||e===""||typeof t!="string"||t===""||typeof n!="function"&&typeof n!="object"||(Vo[e]||(Vo[e]=[]),!Vo[e].some(s=>s.name===t)&&(Vo[e].push({name:t,Component:n}),EE()))}function qb(e){return mh.add(e),()=>{mh.delete(e)}}function Hb(e){var t;return(t=Vo[e])!=null?t:_E}let ii=null;const Wb=new Set;async function Kb(e){const t=e.flatMap(n=>{var s,a;return(a=(s=n.ui)==null?void 0:s.bundles)!=null?a:[]}).filter(n=>n&&typeof n.url=="string"&&n.url!=="").filter(n=>!Wb.has(n.url));await Promise.allSettled(t.map(async n=>{Wb.add(n.url);try{await import(n.url)}catch(s){console.error(`[f12-doi] Failed to load addon bundle "${n.handle}" from ${n.url}`,s)}}))}function TE(){return ii||(typeof window!="undefined"&&!window.f12DoiRegisterComponent&&(window.f12DoiRegisterComponent=(e,t,n)=>{PE(e,t,n)}),ii=(async()=>{let e;try{e=await Q("addons")}catch(n){return console.error("[f12-doi] Failed to fetch /addons manifest",n),[]}const t=Array.isArray(e==null?void 0:e.addons)?e.addons:[];return await Kb(t),t})(),ii)}async function RE(){var n;ii&&await ii;let e;try{e=await Q("addons")}catch(s){console.error("[f12-doi] Failed to refresh /addons manifest",s);return}const t=Array.isArray(e==null?void 0:e.addons)?e.addons:[];if(typeof window!="undefined"&&window.doiAdmin){const s=new Set((n=window.doiAdmin.loadedAddons)!=null?n:[]);t.filter(a=>a.available).forEach(a=>s.add(a.id)),window.doiAdmin.loadedAddons=Array.from(s)}await Kb(t)}const AE=1,OE=1e6;let hh=0;function IE(){return hh=(hh+1)%Number.MAX_SAFE_INTEGER,hh.toString()}const ph=new Map,Qb=e=>{if(ph.has(e))return;const t=setTimeout(()=>{ph.delete(e),qo({type:"REMOVE_TOAST",toastId:e})},OE);ph.set(e,t)},ME=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,AE)};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?Qb(n):e.toasts.forEach(s=>{Qb(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)}}},ud=[];let fd={toasts:[]};function qo(e){fd=ME(fd,e),ud.forEach(t=>{t(fd)})}function DE({...e}){const t=IE(),n=a=>qo({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>qo({type:"DISMISS_TOAST",toastId:t});return qo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||s()}}}),{id:t,dismiss:s,update:n}}function FE(){const[e,t]=f.useState(fd);return f.useEffect(()=>(ud.push(t),()=>{const n=ud.indexOf(t);n>-1&&ud.splice(n,1)}),[e]),{...e,toast:DE,dismiss:n=>qo({type:"DISMISS_TOAST",toastId:n})}}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Gb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oi(...e){return t=>{let n=!1;const s=e.map(a=>{const i=Gb(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():Gb(e[a],null)}}}}function Ie(...e){return f.useCallback(oi(...e),e)}function LE(e,t){const n=f.createContext(t),s=i=>{const{children:o,...c}=i,d=f.useMemo(()=>c,Object.values(c));return r.jsx(n.Provider,{value:d,children:o})};s.displayName=e+"Provider";function a(i){const o=f.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,a]}function zt(e,t=[]){let n=[];function s(i,o){const c=f.createContext(o),d=n.length;n=[...n,o];const u=m=>{var b;const{scope:y,children:v,...w}=m,g=((b=y==null?void 0:y[e])==null?void 0:b[d])||c,j=f.useMemo(()=>w,Object.values(w));return r.jsx(g.Provider,{value:j,children:v})};u.displayName=i+"Provider";function h(m,y){var g;const v=((g=y==null?void 0:y[e])==null?void 0:g[d])||c,w=f.useContext(v);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[u,h]}const a=()=>{const i=n.map(o=>f.createContext(o));return function(c){const d=(c==null?void 0:c[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return a.scopeName=e,[s,$E(a,...t)]}function $E(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=s.reduce((c,{useScope:d,scopeName:u})=>{const m=d(i)[`__scope${u}`];return{...c,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Yb(e){const t=zE(e),n=f.forwardRef((s,a)=>{const{children:i,...o}=s,c=f.Children.toArray(i),d=c.find(BE);if(d){const u=d.props.children,h=c.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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function zE(e){const t=f.forwardRef((n,s)=>{const{children:a,...i}=n;if(f.isValidElement(a)){const o=qE(a),c=VE(i,a.props);return a.type!==f.Fragment&&(c.ref=s?oi(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var UE=Symbol("radix.slottable");function BE(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UE}function VE(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function qE(e){var s,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function md(e){const t=e+"CollectionProvider",[n,s]=zt(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:j,children:b}=g,p=K.useRef(null),x=K.useRef(new Map).current;return r.jsx(a,{scope:j,itemMap:x,collectionRef:p,children:b})};o.displayName=t;const c=e+"CollectionSlot",d=Yb(c),u=K.forwardRef((g,j)=>{const{scope:b,children:p}=g,x=i(c,b),N=Ie(j,x.collectionRef);return r.jsx(d,{ref:N,children:p})});u.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",y=Yb(h),v=K.forwardRef((g,j)=>{const{scope:b,children:p,...x}=g,N=K.useRef(null),S=Ie(j,N),k=i(h,b);return K.useEffect(()=>(k.itemMap.set(N,{ref:N,...x}),()=>void k.itemMap.delete(N))),r.jsx(y,{[m]:"",ref:S,children:p})});v.displayName=h;function w(g){const j=i(e+"CollectionConsumer",g);return K.useCallback(()=>{const p=j.collectionRef.current;if(!p)return[];const x=Array.from(p.querySelectorAll(`[${m}]`));return Array.from(j.itemMap.values()).sort((k,_)=>x.indexOf(k.ref.current)-x.indexOf(_.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:o,Slot:u,ItemSlot:v},w,s]}function HE(e){const t=WE(e),n=f.forwardRef((s,a)=>{const{children:i,...o}=s,c=f.Children.toArray(i),d=c.find(QE);if(d){const u=d.props.children,h=c.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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function WE(e){const t=f.forwardRef((n,s)=>{const{children:a,...i}=n;if(f.isValidElement(a)){const o=YE(a),c=GE(i,a.props);return a.type!==f.Fragment&&(c.ref=s?oi(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KE=Symbol("radix.slottable");function QE(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KE}function GE(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function YE(e){var s,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var XE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ve=XE.reduce((e,t)=>{const n=HE(`Primitive.${t}`),s=f.forwardRef((a,i)=>{const{asChild:o,...c}=a,d=o?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function Xb(e,t){e&&na.flushSync(()=>e.dispatchEvent(t))}function Cn(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 ZE(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e);f.useEffect(()=>{const s=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var JE="DismissableLayer",xh="dismissableLayer.update",eP="dismissableLayer.pointerDownOutside",tP="dismissableLayer.focusOutside",Zb,Jb=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ho=f.forwardRef((e,t)=>{var _;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:c,...d}=e,u=f.useContext(Jb),[h,m]=f.useState(null),y=(_=h==null?void 0:h.ownerDocument)!=null?_:globalThis==null?void 0:globalThis.document,[,v]=f.useState({}),w=Ie(t,C=>m(C)),g=Array.from(u.layers),[j]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(j),p=h?g.indexOf(h):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,N=p>=b,S=rP(C=>{const R=C.target,T=[...u.branches].some(O=>O.contains(R));!N||T||(a==null||a(C),o==null||o(C),C.defaultPrevented||c==null||c())},y),k=sP(C=>{const R=C.target;[...u.branches].some(O=>O.contains(R))||(i==null||i(C),o==null||o(C),C.defaultPrevented||c==null||c())},y);return ZE(C=>{p===u.layers.size-1&&(s==null||s(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},y),f.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Zb=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),t0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Zb)}},[h,y,n,u]),f.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),t0())},[h,u]),f.useEffect(()=>{const C=()=>v({});return document.addEventListener(xh,C),()=>document.removeEventListener(xh,C)},[]),r.jsx(ve.div,{...d,ref:w,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)})});Ho.displayName=JE;var nP="DismissableLayerBranch",e0=f.forwardRef((e,t)=>{const n=f.useContext(Jb),s=f.useRef(null),a=Ie(t,s);return f.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),r.jsx(ve.div,{...e,ref:a})});e0.displayName=nP;function rP(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),s=f.useRef(!1),a=f.useRef(()=>{});return f.useEffect(()=>{const i=c=>{if(c.target&&!s.current){let d=function(){n0(eP,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function sP(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),s=f.useRef(!1);return f.useEffect(()=>{const a=i=>{i.target&&!s.current&&n0(tP,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function t0(){const e=new CustomEvent(xh);document.dispatchEvent(e)}function n0(e,t,n,{discrete:s}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?Xb(a,i):a.dispatchEvent(i)}var aP=Ho,iP=e0,jt=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},oP="Portal",Wo=f.forwardRef((e,t)=>{var c;const{container:n,...s}=e,[a,i]=f.useState(!1);jt(()=>i(!0),[]);const o=n||a&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return o?Ky.createPortal(r.jsx(ve.div,{...s,ref:t}),o):null});Wo.displayName=oP;function lP(e,t){return f.useReducer((n,s)=>{const a=t[n][s];return a!=null?a:n},e)}var Fn=e=>{const{present:t,children:n}=e,s=cP(t),a=typeof n=="function"?n({present:s.isPresent}):f.Children.only(n),i=Ie(s.ref,dP(a));return typeof n=="function"||s.isPresent?f.cloneElement(a,{ref:i}):null};Fn.displayName="Presence";function cP(e){const[t,n]=f.useState(),s=f.useRef(null),a=f.useRef(e),i=f.useRef("none"),o=e?"mounted":"unmounted",[c,d]=lP(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=hd(s.current);i.current=c==="mounted"?u:"none"},[c]),jt(()=>{const u=s.current,h=a.current;if(h!==e){const y=i.current,v=hd(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(h&&y!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),jt(()=>{var u;if(t){let h;const m=(u=t.ownerDocument.defaultView)!=null?u:window,y=w=>{const j=hd(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&j&&(d("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},v=w=>{w.target===t&&(i.current=hd(s.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(u=>{s.current=u?getComputedStyle(u):null,n(u)},[])}}function hd(e){return(e==null?void 0:e.animationName)||"none"}function dP(e){var s,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uP=ql[" useInsertionEffect ".trim().toString()]||jt;function cn({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[a,i,o]=fP({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:a;{const h=f.useRef(e!==void 0);f.useEffect(()=>{const m=h.current;m!==c&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${c?"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=c},[c,s])}const u=f.useCallback(h=>{var m;if(c){const y=mP(h)?h(e):h;y!==e&&((m=o.current)==null||m.call(o,y))}else i(h)},[c,e,i,o]);return[d,u]}function fP({defaultProp:e,onChange:t}){const[n,s]=f.useState(e),a=f.useRef(n),i=f.useRef(t);return uP(()=>{i.current=t},[t]),f.useEffect(()=>{var o;a.current!==n&&((o=i.current)==null||o.call(i,n),a.current=n)},[n,a]),[n,s,i]}function mP(e){return typeof e=="function"}var r0=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"}),hP="VisuallyHidden",pd=f.forwardRef((e,t)=>r.jsx(ve.span,{...e,ref:t,style:{...r0,...e.style}}));pd.displayName=hP;var pP=pd,gh="ToastProvider",[vh,xP,gP]=md("Toast"),[s0]=zt("Toast",[gP]),[vP,xd]=s0(gh),a0=e=>{const{__scopeToast:t,label:n="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:o}=e,[c,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 \`${gh}\`. Expected non-empty \`string\`.`),r.jsx(vh.Provider,{scope:t,children:r.jsx(vP,{scope:t,label:n,duration:s,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:f.useCallback(()=>h(v=>v+1),[]),onToastRemove:f.useCallback(()=>h(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:y,children:o})})};a0.displayName=gh;var i0="ToastViewport",yP=["F8"],yh="toast.viewportPause",bh="toast.viewportResume",o0=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:s=yP,label:a="Notifications ({hotkey})",...i}=e,o=xd(i0,n),c=xP(n),d=f.useRef(null),u=f.useRef(null),h=f.useRef(null),m=f.useRef(null),y=Ie(t,m,o.onViewportChange),v=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;f.useEffect(()=>{const j=b=>{var x;s.length!==0&&s.every(N=>b[N]||b.code===N)&&((x=m.current)==null||x.focus())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[s]),f.useEffect(()=>{const j=d.current,b=m.current;if(w&&j&&b){const p=()=>{if(!o.isClosePausedRef.current){const k=new CustomEvent(yh);b.dispatchEvent(k),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const k=new CustomEvent(bh);b.dispatchEvent(k),o.isClosePausedRef.current=!1}},N=k=>{!j.contains(k.relatedTarget)&&x()},S=()=>{j.contains(document.activeElement)||x()};return j.addEventListener("focusin",p),j.addEventListener("focusout",N),j.addEventListener("pointermove",p),j.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",x),()=>{j.removeEventListener("focusin",p),j.removeEventListener("focusout",N),j.removeEventListener("pointermove",p),j.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",x)}}},[w,o.isClosePausedRef]);const g=f.useCallback(({tabbingDirection:j})=>{const p=c().map(x=>{const N=x.ref.current,S=[N,...AP(N)];return j==="forwards"?S:S.reverse()});return(j==="forwards"?p.reverse():p).flat()},[c]);return f.useEffect(()=>{const j=m.current;if(j){const b=p=>{var S,k,_;const x=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!x){const C=document.activeElement,R=p.shiftKey;if(p.target===j&&R){(S=u.current)==null||S.focus();return}const M=g({tabbingDirection:R?"backwards":"forwards"}),B=M.findIndex(I=>I===C);Nh(M.slice(B+1))?p.preventDefault():R?(k=u.current)==null||k.focus():(_=h.current)==null||_.focus()}};return j.addEventListener("keydown",b),()=>j.removeEventListener("keydown",b)}},[c,g]),r.jsxs(iP,{ref:d,role:"region","aria-label":a.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&r.jsx(jh,{ref:u,onFocusFromOutsideViewport:()=>{const j=g({tabbingDirection:"forwards"});Nh(j)}}),r.jsx(vh.Slot,{scope:n,children:r.jsx(ve.ol,{tabIndex:-1,...i,ref:y})}),w&&r.jsx(jh,{ref:h,onFocusFromOutsideViewport:()=>{const j=g({tabbingDirection:"backwards"});Nh(j)}})]})});o0.displayName=i0;var l0="ToastFocusProxy",jh=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:s,...a}=e,i=xd(l0,n);return r.jsx(pd,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const c=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(c))&&s()}})});jh.displayName=l0;var Ko="Toast",bP="toast.swipeStart",jP="toast.swipeMove",wP="toast.swipeCancel",NP="toast.swipeEnd",c0=f.forwardRef((e,t)=>{const{forceMount:n,open:s,defaultOpen:a,onOpenChange:i,...o}=e,[c,d]=cn({prop:s,defaultProp:a!=null?a:!0,onChange:i,caller:Ko});return r.jsx(Fn,{present:n||c,children:r.jsx(kP,{open:c,...o,ref:t,onClose:()=>d(!1),onPause:Cn(e.onPause),onResume:Cn(e.onResume),onSwipeStart:pe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(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:pe(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:pe(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)})})})});c0.displayName=Ko;var[SP,CP]=s0(Ko,{onClose(){}}),kP=f.forwardRef((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:a,open:i,onClose:o,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:h,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:v,...w}=e,g=xd(Ko,n),[j,b]=f.useState(null),p=Ie(t,I=>b(I)),x=f.useRef(null),N=f.useRef(null),S=a||g.duration,k=f.useRef(0),_=f.useRef(S),C=f.useRef(0),{onToastAdd:R,onToastRemove:T}=g,O=Cn(()=>{var ne;(j==null?void 0:j.contains(document.activeElement))&&((ne=g.viewport)==null||ne.focus()),o()}),M=f.useCallback(I=>{!I||I===1/0||(window.clearTimeout(C.current),k.current=new Date().getTime(),C.current=window.setTimeout(O,I))},[O]);f.useEffect(()=>{const I=g.viewport;if(I){const ne=()=>{M(_.current),u==null||u()},F=()=>{const te=new Date().getTime()-k.current;_.current=_.current-te,window.clearTimeout(C.current),d==null||d()};return I.addEventListener(yh,F),I.addEventListener(bh,ne),()=>{I.removeEventListener(yh,F),I.removeEventListener(bh,ne)}}},[g.viewport,S,d,u,M]),f.useEffect(()=>{i&&!g.isClosePausedRef.current&&M(S)},[i,S,g.isClosePausedRef,M]),f.useEffect(()=>(R(),()=>T()),[R,T]);const B=f.useMemo(()=>j?x0(j):null,[j]);return g.viewport?r.jsxs(r.Fragment,{children:[B&&r.jsx(_P,{__scopeToast:n,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:B}),r.jsx(SP,{scope:n,onClose:O,children:na.createPortal(r.jsx(vh.ItemSlot,{scope:n,children:r.jsx(aP,{asChild:!0,onEscapeKeyDown:pe(c,()=>{g.isFocusedToastEscapeKeyDownRef.current||O(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(ve.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,I=>{I.key==="Escape"&&(c==null||c(I.nativeEvent),I.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:pe(e.onPointerDown,I=>{I.button===0&&(x.current={x:I.clientX,y:I.clientY})}),onPointerMove:pe(e.onPointerMove,I=>{if(!x.current)return;const ne=I.clientX-x.current.x,F=I.clientY-x.current.y,te=!!N.current,A=["left","right"].includes(g.swipeDirection),D=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,W=A?D(0,ne):0,he=A?0:D(0,F),me=I.pointerType==="touch"?10:2,je={x:W,y:he},Ne={originalEvent:I,delta:je};te?(N.current=je,gd(jP,m,Ne,{discrete:!1})):g0(je,g.swipeDirection,me)?(N.current=je,gd(bP,h,Ne,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(ne)>me||Math.abs(F)>me)&&(x.current=null)}),onPointerUp:pe(e.onPointerUp,I=>{const ne=N.current,F=I.target;if(F.hasPointerCapture(I.pointerId)&&F.releasePointerCapture(I.pointerId),N.current=null,x.current=null,ne){const te=I.currentTarget,A={originalEvent:I,delta:ne};g0(ne,g.swipeDirection,g.swipeThreshold)?gd(NP,v,A,{discrete:!0}):gd(wP,y,A,{discrete:!0}),te.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),_P=e=>{const{__scopeToast:t,children:n,...s}=e,a=xd(Ko,t),[i,o]=f.useState(!1),[c,d]=f.useState(!1);return TP(()=>o(!0)),f.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:r.jsx(Wo,{asChild:!0,children:r.jsx(pd,{...s,children:i&&r.jsxs(r.Fragment,{children:[a.label," ",n]})})})},EP="ToastTitle",d0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(ve.div,{...s,ref:t})});d0.displayName=EP;var PP="ToastDescription",u0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(ve.div,{...s,ref:t})});u0.displayName=PP;var f0="ToastAction",m0=f.forwardRef((e,t)=>{const{altText:n,...s}=e;return n.trim()?r.jsx(p0,{altText:n,asChild:!0,children:r.jsx(wh,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${f0}\`. Expected non-empty \`string\`.`),null)});m0.displayName=f0;var h0="ToastClose",wh=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e,a=CP(h0,n);return r.jsx(p0,{asChild:!0,children:r.jsx(ve.button,{type:"button",...s,ref:t,onClick:pe(e.onClick,a.onClose)})})});wh.displayName=h0;var p0=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:s,...a}=e;return r.jsx(ve.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...a,ref:t})});function x0(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),RP(s)){const a=s.ariaHidden||s.hidden||s.style.display==="none",i=s.dataset.radixToastAnnounceExclude==="";if(!a)if(i){const o=s.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...x0(s))}}),t}function gd(e,t,n,{discrete:s}){const a=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?Xb(a,i):a.dispatchEvent(i)}var g0=(e,t,n=0)=>{const s=Math.abs(e.x),a=Math.abs(e.y),i=s>a;return t==="left"||t==="right"?i&&s>n:!i&&a>n};function TP(e=()=>{}){const t=Cn(e);jt(()=>{let n=0,s=0;return n=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(s)}},[t])}function RP(e){return e.nodeType===e.ELEMENT_NODE}function AP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Nh(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var OP=a0,v0=o0,y0=c0,b0=d0,j0=u0,w0=m0,N0=wh;function S0(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=S0(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function C0(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=S0(e))&&(s&&(s+=" "),s+=t);return s}const k0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_0=C0,li=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return _0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const h=n==null?void 0:n[u],m=i==null?void 0:i[u];if(h===null)return null;const y=k0(h)||k0(m);return a[u][y]}),c=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,...v}=h;return Object.entries(v).every(w=>{let[g,j]=w;return Array.isArray(j)?j.includes({...i,...c}[g]):{...i,...c}[g]===j})?[...u,m,y]:u},[]);return _0(e,o,d,n==null?void 0:n.class,n==null?void 0:n.className)};/** | |
| 69 | 70 | * @license lucide-react v0.462.0 - ISC |
| 70 | 71 | * |
| 71 | 72 | * This source code is licensed under the ISC license. |
| 72 | 73 | * See the LICENSE file in the root directory of this source tree. |
| 73 | - */const NE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),V0=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** | |
| 74 | + */const IP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E0=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** | |
| 74 | 75 | * @license lucide-react v0.462.0 - ISC |
| 75 | 76 | * |
| 76 | 77 | * This source code is licensed under the ISC license. |
| 77 | 78 | * See the LICENSE file in the root directory of this source tree. |
| 78 | - */var SE={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 | + */var MP={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 | 80 | * @license lucide-react v0.462.0 - ISC |
| 80 | 81 | * |
| 81 | 82 | * This source code is licensed under the ISC license. |
| 82 | 83 | * See the LICENSE file in the root directory of this source tree. |
| 83 | - */const CE=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:o="",children:a,iconNode:i,...c},d)=>f.createElement("svg",{ref:d,...SE,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:V0("lucide",o),...c},[...i.map(([u,h])=>f.createElement(u,h)),...Array.isArray(a)?a:[a]]));/** | |
| 84 | + */const DP=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:a="",children:i,iconNode:o,...c},d)=>f.createElement("svg",{ref:d,...MP,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:E0("lucide",a),...c},[...o.map(([u,h])=>f.createElement(u,h)),...Array.isArray(i)?i:[i]]));/** | |
| 84 | 85 | * @license lucide-react v0.462.0 - ISC |
| 85 | 86 | * |
| 86 | 87 | * This source code is licensed under the ISC license. |
| 87 | 88 | * See the LICENSE file in the root directory of this source tree. |
| 88 | - */const de=(e,t)=>{const n=f.forwardRef(({className:s,...o},a)=>f.createElement(CE,{ref:a,iconNode:t,className:V0(`lucide-${NE(e)}`,s),...o}));return n.displayName=`${e}`,n};/** | |
| 89 | + */const oe=(e,t)=>{const n=f.forwardRef(({className:s,...a},i)=>f.createElement(DP,{ref:i,iconNode:t,className:E0(`lucide-${IP(e)}`,s),...a}));return n.displayName=`${e}`,n};/** | |
| 89 | 90 | * @license lucide-react v0.462.0 - ISC |
| 90 | 91 | * |
| 91 | 92 | * This source code is licensed under the ISC license. |
| 92 | 93 | * See the LICENSE file in the root directory of this source tree. |
| 93 | - */const ad=de("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** | |
| 94 | + */const vd=oe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** | |
| 94 | 95 | * @license lucide-react v0.462.0 - ISC |
| 95 | 96 | * |
| 96 | 97 | * This source code is licensed under the ISC license. |
| 97 | 98 | * See the LICENSE file in the root directory of this source tree. |
| 98 | - */const aa=de("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 | + */const Qo=oe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** | |
| 99 | 100 | * @license lucide-react v0.462.0 - ISC |
| 100 | 101 | * |
| 101 | 102 | * This source code is licensed under the ISC license. |
| 102 | 103 | * See the LICENSE file in the root directory of this source tree. |
| 103 | - */const kE=de("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 | + */const FP=oe("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** | |
| 104 | 105 | * @license lucide-react v0.462.0 - ISC |
| 105 | 106 | * |
| 106 | 107 | * This source code is licensed under the ISC license. |
| 107 | 108 | * See the LICENSE file in the root directory of this source tree. |
| 108 | - */const _E=de("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 | + */const P0=oe("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/** | |
| 109 | 110 | * @license lucide-react v0.462.0 - ISC |
| 110 | 111 | * |
| 111 | 112 | * This source code is licensed under the ISC license. |
| 112 | 113 | * See the LICENSE file in the root directory of this source tree. |
| 113 | - */const id=de("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** | |
| 114 | + */const T0=oe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** | |
| 114 | 115 | * @license lucide-react v0.462.0 - ISC |
| 115 | 116 | * |
| 116 | 117 | * This source code is licensed under the ISC license. |
| 117 | 118 | * See the LICENSE file in the root directory of this source tree. |
| 118 | - */const no=de("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** | |
| 119 | + */const ci=oe("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"}]]);/** | |
| 119 | 120 | * @license lucide-react v0.462.0 - ISC |
| 120 | 121 | * |
| 121 | 122 | * This source code is licensed under the ISC license. |
| 122 | 123 | * See the LICENSE file in the root directory of this source tree. |
| 123 | - */const H0=de("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** | |
| 124 | + */const LP=oe("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"}]]);/** | |
| 124 | 125 | * @license lucide-react v0.462.0 - ISC |
| 125 | 126 | * |
| 126 | 127 | * This source code is licensed under the ISC license. |
| 127 | 128 | * See the LICENSE file in the root directory of this source tree. |
| 128 | - */const Qm=de("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** | |
| 129 | + */const $P=oe("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"}]]);/** | |
| 129 | 130 | * @license lucide-react v0.462.0 - ISC |
| 130 | 131 | * |
| 131 | 132 | * This source code is licensed under the ISC license. |
| 132 | 133 | * See the LICENSE file in the root directory of this source tree. |
| 133 | - */const EE=de("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** | |
| 134 | + */const xs=oe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** | |
| 134 | 135 | * @license lucide-react v0.462.0 - ISC |
| 135 | 136 | * |
| 136 | 137 | * This source code is licensed under the ISC license. |
| 137 | 138 | * See the LICENSE file in the root directory of this source tree. |
| 138 | - */const ld=de("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 | + */const la=oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** | |
| 139 | 140 | * @license lucide-react v0.462.0 - ISC |
| 140 | 141 | * |
| 141 | 142 | * This source code is licensed under the ISC license. |
| 142 | 143 | * See the LICENSE file in the root directory of this source tree. |
| 143 | - */const ro=de("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 | + */const R0=oe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** | |
| 144 | 145 | * @license lucide-react v0.462.0 - ISC |
| 145 | 146 | * |
| 146 | 147 | * This source code is licensed under the ISC license. |
| 147 | 148 | * See the LICENSE file in the root directory of this source tree. |
| 148 | - */const W0=de("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** | |
| 149 | + */const Sh=oe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** | |
| 149 | 150 | * @license lucide-react v0.462.0 - ISC |
| 150 | 151 | * |
| 151 | 152 | * This source code is licensed under the ISC license. |
| 152 | 153 | * See the LICENSE file in the root directory of this source tree. |
| 153 | - */const PE=de("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** | |
| 154 | + */const zP=oe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** | |
| 154 | 155 | * @license lucide-react v0.462.0 - ISC |
| 155 | 156 | * |
| 156 | 157 | * This source code is licensed under the ISC license. |
| 157 | 158 | * See the LICENSE file in the root directory of this source tree. |
| 158 | - */const Gm=de("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"}]]);/** | |
| 159 | + */const yd=oe("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"}]]);/** | |
| 159 | 160 | * @license lucide-react v0.462.0 - ISC |
| 160 | 161 | * |
| 161 | 162 | * This source code is licensed under the ISC license. |
| 162 | 163 | * See the LICENSE file in the root directory of this source tree. |
| 163 | - */const TE=de("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** | |
| 164 | + */const Go=oe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** | |
| 164 | 165 | * @license lucide-react v0.462.0 - ISC |
| 165 | 166 | * |
| 166 | 167 | * This source code is licensed under the ISC license. |
| 167 | 168 | * See the LICENSE file in the root directory of this source tree. |
| 168 | - */const Qn=de("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** | |
| 169 | + */const A0=oe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** | |
| 169 | 170 | * @license lucide-react v0.462.0 - ISC |
| 170 | 171 | * |
| 171 | 172 | * This source code is licensed under the ISC license. |
| 172 | 173 | * See the LICENSE file in the root directory of this source tree. |
| 173 | - */const q0=de("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** | |
| 174 | + */const UP=oe("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** | |
| 174 | 175 | * @license lucide-react v0.462.0 - ISC |
| 175 | 176 | * |
| 176 | 177 | * This source code is licensed under the ISC license. |
| 177 | 178 | * See the LICENSE file in the root directory of this source tree. |
| 178 | - */const Xm=de("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"}]]);/** | |
| 179 | + */const Ch=oe("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"}]]);/** | |
| 179 | 180 | * @license lucide-react v0.462.0 - ISC |
| 180 | 181 | * |
| 181 | 182 | * This source code is licensed under the ISC license. |
| 182 | 183 | * See the LICENSE file in the root directory of this source tree. |
| 183 | - */const Ui=de("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"}]]);/** | |
| 184 | + */const O0=oe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** | |
| 184 | 185 | * @license lucide-react v0.462.0 - ISC |
| 185 | 186 | * |
| 186 | 187 | * This source code is licensed under the ISC license. |
| 187 | 188 | * See the LICENSE file in the root directory of this source tree. |
| 188 | - */const Bi=de("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"}]]);/** | |
| 189 | + */const gs=oe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** | |
| 189 | 190 | * @license lucide-react v0.462.0 - ISC |
| 190 | 191 | * |
| 191 | 192 | * This source code is licensed under the ISC license. |
| 192 | 193 | * See the LICENSE file in the root directory of this source tree. |
| 193 | - */const cd=de("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"}]]);/** | |
| 194 | + */const I0=oe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** | |
| 194 | 195 | * @license lucide-react v0.462.0 - ISC |
| 195 | 196 | * |
| 196 | 197 | * This source code is licensed under the ISC license. |
| 197 | 198 | * See the LICENSE file in the root directory of this source tree. |
| 198 | - */const RE=de("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"}]]);/** | |
| 199 | + */const kh=oe("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"}]]);/** | |
| 199 | 200 | * @license lucide-react v0.462.0 - ISC |
| 200 | 201 | * |
| 201 | 202 | * This source code is licensed under the ISC license. |
| 202 | 203 | * See the LICENSE file in the root directory of this source tree. |
| 203 | - */const AE=de("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"}]]);/** | |
| 204 | + */const Yo=oe("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"}]]);/** | |
| 204 | 205 | * @license lucide-react v0.462.0 - ISC |
| 205 | 206 | * |
| 206 | 207 | * This source code is licensed under the ISC license. |
| 207 | 208 | * See the LICENSE file in the root directory of this source tree. |
| 208 | - */const OE=de("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"}]]);/** | |
| 209 | + */const Xo=oe("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"}]]);/** | |
| 209 | 210 | * @license lucide-react v0.462.0 - ISC |
| 210 | 211 | * |
| 211 | 212 | * This source code is licensed under the ISC license. |
| 212 | 213 | * See the LICENSE file in the root directory of this source tree. |
| 213 | - */const ia=de("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"}]]);/** | |
| 214 | + */const di=oe("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"}]]);/** | |
| 214 | 215 | * @license lucide-react v0.462.0 - ISC |
| 215 | 216 | * |
| 216 | 217 | * This source code is licensed under the ISC license. |
| 217 | 218 | * See the LICENSE file in the root directory of this source tree. |
| 218 | - */const IE=de("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"}]]);/** | |
| 219 | + */const BP=oe("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"}]]);/** | |
| 219 | 220 | * @license lucide-react v0.462.0 - ISC |
| 220 | 221 | * |
| 221 | 222 | * This source code is licensed under the ISC license. |
| 222 | 223 | * See the LICENSE file in the root directory of this source tree. |
| 223 | - */const ME=de("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"}]]);/** | |
| 224 | + */const VP=oe("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"}]]);/** | |
| 224 | 225 | * @license lucide-react v0.462.0 - ISC |
| 225 | 226 | * |
| 226 | 227 | * This source code is licensed under the ISC license. |
| 227 | 228 | * See the LICENSE file in the root directory of this source tree. |
| 228 | - */const DE=de("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"}]]);/** | |
| 229 | + */const qP=oe("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"}]]);/** | |
| 229 | 230 | * @license lucide-react v0.462.0 - ISC |
| 230 | 231 | * |
| 231 | 232 | * This source code is licensed under the ISC license. |
| 232 | 233 | * See the LICENSE file in the root directory of this source tree. |
| 233 | - */const yt=de("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** | |
| 234 | + */const ca=oe("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"}]]);/** | |
| 234 | 235 | * @license lucide-react v0.462.0 - ISC |
| 235 | 236 | * |
| 236 | 237 | * This source code is licensed under the ISC license. |
| 237 | 238 | * See the LICENSE file in the root directory of this source tree. |
| 238 | - */const K0=de("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"}]]);/** | |
| 239 | + */const HP=oe("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"}]]);/** | |
| 239 | 240 | * @license lucide-react v0.462.0 - ISC |
| 240 | 241 | * |
| 241 | 242 | * This source code is licensed under the ISC license. |
| 242 | 243 | * See the LICENSE file in the root directory of this source tree. |
| 243 | - */const FE=de("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"}]]);/** | |
| 244 | + */const WP=oe("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"}]]);/** | |
| 244 | 245 | * @license lucide-react v0.462.0 - ISC |
| 245 | 246 | * |
| 246 | 247 | * This source code is licensed under the ISC license. |
| 247 | 248 | * See the LICENSE file in the root directory of this source tree. |
| 248 | - */const LE=de("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"}]]);/** | |
| 249 | + */const KP=oe("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"}]]);/** | |
| 249 | 250 | * @license lucide-react v0.462.0 - ISC |
| 250 | 251 | * |
| 251 | 252 | * This source code is licensed under the ISC license. |
| 252 | 253 | * See the LICENSE file in the root directory of this source tree. |
| 253 | - */const $E=de("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"}]]);/** | |
| 254 | + */const kt=oe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** | |
| 254 | 255 | * @license lucide-react v0.462.0 - ISC |
| 255 | 256 | * |
| 256 | 257 | * This source code is licensed under the ISC license. |
| 257 | 258 | * See the LICENSE file in the root directory of this source tree. |
| 258 | - */const zE=de("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** | |
| 259 | + */const M0=oe("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"}]]);/** | |
| 259 | 260 | * @license lucide-react v0.462.0 - ISC |
| 260 | 261 | * |
| 261 | 262 | * This source code is licensed under the ISC license. |
| 262 | 263 | * See the LICENSE file in the root directory of this source tree. |
| 263 | - */const Pn=de("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** | |
| 264 | + */const QP=oe("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"}]]);/** | |
| 264 | 265 | * @license lucide-react v0.462.0 - ISC |
| 265 | 266 | * |
| 266 | 267 | * This source code is licensed under the ISC license. |
| 267 | 268 | * See the LICENSE file in the root directory of this source tree. |
| 268 | - */const Nr=de("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"}]]);/** | |
| 269 | + */const GP=oe("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"}]]);/** | |
| 269 | 270 | * @license lucide-react v0.462.0 - ISC |
| 270 | 271 | * |
| 271 | 272 | * This source code is licensed under the ISC license. |
| 272 | 273 | * See the LICENSE file in the root directory of this source tree. |
| 273 | - */const Q0=de("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"}]]);/** | |
| 274 | + */const YP=oe("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"}]]);/** | |
| 274 | 275 | * @license lucide-react v0.462.0 - ISC |
| 275 | 276 | * |
| 276 | 277 | * This source code is licensed under the ISC license. |
| 277 | 278 | * See the LICENSE file in the root directory of this source tree. |
| 278 | - */const Gn=de("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"}]]);/** | |
| 279 | + */const XP=oe("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** | |
| 279 | 280 | * @license lucide-react v0.462.0 - ISC |
| 280 | 281 | * |
| 281 | 282 | * This source code is licensed under the ISC license. |
| 282 | 283 | * See the LICENSE file in the root directory of this source tree. |
| 283 | - */const UE=de("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"}]]);/** | |
| 284 | + */const Ln=oe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** | |
| 284 | 285 | * @license lucide-react v0.462.0 - ISC |
| 285 | 286 | * |
| 286 | 287 | * This source code is licensed under the ISC license. |
| 287 | 288 | * See the LICENSE file in the root directory of this source tree. |
| 288 | - */const G0=de("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"}]]);/** | |
| 289 | + */const bd=oe("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"}]]);/** | |
| 289 | 290 | * @license lucide-react v0.462.0 - ISC |
| 290 | 291 | * |
| 291 | 292 | * This source code is licensed under the ISC license. |
| 292 | 293 | * See the LICENSE file in the root directory of this source tree. |
| 293 | - */const BE=de("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** | |
| 294 | + */const D0=oe("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"}]]);/** | |
| 294 | 295 | * @license lucide-react v0.462.0 - ISC |
| 295 | 296 | * |
| 296 | 297 | * This source code is licensed under the ISC license. |
| 297 | 298 | * See the LICENSE file in the root directory of this source tree. |
| 298 | - */const dd=de("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"}]]);/** | |
| 299 | + */const $n=oe("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"}]]);/** | |
| 299 | 300 | * @license lucide-react v0.462.0 - ISC |
| 300 | 301 | * |
| 301 | 302 | * This source code is licensed under the ISC license. |
| 302 | 303 | * See the LICENSE file in the root directory of this source tree. |
| 303 | - */const Ym=de("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"}]]);/** | |
| 304 | + */const ZP=oe("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"}]]);/** | |
| 304 | 305 | * @license lucide-react v0.462.0 - ISC |
| 305 | 306 | * |
| 306 | 307 | * This source code is licensed under the ISC license. |
| 307 | 308 | * See the LICENSE file in the root directory of this source tree. |
| 308 | - */const la=de("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** | |
| 309 | + */const F0=oe("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"}]]);/** | |
| 309 | 310 | * @license lucide-react v0.462.0 - ISC |
| 310 | 311 | * |
| 311 | 312 | * This source code is licensed under the ISC license. |
| 312 | 313 | * See the LICENSE file in the root directory of this source tree. |
| 313 | - */const Vi=de("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/** | |
| 314 | + */const JP=oe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** | |
| 314 | 315 | * @license lucide-react v0.462.0 - ISC |
| 315 | 316 | * |
| 316 | 317 | * This source code is licensed under the ISC license. |
| 317 | 318 | * See the LICENSE file in the root directory of this source tree. |
| 318 | - */const VE=de("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"}]]);/** | |
| 319 | + */const jd=oe("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"}]]);/** | |
| 319 | 320 | * @license lucide-react v0.462.0 - ISC |
| 320 | 321 | * |
| 321 | 322 | * This source code is licensed under the ISC license. |
| 322 | 323 | * See the LICENSE file in the root directory of this source tree. |
| 323 | - */const HE=de("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"}]]);/** | |
| 324 | + */const _h=oe("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"}]]);/** | |
| 324 | 325 | * @license lucide-react v0.462.0 - ISC |
| 325 | 326 | * |
| 326 | 327 | * This source code is licensed under the ISC license. |
| 327 | 328 | * See the LICENSE file in the root directory of this source tree. |
| 328 | - */const ud=de("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"}]]);/** | |
| 329 | + */const ui=oe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** | |
| 329 | 330 | * @license lucide-react v0.462.0 - ISC |
| 330 | 331 | * |
| 331 | 332 | * This source code is licensed under the ISC license. |
| 332 | 333 | * See the LICENSE file in the root directory of this source tree. |
| 333 | - */const so=de("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"}]]);/** | |
| 334 | + */const Zo=oe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/** | |
| 334 | 335 | * @license lucide-react v0.462.0 - ISC |
| 335 | 336 | * |
| 336 | 337 | * This source code is licensed under the ISC license. |
| 337 | 338 | * See the LICENSE file in the root directory of this source tree. |
| 338 | - */const fd=de("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"}]]);/** | |
| 339 | + */const L0=oe("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"}]]);/** | |
| 339 | 340 | * @license lucide-react v0.462.0 - ISC |
| 340 | 341 | * |
| 341 | 342 | * This source code is licensed under the ISC license. |
| 342 | 343 | * See the LICENSE file in the root directory of this source tree. |
| 343 | - */const WE=de("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** | |
| 344 | + */const eT=oe("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"}]]);/** | |
| 344 | 345 | * @license lucide-react v0.462.0 - ISC |
| 345 | 346 | * |
| 346 | 347 | * This source code is licensed under the ISC license. |
| 347 | 348 | * See the LICENSE file in the root directory of this source tree. |
| 348 | - */const qE=de("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"}]]);/** | |
| 349 | + */const wd=oe("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"}]]);/** | |
| 349 | 350 | * @license lucide-react v0.462.0 - ISC |
| 350 | 351 | * |
| 351 | 352 | * This source code is licensed under the ISC license. |
| 352 | 353 | * See the LICENSE file in the root directory of this source tree. |
| 353 | - */const Zm=de("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"}]]);/** | |
| 354 | + */const da=oe("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"}]]);/** | |
| 354 | 355 | * @license lucide-react v0.462.0 - ISC |
| 355 | 356 | * |
| 356 | 357 | * This source code is licensed under the ISC license. |
| 357 | 358 | * See the LICENSE file in the root directory of this source tree. |
| 358 | - */const Jm=de("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"}]]);/** | |
| 359 | + */const Nd=oe("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"}]]);/** | |
| 359 | 360 | * @license lucide-react v0.462.0 - ISC |
| 360 | 361 | * |
| 361 | 362 | * This source code is licensed under the ISC license. |
| 362 | 363 | * See the LICENSE file in the root directory of this source tree. |
| 363 | - */const KE=de("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"}]]);/** | |
| 364 | + */const tT=oe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** | |
| 364 | 365 | * @license lucide-react v0.462.0 - ISC |
| 365 | 366 | * |
| 366 | 367 | * This source code is licensed under the ISC license. |
| 367 | 368 | * See the LICENSE file in the root directory of this source tree. |
| 368 | - */const eh=de("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"}]]);/** | |
| 369 | + */const nT=oe("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"}]]);/** | |
| 369 | 370 | * @license lucide-react v0.462.0 - ISC |
| 370 | 371 | * |
| 371 | 372 | * This source code is licensed under the ISC license. |
| 372 | 373 | * See the LICENSE file in the root directory of this source tree. |
| 373 | - */const gn=de("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"}]]);/** | |
| 374 | + */const Eh=oe("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"}]]);/** | |
| 374 | 375 | * @license lucide-react v0.462.0 - ISC |
| 375 | 376 | * |
| 376 | 377 | * This source code is licensed under the ISC license. |
| 377 | 378 | * See the LICENSE file in the root directory of this source tree. |
| 378 | - */const QE=de("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"}]]);/** | |
| 379 | + */const Ph=oe("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"}]]);/** | |
| 379 | 380 | * @license lucide-react v0.462.0 - ISC |
| 380 | 381 | * |
| 381 | 382 | * This source code is licensed under the ISC license. |
| 382 | 383 | * See the LICENSE file in the root directory of this source tree. |
| 383 | - */const zt=de("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"}]]);/** | |
| 384 | + */const rT=oe("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"}]]);/** | |
| 384 | 385 | * @license lucide-react v0.462.0 - ISC |
| 385 | 386 | * |
| 386 | 387 | * This source code is licensed under the ISC license. |
| 387 | 388 | * See the LICENSE file in the root directory of this source tree. |
| 388 | - */const X0=de("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"}]]);/** | |
| 389 | + */const Th=oe("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"}]]);/** | |
| 389 | 390 | * @license lucide-react v0.462.0 - ISC |
| 390 | 391 | * |
| 391 | 392 | * This source code is licensed under the ISC license. |
| 392 | 393 | * See the LICENSE file in the root directory of this source tree. |
| 393 | - */const GE=de("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"}]]);/** | |
| 394 | + */const kn=oe("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"}]]);/** | |
| 394 | 395 | * @license lucide-react v0.462.0 - ISC |
| 395 | 396 | * |
| 396 | 397 | * This source code is licensed under the ISC license. |
| 397 | 398 | * See the LICENSE file in the root directory of this source tree. |
| 398 | - */const Y0=de("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"}]]);/** | |
| 399 | + */const sT=oe("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"}]]);/** | |
| 399 | 400 | * @license lucide-react v0.462.0 - ISC |
| 400 | 401 | * |
| 401 | 402 | * This source code is licensed under the ISC license. |
| 402 | 403 | * See the LICENSE file in the root directory of this source tree. |
| 403 | - */const XE=de("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"}]]);/** | |
| 404 | + */const _t=oe("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"}]]);/** | |
| 404 | 405 | * @license lucide-react v0.462.0 - ISC |
| 405 | 406 | * |
| 406 | 407 | * This source code is licensed under the ISC license. |
| 407 | 408 | * See the LICENSE file in the root directory of this source tree. |
| 408 | - */const md=de("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** | |
| 409 | + */const $0=oe("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"}]]);/** | |
| 409 | 410 | * @license lucide-react v0.462.0 - ISC |
| 410 | 411 | * |
| 411 | 412 | * This source code is licensed under the ISC license. |
| 412 | 413 | * See the LICENSE file in the root directory of this source tree. |
| 413 | - */const YE=de("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"}]]),th="-",ZE=e=>{const t=eP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const c=i.split(th);return c[0]===""&&c.length!==1&&c.shift(),Z0(c,t)||JE(i)},getConflictingClassGroupIds:(i,c)=>{const d=n[i]||[];return c&&s[i]?[...d,...s[i]]:d}}},Z0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),o=s?Z0(e.slice(1),s):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(th);return(i=t.validators.find(({validator:c})=>c(a)))==null?void 0:i.classGroupId},J0=/^\[(.+)\]$/,JE=e=>{if(J0.test(e)){const t=J0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},eP=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return nP(Object.entries(e.classGroups),n).forEach(([a,i])=>{nh(i,s,a,t)}),s},nh=(e,t,n,s)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:eb(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(tP(o)){nh(o(s),t,n,s);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{nh(i,eb(t,a),n,s)})})},eb=(e,t)=>{let n=e;return t.split(th).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},tP=e=>e.isThemeGetter,nP=(e,t)=>t?e.map(([n,s])=>{const o=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,c])=>[t+i,c])):a);return[n,o]}):e,rP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,s=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},tb="!",sP=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,o=t[0],a=t.length,i=c=>{const d=[];let u=0,h=0,m;for(let w=0;w<c.length;w++){let y=c[w];if(u===0){if(y===o&&(s||c.slice(w,w+a)===t)){d.push(c.slice(h,w)),h=w+a;continue}if(y==="/"){m=w;continue}}y==="["?u++:y==="]"&&u--}const v=d.length===0?c:c.substring(h),g=v.startsWith(tb),j=g?v.substring(1):v,b=m&&m>h?m-h:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:j,maybePostfixModifierPosition:b}};return n?c=>n({className:c,parseClassName:i}):i},oP=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},aP=e=>({cache:rP(e.cacheSize),parseClassName:sP(e),...ZE(e)}),iP=/\s+/,lP=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(iP);let c="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:g}=n(u);let j=!!g,b=s(j?v.substring(0,g):v);if(!b){if(!j){c=u+(c.length>0?" "+c:c);continue}if(b=s(v),!b){c=u+(c.length>0?" "+c:c);continue}j=!1}const w=oP(h).join(":"),y=m?w+tb:w,p=y+b;if(a.includes(p))continue;a.push(p);const x=o(b,j);for(let N=0;N<x.length;++N){const S=x[N];a.push(y+S)}c=u+(c.length>0?" "+c:c)}return c};function cP(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=nb(t))&&(s&&(s+=" "),s+=n);return s}const nb=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=nb(e[s]))&&(n&&(n+=" "),n+=t);return n};function dP(e,...t){let n,s,o,a=i;function i(d){const u=t.reduce((h,m)=>m(h),e());return n=aP(u),s=n.cache.get,o=n.cache.set,a=c,c(d)}function c(d){const u=s(d);if(u)return u;const h=lP(d,n);return o(d,h),h}return function(){return a(cP.apply(null,arguments))}}const Ke=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},rb=/^\[(?:([a-z-]+):)?(.+)\]$/i,uP=/^\d+\/\d+$/,fP=new Set(["px","full","screen"]),mP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hP=/\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$/,pP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>ca(e)||fP.has(e)||uP.test(e),ds=e=>da(e,"length",CP),ca=e=>!!e&&!Number.isNaN(Number(e)),rh=e=>da(e,"number",ca),Hi=e=>!!e&&Number.isInteger(Number(e)),vP=e=>e.endsWith("%")&&ca(e.slice(0,-1)),_e=e=>rb.test(e),us=e=>mP.test(e),yP=new Set(["length","size","percentage"]),bP=e=>da(e,yP,sb),jP=e=>da(e,"position",sb),wP=new Set(["image","url"]),NP=e=>da(e,wP,_P),SP=e=>da(e,"",kP),Wi=()=>!0,da=(e,t,n)=>{const s=rb.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},CP=e=>hP.test(e)&&!pP.test(e),sb=()=>!1,kP=e=>xP.test(e),_P=e=>gP.test(e),EP=dP(()=>{const e=Ke("colors"),t=Ke("spacing"),n=Ke("blur"),s=Ke("brightness"),o=Ke("borderColor"),a=Ke("borderRadius"),i=Ke("borderSpacing"),c=Ke("borderWidth"),d=Ke("contrast"),u=Ke("grayscale"),h=Ke("hueRotate"),m=Ke("invert"),v=Ke("gap"),g=Ke("gradientColorStops"),j=Ke("gradientColorStopPositions"),b=Ke("inset"),w=Ke("margin"),y=Ke("opacity"),p=Ke("padding"),x=Ke("saturate"),N=Ke("scale"),S=Ke("sepia"),k=Ke("skew"),E=Ke("space"),C=Ke("translate"),R=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",_e,t],M=()=>[_e,t],B=()=>["",Sr,ds],O=()=>["auto",ca,_e],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",_e],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],xe=()=>[ca,_e];return{cacheSize:500,separator:":",theme:{colors:[Wi],spacing:[Sr,ds],blur:["none","",us,_e],brightness:xe(),borderColor:[e],borderRadius:["none","","full",us,_e],borderSpacing:M(),borderWidth:B(),contrast:xe(),grayscale:F(),hueRotate:xe(),invert:F(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[vP,ds],inset:A(),margin:A(),opacity:xe(),padding:M(),saturate:xe(),scale:xe(),sepia:F(),skew:xe(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",_e]}],container:["container"],columns:[{columns:[us]}],"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(),_e]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],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",Hi,_e]}],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",_e]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",Hi,_e]}],"grid-cols":[{"grid-cols":[Wi]}],"col-start-end":[{col:["auto",{span:["full",Hi,_e]},_e]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Wi]}],"row-start-end":[{row:["auto",{span:[Hi,_e]},_e]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_e]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_e]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"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:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_e,t]}],"min-w":[{"min-w":[_e,t,"min","max","fit"]}],"max-w":[{"max-w":[_e,t,"none","full","min","max","fit","prose",{screen:[us]},us]}],h:[{h:[_e,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_e,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_e,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_e,t,"auto","min","max","fit"]}],"font-size":[{text:["base",us,ds]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rh]}],"font-family":[{font:[Wi]}],"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",_e]}],"line-clamp":[{"line-clamp":["none",ca,rh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sr,_e]}],"list-image":[{"list-image":["none",_e]}],"list-style-type":[{list:["none","disc","decimal",_e]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sr,ds]}],"underline-offset":[{"underline-offset":["auto",Sr,_e]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e]}],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",_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),jP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},NP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:D()}],"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:["",...D()]}],"outline-offset":[{"outline-offset":[Sr,_e]}],"outline-w":[{outline:[Sr,ds]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Sr,ds]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",us,SP]}],"shadow-color":[{shadow:[Wi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",us,_e]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[x]}],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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_e]}],duration:[{duration:xe()}],ease:[{ease:["linear","in","out","in-out",_e]}],delay:[{delay:xe()}],animate:[{animate:["none","spin","ping","pulse","bounce",_e]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Hi,_e]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_e]}],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",_e]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",_e]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sr,ds,rh]}],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 Q(...e){return EP(z0(e))}function qi(){var e;if(typeof document!="undefined")return(e=document.getElementById("doi-admin-root"))!=null?e:void 0}const PP=wE,ob=f.forwardRef(({className:e,...t},n)=>r.jsx(O0,{ref:n,className:Q("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}));ob.displayName=O0.displayName;const TP=oa("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"}}),ab=f.forwardRef(({className:e,variant:t,...n},s)=>r.jsx(I0,{ref:s,className:Q(TP({variant:t}),e),...n}));ab.displayName=I0.displayName;const RP=f.forwardRef(({className:e,...t},n)=>r.jsx(F0,{ref:n,className:Q("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}));RP.displayName=F0.displayName;const ib=f.forwardRef(({className:e,...t},n)=>r.jsx(L0,{ref:n,className:Q("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(md,{className:"h-4 w-4"})}));ib.displayName=L0.displayName;const lb=f.forwardRef(({className:e,...t},n)=>r.jsx(M0,{ref:n,className:Q("text-sm font-semibold",e),...t}));lb.displayName=M0.displayName;const cb=f.forwardRef(({className:e,...t},n)=>r.jsx(D0,{ref:n,className:Q("text-sm opacity-90",e),...t}));cb.displayName=D0.displayName;function AP(){const{toasts:e}=k_();return r.jsxs(PP,{children:[e.map(function({id:t,title:n,description:s,action:o,...a}){return r.jsxs(ab,{...a,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(lb,{children:n}),s&&r.jsx(cb,{children:s})]}),o,r.jsx(ib,{})]},t)}),r.jsx(ob,{})]})}var OP=(e,t,n,s,o,a,i,c)=>{let d=document.documentElement,u=["light","dark"];function h(g){(Array.isArray(e)?e:[e]).forEach(j=>{let b=j==="class",w=b&&a?o.map(y=>a[y]||y):o;b?(d.classList.remove(...w),d.classList.add(a&&a[g]?a[g]:g)):d.setAttribute(j,g)}),m(g)}function m(g){c&&u.includes(g)&&(d.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)h(s);else try{let g=localStorage.getItem(t)||n,j=i&&g==="system"?v():g;h(j)}catch(g){}},IP=f.createContext(void 0),MP={setTheme:e=>{},themes:[]},DP=()=>{var e;return(e=f.useContext(IP))!=null?e:MP};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:o,defaultTheme:a,value:i,themes:c,nonce:d,scriptProps:u})=>{let h=JSON.stringify([n,t,a,e,c,i,s,o]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window=="undefined"?d:"",dangerouslySetInnerHTML:{__html:`(${OP.toString()})(${h})`}})});var FP=e=>{switch(e){case"success":return zP;case"info":return BP;case"warning":return UP;case"error":return VP;default:return null}},LP=Array(12).fill(0),$P=({visible:e,className:t})=>V.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},V.createElement("div",{className:"sonner-spinner"},LP.map((n,s)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),zP=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"})),UP=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"})),BP=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"})),VP=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"})),HP=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"})),WP=()=>{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},sh=1,qP=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:sh++,a=this.toasts.find(c=>c.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(c=>c.id===o?(this.publish({...c,...e,id:o,title:n}),{...c,...e,id:o,dismissible:i,title:n}):c):this.addToast({title:n,...s,dismissible:i,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,a,i=s.then(async d=>{if(a=["resolve",d],V.isValidElement(d))o=!1,this.create({id:n,type:"default",message:d});else if(QP(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(a=["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)}),c=()=>new Promise((d,u)=>i.then(()=>a[0]==="reject"?u(a[1]):d(a[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||sh++;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}},Ut=new qP,KP=(e,t)=>{let n=(t==null?void 0:t.id)||sh++;return Ut.addToast({title:e,...t,id:n}),n},QP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",GP=KP,XP=()=>Ut.toasts,YP=()=>Ut.getActiveToasts(),q=Object.assign(GP,{success:Ut.success,info:Ut.info,warning:Ut.warning,error:Ut.error,custom:Ut.custom,message:Ut.message,promise:Ut.promise,dismiss:Ut.dismiss,loading:Ut.loading},{getHistory:XP,getToasts:YP});function ZP(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))}ZP(`: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%)} | |
| 414 | -`);function hd(e){return e.label!==void 0}var JP=3,eT="32px",tT="16px",db=4e3,nT=356,rT=14,sT=20,oT=200;function Tn(...e){return e.filter(Boolean).join(" ")}function aT(e){let[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}var iT=e=>{var t,n,s,o,a,i,c,d,u,h,m;let{invert:v,toast:g,unstyled:j,interacting:b,setHeights:w,visibleToasts:y,heights:p,index:x,toasts:N,expanded:S,removeToast:k,defaultRichColors:E,closeButton:C,style:R,cancelButtonStyle:T,actionButtonStyle:A,className:M="",descriptionClassName:B="",duration:O,position:re,gap:D,loadingIcon:te,expandByDefault:I,classNames:F,icons:J,closeButtonAriaLabel:xe="Close toast",pauseWhenPageIsHidden:P}=e,[$,W]=V.useState(null),[se,Ne]=V.useState(null),[G,ge]=V.useState(!1),[L,me]=V.useState(!1),[U,he]=V.useState(!1),[Ae,He]=V.useState(!1),[ut,_t]=V.useState(!1),[cr,Ts]=V.useState(0),[Fa,No]=V.useState(0),sn=V.useRef(g.duration||O||db),kl=V.useRef(null),dr=V.useRef(null),Zd=x===0,Jd=x+1<=y,Ot=g.type,Dr=g.dismissible!==!1,ur=g.className||"",jn=g.descriptionClassName||"",on=V.useMemo(()=>p.findIndex(ke=>ke.toastId===g.id)||0,[p,g.id]),So=V.useMemo(()=>{var ke;return(ke=g.closeButton)!=null?ke:C},[g.closeButton,C]),Rs=V.useMemo(()=>g.duration||O||db,[g.duration,O]),Fr=V.useRef(0),La=V.useRef(0),eS=V.useRef(0),$a=V.useRef(null),[aI,iI]=re.split("-"),tS=V.useMemo(()=>p.reduce((ke,Ue,Ye)=>Ye>=on?ke:ke+Ue.height,0),[p,on]),nS=WP(),lI=g.invert||v,Ap=Ot==="loading";La.current=V.useMemo(()=>on*D+tS,[on,tS]),V.useEffect(()=>{sn.current=Rs},[Rs]),V.useEffect(()=>{ge(!0)},[]),V.useEffect(()=>{let ke=dr.current;if(ke){let Ue=ke.getBoundingClientRect().height;return No(Ue),w(Ye=>[{toastId:g.id,height:Ue,position:g.position},...Ye]),()=>w(Ye=>Ye.filter(Ln=>Ln.toastId!==g.id))}},[w,g.id]),V.useLayoutEffect(()=>{if(!G)return;let ke=dr.current,Ue=ke.style.height;ke.style.height="auto";let Ye=ke.getBoundingClientRect().height;ke.style.height=Ue,No(Ye),w(Ln=>Ln.find($n=>$n.toastId===g.id)?Ln.map($n=>$n.toastId===g.id?{...$n,height:Ye}:$n):[{toastId:g.id,height:Ye,position:g.position},...Ln])},[G,g.title,g.description,w,g.id]);let As=V.useCallback(()=>{me(!0),Ts(La.current),w(ke=>ke.filter(Ue=>Ue.toastId!==g.id)),setTimeout(()=>{k(g)},oT)},[g,k,w,La]);V.useEffect(()=>{if(g.promise&&Ot==="loading"||g.duration===1/0||g.type==="loading")return;let ke;return S||b||P&&nS?(()=>{if(eS.current<Fr.current){let Ue=new Date().getTime()-Fr.current;sn.current=sn.current-Ue}eS.current=new Date().getTime()})():sn.current!==1/0&&(Fr.current=new Date().getTime(),ke=setTimeout(()=>{var Ue;(Ue=g.onAutoClose)==null||Ue.call(g,g),As()},sn.current)),()=>clearTimeout(ke)},[S,b,g,Ot,P,nS,As]),V.useEffect(()=>{g.delete&&As()},[As,g.delete]);function cI(){var ke,Ue,Ye;return J!=null&&J.loading?V.createElement("div",{className:Tn(F==null?void 0:F.loader,(ke=g==null?void 0:g.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":Ot==="loading"},J.loading):te?V.createElement("div",{className:Tn(F==null?void 0:F.loader,(Ue=g==null?void 0:g.classNames)==null?void 0:Ue.loader,"sonner-loader"),"data-visible":Ot==="loading"},te):V.createElement($P,{className:Tn(F==null?void 0:F.loader,(Ye=g==null?void 0:g.classNames)==null?void 0:Ye.loader),visible:Ot==="loading"})}return V.createElement("li",{tabIndex:0,ref:dr,className:Tn(M,ur,F==null?void 0:F.toast,(t=g==null?void 0:g.classNames)==null?void 0:t.toast,F==null?void 0:F.default,F==null?void 0:F[Ot],(n=g==null?void 0:g.classNames)==null?void 0:n[Ot]),"data-sonner-toast":"","data-rich-colors":(s=g.richColors)!=null?s:E,"data-styled":!(g.jsx||g.unstyled||j),"data-mounted":G,"data-promise":!!g.promise,"data-swiped":ut,"data-removed":L,"data-visible":Jd,"data-y-position":aI,"data-x-position":iI,"data-index":x,"data-front":Zd,"data-swiping":U,"data-dismissible":Dr,"data-type":Ot,"data-invert":lI,"data-swipe-out":Ae,"data-swipe-direction":se,"data-expanded":!!(S||I&&G),style:{"--index":x,"--toasts-before":x,"--z-index":N.length-x,"--offset":`${L?cr:La.current}px`,"--initial-height":I?"auto":`${Fa}px`,...R,...g.style},onDragEnd:()=>{he(!1),W(null),$a.current=null},onPointerDown:ke=>{Ap||!Dr||(kl.current=new Date,Ts(La.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(he(!0),$a.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,Ue,Ye,Ln;if(Ae||!Dr)return;$a.current=null;let $n=Number(((ke=dr.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Os=Number(((Ue=dr.current)==null?void 0:Ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Co=new Date().getTime()-((Ye=kl.current)==null?void 0:Ye.getTime()),zn=$==="x"?$n:Os,Is=Math.abs(zn)/Co;if(Math.abs(zn)>=sT||Is>.11){Ts(La.current),(Ln=g.onDismiss)==null||Ln.call(g,g),Ne($==="x"?$n>0?"right":"left":Os>0?"down":"up"),As(),He(!0),_t(!1);return}he(!1),W(null)},onPointerMove:ke=>{var Ue,Ye,Ln,$n;if(!$a.current||!Dr||((Ue=window.getSelection())==null?void 0:Ue.toString().length)>0)return;let Os=ke.clientY-$a.current.y,Co=ke.clientX-$a.current.x,zn=(Ye=e.swipeDirections)!=null?Ye:aT(re);!$&&(Math.abs(Co)>1||Math.abs(Os)>1)&&W(Math.abs(Co)>Math.abs(Os)?"x":"y");let Is={x:0,y:0};$==="y"?(zn.includes("top")||zn.includes("bottom"))&&(zn.includes("top")&&Os<0||zn.includes("bottom")&&Os>0)&&(Is.y=Os):$==="x"&&(zn.includes("left")||zn.includes("right"))&&(zn.includes("left")&&Co<0||zn.includes("right")&&Co>0)&&(Is.x=Co),(Math.abs(Is.x)>0||Math.abs(Is.y)>0)&&_t(!0),(Ln=dr.current)==null||Ln.style.setProperty("--swipe-amount-x",`${Is.x}px`),($n=dr.current)==null||$n.style.setProperty("--swipe-amount-y",`${Is.y}px`)}},So&&!g.jsx?V.createElement("button",{"aria-label":xe,"data-disabled":Ap,"data-close-button":!0,onClick:Ap||!Dr?()=>{}:()=>{var ke;As(),(ke=g.onDismiss)==null||ke.call(g,g)},className:Tn(F==null?void 0:F.closeButton,(o=g==null?void 0:g.classNames)==null?void 0:o.closeButton)},(a=J==null?void 0:J.close)!=null?a:HP):null,g.jsx||f.isValidElement(g.title)?g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title:V.createElement(V.Fragment,null,Ot||g.icon||g.promise?V.createElement("div",{"data-icon":"",className:Tn(F==null?void 0:F.icon,(i=g==null?void 0:g.classNames)==null?void 0:i.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||cI():null,g.type!=="loading"?g.icon||(J==null?void 0:J[Ot])||FP(Ot):null):null,V.createElement("div",{"data-content":"",className:Tn(F==null?void 0:F.content,(c=g==null?void 0:g.classNames)==null?void 0:c.content)},V.createElement("div",{"data-title":"",className:Tn(F==null?void 0:F.title,(d=g==null?void 0:g.classNames)==null?void 0:d.title)},typeof g.title=="function"?g.title():g.title),g.description?V.createElement("div",{"data-description":"",className:Tn(B,jn,F==null?void 0:F.description,(u=g==null?void 0:g.classNames)==null?void 0:u.description)},typeof g.description=="function"?g.description():g.description):null),f.isValidElement(g.cancel)?g.cancel:g.cancel&&hd(g.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||T,onClick:ke=>{var Ue,Ye;hd(g.cancel)&&Dr&&((Ye=(Ue=g.cancel).onClick)==null||Ye.call(Ue,ke),As())},className:Tn(F==null?void 0:F.cancelButton,(h=g==null?void 0:g.classNames)==null?void 0:h.cancelButton)},g.cancel.label):null,f.isValidElement(g.action)?g.action:g.action&&hd(g.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||A,onClick:ke=>{var Ue,Ye;hd(g.action)&&((Ye=(Ue=g.action).onClick)==null||Ye.call(Ue,ke),!ke.defaultPrevented&&As())},className:Tn(F==null?void 0:F.actionButton,(m=g==null?void 0:g.classNames)==null?void 0:m.actionButton)},g.action.label):null))};function ub(){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 lT(e,t){let n={};return[e,t].forEach((s,o)=>{let a=o===1,i=a?"--mobile-offset":"--offset",c=a?tT:eT;function d(u){["top","right","bottom","left"].forEach(h=>{n[`${i}-${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[`${i}-${u}`]=c:n[`${i}-${u}`]=typeof s[u]=="number"?`${s[u]}px`:s[u]}):d(c)}),n}var cT=f.forwardRef(function(e,t){let{invert:n,position:s="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:i,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:m,duration:v,style:g,visibleToasts:j=JP,toastOptions:b,dir:w=ub(),gap:y=rT,loadingIcon:p,icons:x,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:S}=e,[k,E]=V.useState([]),C=V.useMemo(()=>Array.from(new Set([s].concat(k.filter(P=>P.position).map(P=>P.position)))),[k,s]),[R,T]=V.useState([]),[A,M]=V.useState(!1),[B,O]=V.useState(!1),[re,D]=V.useState(h!=="system"?h:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),te=V.useRef(null),I=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=V.useRef(null),J=V.useRef(!1),xe=V.useCallback(P=>{E($=>{var W;return(W=$.find(se=>se.id===P.id))!=null&&W.delete||Ut.dismiss(P.id),$.filter(({id:se})=>se!==P.id)})},[]);return V.useEffect(()=>Ut.subscribe(P=>{if(P.dismiss){E($=>$.map(W=>W.id===P.id?{...W,delete:!0}:W));return}setTimeout(()=>{fy.flushSync(()=>{E($=>{let W=$.findIndex(se=>se.id===P.id);return W!==-1?[...$.slice(0,W),{...$[W],...P},...$.slice(W+1)]:[P,...$]})})})}),[]),V.useEffect(()=>{if(h!=="system"){D(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),typeof window=="undefined")return;let P=window.matchMedia("(prefers-color-scheme: dark)");try{P.addEventListener("change",({matches:$})=>{D($?"dark":"light")})}catch($){P.addListener(({matches:W})=>{try{D(W?"dark":"light")}catch(se){console.error(se)}})}},[h]),V.useEffect(()=>{k.length<=1&&M(!1)},[k]),V.useEffect(()=>{let P=$=>{var W,se;o.every(Ne=>$[Ne]||$.code===Ne)&&(M(!0),(W=te.current)==null||W.focus()),$.code==="Escape"&&(document.activeElement===te.current||(se=te.current)!=null&&se.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[o]),V.useEffect(()=>{if(te.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,J.current=!1)}},[te.current]),V.createElement("section",{ref:t,"aria-label":`${N} ${I}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((P,$)=>{var W;let[se,Ne]=P.split("-");return k.length?V.createElement("ol",{key:P,dir:w==="auto"?ub():w,tabIndex:-1,ref:te,className:c,"data-sonner-toaster":!0,"data-theme":re,"data-y-position":se,"data-lifted":A&&k.length>1&&!a,"data-x-position":Ne,style:{"--front-toast-height":`${((W=R[0])==null?void 0:W.height)||0}px`,"--width":`${nT}px`,"--gap":`${y}px`,...g,...lT(d,u)},onBlur:G=>{J.current&&!G.currentTarget.contains(G.relatedTarget)&&(J.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||J.current||(J.current=!0,F.current=G.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{B||M(!1)},onDragEnd:()=>M(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},k.filter(G=>!G.position&&$===0||G.position===P).map((G,ge)=>{var L,me;return V.createElement(iT,{key:G.id,icons:x,index:ge,toast:G,defaultRichColors:m,duration:(L=b==null?void 0:b.duration)!=null?L:v,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:n,visibleToasts:j,closeButton:(me=b==null?void 0:b.closeButton)!=null?me:i,interacting:B,position:P,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:xe,toasts:k.filter(U=>U.position==G.position),heights:R.filter(U=>U.position==G.position),setHeights:T,expandByDefault:a,gap:y,loadingIcon:p,expanded:A,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const dT=({...e})=>{const{theme:t="system"}=DP();return r.jsx(cT,{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 uT=Rl[" useId ".trim().toString()]||(()=>{}),fT=0;function Rn(e){const[t,n]=f.useState(uT());return ht(()=>{n(s=>s!=null?s:String(fT++))},[e]),e||(t?`radix-${t}`:"")}const mT=["top","right","bottom","left"],fs=Math.min,Yt=Math.max,pd=Math.round,xd=Math.floor,Xn=e=>({x:e,y:e}),hT={left:"right",right:"left",bottom:"top",top:"bottom"};function oh(e,t,n){return Yt(e,fs(t,n))}function Cr(e,t){return typeof e=="function"?e(t):e}function kr(e){return e.split("-")[0]}function ua(e){return e.split("-")[1]}function ah(e){return e==="x"?"y":"x"}function ih(e){return e==="y"?"height":"width"}function Yn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function lh(e){return ah(Yn(e))}function pT(e,t,n){n===void 0&&(n=!1);const s=ua(e),o=lh(e),a=ih(o);let i=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=gd(i)),[i,gd(i)]}function xT(e){const t=gd(e);return[ch(e),t,ch(t)]}function ch(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const fb=["left","right"],mb=["right","left"],gT=["top","bottom"],vT=["bottom","top"];function yT(e,t,n){switch(e){case"top":case"bottom":return n?t?mb:fb:t?fb:mb;case"left":case"right":return t?gT:vT;default:return[]}}function bT(e,t,n,s){const o=ua(e);let a=yT(kr(e),n==="start",s);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(ch)))),a}function gd(e){const t=kr(e);return hT[t]+e.slice(t.length)}function jT(e){return{top:0,right:0,bottom:0,left:0,...e}}function hb(e){return typeof e!="number"?jT(e):{top:e,right:e,bottom:e,left:e}}function vd(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 pb(e,t,n){let{reference:s,floating:o}=e;const a=Yn(t),i=lh(t),c=ih(i),d=kr(t),u=a==="y",h=s.x+s.width/2-o.width/2,m=s.y+s.height/2-o.height/2,v=s[c]/2-o[c]/2;let g;switch(d){case"top":g={x:h,y:s.y-o.height};break;case"bottom":g={x:h,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:m};break;case"left":g={x:s.x-o.width,y:m};break;default:g={x:s.x,y:s.y}}switch(ua(t)){case"start":g[i]-=v*(n&&u?-1:1);break;case"end":g[i]+=v*(n&&u?-1:1);break}return g}async function wT(e,t){var n;t===void 0&&(t={});const{x:s,y:o,platform:a,rects:i,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:v=!1,padding:g=0}=Cr(t,e),j=hb(g),w=c[v?m==="floating"?"reference":"floating":m],y=vd(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:d})),p=m==="floating"?{x:s,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),N=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},S=vd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:p,offsetParent:x,strategy:d}):p);return{top:(y.top-S.top+j.top)/N.y,bottom:(S.bottom-y.bottom+j.bottom)/N.y,left:(y.left-S.left+j.left)/N.x,right:(S.right-y.right+j.right)/N.x}}const NT=50,ST=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:wT},d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:m}=pb(u,s,d),v=s,g=0;const j={};for(let b=0;b<a.length;b++){const w=a[b];if(!w)continue;const{name:y,fn:p}=w,{x,y:N,data:S,reset:k}=await p({x:h,y:m,initialPlacement:s,placement:v,strategy:o,middlewareData:j,rects:u,platform:c,elements:{reference:e,floating:t}});h=x!=null?x:h,m=N!=null?N:m,j[y]={...j[y],...S},k&&g<NT&&(g++,typeof k=="object"&&(k.placement&&(v=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:h,y:m}=pb(u,v,d)),b=-1)}return{x:h,y:m,placement:v,strategy:o,middlewareData:j}},CT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:o,rects:a,platform:i,elements:c,middlewareData:d}=t,{element:u,padding:h=0}=Cr(e,t)||{};if(u==null)return{};const m=hb(h),v={x:n,y:s},g=lh(o),j=ih(g),b=await i.getDimensions(u),w=g==="y",y=w?"top":"left",p=w?"bottom":"right",x=w?"clientHeight":"clientWidth",N=a.reference[j]+a.reference[g]-v[g]-a.floating[j],S=v[g]-a.reference[g],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=k?k[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(k)))&&(E=c.floating[x]||a.floating[j]);const C=N/2-S/2,R=E/2-b[j]/2-1,T=fs(m[y],R),A=fs(m[p],R),M=T,B=E-b[j]-A,O=E/2-b[j]/2+C,re=oh(M,O,B),D=!d.arrow&&ua(o)!=null&&O!==re&&a.reference[j]/2-(O<M?T:A)-b[j]/2<0,te=D?O<M?O-M:O-B:0;return{[g]:v[g]+te,data:{[g]:re,centerOffset:O-re-te,...D&&{alignmentOffset:te}},reset:D}}}),kT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:o,middlewareData:a,rects:i,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:b=!0,...w}=Cr(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=kr(o),p=Yn(c),x=kr(c)===c,N=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=v||(x||!b?[gd(c)]:xT(c)),k=j!=="none";!v&&k&&S.push(...bT(c,b,j,N));const E=[c,...S],C=await d.detectOverflow(t,w),R=[];let T=((s=a.flip)==null?void 0:s.overflows)||[];if(h&&R.push(C[y]),m){const O=pT(o,i,N);R.push(C[O[0]],C[O[1]])}if(T=[...T,{placement:o,overflows:R}],!R.every(O=>O<=0)){var A,M;const O=(((A=a.flip)==null?void 0:A.index)||0)+1,re=E[O];if(re&&(!(m==="alignment"?p!==Yn(re):!1)||T.every(I=>Yn(I.placement)===p?I.overflows[0]>0:!0)))return{data:{index:O,overflows:T},reset:{placement:re}};let D=(M=T.filter(te=>te.overflows[0]<=0).sort((te,I)=>te.overflows[1]-I.overflows[1])[0])==null?void 0:M.placement;if(!D)switch(g){case"bestFit":{var B;const te=(B=T.filter(I=>{if(k){const F=Yn(I.placement);return F===p||F==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(F=>F>0).reduce((F,J)=>F+J,0)]).sort((I,F)=>I[1]-F[1])[0])==null?void 0:B[0];te&&(D=te);break}case"initialPlacement":D=c;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function xb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gb(e){return mT.some(t=>e[t]>=0)}const _T=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:o="referenceHidden",...a}=Cr(e,t);switch(o){case"referenceHidden":{const i=await s.detectOverflow(t,{...a,elementContext:"reference"}),c=xb(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:gb(c)}}}case"escaped":{const i=await s.detectOverflow(t,{...a,altBoundary:!0}),c=xb(i,n.floating);return{data:{escapedOffsets:c,escaped:gb(c)}}}default:return{}}}}},vb=new Set(["left","top"]);async function ET(e,t){const{placement:n,platform:s,elements:o}=e,a=await(s.isRTL==null?void 0:s.isRTL(o.floating)),i=kr(n),c=ua(n),d=Yn(n)==="y",u=vb.has(i)?-1:1,h=a&&d?-1:1,m=Cr(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:j}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof j=="number"&&(g=c==="end"?j*-1:j),d?{x:g*h,y:v*u}:{x:v*u,y:g*h}}const PT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:o,y:a,placement:i,middlewareData:c}=t,d=await ET(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(s=c.arrow)!=null&&s.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:i}}}}},TT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:y=>{let{x:p,y:x}=y;return{x:p,y:x}}},...u}=Cr(e,t),h={x:n,y:s},m=await a.detectOverflow(t,u),v=Yn(kr(o)),g=ah(v);let j=h[g],b=h[v];if(i){const y=g==="y"?"top":"left",p=g==="y"?"bottom":"right",x=j+m[y],N=j-m[p];j=oh(x,j,N)}if(c){const y=v==="y"?"top":"left",p=v==="y"?"bottom":"right",x=b+m[y],N=b-m[p];b=oh(x,b,N)}const w=d.fn({...t,[g]:j,[v]:b});return{...w,data:{x:w.x-n,y:w.y-s,enabled:{[g]:i,[v]:c}}}}}},RT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:o,rects:a,middlewareData:i}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Cr(e,t),h={x:n,y:s},m=Yn(o),v=ah(m);let g=h[v],j=h[m];const b=Cr(c,t),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const x=v==="y"?"height":"width",N=a.reference[v]-a.floating[x]+w.mainAxis,S=a.reference[v]+a.reference[x]-w.mainAxis;g<N?g=N:g>S&&(g=S)}if(u){var y,p;const x=v==="y"?"width":"height",N=vb.has(kr(o)),S=a.reference[m]-a.floating[x]+(N&&((y=i.offset)==null?void 0:y[m])||0)+(N?0:w.crossAxis),k=a.reference[m]+a.reference[x]+(N?0:((p=i.offset)==null?void 0:p[m])||0)-(N?w.crossAxis:0);j<S?j=S:j>k&&(j=k)}return{[v]:g,[m]:j}}}},AT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:o,rects:a,platform:i,elements:c}=t,{apply:d=()=>{},...u}=Cr(e,t),h=await i.detectOverflow(t,u),m=kr(o),v=ua(o),g=Yn(o)==="y",{width:j,height:b}=a.floating;let w,y;m==="top"||m==="bottom"?(w=m,y=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=m,w=v==="end"?"top":"bottom");const p=b-h.top-h.bottom,x=j-h.left-h.right,N=fs(b-h[w],p),S=fs(j-h[y],x),k=!t.middlewareData.shift;let E=N,C=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=x),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(E=p),k&&!v){const T=Yt(h.left,0),A=Yt(h.right,0),M=Yt(h.top,0),B=Yt(h.bottom,0);g?C=j-2*(T!==0||A!==0?T+A:Yt(h.left,h.right)):E=b-2*(M!==0||B!==0?M+B:Yt(h.top,h.bottom))}await d({...t,availableWidth:C,availableHeight:E});const R=await i.getDimensions(c.floating);return j!==R.width||b!==R.height?{reset:{rects:!0}}:{}}}};function yd(){return typeof window!="undefined"}function fa(e){return yb(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zn(e){var t;return(t=(yb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yb(e){return yd()?e instanceof Node||e instanceof Zt(e).Node:!1}function An(e){return yd()?e instanceof Element||e instanceof Zt(e).Element:!1}function _r(e){return yd()?e instanceof HTMLElement||e instanceof Zt(e).HTMLElement:!1}function bb(e){return!yd()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}function Ki(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 OT(e){return/^(table|td|th)$/.test(fa(e))}function bd(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const IT=/transform|translate|scale|rotate|perspective|filter/,MT=/paint|layout|strict|content/,oo=e=>!!e&&e!=="none";let dh;function uh(e){const t=An(e)?On(e):e;return oo(t.transform)||oo(t.translate)||oo(t.scale)||oo(t.rotate)||oo(t.perspective)||!fh()&&(oo(t.backdropFilter)||oo(t.filter))||IT.test(t.willChange||"")||MT.test(t.contain||"")}function DT(e){let t=ms(e);for(;_r(t)&&!ma(t);){if(uh(t))return t;if(bd(t))return null;t=ms(t)}return null}function fh(){return dh==null&&(dh=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dh}function ma(e){return/^(html|body|#document)$/.test(fa(e))}function On(e){return Zt(e).getComputedStyle(e)}function jd(e){return An(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ms(e){if(fa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bb(e)&&e.host||Zn(e);return bb(t)?t.host:t}function jb(e){const t=ms(e);return ma(t)?e.ownerDocument?e.ownerDocument.body:e.body:_r(t)&&Ki(t)?t:jb(t)}function Qi(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jb(e),a=o===((s=e.ownerDocument)==null?void 0:s.body),i=Zt(o);if(a){const c=mh(i);return t.concat(i,i.visualViewport||[],Ki(o)?o:[],c&&n?Qi(c):[])}else return t.concat(o,Qi(o,[],n))}function mh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wb(e){const t=On(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=_r(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:s,c=pd(n)!==a||pd(s)!==i;return c&&(n=a,s=i),{width:n,height:s,$:c}}function hh(e){return An(e)?e:e.contextElement}function ha(e){const t=hh(e);if(!_r(t))return Xn(1);const n=t.getBoundingClientRect(),{width:s,height:o,$:a}=wb(t);let i=(a?pd(n.width):n.width)/s,c=(a?pd(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const FT=Xn(0);function Nb(e){const t=Zt(e);return!fh()||!t.visualViewport?FT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Zt(e)?!1:t}function ao(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=hh(e);let i=Xn(1);t&&(s?An(s)&&(i=ha(s)):i=ha(e));const c=LT(a,n,s)?Nb(a):Xn(0);let d=(o.left+c.x)/i.x,u=(o.top+c.y)/i.y,h=o.width/i.x,m=o.height/i.y;if(a){const v=Zt(a),g=s&&An(s)?Zt(s):s;let j=v,b=mh(j);for(;b&&s&&g!==j;){const w=ha(b),y=b.getBoundingClientRect(),p=On(b),x=y.left+(b.clientLeft+parseFloat(p.paddingLeft))*w.x,N=y.top+(b.clientTop+parseFloat(p.paddingTop))*w.y;d*=w.x,u*=w.y,h*=w.x,m*=w.y,d+=x,u+=N,j=Zt(b),b=mh(j)}}return vd({width:h,height:m,x:d,y:u})}function wd(e,t){const n=jd(e).scrollLeft;return t?t.left+n:ao(Zn(e)).left+n}function Sb(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-wd(e,n),o=n.top+t.scrollTop;return{x:s,y:o}}function $T(e){let{elements:t,rect:n,offsetParent:s,strategy:o}=e;const a=o==="fixed",i=Zn(s),c=t?bd(t.floating):!1;if(s===i||c&&a)return n;let d={scrollLeft:0,scrollTop:0},u=Xn(1);const h=Xn(0),m=_r(s);if((m||!m&&!a)&&((fa(s)!=="body"||Ki(i))&&(d=jd(s)),m)){const g=ao(s);u=ha(s),h.x=g.x+s.clientLeft,h.y=g.y+s.clientTop}const v=i&&!m&&!a?Sb(i,d):Xn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+h.x+v.x,y:n.y*u.y-d.scrollTop*u.y+h.y+v.y}}function zT(e){return Array.from(e.getClientRects())}function UT(e){const t=Zn(e),n=jd(e),s=e.ownerDocument.body,o=Yt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),a=Yt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let i=-n.scrollLeft+wd(e);const c=-n.scrollTop;return On(s).direction==="rtl"&&(i+=Yt(t.clientWidth,s.clientWidth)-o),{width:o,height:a,x:i,y:c}}const Cb=25;function BT(e,t){const n=Zt(e),s=Zn(e),o=n.visualViewport;let a=s.clientWidth,i=s.clientHeight,c=0,d=0;if(o){a=o.width,i=o.height;const h=fh();(!h||h&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const u=wd(s);if(u<=0){const h=s.ownerDocument,m=h.body,v=getComputedStyle(m),g=h.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,j=Math.abs(s.clientWidth-m.clientWidth-g);j<=Cb&&(a-=j)}else u<=Cb&&(a+=u);return{width:a,height:i,x:c,y:d}}function VT(e,t){const n=ao(e,!0,t==="fixed"),s=n.top+e.clientTop,o=n.left+e.clientLeft,a=_r(e)?ha(e):Xn(1),i=e.clientWidth*a.x,c=e.clientHeight*a.y,d=o*a.x,u=s*a.y;return{width:i,height:c,x:d,y:u}}function kb(e,t,n){let s;if(t==="viewport")s=BT(e,n);else if(t==="document")s=UT(Zn(e));else if(An(t))s=VT(t,n);else{const o=Nb(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return vd(s)}function _b(e,t){const n=ms(e);return n===t||!An(n)||ma(n)?!1:On(n).position==="fixed"||_b(n,t)}function HT(e,t){const n=t.get(e);if(n)return n;let s=Qi(e,[],!1).filter(c=>An(c)&&fa(c)!=="body"),o=null;const a=On(e).position==="fixed";let i=a?ms(e):e;for(;An(i)&&!ma(i);){const c=On(i),d=uh(i);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Ki(i)&&!d&&_b(e,i))?s=s.filter(h=>h!==i):o=c,i=ms(i)}return t.set(e,s),s}function WT(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const i=[...n==="clippingAncestors"?bd(t)?[]:HT(t,this._c):[].concat(n),s],c=kb(t,i[0],o);let d=c.top,u=c.right,h=c.bottom,m=c.left;for(let v=1;v<i.length;v++){const g=kb(t,i[v],o);d=Yt(g.top,d),u=fs(g.right,u),h=fs(g.bottom,h),m=Yt(g.left,m)}return{width:u-m,height:h-d,x:m,y:d}}function qT(e){const{width:t,height:n}=wb(e);return{width:t,height:n}}function KT(e,t,n){const s=_r(t),o=Zn(t),a=n==="fixed",i=ao(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const d=Xn(0);function u(){d.x=wd(o)}if(s||!s&&!a)if((fa(t)!=="body"||Ki(o))&&(c=jd(t)),s){const g=ao(t,!0,a,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&u();a&&!s&&o&&u();const h=o&&!s&&!a?Sb(o,c):Xn(0),m=i.left+c.scrollLeft-d.x-h.x,v=i.top+c.scrollTop-d.y-h.y;return{x:m,y:v,width:i.width,height:i.height}}function ph(e){return On(e).position==="static"}function Eb(e,t){if(!_r(e)||On(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zn(e)===n&&(n=n.ownerDocument.body),n}function Pb(e,t){const n=Zt(e);if(bd(e))return n;if(!_r(e)){let o=ms(e);for(;o&&!ma(o);){if(An(o)&&!ph(o))return o;o=ms(o)}return n}let s=Eb(e,t);for(;s&&OT(s)&&ph(s);)s=Eb(s,t);return s&&ma(s)&&ph(s)&&!uh(s)?n:s||DT(e)||n}const QT=async function(e){const t=this.getOffsetParent||Pb,n=this.getDimensions,s=await n(e.floating);return{reference:KT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function GT(e){return On(e).direction==="rtl"}const XT={convertOffsetParentRelativeRectToViewportRelativeRect:$T,getDocumentElement:Zn,getClippingRect:WT,getOffsetParent:Pb,getElementRects:QT,getClientRects:zT,getDimensions:qT,getScale:ha,isElement:An,isRTL:GT};function Tb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YT(e,t){let n=null,s;const o=Zn(e);function a(){var c;clearTimeout(s),(c=n)==null||c.disconnect(),n=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const u=e.getBoundingClientRect(),{left:h,top:m,width:v,height:g}=u;if(c||t(),!v||!g)return;const j=xd(m),b=xd(o.clientWidth-(h+v)),w=xd(o.clientHeight-(m+g)),y=xd(h),x={rootMargin:-j+"px "+-b+"px "+-w+"px "+-y+"px",threshold:Yt(0,fs(1,d))||1};let N=!0;function S(k){const E=k[0].intersectionRatio;if(E!==d){if(!N)return i();E?i(!1,E):s=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Tb(u,e.getBoundingClientRect())&&i(),N=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch(k){n=new IntersectionObserver(S,x)}n.observe(e)}return i(!0),a}function ZT(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,u=hh(e),h=o||a?[...u?Qi(u):[],...t?Qi(t):[]]:[];h.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const m=u&&c?YT(u,n):null;let v=-1,g=null;i&&(g=new ResizeObserver(y=>{let[p]=y;p&&p.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),u&&!d&&g.observe(u),t&&g.observe(t));let j,b=d?ao(e):null;d&&w();function w(){const y=ao(e);b&&!Tb(b,y)&&n(),b=y,j=requestAnimationFrame(w)}return n(),()=>{var y;h.forEach(p=>{o&&p.removeEventListener("scroll",n),a&&p.removeEventListener("resize",n)}),m==null||m(),(y=g)==null||y.disconnect(),g=null,d&&cancelAnimationFrame(j)}}const JT=PT,eR=TT,tR=kT,nR=AT,rR=_T,Rb=CT,sR=RT,oR=(e,t,n)=>{const s=new Map,o={platform:XT,...n},a={...o.platform,_c:s};return ST(e,t,{...o,platform:a})};var aR=typeof document!="undefined",iR=function(){},Nd=aR?f.useLayoutEffect:iR;function Sd(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(!Sd(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 a=o[s];if(!(a==="_owner"&&e.$$typeof)&&!Sd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ab(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ob(e,t){const n=Ab(e);return Math.round(t*n)/n}function xh(e){const t=f.useRef(e);return Nd(()=>{t.current=e}),t}function lR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:o,elements:{reference:a,floating:i}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[h,m]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=f.useState(s);Sd(v,s)||g(s);const[j,b]=f.useState(null),[w,y]=f.useState(null),p=f.useCallback(I=>{I!==k.current&&(k.current=I,b(I))},[]),x=f.useCallback(I=>{I!==E.current&&(E.current=I,y(I))},[]),N=a||j,S=i||w,k=f.useRef(null),E=f.useRef(null),C=f.useRef(h),R=d!=null,T=xh(d),A=xh(o),M=xh(u),B=f.useCallback(()=>{if(!k.current||!E.current)return;const I={placement:t,strategy:n,middleware:v};A.current&&(I.platform=A.current),oR(k.current,E.current,I).then(F=>{const J={...F,isPositioned:M.current!==!1};O.current&&!Sd(C.current,J)&&(C.current=J,Ys.flushSync(()=>{m(J)}))})},[v,t,n,A,M]);Nd(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,m(I=>({...I,isPositioned:!1})))},[u]);const O=f.useRef(!1);Nd(()=>(O.current=!0,()=>{O.current=!1}),[]),Nd(()=>{if(N&&(k.current=N),S&&(E.current=S),N&&S){if(T.current)return T.current(N,S,B);B()}},[N,S,B,T,R]);const re=f.useMemo(()=>({reference:k,floating:E,setReference:p,setFloating:x}),[p,x]),D=f.useMemo(()=>({reference:N,floating:S}),[N,S]),te=f.useMemo(()=>{const I={position:n,left:0,top:0};if(!D.floating)return I;const F=Ob(D.floating,h.x),J=Ob(D.floating,h.y);return c?{...I,transform:"translate("+F+"px, "+J+"px)",...Ab(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:J}},[n,c,D.floating,h.x,h.y]);return f.useMemo(()=>({...h,update:B,refs:re,elements:D,floatingStyles:te}),[h,B,re,D,te])}const cR=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?Rb({element:s.current,padding:o}).fn(n):{}:s?Rb({element:s,padding:o}).fn(n):{}}}},dR=(e,t)=>{const n=JT(e);return{name:n.name,fn:n.fn,options:[e,t]}},uR=(e,t)=>{const n=eR(e);return{name:n.name,fn:n.fn,options:[e,t]}},fR=(e,t)=>({fn:sR(e).fn,options:[e,t]}),mR=(e,t)=>{const n=tR(e);return{name:n.name,fn:n.fn,options:[e,t]}},hR=(e,t)=>{const n=nR(e);return{name:n.name,fn:n.fn,options:[e,t]}},pR=(e,t)=>{const n=rR(e);return{name:n.name,fn:n.fn,options:[e,t]}},xR=(e,t)=>{const n=cR(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gR="Arrow",Ib=f.forwardRef((e,t)=>{const{children:n,width:s=10,height:o=5,...a}=e;return r.jsx(Se.svg,{...a,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"})})});Ib.displayName=gR;var vR=Ib;function gh(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 a=o[0];let i,c;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,c=u.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var vh="Popper",[Mb,Cd]=Xt(vh),[yR,Db]=Mb(vh),Fb=e=>{const{__scopePopper:t,children:n}=e,[s,o]=f.useState(null);return r.jsx(yR,{scope:t,anchor:s,onAnchorChange:o,children:n})};Fb.displayName=vh;var Lb="PopperAnchor",$b=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...o}=e,a=Db(Lb,n),i=f.useRef(null),c=De(t,i),d=f.useRef(null);return f.useEffect(()=>{const u=d.current;d.current=(s==null?void 0:s.current)||i.current,u!==d.current&&a.onAnchorChange(d.current)}),s?null:r.jsx(Se.div,{...o,ref:c})});$b.displayName=Lb;var yh="PopperContent",[bR,jR]=Mb(yh),zb=f.forwardRef((e,t)=>{var G,ge,L,me,U,he,Ae,He;const{__scopePopper:n,side:s="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:j,...b}=e,w=Db(yh,n),[y,p]=f.useState(null),x=De(t,ut=>p(ut)),[N,S]=f.useState(null),k=gh(N),E=(G=k==null?void 0:k.width)!=null?G:0,C=(ge=k==null?void 0:k.height)!=null?ge:0,R=s+(a!=="center"?"-"+a:""),T=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},A=Array.isArray(u)?u:[u],M=A.length>0,B={padding:T,boundary:A.filter(NR),altBoundary:M},{refs:O,floatingStyles:re,placement:D,isPositioned:te,middlewareData:I}=lR({strategy:"fixed",placement:R,whileElementsMounted:(...ut)=>ZT(...ut,{animationFrame:g==="always"}),elements:{reference:w.anchor},middleware:[dR({mainAxis:o+C,alignmentAxis:i}),d&&uR({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?fR():void 0,...B}),d&&mR({...B}),hR({...B,apply:({elements:ut,rects:_t,availableWidth:cr,availableHeight:Ts})=>{const{width:Fa,height:No}=_t.reference,sn=ut.floating.style;sn.setProperty("--radix-popper-available-width",`${cr}px`),sn.setProperty("--radix-popper-available-height",`${Ts}px`),sn.setProperty("--radix-popper-anchor-width",`${Fa}px`),sn.setProperty("--radix-popper-anchor-height",`${No}px`)}}),N&&xR({element:N,padding:c}),SR({arrowWidth:E,arrowHeight:C}),v&&pR({strategy:"referenceHidden",...B})]}),[F,J]=Vb(D),xe=pn(j);ht(()=>{te&&(xe==null||xe())},[te,xe]);const P=(L=I.arrow)==null?void 0:L.x,$=(me=I.arrow)==null?void 0:me.y,W=((U=I.arrow)==null?void 0:U.centerOffset)!==0,[se,Ne]=f.useState();return ht(()=>{y&&Ne(window.getComputedStyle(y).zIndex)},[y]),r.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:te?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(he=I.transformOrigin)==null?void 0:he.x,(Ae=I.transformOrigin)==null?void 0:Ae.y].join(" "),...((He=I.hide)==null?void 0:He.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(bR,{scope:n,placedSide:F,onArrowChange:S,arrowX:P,arrowY:$,shouldHideArrow:W,children:r.jsx(Se.div,{"data-side":F,"data-align":J,...b,ref:x,style:{...b.style,animation:te?void 0:"none"}})})})});zb.displayName=yh;var Ub="PopperArrow",wR={top:"bottom",right:"left",bottom:"top",left:"right"},Bb=f.forwardRef(function(t,n){const{__scopePopper:s,...o}=t,a=jR(Ub,s),i=wR[a.placedSide];return r.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:r.jsx(vR,{...o,ref:n,style:{...o.style,display:"block"}})})});Bb.displayName=Ub;function NR(e){return e!==null}var SR=e=>({name:"transformOrigin",options:e,fn(t){var w,y,p,x,N;const{placement:n,rects:s,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,c=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,h]=Vb(n),m={start:"0%",center:"50%",end:"100%"}[h],v=((p=(y=o.arrow)==null?void 0:y.x)!=null?p:0)+c/2,g=((N=(x=o.arrow)==null?void 0:x.y)!=null?N:0)+d/2;let j="",b="";return u==="bottom"?(j=i?m:`${v}px`,b=`${-d}px`):u==="top"?(j=i?m:`${v}px`,b=`${s.floating.height+d}px`):u==="right"?(j=`${-d}px`,b=i?m:`${g}px`):u==="left"&&(j=`${s.floating.width+d}px`,b=i?m:`${g}px`),{data:{x:j,y:b}}}});function Vb(e){const[t,n="center"]=e.split("-");return[t,n]}var Hb=Fb,Wb=$b,qb=zb,Kb=Bb,CR=Symbol("radix.slottable");function kR(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=CR,t}var[kd]=Xt("Tooltip",[Cd]),_d=Cd(),Qb="TooltipProvider",_R=700,bh="tooltip.open",[ER,jh]=kd(Qb),Gb=e=>{const{__scopeTooltip:t,delayDuration:n=_R,skipDelayDuration:s=300,disableHoverableContent:o=!1,children:a}=e,i=f.useRef(!0),c=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),r.jsx(ER,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(d.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,s)},[s]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:a})};Gb.displayName=Qb;var Gi="Tooltip",[PR,Xi]=kd(Gi),Xb=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,d=jh(Gi,e.__scopeTooltip),u=_d(t),[h,m]=f.useState(null),v=Rn(),g=f.useRef(0),j=i!=null?i:d.disableHoverableContent,b=c!=null?c:d.delayDuration,w=f.useRef(!1),[y,p]=xn({prop:s,defaultProp:o!=null?o:!1,onChange:E=>{E?(d.onOpen(),document.dispatchEvent(new CustomEvent(bh))):d.onClose(),a==null||a(E)},caller:Gi}),x=f.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),N=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w.current=!1,p(!0)},[p]),S=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,p(!1)},[p]),k=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,p(!0),g.current=0},b)},[b,p]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),r.jsx(Hb,{...u,children:r.jsx(PR,{scope:t,contentId:v,open:y,stateAttribute:x,trigger:h,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?k():N()},[d.isOpenDelayedRef,k,N]),onTriggerLeave:f.useCallback(()=>{j?S():(window.clearTimeout(g.current),g.current=0)},[S,j]),onOpen:N,onClose:S,disableHoverableContent:j,children:n})})};Xb.displayName=Gi;var wh="TooltipTrigger",Yb=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,o=Xi(wh,n),a=jh(wh,n),i=_d(n),c=f.useRef(null),d=De(t,c,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(Wb,{asChild:!0,...i,children:r.jsx(Se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...s,ref:d,onPointerMove:pe(e.onPointerMove,v=>{v.pointerType!=="touch"&&!h.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),h.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{o.onTriggerLeave(),h.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:pe(e.onBlur,o.onClose),onClick:pe(e.onClick,o.onClose)})})});Yb.displayName=wh;var Nh="TooltipPortal",[TR,RR]=kd(Nh,{forceMount:void 0}),Zb=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:o}=e,a=Xi(Nh,t);return r.jsx(TR,{scope:t,forceMount:n,children:r.jsx(Kn,{present:n||a.open,children:r.jsx($i,{asChild:!0,container:o,children:s})})})};Zb.displayName=Nh;var pa="TooltipContent",Jb=f.forwardRef((e,t)=>{const n=RR(pa,e.__scopeTooltip),{forceMount:s=n.forceMount,side:o="top",...a}=e,i=Xi(pa,e.__scopeTooltip);return r.jsx(Kn,{present:s||i.open,children:i.disableHoverableContent?r.jsx(ej,{side:o,...a,ref:t}):r.jsx(AR,{side:o,...a,ref:t})})}),AR=f.forwardRef((e,t)=>{const n=Xi(pa,e.__scopeTooltip),s=jh(pa,e.__scopeTooltip),o=f.useRef(null),a=De(t,o),[i,c]=f.useState(null),{trigger:d,onClose:u}=n,h=o.current,{onPointerInTransitChange:m}=s,v=f.useCallback(()=>{c(null),m(!1)},[m]),g=f.useCallback((j,b)=>{const w=j.currentTarget,y={x:j.clientX,y:j.clientY},p=FR(y,w.getBoundingClientRect()),x=LR(y,p),N=$R(b.getBoundingClientRect()),S=UR([...x,...N]);c(S),m(!0)},[m]);return f.useEffect(()=>()=>v(),[v]),f.useEffect(()=>{if(d&&h){const j=w=>g(w,h),b=w=>g(w,d);return d.addEventListener("pointerleave",j),h.addEventListener("pointerleave",b),()=>{d.removeEventListener("pointerleave",j),h.removeEventListener("pointerleave",b)}}},[d,h,g,v]),f.useEffect(()=>{if(i){const j=b=>{const w=b.target,y={x:b.clientX,y:b.clientY},p=(d==null?void 0:d.contains(w))||(h==null?void 0:h.contains(w)),x=!zR(y,i);p?v():x&&(v(),u())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[d,h,i,u,v]),r.jsx(ej,{...e,ref:a})}),[OR,IR]=kd(Gi,{isInside:!1}),MR=kR("TooltipContent"),ej=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...c}=e,d=Xi(pa,n),u=_d(n),{onClose:h}=d;return f.useEffect(()=>(document.addEventListener(bh,h),()=>document.removeEventListener(bh,h)),[h]),f.useEffect(()=>{if(d.trigger){const m=v=>{const g=v.target;g!=null&&g.contains(d.trigger)&&h()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,h]),r.jsx(Li,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:h,children:r.jsxs(qb,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.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(MR,{children:s}),r.jsx(OR,{scope:n,isInside:!0,children:r.jsx(sE,{id:d.contentId,role:"tooltip",children:o||s})})]})})});Jb.displayName=pa;var tj="TooltipArrow",DR=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,o=_d(n);return IR(tj,n).isInside?null:r.jsx(Kb,{...o,...s,ref:t})});DR.displayName=tj;function FR(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,s,o,a)){case a:return"left";case o:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function LR(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 $R(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 zR(e,t){const{x:n,y:s}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],d=t[i],u=c.x,h=c.y,m=d.x,v=d.y;h>s!=v>s&&n<(m-u)*(s-h)/(v-h)+u&&(o=!o)}return o}function UR(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),BR(t)}function BR(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 a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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 a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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 VR=Gb,HR=Xb,WR=Yb,qR=Zb,nj=Jb;const rj=VR,KR=HR,QR=WR,sj=f.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(qR,{container:qi(),children:r.jsx(nj,{ref:s,sideOffset:t,className:Q("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})}));sj.displayName=nj.displayName;const oj=f.createContext(void 0);function GR({children:e}){const t=$t(),n=!!t.isProInstalled,s=!!t.isProActive,o=n?s?"pro-active":"pro-no-license":"free";return r.jsx(oj.Provider,{value:{isProInstalled:n,isProLicenseActive:s,proState:o},children:e})}function Yi(){const e=f.useContext(oj);if(!e)throw new Error("usePro must be used within ProProvider");return e}var XR=Symbol.for("react.lazy"),Ed=Rl[" use ".trim().toString()];function YR(e){return typeof e=="object"&&e!==null&&"then"in e}function aj(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===XR&&"_payload"in e&&YR(e._payload)}function Sh(e){const t=ZR(e),n=f.forwardRef((s,o)=>{let{children:a,...i}=s;aj(a)&&typeof Ed=="function"&&(a=Ed(a._payload));const c=f.Children.toArray(a),d=c.find(e4);if(d){const u=d.props.children,h=c.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,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var io=Sh("Slot");function ZR(e){const t=f.forwardRef((n,s)=>{let{children:o,...a}=n;if(aj(o)&&typeof Ed=="function"&&(o=Ed(o._payload)),f.isValidElement(o)){const i=n4(o),c=t4(a,o.props);return o.type!==f.Fragment&&(c.ref=s?sa(s,i):i),f.cloneElement(o,c)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var JR=Symbol("radix.slottable");function e4(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JR}function t4(e,t){const n={...t};for(const s in t){const o=e[s],a=t[s];/^on[A-Z]/.test(s)?o&&a?n[s]=(...c)=>{const d=a(...c);return o(...c),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...a}:s==="className"&&(n[s]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function n4(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 Ch=768;function r4(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Ch-1}px)`),s=()=>{t(window.innerWidth<Ch)};return n.addEventListener("change",s),t(window.innerWidth<Ch),()=>n.removeEventListener("change",s)},[]),!!e}const kh=oa("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},a)=>{const i=s?io:"button";return r.jsx(i,{className:Q(kh({variant:t,size:n,className:e})),ref:a,...o})});H.displayName="Button";const Re=f.forwardRef(({className:e,type:t,...n},s)=>r.jsx("input",{type:t,className:Q("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}));Re.displayName="Input";var s4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],o4=s4.reduce((e,t)=>{const n=Sh(`Primitive.${t}`),s=f.forwardRef((o,a)=>{const{asChild:i,...c}=o,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:a})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),a4="Separator",ij="horizontal",i4=["horizontal","vertical"],lj=f.forwardRef((e,t)=>{const{decorative:n,orientation:s=ij,...o}=e,a=l4(s)?s:ij,c=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return r.jsx(o4.div,{"data-orientation":a,...c,...o,ref:t})});lj.displayName=a4;function l4(e){return i4.includes(e)}var cj=lj;const Zi=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...s},o)=>r.jsx(cj,{ref:o,decorative:n,orientation:t,className:Q("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));Zi.displayName=cj.displayName;var _h="focusScope.autoFocusOnMount",Eh="focusScope.autoFocusOnUnmount",dj={bubbles:!1,cancelable:!0},c4="FocusScope",Ph=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[c,d]=f.useState(null),u=pn(o),h=pn(a),m=f.useRef(null),v=De(t,b=>d(b)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(s){let b=function(x){if(g.paused||!c)return;const N=x.target;c.contains(N)?m.current=N:hs(m.current,{select:!0})},w=function(x){if(g.paused||!c)return;const N=x.relatedTarget;N!==null&&(c.contains(N)||hs(m.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&hs(c)};document.addEventListener("focusin",b),document.addEventListener("focusout",w);const p=new MutationObserver(y);return c&&p.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",w),p.disconnect()}}},[s,c,g.paused]),f.useEffect(()=>{if(c){mj.add(g);const b=document.activeElement;if(!c.contains(b)){const y=new CustomEvent(_h,dj);c.addEventListener(_h,u),c.dispatchEvent(y),y.defaultPrevented||(d4(p4(uj(c)),{select:!0}),document.activeElement===b&&hs(c))}return()=>{c.removeEventListener(_h,u),setTimeout(()=>{const y=new CustomEvent(Eh,dj);c.addEventListener(Eh,h),c.dispatchEvent(y),y.defaultPrevented||hs(b!=null?b:document.body,{select:!0}),c.removeEventListener(Eh,h),mj.remove(g)},0)}}},[c,u,h,g]);const j=f.useCallback(b=>{if(!n&&!s||g.paused)return;const w=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,y=document.activeElement;if(w&&y){const p=b.currentTarget,[x,N]=u4(p);x&&N?!b.shiftKey&&y===N?(b.preventDefault(),n&&hs(x,{select:!0})):b.shiftKey&&y===x&&(b.preventDefault(),n&&hs(N,{select:!0})):y===p&&b.preventDefault()}},[n,s,g.paused]);return r.jsx(Se.div,{tabIndex:-1,...i,ref:v,onKeyDown:j})});Ph.displayName=c4;function d4(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(hs(s,{select:t}),document.activeElement!==n)return}function u4(e){const t=uj(e),n=fj(t,e),s=fj(t.reverse(),e);return[n,s]}function uj(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 fj(e,t){for(const n of e)if(!f4(n,{upTo:t}))return n}function f4(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 m4(e){return e instanceof HTMLInputElement&&"select"in e}function hs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&m4(e)&&t&&e.select()}}var mj=h4();function h4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=hj(e,t),e.unshift(t)},remove(t){var n;e=hj(e,t),(n=e[0])==null||n.resume()}}}function hj(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function p4(e){return e.filter(t=>t.tagName!=="A")}var Th=0;function pj(){f.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:xj()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:xj()),Th++,()=>{Th===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),Th--}},[])}function xj(){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 Jn=function(){return Jn=Object.assign||function(t){for(var n,s=1,o=arguments.length;s<o;s++){n=arguments[s];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Jn.apply(this,arguments)};function gj(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 x4(e,t,n){if(n||arguments.length===2)for(var s=0,o=t.length,a;s<o;s++)(a||!(s in t))&&(a||(a=Array.prototype.slice.call(t,0,s)),a[s]=t[s]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Pd="right-scroll-bar-position",Td="width-before-scroll-bar",g4="with-scroll-bars-hidden",v4="--removed-body-scroll-bar-size";function Rh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function y4(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 b4=typeof window!="undefined"?f.useLayoutEffect:f.useEffect,vj=new WeakMap;function j4(e,t){var n=y4(null,function(s){return e.forEach(function(o){return Rh(o,s)})});return b4(function(){var s=vj.get(n);if(s){var o=new Set(s),a=new Set(e),i=n.current;o.forEach(function(c){a.has(c)||Rh(c,null)}),a.forEach(function(c){o.has(c)||Rh(c,i)})}vj.set(n,e)},[e]),n}function w4(e){return e}function N4(e,t){t===void 0&&(t=w4);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(a){var i=t(a,s);return n.push(i),function(){n=n.filter(function(c){return c!==i})}},assignSyncMedium:function(a){for(s=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){s=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(a),i=n}var d=function(){var h=i;i=[],h.forEach(a)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(h){i.push(h),u()},filter:function(h){return i=i.filter(h),n}}}};return o}function S4(e){e===void 0&&(e={});var t=N4(null);return t.options=Jn({async:!0,ssr:!1},e),t}var yj=function(e){var t=e.sideCar,n=gj(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,Jn({},n))};yj.isSideCarExport=!0;function C4(e,t){return e.useMedium(t),yj}var bj=S4(),Ah=function(){},Rd=f.forwardRef(function(e,t){var n=f.useRef(null),s=f.useState({onScrollCapture:Ah,onWheelCapture:Ah,onTouchMoveCapture:Ah}),o=s[0],a=s[1],i=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,h=e.enabled,m=e.shards,v=e.sideCar,g=e.noRelative,j=e.noIsolation,b=e.inert,w=e.allowPinchZoom,y=e.as,p=y===void 0?"div":y,x=e.gapMode,N=gj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,k=j4([n,t]),E=Jn(Jn({},N),o);return f.createElement(f.Fragment,null,h&&f.createElement(S,{sideCar:bj,removeScrollBar:u,shards:m,noRelative:g,noIsolation:j,inert:b,setCallbacks:a,allowPinchZoom:!!w,lockRef:n,gapMode:x}),i?f.cloneElement(f.Children.only(c),Jn(Jn({},E),{ref:k})):f.createElement(p,Jn({},E,{className:d,ref:k}),c))});Rd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rd.classNames={fullWidth:Td,zeroRight:Pd};var k4=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function _4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=k4();return t&&e.setAttribute("nonce",t),e}function E4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function P4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var T4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_4())&&(E4(t,n),P4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R4=function(){var e=T4();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jj=function(){var e=R4(),t=function(n){var s=n.styles,o=n.dynamic;return e(s,o),null};return t},A4={left:0,top:0,right:0,gap:0},Oh=function(e){return parseInt(e||"",10)||0},O4=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[Oh(n),Oh(s),Oh(o)]},I4=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return A4;var t=O4(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])}},M4=jj(),xa="data-scroll-locked",D4=function(e,t,n,s){var o=e.left,a=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),` | |
| 415 | - .`.concat(g4,` { | |
| 414 | + */const aT=oe("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"}]]);/** | |
| 415 | + * @license lucide-react v0.462.0 - ISC | |
| 416 | + * | |
| 417 | + * This source code is licensed under the ISC license. | |
| 418 | + * See the LICENSE file in the root directory of this source tree. | |
| 419 | + */const z0=oe("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"}]]);/** | |
| 420 | + * @license lucide-react v0.462.0 - ISC | |
| 421 | + * | |
| 422 | + * This source code is licensed under the ISC license. | |
| 423 | + * See the LICENSE file in the root directory of this source tree. | |
| 424 | + */const Rh=oe("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"}]]);/** | |
| 425 | + * @license lucide-react v0.462.0 - ISC | |
| 426 | + * | |
| 427 | + * This source code is licensed under the ISC license. | |
| 428 | + * See the LICENSE file in the root directory of this source tree. | |
| 429 | + */const iT=oe("Webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);/** | |
| 430 | + * @license lucide-react v0.462.0 - ISC | |
| 431 | + * | |
| 432 | + * This source code is licensed under the ISC license. | |
| 433 | + * See the LICENSE file in the root directory of this source tree. | |
| 434 | + */const Sd=oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** | |
| 435 | + * @license lucide-react v0.462.0 - ISC | |
| 436 | + * | |
| 437 | + * This source code is licensed under the ISC license. | |
| 438 | + * See the LICENSE file in the root directory of this source tree. | |
| 439 | + */const oT=oe("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"}]]),Ah="-",lT=e=>{const t=dT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const c=o.split(Ah);return c[0]===""&&c.length!==1&&c.shift(),U0(c,t)||cT(o)},getConflictingClassGroupIds:(o,c)=>{const d=n[o]||[];return c&&s[o]?[...d,...s[o]]:d}}},U0=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),a=s?U0(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Ah);return(o=t.validators.find(({validator:c})=>c(i)))==null?void 0:o.classGroupId},B0=/^\[(.+)\]$/,cT=e=>{if(B0.test(e)){const t=B0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},dT=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return fT(Object.entries(e.classGroups),n).forEach(([i,o])=>{Oh(o,s,i,t)}),s},Oh=(e,t,n,s)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:V0(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(uT(a)){Oh(a(s),t,n,s);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,o])=>{Oh(o,V0(t,i),n,s)})})},V0=(e,t)=>{let n=e;return t.split(Ah).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},uT=e=>e.isThemeGetter,fT=(e,t)=>t?e.map(([n,s])=>{const a=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,c])=>[t+o,c])):i);return[n,a]}):e,mT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const a=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return a(i,o),o},set(i,o){n.has(i)?n.set(i,o):a(i,o)}}},q0="!",hT=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,a=t[0],i=t.length,o=c=>{const d=[];let u=0,h=0,m;for(let j=0;j<c.length;j++){let b=c[j];if(u===0){if(b===a&&(s||c.slice(j,j+i)===t)){d.push(c.slice(h,j)),h=j+i;continue}if(b==="/"){m=j;continue}}b==="["?u++:b==="]"&&u--}const y=d.length===0?c:c.substring(h),v=y.startsWith(q0),w=v?y.substring(1):y,g=m&&m>h?m-h:void 0;return{modifiers:d,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:g}};return n?c=>n({className:c,parseClassName:o}):o},pT=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},xT=e=>({cache:mT(e.cacheSize),parseClassName:hT(e),...lT(e)}),gT=/\s+/,vT=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(gT);let c="";for(let d=o.length-1;d>=0;d-=1){const u=o[d],{modifiers:h,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:v}=n(u);let w=!!v,g=s(w?y.substring(0,v):y);if(!g){if(!w){c=u+(c.length>0?" "+c:c);continue}if(g=s(y),!g){c=u+(c.length>0?" "+c:c);continue}w=!1}const j=pT(h).join(":"),b=m?j+q0:j,p=b+g;if(i.includes(p))continue;i.push(p);const x=a(g,w);for(let N=0;N<x.length;++N){const S=x[N];i.push(b+S)}c=u+(c.length>0?" "+c:c)}return c};function yT(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=H0(t))&&(s&&(s+=" "),s+=n);return s}const H0=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=H0(e[s]))&&(n&&(n+=" "),n+=t);return n};function bT(e,...t){let n,s,a,i=o;function o(d){const u=t.reduce((h,m)=>m(h),e());return n=xT(u),s=n.cache.get,a=n.cache.set,i=c,c(d)}function c(d){const u=s(d);if(u)return u;const h=vT(d,n);return a(d,h),h}return function(){return i(yT.apply(null,arguments))}}const nt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},W0=/^\[(?:([a-z-]+):)?(.+)\]$/i,jT=/^\d+\/\d+$/,wT=new Set(["px","full","screen"]),NT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ST=/\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$/,CT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_T=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Er=e=>fi(e)||wT.has(e)||jT.test(e),vs=e=>mi(e,"length",MT),fi=e=>!!e&&!Number.isNaN(Number(e)),Ih=e=>mi(e,"number",fi),Jo=e=>!!e&&Number.isInteger(Number(e)),ET=e=>e.endsWith("%")&&fi(e.slice(0,-1)),Te=e=>W0.test(e),ys=e=>NT.test(e),PT=new Set(["length","size","percentage"]),TT=e=>mi(e,PT,K0),RT=e=>mi(e,"position",K0),AT=new Set(["image","url"]),OT=e=>mi(e,AT,FT),IT=e=>mi(e,"",DT),el=()=>!0,mi=(e,t,n)=>{const s=W0.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},MT=e=>ST.test(e)&&!CT.test(e),K0=()=>!1,DT=e=>kT.test(e),FT=e=>_T.test(e),LT=bT(()=>{const e=nt("colors"),t=nt("spacing"),n=nt("blur"),s=nt("brightness"),a=nt("borderColor"),i=nt("borderRadius"),o=nt("borderSpacing"),c=nt("borderWidth"),d=nt("contrast"),u=nt("grayscale"),h=nt("hueRotate"),m=nt("invert"),y=nt("gap"),v=nt("gradientColorStops"),w=nt("gradientColorStopPositions"),g=nt("inset"),j=nt("margin"),b=nt("opacity"),p=nt("padding"),x=nt("saturate"),N=nt("scale"),S=nt("sepia"),k=nt("skew"),_=nt("space"),C=nt("translate"),R=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Te,t],M=()=>[Te,t],B=()=>["",Er,vs],I=()=>["auto",fi,Te],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",Te],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[fi,Te];return{cacheSize:500,separator:":",theme:{colors:[el],spacing:[Er,vs],blur:["none","",ys,Te],brightness:he(),borderColor:[e],borderRadius:["none","","full",ys,Te],borderSpacing:M(),borderWidth:B(),contrast:he(),grayscale:D(),hueRotate:he(),invert:D(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[ET,vs],inset:O(),margin:O(),opacity:he(),padding:M(),saturate:he(),scale:he(),sepia:D(),skew:he(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[ys]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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:[...ne(),Te]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Jo,Te]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Jo,Te]}],"grid-cols":[{"grid-cols":[el]}],"col-start-end":[{col:["auto",{span:["full",Jo,Te]},Te]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[el]}],"row-start-end":[{row:["auto",{span:[Jo,Te]},Te]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"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":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[ys]},ys]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ys,vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ih]}],"font-family":[{font:[el]}],"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",Te]}],"line-clamp":[{"line-clamp":["none",fi,Ih]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Er,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Er,vs]}],"underline-offset":[{"underline-offset":["auto",Er,Te]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],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",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),RT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},OT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],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:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:F()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[Er,Te]}],"outline-w":[{outline:[Er,vs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Er,vs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ys,IT]}],"shadow-color":[{shadow:[el]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ys,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[x]}],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":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Jo,Te]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],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",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Er,vs,Ih]}],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 V(...e){return LT(C0(e))}function tl(){var e;if(typeof document!="undefined")return(e=document.getElementById("doi-admin-root"))!=null?e:void 0}const $T=OP,Q0=f.forwardRef(({className:e,...t},n)=>r.jsx(v0,{ref:n,className:V("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}));Q0.displayName=v0.displayName;const zT=li("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"}}),G0=f.forwardRef(({className:e,variant:t,...n},s)=>r.jsx(y0,{ref:s,className:V(zT({variant:t}),e),...n}));G0.displayName=y0.displayName;const UT=f.forwardRef(({className:e,...t},n)=>r.jsx(w0,{ref:n,className:V("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}));UT.displayName=w0.displayName;const Y0=f.forwardRef(({className:e,...t},n)=>r.jsx(N0,{ref:n,className:V("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(Sd,{className:"h-4 w-4"})}));Y0.displayName=N0.displayName;const X0=f.forwardRef(({className:e,...t},n)=>r.jsx(b0,{ref:n,className:V("text-sm font-semibold",e),...t}));X0.displayName=b0.displayName;const Z0=f.forwardRef(({className:e,...t},n)=>r.jsx(j0,{ref:n,className:V("text-sm opacity-90",e),...t}));Z0.displayName=j0.displayName;function BT(){const{toasts:e}=FE();return r.jsxs($T,{children:[e.map(function({id:t,title:n,description:s,action:a,...i}){return r.jsxs(G0,{...i,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(X0,{children:n}),s&&r.jsx(Z0,{children:s})]}),a,r.jsx(Y0,{})]},t)}),r.jsx(Q0,{})]})}var VT=(e,t,n,s,a,i,o,c)=>{let d=document.documentElement,u=["light","dark"];function h(v){(Array.isArray(e)?e:[e]).forEach(w=>{let g=w==="class",j=g&&i?a.map(b=>i[b]||b):a;g?(d.classList.remove(...j),d.classList.add(i&&i[v]?i[v]:v)):d.setAttribute(w,v)}),m(v)}function m(v){c&&u.includes(v)&&(d.style.colorScheme=v)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)h(s);else try{let v=localStorage.getItem(t)||n,w=o&&v==="system"?y():v;h(w)}catch(v){}},qT=f.createContext(void 0),HT={setTheme:e=>{},themes:[]},WT=()=>{var e;return(e=f.useContext(qT))!=null?e:HT};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:a,defaultTheme:i,value:o,themes:c,nonce:d,scriptProps:u})=>{let h=JSON.stringify([n,t,i,e,c,o,s,a]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window=="undefined"?d:"",dangerouslySetInnerHTML:{__html:`(${VT.toString()})(${h})`}})});var KT=e=>{switch(e){case"success":return YT;case"info":return ZT;case"warning":return XT;case"error":return JT;default:return null}},QT=Array(12).fill(0),GT=({visible:e,className:t})=>K.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},K.createElement("div",{className:"sonner-spinner"},QT.map((n,s)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),YT=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.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"})),XT=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.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"})),ZT=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.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"})),JT=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.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"})),eR=K.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"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),tR=()=>{let[e,t]=K.useState(document.hidden);return K.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Mh=1,nR=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,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Mh++,i=this.toasts.find(c=>c.id===a),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...e,id:a,title:n}),{...c,...e,id:a,dismissible:o,title:n}):c):this.addToast({title:n,...s,dismissible:o,id:a}),a},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(),a=n!==void 0,i,o=s.then(async d=>{if(i=["resolve",d],K.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(sR(d)&&!d.ok){a=!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){a=!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){a=!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;a&&(this.dismiss(n),n=void 0),(d=t.finally)==null||d.call(t)}),c=()=>new Promise((d,u)=>o.then(()=>i[0]==="reject"?u(i[1]):d(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Mh++;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}},Yt=new nR,rR=(e,t)=>{let n=(t==null?void 0:t.id)||Mh++;return Yt.addToast({title:e,...t,id:n}),n},sR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",aR=rR,iR=()=>Yt.toasts,oR=()=>Yt.getActiveToasts(),G=Object.assign(aR,{success:Yt.success,info:Yt.info,warning:Yt.warning,error:Yt.error,custom:Yt.custom,message:Yt.message,promise:Yt.promise,dismiss:Yt.dismiss,loading:Yt.loading},{getHistory:iR,getToasts:oR});function lR(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))}lR(`: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%)} | |
| 440 | +`);function Cd(e){return e.label!==void 0}var cR=3,dR="32px",uR="16px",J0=4e3,fR=356,mR=14,hR=20,pR=200;function zn(...e){return e.filter(Boolean).join(" ")}function xR(e){let[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}var gR=e=>{var t,n,s,a,i,o,c,d,u,h,m;let{invert:y,toast:v,unstyled:w,interacting:g,setHeights:j,visibleToasts:b,heights:p,index:x,toasts:N,expanded:S,removeToast:k,defaultRichColors:_,closeButton:C,style:R,cancelButtonStyle:T,actionButtonStyle:O,className:M="",descriptionClassName:B="",duration:I,position:ne,gap:F,loadingIcon:te,expandByDefault:A,classNames:D,icons:W,closeButtonAriaLabel:he="Close toast",pauseWhenPageIsHidden:me}=e,[je,Ne]=K.useState(null),[$e,Be]=K.useState(null),[se,De]=K.useState(!1),[P,z]=K.useState(!1),[Y,ae]=K.useState(!1),[_e,Fe]=K.useState(!1),[$,Ce]=K.useState(!1),[Je,Vt]=K.useState(0),[q,Ue]=K.useState(0),We=K.useRef(v.duration||I||J0),xn=K.useRef(null),hr=K.useRef(null),wu=x===0,Nu=x+1<=b,qt=v.type,Ur=v.dismissible!==!1,Su=v.className||"",Cu=v.descriptionClassName||"",_a=K.useMemo(()=>p.findIndex(ke=>ke.toastId===v.id)||0,[p,v.id]),ku=K.useMemo(()=>{var ke;return(ke=v.closeButton)!=null?ke:C},[v.closeButton,C]),Ol=K.useMemo(()=>v.duration||I||J0,[v.duration,I]),qi=K.useRef(0),Br=K.useRef(0),Il=K.useRef(0),Vr=K.useRef(null),[_u,Eu]=ne.split("-"),Ml=K.useMemo(()=>p.reduce((ke,Ve,Ye)=>Ye>=_a?ke:ke+Ve.height,0),[p,_a]),Dl=tR(),Pu=v.invert||y,Hi=qt==="loading";Br.current=K.useMemo(()=>_a*F+Ml,[_a,Ml]),K.useEffect(()=>{We.current=Ol},[Ol]),K.useEffect(()=>{De(!0)},[]),K.useEffect(()=>{let ke=hr.current;if(ke){let Ve=ke.getBoundingClientRect().height;return Ue(Ve),j(Ye=>[{toastId:v.id,height:Ve,position:v.position},...Ye]),()=>j(Ye=>Ye.filter(Jt=>Jt.toastId!==v.id))}},[j,v.id]),K.useLayoutEffect(()=>{if(!se)return;let ke=hr.current,Ve=ke.style.height;ke.style.height="auto";let Ye=ke.getBoundingClientRect().height;ke.style.height=Ve,Ue(Ye),j(Jt=>Jt.find(en=>en.toastId===v.id)?Jt.map(en=>en.toastId===v.id?{...en,height:Ye}:en):[{toastId:v.id,height:Ye,position:v.position},...Jt])},[se,v.title,v.description,j,v.id]);let Gn=K.useCallback(()=>{z(!0),Vt(Br.current),j(ke=>ke.filter(Ve=>Ve.toastId!==v.id)),setTimeout(()=>{k(v)},pR)},[v,k,j,Br]);K.useEffect(()=>{if(v.promise&&qt==="loading"||v.duration===1/0||v.type==="loading")return;let ke;return S||g||me&&Dl?(()=>{if(Il.current<qi.current){let Ve=new Date().getTime()-qi.current;We.current=We.current-Ve}Il.current=new Date().getTime()})():We.current!==1/0&&(qi.current=new Date().getTime(),ke=setTimeout(()=>{var Ve;(Ve=v.onAutoClose)==null||Ve.call(v,v),Gn()},We.current)),()=>clearTimeout(ke)},[S,g,v,qt,me,Dl,Gn]),K.useEffect(()=>{v.delete&&Gn()},[Gn,v.delete]);function Tu(){var ke,Ve,Ye;return W!=null&&W.loading?K.createElement("div",{className:zn(D==null?void 0:D.loader,(ke=v==null?void 0:v.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":qt==="loading"},W.loading):te?K.createElement("div",{className:zn(D==null?void 0:D.loader,(Ve=v==null?void 0:v.classNames)==null?void 0:Ve.loader,"sonner-loader"),"data-visible":qt==="loading"},te):K.createElement(GT,{className:zn(D==null?void 0:D.loader,(Ye=v==null?void 0:v.classNames)==null?void 0:Ye.loader),visible:qt==="loading"})}return K.createElement("li",{tabIndex:0,ref:hr,className:zn(M,Su,D==null?void 0:D.toast,(t=v==null?void 0:v.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[qt],(n=v==null?void 0:v.classNames)==null?void 0:n[qt]),"data-sonner-toast":"","data-rich-colors":(s=v.richColors)!=null?s:_,"data-styled":!(v.jsx||v.unstyled||w),"data-mounted":se,"data-promise":!!v.promise,"data-swiped":$,"data-removed":P,"data-visible":Nu,"data-y-position":_u,"data-x-position":Eu,"data-index":x,"data-front":wu,"data-swiping":Y,"data-dismissible":Ur,"data-type":qt,"data-invert":Pu,"data-swipe-out":_e,"data-swipe-direction":$e,"data-expanded":!!(S||A&&se),style:{"--index":x,"--toasts-before":x,"--z-index":N.length-x,"--offset":`${P?Je:Br.current}px`,"--initial-height":A?"auto":`${q}px`,...R,...v.style},onDragEnd:()=>{ae(!1),Ne(null),Vr.current=null},onPointerDown:ke=>{Hi||!Ur||(xn.current=new Date,Vt(Br.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(ae(!0),Vr.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,Ve,Ye,Jt;if(_e||!Ur)return;Vr.current=null;let en=Number(((ke=hr.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Yn=Number(((Ve=hr.current)==null?void 0:Ve.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pr=new Date().getTime()-((Ye=xn.current)==null?void 0:Ye.getTime()),tn=je==="x"?en:Yn,Xn=Math.abs(tn)/pr;if(Math.abs(tn)>=hR||Xn>.11){Vt(Br.current),(Jt=v.onDismiss)==null||Jt.call(v,v),Be(je==="x"?en>0?"right":"left":Yn>0?"down":"up"),Gn(),Fe(!0),Ce(!1);return}ae(!1),Ne(null)},onPointerMove:ke=>{var Ve,Ye,Jt,en;if(!Vr.current||!Ur||((Ve=window.getSelection())==null?void 0:Ve.toString().length)>0)return;let Yn=ke.clientY-Vr.current.y,pr=ke.clientX-Vr.current.x,tn=(Ye=e.swipeDirections)!=null?Ye:xR(ne);!je&&(Math.abs(pr)>1||Math.abs(Yn)>1)&&Ne(Math.abs(pr)>Math.abs(Yn)?"x":"y");let Xn={x:0,y:0};je==="y"?(tn.includes("top")||tn.includes("bottom"))&&(tn.includes("top")&&Yn<0||tn.includes("bottom")&&Yn>0)&&(Xn.y=Yn):je==="x"&&(tn.includes("left")||tn.includes("right"))&&(tn.includes("left")&&pr<0||tn.includes("right")&&pr>0)&&(Xn.x=pr),(Math.abs(Xn.x)>0||Math.abs(Xn.y)>0)&&Ce(!0),(Jt=hr.current)==null||Jt.style.setProperty("--swipe-amount-x",`${Xn.x}px`),(en=hr.current)==null||en.style.setProperty("--swipe-amount-y",`${Xn.y}px`)}},ku&&!v.jsx?K.createElement("button",{"aria-label":he,"data-disabled":Hi,"data-close-button":!0,onClick:Hi||!Ur?()=>{}:()=>{var ke;Gn(),(ke=v.onDismiss)==null||ke.call(v,v)},className:zn(D==null?void 0:D.closeButton,(a=v==null?void 0:v.classNames)==null?void 0:a.closeButton)},(i=W==null?void 0:W.close)!=null?i:eR):null,v.jsx||f.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:K.createElement(K.Fragment,null,qt||v.icon||v.promise?K.createElement("div",{"data-icon":"",className:zn(D==null?void 0:D.icon,(o=v==null?void 0:v.classNames)==null?void 0:o.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Tu():null,v.type!=="loading"?v.icon||(W==null?void 0:W[qt])||KT(qt):null):null,K.createElement("div",{"data-content":"",className:zn(D==null?void 0:D.content,(c=v==null?void 0:v.classNames)==null?void 0:c.content)},K.createElement("div",{"data-title":"",className:zn(D==null?void 0:D.title,(d=v==null?void 0:v.classNames)==null?void 0:d.title)},typeof v.title=="function"?v.title():v.title),v.description?K.createElement("div",{"data-description":"",className:zn(B,Cu,D==null?void 0:D.description,(u=v==null?void 0:v.classNames)==null?void 0:u.description)},typeof v.description=="function"?v.description():v.description):null),f.isValidElement(v.cancel)?v.cancel:v.cancel&&Cd(v.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||T,onClick:ke=>{var Ve,Ye;Cd(v.cancel)&&Ur&&((Ye=(Ve=v.cancel).onClick)==null||Ye.call(Ve,ke),Gn())},className:zn(D==null?void 0:D.cancelButton,(h=v==null?void 0:v.classNames)==null?void 0:h.cancelButton)},v.cancel.label):null,f.isValidElement(v.action)?v.action:v.action&&Cd(v.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||O,onClick:ke=>{var Ve,Ye;Cd(v.action)&&((Ye=(Ve=v.action).onClick)==null||Ye.call(Ve,ke),!ke.defaultPrevented&&Gn())},className:zn(D==null?void 0:D.actionButton,(m=v==null?void 0:v.classNames)==null?void 0:m.actionButton)},v.action.label):null))};function ej(){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 vR(e,t){let n={};return[e,t].forEach((s,a)=>{let i=a===1,o=i?"--mobile-offset":"--offset",c=i?uR:dR;function d(u){["top","right","bottom","left"].forEach(h=>{n[`${o}-${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[`${o}-${u}`]=c:n[`${o}-${u}`]=typeof s[u]=="number"?`${s[u]}px`:s[u]}):d(c)}),n}var yR=f.forwardRef(function(e,t){let{invert:n,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:o,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:m,duration:y,style:v,visibleToasts:w=cR,toastOptions:g,dir:j=ej(),gap:b=mR,loadingIcon:p,icons:x,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:S}=e,[k,_]=K.useState([]),C=K.useMemo(()=>Array.from(new Set([s].concat(k.filter(me=>me.position).map(me=>me.position)))),[k,s]),[R,T]=K.useState([]),[O,M]=K.useState(!1),[B,I]=K.useState(!1),[ne,F]=K.useState(h!=="system"?h:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),te=K.useRef(null),A=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=K.useRef(null),W=K.useRef(!1),he=K.useCallback(me=>{_(je=>{var Ne;return(Ne=je.find($e=>$e.id===me.id))!=null&&Ne.delete||Yt.dismiss(me.id),je.filter(({id:$e})=>$e!==me.id)})},[]);return K.useEffect(()=>Yt.subscribe(me=>{if(me.dismiss){_(je=>je.map(Ne=>Ne.id===me.id?{...Ne,delete:!0}:Ne));return}setTimeout(()=>{Ky.flushSync(()=>{_(je=>{let Ne=je.findIndex($e=>$e.id===me.id);return Ne!==-1?[...je.slice(0,Ne),{...je[Ne],...me},...je.slice(Ne+1)]:[me,...je]})})})}),[]),K.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 me=window.matchMedia("(prefers-color-scheme: dark)");try{me.addEventListener("change",({matches:je})=>{F(je?"dark":"light")})}catch(je){me.addListener(({matches:Ne})=>{try{F(Ne?"dark":"light")}catch($e){console.error($e)}})}},[h]),K.useEffect(()=>{k.length<=1&&M(!1)},[k]),K.useEffect(()=>{let me=je=>{var Ne,$e;a.every(Be=>je[Be]||je.code===Be)&&(M(!0),(Ne=te.current)==null||Ne.focus()),je.code==="Escape"&&(document.activeElement===te.current||($e=te.current)!=null&&$e.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",me),()=>document.removeEventListener("keydown",me)},[a]),K.useEffect(()=>{if(te.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,W.current=!1)}},[te.current]),K.createElement("section",{ref:t,"aria-label":`${N} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((me,je)=>{var Ne;let[$e,Be]=me.split("-");return k.length?K.createElement("ol",{key:me,dir:j==="auto"?ej():j,tabIndex:-1,ref:te,className:c,"data-sonner-toaster":!0,"data-theme":ne,"data-y-position":$e,"data-lifted":O&&k.length>1&&!i,"data-x-position":Be,style:{"--front-toast-height":`${((Ne=R[0])==null?void 0:Ne.height)||0}px`,"--width":`${fR}px`,"--gap":`${b}px`,...v,...vR(d,u)},onBlur:se=>{W.current&&!se.currentTarget.contains(se.relatedTarget)&&(W.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||W.current||(W.current=!0,D.current=se.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{B||M(!1)},onDragEnd:()=>M(!1),onPointerDown:se=>{se.target instanceof HTMLElement&&se.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(se=>!se.position&&je===0||se.position===me).map((se,De)=>{var P,z;return K.createElement(gR,{key:se.id,icons:x,index:De,toast:se,defaultRichColors:m,duration:(P=g==null?void 0:g.duration)!=null?P:y,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:w,closeButton:(z=g==null?void 0:g.closeButton)!=null?z:o,interacting:B,position:me,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:he,toasts:k.filter(Y=>Y.position==se.position),heights:R.filter(Y=>Y.position==se.position),setHeights:T,expandByDefault:i,gap:b,loadingIcon:p,expanded:O,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const bR=({...e})=>{const{theme:t="system"}=WT();return r.jsx(yR,{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 jR=ql[" useId ".trim().toString()]||(()=>{}),wR=0;function Un(e){const[t,n]=f.useState(jR());return jt(()=>{n(s=>s!=null?s:String(wR++))},[e]),e||(t?`radix-${t}`:"")}const NR=["top","right","bottom","left"],bs=Math.min,dn=Math.max,kd=Math.round,_d=Math.floor,rr=e=>({x:e,y:e}),SR={left:"right",right:"left",bottom:"top",top:"bottom"};function Dh(e,t,n){return dn(e,bs(t,n))}function Pr(e,t){return typeof e=="function"?e(t):e}function Tr(e){return e.split("-")[0]}function hi(e){return e.split("-")[1]}function Fh(e){return e==="x"?"y":"x"}function Lh(e){return e==="y"?"height":"width"}function sr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function $h(e){return Fh(sr(e))}function CR(e,t,n){n===void 0&&(n=!1);const s=hi(e),a=$h(e),i=Lh(a);let o=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ed(o)),[o,Ed(o)]}function kR(e){const t=Ed(e);return[zh(e),t,zh(t)]}function zh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const tj=["left","right"],nj=["right","left"],_R=["top","bottom"],ER=["bottom","top"];function PR(e,t,n){switch(e){case"top":case"bottom":return n?t?nj:tj:t?tj:nj;case"left":case"right":return t?_R:ER;default:return[]}}function TR(e,t,n,s){const a=hi(e);let i=PR(Tr(e),n==="start",s);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(zh)))),i}function Ed(e){const t=Tr(e);return SR[t]+e.slice(t.length)}function RR(e){return{top:0,right:0,bottom:0,left:0,...e}}function rj(e){return typeof e!="number"?RR(e):{top:e,right:e,bottom:e,left:e}}function Pd(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function sj(e,t,n){let{reference:s,floating:a}=e;const i=sr(t),o=$h(t),c=Lh(o),d=Tr(t),u=i==="y",h=s.x+s.width/2-a.width/2,m=s.y+s.height/2-a.height/2,y=s[c]/2-a[c]/2;let v;switch(d){case"top":v={x:h,y:s.y-a.height};break;case"bottom":v={x:h,y:s.y+s.height};break;case"right":v={x:s.x+s.width,y:m};break;case"left":v={x:s.x-a.width,y:m};break;default:v={x:s.x,y:s.y}}switch(hi(t)){case"start":v[o]-=y*(n&&u?-1:1);break;case"end":v[o]+=y*(n&&u?-1:1);break}return v}async function AR(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:i,rects:o,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:y=!1,padding:v=0}=Pr(t,e),w=rj(v),j=c[y?m==="floating"?"reference":"floating":m],b=Pd(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(c.floating)),boundary:u,rootBoundary:h,strategy:d})),p=m==="floating"?{x:s,y:a,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),N=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Pd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:p,offsetParent:x,strategy:d}):p);return{top:(b.top-S.top+w.top)/N.y,bottom:(S.bottom-b.bottom+w.bottom)/N.y,left:(b.left-S.left+w.left)/N.x,right:(S.right-b.right+w.right)/N.x}}const OR=50,IR=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,c=o.detectOverflow?o:{...o,detectOverflow:AR},d=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:m}=sj(u,s,d),y=s,v=0;const w={};for(let g=0;g<i.length;g++){const j=i[g];if(!j)continue;const{name:b,fn:p}=j,{x,y:N,data:S,reset:k}=await p({x:h,y:m,initialPlacement:s,placement:y,strategy:a,middlewareData:w,rects:u,platform:c,elements:{reference:e,floating:t}});h=x!=null?x:h,m=N!=null?N:m,w[b]={...w[b],...S},k&&v<OR&&(v++,typeof k=="object"&&(k.placement&&(y=k.placement),k.rects&&(u=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:h,y:m}=sj(u,y,d)),g=-1)}return{x:h,y:m,placement:y,strategy:a,middlewareData:w}},MR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:i,platform:o,elements:c,middlewareData:d}=t,{element:u,padding:h=0}=Pr(e,t)||{};if(u==null)return{};const m=rj(h),y={x:n,y:s},v=$h(a),w=Lh(v),g=await o.getDimensions(u),j=v==="y",b=j?"top":"left",p=j?"bottom":"right",x=j?"clientHeight":"clientWidth",N=i.reference[w]+i.reference[v]-y[v]-i.floating[w],S=y[v]-i.reference[v],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=k?k[x]:0;(!_||!await(o.isElement==null?void 0:o.isElement(k)))&&(_=c.floating[x]||i.floating[w]);const C=N/2-S/2,R=_/2-g[w]/2-1,T=bs(m[b],R),O=bs(m[p],R),M=T,B=_-g[w]-O,I=_/2-g[w]/2+C,ne=Dh(M,I,B),F=!d.arrow&&hi(a)!=null&&I!==ne&&i.reference[w]/2-(I<M?T:O)-g[w]/2<0,te=F?I<M?I-M:I-B:0;return{[v]:y[v]+te,data:{[v]:ne,centerOffset:I-ne-te,...F&&{alignmentOffset:te}},reset:F}}}),DR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:i,rects:o,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...j}=Pr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Tr(a),p=sr(c),x=Tr(c)===c,N=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=y||(x||!g?[Ed(c)]:kR(c)),k=w!=="none";!y&&k&&S.push(...TR(c,g,w,N));const _=[c,...S],C=await d.detectOverflow(t,j),R=[];let T=((s=i.flip)==null?void 0:s.overflows)||[];if(h&&R.push(C[b]),m){const I=CR(a,o,N);R.push(C[I[0]],C[I[1]])}if(T=[...T,{placement:a,overflows:R}],!R.every(I=>I<=0)){var O,M;const I=(((O=i.flip)==null?void 0:O.index)||0)+1,ne=_[I];if(ne&&(!(m==="alignment"?p!==sr(ne):!1)||T.every(A=>sr(A.placement)===p?A.overflows[0]>0:!0)))return{data:{index:I,overflows:T},reset:{placement:ne}};let F=(M=T.filter(te=>te.overflows[0]<=0).sort((te,A)=>te.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!F)switch(v){case"bestFit":{var B;const te=(B=T.filter(A=>{if(k){const D=sr(A.placement);return D===p||D==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(D=>D>0).reduce((D,W)=>D+W,0)]).sort((A,D)=>A[1]-D[1])[0])==null?void 0:B[0];te&&(F=te);break}case"initialPlacement":F=c;break}if(a!==F)return{reset:{placement:F}}}return{}}}};function aj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ij(e){return NR.some(t=>e[t]>=0)}const FR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:a="referenceHidden",...i}=Pr(e,t);switch(a){case"referenceHidden":{const o=await s.detectOverflow(t,{...i,elementContext:"reference"}),c=aj(o,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:ij(c)}}}case"escaped":{const o=await s.detectOverflow(t,{...i,altBoundary:!0}),c=aj(o,n.floating);return{data:{escapedOffsets:c,escaped:ij(c)}}}default:return{}}}}},oj=new Set(["left","top"]);async function LR(e,t){const{placement:n,platform:s,elements:a}=e,i=await(s.isRTL==null?void 0:s.isRTL(a.floating)),o=Tr(n),c=hi(n),d=sr(n)==="y",u=oj.has(o)?-1:1,h=i&&d?-1:1,m=Pr(t,e);let{mainAxis:y,crossAxis:v,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof w=="number"&&(v=c==="end"?w*-1:w),d?{x:v*h,y:y*u}:{x:y*u,y:v*h}}const $R=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:i,placement:o,middlewareData:c}=t,d=await LR(t,e);return o===((n=c.offset)==null?void 0:n.placement)&&(s=c.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:i+d.y,data:{...d,placement:o}}}}},zR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:i}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:d={fn:b=>{let{x:p,y:x}=b;return{x:p,y:x}}},...u}=Pr(e,t),h={x:n,y:s},m=await i.detectOverflow(t,u),y=sr(Tr(a)),v=Fh(y);let w=h[v],g=h[y];if(o){const b=v==="y"?"top":"left",p=v==="y"?"bottom":"right",x=w+m[b],N=w-m[p];w=Dh(x,w,N)}if(c){const b=y==="y"?"top":"left",p=y==="y"?"bottom":"right",x=g+m[b],N=g-m[p];g=Dh(x,g,N)}const j=d.fn({...t,[v]:w,[y]:g});return{...j,data:{x:j.x-n,y:j.y-s,enabled:{[v]:o,[y]:c}}}}}},UR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:a,rects:i,middlewareData:o}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Pr(e,t),h={x:n,y:s},m=sr(a),y=Fh(m);let v=h[y],w=h[m];const g=Pr(c,t),j=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(d){const x=y==="y"?"height":"width",N=i.reference[y]-i.floating[x]+j.mainAxis,S=i.reference[y]+i.reference[x]-j.mainAxis;v<N?v=N:v>S&&(v=S)}if(u){var b,p;const x=y==="y"?"width":"height",N=oj.has(Tr(a)),S=i.reference[m]-i.floating[x]+(N&&((b=o.offset)==null?void 0:b[m])||0)+(N?0:j.crossAxis),k=i.reference[m]+i.reference[x]+(N?0:((p=o.offset)==null?void 0:p[m])||0)-(N?j.crossAxis:0);w<S?w=S:w>k&&(w=k)}return{[y]:v,[m]:w}}}},BR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:i,platform:o,elements:c}=t,{apply:d=()=>{},...u}=Pr(e,t),h=await o.detectOverflow(t,u),m=Tr(a),y=hi(a),v=sr(a)==="y",{width:w,height:g}=i.floating;let j,b;m==="top"||m==="bottom"?(j=m,b=y===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(b=m,j=y==="end"?"top":"bottom");const p=g-h.top-h.bottom,x=w-h.left-h.right,N=bs(g-h[j],p),S=bs(w-h[b],x),k=!t.middlewareData.shift;let _=N,C=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=x),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(_=p),k&&!y){const T=dn(h.left,0),O=dn(h.right,0),M=dn(h.top,0),B=dn(h.bottom,0);v?C=w-2*(T!==0||O!==0?T+O:dn(h.left,h.right)):_=g-2*(M!==0||B!==0?M+B:dn(h.top,h.bottom))}await d({...t,availableWidth:C,availableHeight:_});const R=await o.getDimensions(c.floating);return w!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function Td(){return typeof window!="undefined"}function pi(e){return lj(e)?(e.nodeName||"").toLowerCase():"#document"}function un(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ar(e){var t;return(t=(lj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lj(e){return Td()?e instanceof Node||e instanceof un(e).Node:!1}function Bn(e){return Td()?e instanceof Element||e instanceof un(e).Element:!1}function Rr(e){return Td()?e instanceof HTMLElement||e instanceof un(e).HTMLElement:!1}function cj(e){return!Td()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof un(e).ShadowRoot}function nl(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=Vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&a!=="inline"&&a!=="contents"}function VR(e){return/^(table|td|th)$/.test(pi(e))}function Rd(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const qR=/transform|translate|scale|rotate|perspective|filter/,HR=/paint|layout|strict|content/,ua=e=>!!e&&e!=="none";let Uh;function Bh(e){const t=Bn(e)?Vn(e):e;return ua(t.transform)||ua(t.translate)||ua(t.scale)||ua(t.rotate)||ua(t.perspective)||!Vh()&&(ua(t.backdropFilter)||ua(t.filter))||qR.test(t.willChange||"")||HR.test(t.contain||"")}function WR(e){let t=js(e);for(;Rr(t)&&!xi(t);){if(Bh(t))return t;if(Rd(t))return null;t=js(t)}return null}function Vh(){return Uh==null&&(Uh=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Uh}function xi(e){return/^(html|body|#document)$/.test(pi(e))}function Vn(e){return un(e).getComputedStyle(e)}function Ad(e){return Bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function js(e){if(pi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cj(e)&&e.host||ar(e);return cj(t)?t.host:t}function dj(e){const t=js(e);return xi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rr(t)&&nl(t)?t:dj(t)}function rl(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=dj(e),i=a===((s=e.ownerDocument)==null?void 0:s.body),o=un(a);if(i){const c=qh(o);return t.concat(o,o.visualViewport||[],nl(a)?a:[],c&&n?rl(c):[])}else return t.concat(a,rl(a,[],n))}function qh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uj(e){const t=Vn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=Rr(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:s,c=kd(n)!==i||kd(s)!==o;return c&&(n=i,s=o),{width:n,height:s,$:c}}function Hh(e){return Bn(e)?e:e.contextElement}function gi(e){const t=Hh(e);if(!Rr(t))return rr(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:i}=uj(t);let o=(i?kd(n.width):n.width)/s,c=(i?kd(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const KR=rr(0);function fj(e){const t=un(e);return!Vh()||!t.visualViewport?KR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function QR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==un(e)?!1:t}function fa(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Hh(e);let o=rr(1);t&&(s?Bn(s)&&(o=gi(s)):o=gi(e));const c=QR(i,n,s)?fj(i):rr(0);let d=(a.left+c.x)/o.x,u=(a.top+c.y)/o.y,h=a.width/o.x,m=a.height/o.y;if(i){const y=un(i),v=s&&Bn(s)?un(s):s;let w=y,g=qh(w);for(;g&&s&&v!==w;){const j=gi(g),b=g.getBoundingClientRect(),p=Vn(g),x=b.left+(g.clientLeft+parseFloat(p.paddingLeft))*j.x,N=b.top+(g.clientTop+parseFloat(p.paddingTop))*j.y;d*=j.x,u*=j.y,h*=j.x,m*=j.y,d+=x,u+=N,w=un(g),g=qh(w)}}return Pd({width:h,height:m,x:d,y:u})}function Od(e,t){const n=Ad(e).scrollLeft;return t?t.left+n:fa(ar(e)).left+n}function mj(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Od(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function GR(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const i=a==="fixed",o=ar(s),c=t?Rd(t.floating):!1;if(s===o||c&&i)return n;let d={scrollLeft:0,scrollTop:0},u=rr(1);const h=rr(0),m=Rr(s);if((m||!m&&!i)&&((pi(s)!=="body"||nl(o))&&(d=Ad(s)),m)){const v=fa(s);u=gi(s),h.x=v.x+s.clientLeft,h.y=v.y+s.clientTop}const y=o&&!m&&!i?mj(o,d):rr(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 YR(e){return Array.from(e.getClientRects())}function XR(e){const t=ar(e),n=Ad(e),s=e.ownerDocument.body,a=dn(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=dn(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Od(e);const c=-n.scrollTop;return Vn(s).direction==="rtl"&&(o+=dn(t.clientWidth,s.clientWidth)-a),{width:a,height:i,x:o,y:c}}const hj=25;function ZR(e,t){const n=un(e),s=ar(e),a=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,c=0,d=0;if(a){i=a.width,o=a.height;const h=Vh();(!h||h&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}const u=Od(s);if(u<=0){const h=s.ownerDocument,m=h.body,y=getComputedStyle(m),v=h.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,w=Math.abs(s.clientWidth-m.clientWidth-v);w<=hj&&(i-=w)}else u<=hj&&(i+=u);return{width:i,height:o,x:c,y:d}}function JR(e,t){const n=fa(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,i=Rr(e)?gi(e):rr(1),o=e.clientWidth*i.x,c=e.clientHeight*i.y,d=a*i.x,u=s*i.y;return{width:o,height:c,x:d,y:u}}function pj(e,t,n){let s;if(t==="viewport")s=ZR(e,n);else if(t==="document")s=XR(ar(e));else if(Bn(t))s=JR(t,n);else{const a=fj(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Pd(s)}function xj(e,t){const n=js(e);return n===t||!Bn(n)||xi(n)?!1:Vn(n).position==="fixed"||xj(n,t)}function e4(e,t){const n=t.get(e);if(n)return n;let s=rl(e,[],!1).filter(c=>Bn(c)&&pi(c)!=="body"),a=null;const i=Vn(e).position==="fixed";let o=i?js(e):e;for(;Bn(o)&&!xi(o);){const c=Vn(o),d=Bh(o);!d&&c.position==="fixed"&&(a=null),(i?!d&&!a:!d&&c.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||nl(o)&&!d&&xj(e,o))?s=s.filter(h=>h!==o):a=c,o=js(o)}return t.set(e,s),s}function t4(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const o=[...n==="clippingAncestors"?Rd(t)?[]:e4(t,this._c):[].concat(n),s],c=pj(t,o[0],a);let d=c.top,u=c.right,h=c.bottom,m=c.left;for(let y=1;y<o.length;y++){const v=pj(t,o[y],a);d=dn(v.top,d),u=bs(v.right,u),h=bs(v.bottom,h),m=dn(v.left,m)}return{width:u-m,height:h-d,x:m,y:d}}function n4(e){const{width:t,height:n}=uj(e);return{width:t,height:n}}function r4(e,t,n){const s=Rr(t),a=ar(t),i=n==="fixed",o=fa(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const d=rr(0);function u(){d.x=Od(a)}if(s||!s&&!i)if((pi(t)!=="body"||nl(a))&&(c=Ad(t)),s){const v=fa(t,!0,i,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else a&&u();i&&!s&&a&&u();const h=a&&!s&&!i?mj(a,c):rr(0),m=o.left+c.scrollLeft-d.x-h.x,y=o.top+c.scrollTop-d.y-h.y;return{x:m,y,width:o.width,height:o.height}}function Wh(e){return Vn(e).position==="static"}function gj(e,t){if(!Rr(e)||Vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ar(e)===n&&(n=n.ownerDocument.body),n}function vj(e,t){const n=un(e);if(Rd(e))return n;if(!Rr(e)){let a=js(e);for(;a&&!xi(a);){if(Bn(a)&&!Wh(a))return a;a=js(a)}return n}let s=gj(e,t);for(;s&&VR(s)&&Wh(s);)s=gj(s,t);return s&&xi(s)&&Wh(s)&&!Bh(s)?n:s||WR(e)||n}const s4=async function(e){const t=this.getOffsetParent||vj,n=this.getDimensions,s=await n(e.floating);return{reference:r4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function a4(e){return Vn(e).direction==="rtl"}const i4={convertOffsetParentRelativeRectToViewportRelativeRect:GR,getDocumentElement:ar,getClippingRect:t4,getOffsetParent:vj,getElementRects:s4,getClientRects:YR,getDimensions:n4,getScale:gi,isElement:Bn,isRTL:a4};function yj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function o4(e,t){let n=null,s;const a=ar(e);function i(){var c;clearTimeout(s),(c=n)==null||c.disconnect(),n=null}function o(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();const u=e.getBoundingClientRect(),{left:h,top:m,width:y,height:v}=u;if(c||t(),!y||!v)return;const w=_d(m),g=_d(a.clientWidth-(h+y)),j=_d(a.clientHeight-(m+v)),b=_d(h),x={rootMargin:-w+"px "+-g+"px "+-j+"px "+-b+"px",threshold:dn(0,bs(1,d))||1};let N=!0;function S(k){const _=k[0].intersectionRatio;if(_!==d){if(!N)return o();_?o(!1,_):s=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!yj(u,e.getBoundingClientRect())&&o(),N=!1}try{n=new IntersectionObserver(S,{...x,root:a.ownerDocument})}catch(k){n=new IntersectionObserver(S,x)}n.observe(e)}return o(!0),i}function l4(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,u=Hh(e),h=a||i?[...u?rl(u):[],...t?rl(t):[]]:[];h.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const m=u&&c?o4(u,n):null;let y=-1,v=null;o&&(v=new ResizeObserver(b=>{let[p]=b;p&&p.target===u&&v&&t&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),u&&!d&&v.observe(u),t&&v.observe(t));let w,g=d?fa(e):null;d&&j();function j(){const b=fa(e);g&&!yj(g,b)&&n(),g=b,w=requestAnimationFrame(j)}return n(),()=>{var b;h.forEach(p=>{a&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),m==null||m(),(b=v)==null||b.disconnect(),v=null,d&&cancelAnimationFrame(w)}}const c4=$R,d4=zR,u4=DR,f4=BR,m4=FR,bj=MR,h4=UR,p4=(e,t,n)=>{const s=new Map,a={platform:i4,...n},i={...a.platform,_c:s};return IR(e,t,{...a,platform:i})};var x4=typeof document!="undefined",g4=function(){},Id=x4?f.useLayoutEffect:g4;function Md(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,a;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(!Md(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=n;s--!==0;){const i=a[s];if(!(i==="_owner"&&e.$$typeof)&&!Md(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function jj(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wj(e,t){const n=jj(e);return Math.round(t*n)/n}function Kh(e){const t=f.useRef(e);return Id(()=>{t.current=e}),t}function v4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:i,floating:o}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[h,m]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,v]=f.useState(s);Md(y,s)||v(s);const[w,g]=f.useState(null),[j,b]=f.useState(null),p=f.useCallback(A=>{A!==k.current&&(k.current=A,g(A))},[]),x=f.useCallback(A=>{A!==_.current&&(_.current=A,b(A))},[]),N=i||w,S=o||j,k=f.useRef(null),_=f.useRef(null),C=f.useRef(h),R=d!=null,T=Kh(d),O=Kh(a),M=Kh(u),B=f.useCallback(()=>{if(!k.current||!_.current)return;const A={placement:t,strategy:n,middleware:y};O.current&&(A.platform=O.current),p4(k.current,_.current,A).then(D=>{const W={...D,isPositioned:M.current!==!1};I.current&&!Md(C.current,W)&&(C.current=W,na.flushSync(()=>{m(W)}))})},[y,t,n,O,M]);Id(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,m(A=>({...A,isPositioned:!1})))},[u]);const I=f.useRef(!1);Id(()=>(I.current=!0,()=>{I.current=!1}),[]),Id(()=>{if(N&&(k.current=N),S&&(_.current=S),N&&S){if(T.current)return T.current(N,S,B);B()}},[N,S,B,T,R]);const ne=f.useMemo(()=>({reference:k,floating:_,setReference:p,setFloating:x}),[p,x]),F=f.useMemo(()=>({reference:N,floating:S}),[N,S]),te=f.useMemo(()=>{const A={position:n,left:0,top:0};if(!F.floating)return A;const D=wj(F.floating,h.x),W=wj(F.floating,h.y);return c?{...A,transform:"translate("+D+"px, "+W+"px)",...jj(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:W}},[n,c,F.floating,h.x,h.y]);return f.useMemo(()=>({...h,update:B,refs:ne,elements:F,floatingStyles:te}),[h,B,ne,F,te])}const y4=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:a}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?bj({element:s.current,padding:a}).fn(n):{}:s?bj({element:s,padding:a}).fn(n):{}}}},b4=(e,t)=>{const n=c4(e);return{name:n.name,fn:n.fn,options:[e,t]}},j4=(e,t)=>{const n=d4(e);return{name:n.name,fn:n.fn,options:[e,t]}},w4=(e,t)=>({fn:h4(e).fn,options:[e,t]}),N4=(e,t)=>{const n=u4(e);return{name:n.name,fn:n.fn,options:[e,t]}},S4=(e,t)=>{const n=f4(e);return{name:n.name,fn:n.fn,options:[e,t]}},C4=(e,t)=>{const n=m4(e);return{name:n.name,fn:n.fn,options:[e,t]}},k4=(e,t)=>{const n=y4(e);return{name:n.name,fn:n.fn,options:[e,t]}};var _4="Arrow",Nj=f.forwardRef((e,t)=>{const{children:n,width:s=10,height:a=5,...i}=e;return r.jsx(ve.svg,{...i,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nj.displayName=_4;var E4=Nj;function Dd(e){const[t,n]=f.useState(void 0);return jt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,c;if("borderBoxSize"in i){const d=i.borderBoxSize,u=Array.isArray(d)?d[0]:d;o=u.inlineSize,c=u.blockSize}else o=e.offsetWidth,c=e.offsetHeight;n({width:o,height:c})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Qh="Popper",[Sj,Fd]=zt(Qh),[P4,Cj]=Sj(Qh),kj=e=>{const{__scopePopper:t,children:n}=e,[s,a]=f.useState(null);return r.jsx(P4,{scope:t,anchor:s,onAnchorChange:a,children:n})};kj.displayName=Qh;var _j="PopperAnchor",Ej=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...a}=e,i=Cj(_j,n),o=f.useRef(null),c=Ie(t,o),d=f.useRef(null);return f.useEffect(()=>{const u=d.current;d.current=(s==null?void 0:s.current)||o.current,u!==d.current&&i.onAnchorChange(d.current)}),s?null:r.jsx(ve.div,{...a,ref:c})});Ej.displayName=_j;var Gh="PopperContent",[T4,R4]=Sj(Gh),Pj=f.forwardRef((e,t)=>{var se,De,P,z,Y,ae,_e,Fe;const{__scopePopper:n,side:s="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:v="optimized",onPlaced:w,...g}=e,j=Cj(Gh,n),[b,p]=f.useState(null),x=Ie(t,$=>p($)),[N,S]=f.useState(null),k=Dd(N),_=(se=k==null?void 0:k.width)!=null?se:0,C=(De=k==null?void 0:k.height)!=null?De:0,R=s+(i!=="center"?"-"+i:""),T=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},O=Array.isArray(u)?u:[u],M=O.length>0,B={padding:T,boundary:O.filter(O4),altBoundary:M},{refs:I,floatingStyles:ne,placement:F,isPositioned:te,middlewareData:A}=v4({strategy:"fixed",placement:R,whileElementsMounted:(...$)=>l4(...$,{animationFrame:v==="always"}),elements:{reference:j.anchor},middleware:[b4({mainAxis:a+C,alignmentAxis:o}),d&&j4({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?w4():void 0,...B}),d&&N4({...B}),S4({...B,apply:({elements:$,rects:Ce,availableWidth:Je,availableHeight:Vt})=>{const{width:q,height:Ue}=Ce.reference,We=$.floating.style;We.setProperty("--radix-popper-available-width",`${Je}px`),We.setProperty("--radix-popper-available-height",`${Vt}px`),We.setProperty("--radix-popper-anchor-width",`${q}px`),We.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),N&&k4({element:N,padding:c}),I4({arrowWidth:_,arrowHeight:C}),y&&C4({strategy:"referenceHidden",...B})]}),[D,W]=Aj(F),he=Cn(w);jt(()=>{te&&(he==null||he())},[te,he]);const me=(P=A.arrow)==null?void 0:P.x,je=(z=A.arrow)==null?void 0:z.y,Ne=((Y=A.arrow)==null?void 0:Y.centerOffset)!==0,[$e,Be]=f.useState();return jt(()=>{b&&Be(window.getComputedStyle(b).zIndex)},[b]),r.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:te?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(ae=A.transformOrigin)==null?void 0:ae.x,(_e=A.transformOrigin)==null?void 0:_e.y].join(" "),...((Fe=A.hide)==null?void 0:Fe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(T4,{scope:n,placedSide:D,onArrowChange:S,arrowX:me,arrowY:je,shouldHideArrow:Ne,children:r.jsx(ve.div,{"data-side":D,"data-align":W,...g,ref:x,style:{...g.style,animation:te?void 0:"none"}})})})});Pj.displayName=Gh;var Tj="PopperArrow",A4={top:"bottom",right:"left",bottom:"top",left:"right"},Rj=f.forwardRef(function(t,n){const{__scopePopper:s,...a}=t,i=R4(Tj,s),o=A4[i.placedSide];return r.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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(E4,{...a,ref:n,style:{...a.style,display:"block"}})})});Rj.displayName=Tj;function O4(e){return e!==null}var I4=e=>({name:"transformOrigin",options:e,fn(t){var j,b,p,x,N;const{placement:n,rects:s,middlewareData:a}=t,o=((j=a.arrow)==null?void 0:j.centerOffset)!==0,c=o?0:e.arrowWidth,d=o?0:e.arrowHeight,[u,h]=Aj(n),m={start:"0%",center:"50%",end:"100%"}[h],y=((p=(b=a.arrow)==null?void 0:b.x)!=null?p:0)+c/2,v=((N=(x=a.arrow)==null?void 0:x.y)!=null?N:0)+d/2;let w="",g="";return u==="bottom"?(w=o?m:`${y}px`,g=`${-d}px`):u==="top"?(w=o?m:`${y}px`,g=`${s.floating.height+d}px`):u==="right"?(w=`${-d}px`,g=o?m:`${v}px`):u==="left"&&(w=`${s.floating.width+d}px`,g=o?m:`${v}px`),{data:{x:w,y:g}}}});function Aj(e){const[t,n="center"]=e.split("-");return[t,n]}var Oj=kj,Ij=Ej,Mj=Pj,Dj=Rj,M4=Symbol("radix.slottable");function D4(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=M4,t}var[Ld]=zt("Tooltip",[Fd]),$d=Fd(),Fj="TooltipProvider",F4=700,Yh="tooltip.open",[L4,Xh]=Ld(Fj),Lj=e=>{const{__scopeTooltip:t,delayDuration:n=F4,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:i}=e,o=f.useRef(!0),c=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),r.jsx(L4,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(d.current),o.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>o.current=!0,s)},[s]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(u=>{c.current=u},[]),disableHoverableContent:a,children:i})};Lj.displayName=Fj;var sl="Tooltip",[$4,al]=Ld(sl),$j=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:c}=e,d=Xh(sl,e.__scopeTooltip),u=$d(t),[h,m]=f.useState(null),y=Un(),v=f.useRef(0),w=o!=null?o:d.disableHoverableContent,g=c!=null?c:d.delayDuration,j=f.useRef(!1),[b,p]=cn({prop:s,defaultProp:a!=null?a:!1,onChange:_=>{_?(d.onOpen(),document.dispatchEvent(new CustomEvent(Yh))):d.onClose(),i==null||i(_)},caller:sl}),x=f.useMemo(()=>b?j.current?"delayed-open":"instant-open":"closed",[b]),N=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j.current=!1,p(!0)},[p]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,p(!1)},[p]),k=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{j.current=!0,p(!0),v.current=0},g)},[g,p]);return f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),r.jsx(Oj,{...u,children:r.jsx($4,{scope:t,contentId:y,open:b,stateAttribute:x,trigger:h,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?k():N()},[d.isOpenDelayedRef,k,N]),onTriggerLeave:f.useCallback(()=>{w?S():(window.clearTimeout(v.current),v.current=0)},[S,w]),onOpen:N,onClose:S,disableHoverableContent:w,children:n})})};$j.displayName=sl;var Zh="TooltipTrigger",zj=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=al(Zh,n),i=Xh(Zh,n),o=$d(n),c=f.useRef(null),d=Ie(t,c,a.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(Ij,{asChild:!0,...o,children:r.jsx(ve.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:d,onPointerMove:pe(e.onPointerMove,y=>{y.pointerType!=="touch"&&!h.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),h.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:pe(e.onBlur,a.onClose),onClick:pe(e.onClick,a.onClose)})})});zj.displayName=Zh;var Jh="TooltipPortal",[z4,U4]=Ld(Jh,{forceMount:void 0}),Uj=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:a}=e,i=al(Jh,t);return r.jsx(z4,{scope:t,forceMount:n,children:r.jsx(Fn,{present:n||i.open,children:r.jsx(Wo,{asChild:!0,container:a,children:s})})})};Uj.displayName=Jh;var vi="TooltipContent",Bj=f.forwardRef((e,t)=>{const n=U4(vi,e.__scopeTooltip),{forceMount:s=n.forceMount,side:a="top",...i}=e,o=al(vi,e.__scopeTooltip);return r.jsx(Fn,{present:s||o.open,children:o.disableHoverableContent?r.jsx(Vj,{side:a,...i,ref:t}):r.jsx(B4,{side:a,...i,ref:t})})}),B4=f.forwardRef((e,t)=>{const n=al(vi,e.__scopeTooltip),s=Xh(vi,e.__scopeTooltip),a=f.useRef(null),i=Ie(t,a),[o,c]=f.useState(null),{trigger:d,onClose:u}=n,h=a.current,{onPointerInTransitChange:m}=s,y=f.useCallback(()=>{c(null),m(!1)},[m]),v=f.useCallback((w,g)=>{const j=w.currentTarget,b={x:w.clientX,y:w.clientY},p=K4(b,j.getBoundingClientRect()),x=Q4(b,p),N=G4(g.getBoundingClientRect()),S=X4([...x,...N]);c(S),m(!0)},[m]);return f.useEffect(()=>()=>y(),[y]),f.useEffect(()=>{if(d&&h){const w=j=>v(j,h),g=j=>v(j,d);return d.addEventListener("pointerleave",w),h.addEventListener("pointerleave",g),()=>{d.removeEventListener("pointerleave",w),h.removeEventListener("pointerleave",g)}}},[d,h,v,y]),f.useEffect(()=>{if(o){const w=g=>{const j=g.target,b={x:g.clientX,y:g.clientY},p=(d==null?void 0:d.contains(j))||(h==null?void 0:h.contains(j)),x=!Y4(b,o);p?y():x&&(y(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[d,h,o,u,y]),r.jsx(Vj,{...e,ref:i})}),[V4,q4]=Ld(sl,{isInside:!1}),H4=D4("TooltipContent"),Vj=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...c}=e,d=al(vi,n),u=$d(n),{onClose:h}=d;return f.useEffect(()=>(document.addEventListener(Yh,h),()=>document.removeEventListener(Yh,h)),[h]),f.useEffect(()=>{if(d.trigger){const m=y=>{const v=y.target;v!=null&&v.contains(d.trigger)&&h()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,h]),r.jsx(Ho,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:m=>m.preventDefault(),onDismiss:h,children:r.jsxs(Mj,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.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(H4,{children:s}),r.jsx(V4,{scope:n,isInside:!0,children:r.jsx(pP,{id:d.contentId,role:"tooltip",children:a||s})})]})})});Bj.displayName=vi;var qj="TooltipArrow",W4=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=$d(n);return q4(qj,n).isInside?null:r.jsx(Dj,{...a,...s,ref:t})});W4.displayName=qj;function K4(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,s,a,i)){case i:return"left";case a:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Q4(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 G4(e){const{top:t,right:n,bottom:s,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:s},{x:a,y:s}]}function Y4(e,t){const{x:n,y:s}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const c=t[i],d=t[o],u=c.x,h=c.y,m=d.x,y=d.y;h>s!=y>s&&n<(m-u)*(s-h)/(y-h)+u&&(a=!a)}return a}function X4(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),Z4(t)}function Z4(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const a=e[s];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const a=e[s];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}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 J4=Lj,eA=$j,tA=zj,nA=Uj,Hj=Bj;const Wj=J4,rA=eA,sA=tA,Kj=f.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(nA,{container:tl(),children:r.jsx(Hj,{ref:s,sideOffset:t,className:V("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})}));Kj.displayName=Hj.displayName;const Qj=f.createContext(void 0);function aA({children:e}){const t=ht(),n=!!t.isProInstalled,s=!!t.isProActive,a=n?s?"pro-active":"pro-no-license":"free";return r.jsx(Qj.Provider,{value:{isProInstalled:n,isProLicenseActive:s,proState:a},children:e})}function zd(){const e=f.useContext(Qj);if(!e)throw new Error("usePro must be used within ProProvider");return e}var iA=Symbol.for("react.lazy"),Ud=ql[" use ".trim().toString()];function oA(e){return typeof e=="object"&&e!==null&&"then"in e}function Gj(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===iA&&"_payload"in e&&oA(e._payload)}function ep(e){const t=lA(e),n=f.forwardRef((s,a)=>{let{children:i,...o}=s;Gj(i)&&typeof Ud=="function"&&(i=Ud(i._payload));const c=f.Children.toArray(i),d=c.find(dA);if(d){const u=d.props.children,h=c.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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var ma=ep("Slot");function lA(e){const t=f.forwardRef((n,s)=>{let{children:a,...i}=n;if(Gj(a)&&typeof Ud=="function"&&(a=Ud(a._payload)),f.isValidElement(a)){const o=fA(a),c=uA(i,a.props);return a.type!==f.Fragment&&(c.ref=s?oi(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cA=Symbol("radix.slottable");function dA(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cA}function uA(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function fA(e){var s,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const tp=768;function mA(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${tp-1}px)`),s=()=>{t(window.innerWidth<tp)};return n.addEventListener("change",s),t(window.innerWidth<tp),()=>n.removeEventListener("change",s)},[]),!!e}const np=li("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"}}),U=f.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...a},i)=>{const o=s?ma:"button";return r.jsx(o,{className:V(np({variant:t,size:n,className:e})),ref:i,...a})});U.displayName="Button";const Pe=f.forwardRef(({className:e,type:t,...n},s)=>r.jsx("input",{type:t,className:V("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 hA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pA=hA.reduce((e,t)=>{const n=ep(`Primitive.${t}`),s=f.forwardRef((a,i)=>{const{asChild:o,...c}=a,d=o?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),xA="Separator",Yj="horizontal",gA=["horizontal","vertical"],Xj=f.forwardRef((e,t)=>{const{decorative:n,orientation:s=Yj,...a}=e,i=vA(s)?s:Yj,c=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return r.jsx(pA.div,{"data-orientation":i,...c,...a,ref:t})});Xj.displayName=xA;function vA(e){return gA.includes(e)}var Zj=Xj;const yi=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...s},a)=>r.jsx(Zj,{ref:a,decorative:n,orientation:t,className:V("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));yi.displayName=Zj.displayName;var rp="focusScope.autoFocusOnMount",sp="focusScope.autoFocusOnUnmount",Jj={bubbles:!1,cancelable:!0},yA="FocusScope",ap=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[c,d]=f.useState(null),u=Cn(a),h=Cn(i),m=f.useRef(null),y=Ie(t,g=>d(g)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(s){let g=function(x){if(v.paused||!c)return;const N=x.target;c.contains(N)?m.current=N:ws(m.current,{select:!0})},j=function(x){if(v.paused||!c)return;const N=x.relatedTarget;N!==null&&(c.contains(N)||ws(m.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&ws(c)};document.addEventListener("focusin",g),document.addEventListener("focusout",j);const p=new MutationObserver(b);return c&&p.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",j),p.disconnect()}}},[s,c,v.paused]),f.useEffect(()=>{if(c){nw.add(v);const g=document.activeElement;if(!c.contains(g)){const b=new CustomEvent(rp,Jj);c.addEventListener(rp,u),c.dispatchEvent(b),b.defaultPrevented||(bA(CA(ew(c)),{select:!0}),document.activeElement===g&&ws(c))}return()=>{c.removeEventListener(rp,u),setTimeout(()=>{const b=new CustomEvent(sp,Jj);c.addEventListener(sp,h),c.dispatchEvent(b),b.defaultPrevented||ws(g!=null?g:document.body,{select:!0}),c.removeEventListener(sp,h),nw.remove(v)},0)}}},[c,u,h,v]);const w=f.useCallback(g=>{if(!n&&!s||v.paused)return;const j=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(j&&b){const p=g.currentTarget,[x,N]=jA(p);x&&N?!g.shiftKey&&b===N?(g.preventDefault(),n&&ws(x,{select:!0})):g.shiftKey&&b===x&&(g.preventDefault(),n&&ws(N,{select:!0})):b===p&&g.preventDefault()}},[n,s,v.paused]);return r.jsx(ve.div,{tabIndex:-1,...o,ref:y,onKeyDown:w})});ap.displayName=yA;function bA(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(ws(s,{select:t}),document.activeElement!==n)return}function jA(e){const t=ew(e),n=tw(t,e),s=tw(t.reverse(),e);return[n,s]}function ew(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tw(e,t){for(const n of e)if(!wA(n,{upTo:t}))return n}function wA(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 NA(e){return e instanceof HTMLInputElement&&"select"in e}function ws(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&NA(e)&&t&&e.select()}}var nw=SA();function SA(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=rw(e,t),e.unshift(t)},remove(t){var n;e=rw(e,t),(n=e[0])==null||n.resume()}}}function rw(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function CA(e){return e.filter(t=>t.tagName!=="A")}var ip=0;function sw(){f.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:aw()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:aw()),ip++,()=>{ip===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),ip--}},[])}function aw(){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 ir=function(){return ir=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ir.apply(this,arguments)};function iw(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 a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n}function kA(e,t,n){if(n||arguments.length===2)for(var s=0,a=t.length,i;s<a;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 Bd="right-scroll-bar-position",Vd="width-before-scroll-bar",_A="with-scroll-bars-hidden",EA="--removed-body-scroll-bar-size";function op(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PA(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var a=n.value;a!==s&&(n.value=s,n.callback(s,a))}}}})[0];return n.callback=t,n.facade}var TA=typeof window!="undefined"?f.useLayoutEffect:f.useEffect,ow=new WeakMap;function RA(e,t){var n=PA(null,function(s){return e.forEach(function(a){return op(a,s)})});return TA(function(){var s=ow.get(n);if(s){var a=new Set(s),i=new Set(e),o=n.current;a.forEach(function(c){i.has(c)||op(c,null)}),i.forEach(function(c){a.has(c)||op(c,o)})}ow.set(n,e)},[e]),n}function AA(e){return e}function OA(e,t){t===void 0&&(t=AA);var n=[],s=!1,a={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 o=t(i,s);return n.push(o),function(){n=n.filter(function(c){return c!==o})}},assignSyncMedium:function(i){for(s=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){s=!0;var o=[];if(n.length){var c=n;n=[],c.forEach(i),o=n}var d=function(){var h=o;o=[],h.forEach(i)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(h){o.push(h),u()},filter:function(h){return o=o.filter(h),n}}}};return a}function IA(e){e===void 0&&(e={});var t=OA(null);return t.options=ir({async:!0,ssr:!1},e),t}var lw=function(e){var t=e.sideCar,n=iw(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,ir({},n))};lw.isSideCarExport=!0;function MA(e,t){return e.useMedium(t),lw}var cw=IA(),lp=function(){},qd=f.forwardRef(function(e,t){var n=f.useRef(null),s=f.useState({onScrollCapture:lp,onWheelCapture:lp,onTouchMoveCapture:lp}),a=s[0],i=s[1],o=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,h=e.enabled,m=e.shards,y=e.sideCar,v=e.noRelative,w=e.noIsolation,g=e.inert,j=e.allowPinchZoom,b=e.as,p=b===void 0?"div":b,x=e.gapMode,N=iw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=y,k=RA([n,t]),_=ir(ir({},N),a);return f.createElement(f.Fragment,null,h&&f.createElement(S,{sideCar:cw,removeScrollBar:u,shards:m,noRelative:v,noIsolation:w,inert:g,setCallbacks:i,allowPinchZoom:!!j,lockRef:n,gapMode:x}),o?f.cloneElement(f.Children.only(c),ir(ir({},_),{ref:k})):f.createElement(p,ir({},_,{className:d,ref:k}),c))});qd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qd.classNames={fullWidth:Vd,zeroRight:Bd};var DA=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function FA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DA();return t&&e.setAttribute("nonce",t),e}function LA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $A(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=FA())&&(LA(t,n),$A(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},UA=function(){var e=zA();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},dw=function(){var e=UA(),t=function(n){var s=n.styles,a=n.dynamic;return e(s,a),null};return t},BA={left:0,top:0,right:0,gap:0},cp=function(e){return parseInt(e||"",10)||0},VA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[cp(n),cp(s),cp(a)]},qA=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return BA;var t=VA(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])}},HA=dw(),bi="data-scroll-locked",WA=function(e,t,n,s){var a=e.left,i=e.top,o=e.right,c=e.gap;return n===void 0&&(n="margin"),` | |
| 441 | + .`.concat(_A,` { | |
| 416 | 442 | overflow: hidden `).concat(s,`; |
| 417 | 443 | padding-right: `).concat(c,"px ").concat(s,`; |
| 418 | 444 | } |
| 419 | - body[`).concat(xa,`] { | |
| 445 | + body[`).concat(bi,`] { | |
| 420 | 446 | overflow: hidden `).concat(s,`; |
| 421 | 447 | overscroll-behavior: contain; |
| 422 | 448 | `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&` |
| 423 | - padding-left: `.concat(o,`px; | |
| 424 | - padding-top: `).concat(a,`px; | |
| 425 | - padding-right: `).concat(i,`px; | |
| 449 | + padding-left: `.concat(a,`px; | |
| 450 | + padding-top: `).concat(i,`px; | |
| 451 | + padding-right: `).concat(o,`px; | |
| 426 | 452 | margin-left:0; |
| 427 | 453 | margin-top:0; |
| 428 | 454 | margin-right: `).concat(c,"px ").concat(s,`; |
| 429 | 455 | `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(s,";")].filter(Boolean).join(""),` |
| @@ -428,46 +454,48 @@ | ||
| 428 | 454 | margin-right: `).concat(c,"px ").concat(s,`; |
| 429 | 455 | `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(s,";")].filter(Boolean).join(""),` |
| 430 | 456 | } |
| 431 | 457 | |
| 432 | - .`).concat(Pd,` { | |
| 458 | + .`).concat(Bd,` { | |
| 433 | 459 | right: `).concat(c,"px ").concat(s,`; |
| 434 | 460 | } |
| 435 | 461 | |
| 436 | - .`).concat(Td,` { | |
| 462 | + .`).concat(Vd,` { | |
| 437 | 463 | margin-right: `).concat(c,"px ").concat(s,`; |
| 438 | 464 | } |
| 439 | 465 | |
| 440 | - .`).concat(Pd," .").concat(Pd,` { | |
| 466 | + .`).concat(Bd," .").concat(Bd,` { | |
| 441 | 467 | right: 0 `).concat(s,`; |
| 442 | 468 | } |
| 443 | 469 | |
| 444 | - .`).concat(Td," .").concat(Td,` { | |
| 470 | + .`).concat(Vd," .").concat(Vd,` { | |
| 445 | 471 | margin-right: 0 `).concat(s,`; |
| 446 | 472 | } |
| 447 | 473 | |
| 448 | - body[`).concat(xa,`] { | |
| 449 | - `).concat(v4,": ").concat(c,`px; | |
| 474 | + body[`).concat(bi,`] { | |
| 475 | + `).concat(EA,": ").concat(c,`px; | |
| 450 | 476 | } |
| 451 | -`)},wj=function(){var e=parseInt(document.body.getAttribute(xa)||"0",10);return isFinite(e)?e:0},F4=function(){f.useEffect(function(){return document.body.setAttribute(xa,(wj()+1).toString()),function(){var e=wj()-1;e<=0?document.body.removeAttribute(xa):document.body.setAttribute(xa,e.toString())}},[])},L4=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,o=s===void 0?"margin":s;F4();var a=f.useMemo(function(){return I4(o)},[o]);return f.createElement(M4,{styles:D4(a,!t,o,n?"":"!important")})},Ih=!1;if(typeof window!="undefined")try{var Ad=Object.defineProperty({},"passive",{get:function(){return Ih=!0,!0}});window.addEventListener("test",Ad,Ad),window.removeEventListener("test",Ad,Ad)}catch(e){Ih=!1}var ga=Ih?{passive:!1}:!1,$4=function(e){return e.tagName==="TEXTAREA"},Nj=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$4(e)&&n[t]==="visible")},z4=function(e){return Nj(e,"overflowY")},U4=function(e){return Nj(e,"overflowX")},Sj=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot!="undefined"&&s instanceof ShadowRoot&&(s=s.host);var o=Cj(e,s);if(o){var a=kj(e,s),i=a[1],c=a[2];if(i>c)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},B4=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},V4=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},Cj=function(e,t){return e==="v"?z4(t):U4(t)},kj=function(e,t){return e==="v"?B4(t):V4(t)},H4=function(e,t){return e==="h"&&t==="rtl"?-1:1},W4=function(e,t,n,s,o){var a=H4(e,window.getComputedStyle(t).direction),i=a*s,c=n.target,d=t.contains(c),u=!1,h=i>0,m=0,v=0;do{if(!c)break;var g=kj(e,c),j=g[0],b=g[1],w=g[2],y=b-w-a*j;(j||y)&&Cj(e,c)&&(m+=y,v+=j);var p=c.parentNode;c=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(v)<1)&&(u=!0),u},Od=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_j=function(e){return[e.deltaX,e.deltaY]},Ej=function(e){return e&&"current"in e?e.current:e},q4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},K4=function(e){return` | |
| 477 | +`)},uw=function(){var e=parseInt(document.body.getAttribute(bi)||"0",10);return isFinite(e)?e:0},KA=function(){f.useEffect(function(){return document.body.setAttribute(bi,(uw()+1).toString()),function(){var e=uw()-1;e<=0?document.body.removeAttribute(bi):document.body.setAttribute(bi,e.toString())}},[])},QA=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;KA();var i=f.useMemo(function(){return qA(a)},[a]);return f.createElement(HA,{styles:WA(i,!t,a,n?"":"!important")})},dp=!1;if(typeof window!="undefined")try{var Hd=Object.defineProperty({},"passive",{get:function(){return dp=!0,!0}});window.addEventListener("test",Hd,Hd),window.removeEventListener("test",Hd,Hd)}catch(e){dp=!1}var ji=dp?{passive:!1}:!1,GA=function(e){return e.tagName==="TEXTAREA"},fw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!GA(e)&&n[t]==="visible")},YA=function(e){return fw(e,"overflowY")},XA=function(e){return fw(e,"overflowX")},mw=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot!="undefined"&&s instanceof ShadowRoot&&(s=s.host);var a=hw(e,s);if(a){var i=pw(e,s),o=i[1],c=i[2];if(o>c)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},ZA=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},JA=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},hw=function(e,t){return e==="v"?YA(t):XA(t)},pw=function(e,t){return e==="v"?ZA(t):JA(t)},e5=function(e,t){return e==="h"&&t==="rtl"?-1:1},t5=function(e,t,n,s,a){var i=e5(e,window.getComputedStyle(t).direction),o=i*s,c=n.target,d=t.contains(c),u=!1,h=o>0,m=0,y=0;do{if(!c)break;var v=pw(e,c),w=v[0],g=v[1],j=v[2],b=g-j-i*w;(w||b)&&hw(e,c)&&(m+=b,y+=w);var p=c.parentNode;c=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(y)<1)&&(u=!0),u},Wd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xw=function(e){return[e.deltaX,e.deltaY]},gw=function(e){return e&&"current"in e?e.current:e},n5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},r5=function(e){return` | |
| 452 | 478 | .block-interactivity-`.concat(e,` {pointer-events: none;} |
| 453 | 479 | .allow-interactivity-`).concat(e,` {pointer-events: all;} |
| 454 | -`)},Q4=0,va=[];function G4(e){var t=f.useRef([]),n=f.useRef([0,0]),s=f.useRef(),o=f.useState(Q4++)[0],a=f.useState(jj)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=x4([e.lockRef.current],(e.shards||[]).map(Ej),!0).filter(Boolean);return b.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(b,w){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!i.current.allowPinchZoom;var y=Od(b),p=n.current,x="deltaX"in b?b.deltaX:p[0]-y[0],N="deltaY"in b?b.deltaY:p[1]-y[1],S,k=b.target,E=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in b&&E==="h"&&k.type==="range")return!1;var C=window.getSelection(),R=C&&C.anchorNode,T=R?R===k||R.contains(k):!1;if(T)return!1;var A=Sj(E,k);if(!A)return!0;if(A?S=E:(S=E==="v"?"h":"v",A=Sj(E,k)),!A)return!1;if(!s.current&&"changedTouches"in b&&(x||N)&&(s.current=S),!S)return!0;var M=s.current||S;return W4(M,w,b,M==="h"?x:N)},[]),d=f.useCallback(function(b){var w=b;if(!(!va.length||va[va.length-1]!==a)){var y="deltaY"in w?_j(w):Od(w),p=t.current.filter(function(S){return S.name===w.type&&(S.target===w.target||w.target===S.shadowParent)&&q4(S.delta,y)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var x=(i.current.shards||[]).map(Ej).filter(Boolean).filter(function(S){return S.contains(w.target)}),N=x.length>0?c(w,x[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),u=f.useCallback(function(b,w,y,p){var x={name:b,delta:w,target:y,should:p,shadowParent:X4(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),h=f.useCallback(function(b){n.current=Od(b),s.current=void 0},[]),m=f.useCallback(function(b){u(b.type,_j(b),b.target,c(b,e.lockRef.current))},[]),v=f.useCallback(function(b){u(b.type,Od(b),b.target,c(b,e.lockRef.current))},[]);f.useEffect(function(){return va.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,ga),document.addEventListener("touchmove",d,ga),document.addEventListener("touchstart",h,ga),function(){va=va.filter(function(b){return b!==a}),document.removeEventListener("wheel",d,ga),document.removeEventListener("touchmove",d,ga),document.removeEventListener("touchstart",h,ga)}},[]);var g=e.removeScrollBar,j=e.inert;return f.createElement(f.Fragment,null,j?f.createElement(a,{styles:K4(o)}):null,g?f.createElement(L4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function X4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Y4=C4(bj,G4);var Mh=f.forwardRef(function(e,t){return f.createElement(Rd,Jn({},e,{ref:t,sideCar:Y4}))});Mh.classNames=Rd.classNames;var Z4=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ya=new WeakMap,Id=new WeakMap,Md={},Dh=0,Pj=function(e){return e&&(e.host||Pj(e.parentNode))},J4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Pj(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})},eA=function(e,t,n,s){var o=J4(t,Array.isArray(e)?e:[e]);Md[n]||(Md[n]=new WeakMap);var a=Md[n],i=[],c=new Set,d=new Set(o),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};o.forEach(u);var h=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(c.has(v))h(v);else try{var g=v.getAttribute(s),j=g!==null&&g!=="false",b=(ya.get(v)||0)+1,w=(a.get(v)||0)+1;ya.set(v,b),a.set(v,w),i.push(v),b===1&&j&&Id.set(v,!0),w===1&&v.setAttribute(n,"true"),j||v.setAttribute(s,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return h(t),c.clear(),Dh++,function(){i.forEach(function(m){var v=ya.get(m)-1,g=a.get(m)-1;ya.set(m,v),a.set(m,g),v||(Id.has(m)||m.removeAttribute(s),Id.delete(m)),g||m.removeAttribute(n)}),Dh--,Dh||(ya=new WeakMap,ya=new WeakMap,Id=new WeakMap,Md={})}},Tj=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=Z4(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),eA(s,o,n,"aria-hidden")):function(){return null}};function tA(e){const t=nA(e),n=f.forwardRef((s,o)=>{const{children:a,...i}=s,c=f.Children.toArray(a),d=c.find(sA);if(d){const u=d.props.children,h=c.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,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function nA(e){const t=f.forwardRef((n,s)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const i=aA(o),c=oA(a,o.props);return o.type!==f.Fragment&&(c.ref=s?sa(s,i):i),f.cloneElement(o,c)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rA=Symbol("radix.slottable");function sA(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rA}function oA(e,t){const n={...t};for(const s in t){const o=e[s],a=t[s];/^on[A-Z]/.test(s)?o&&a?n[s]=(...c)=>{const d=a(...c);return o(...c),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...a}:s==="className"&&(n[s]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function aA(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 Dd="Dialog",[Rj,Aj]=Xt(Dd),[iA,In]=Rj(Dd),Oj=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,c=f.useRef(null),d=f.useRef(null),[u,h]=xn({prop:s,defaultProp:o!=null?o:!1,onChange:a,caller:Dd});return r.jsx(iA,{scope:t,triggerRef:c,contentRef:d,contentId:Rn(),titleId:Rn(),descriptionId:Rn(),open:u,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(m=>!m),[h]),modal:i,children:n})};Oj.displayName=Dd;var Ij="DialogTrigger",Mj=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=In(Ij,n),a=De(t,o.triggerRef);return r.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$h(o.open),...s,ref:a,onClick:pe(e.onClick,o.onOpenToggle)})});Mj.displayName=Ij;var Fh="DialogPortal",[lA,Dj]=Rj(Fh,{forceMount:void 0}),Fj=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:o}=e,a=In(Fh,t);return r.jsx(lA,{scope:t,forceMount:n,children:f.Children.map(s,i=>r.jsx(Kn,{present:n||a.open,children:r.jsx($i,{asChild:!0,container:o,children:i})}))})};Fj.displayName=Fh;var Fd="DialogOverlay",Lj=f.forwardRef((e,t)=>{const n=Dj(Fd,e.__scopeDialog),{forceMount:s=n.forceMount,...o}=e,a=In(Fd,e.__scopeDialog);return a.modal?r.jsx(Kn,{present:s||a.open,children:r.jsx(dA,{...o,ref:t})}):null});Lj.displayName=Fd;var cA=tA("DialogOverlay.RemoveScroll"),dA=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=In(Fd,n);return r.jsx(Mh,{as:cA,allowPinchZoom:!0,shards:[o.contentRef],children:r.jsx(Se.div,{"data-state":$h(o.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),lo="DialogContent",$j=f.forwardRef((e,t)=>{const n=Dj(lo,e.__scopeDialog),{forceMount:s=n.forceMount,...o}=e,a=In(lo,e.__scopeDialog);return r.jsx(Kn,{present:s||a.open,children:a.modal?r.jsx(uA,{...o,ref:t}):r.jsx(fA,{...o,ref:t})})});$j.displayName=lo;var uA=f.forwardRef((e,t)=>{const n=In(lo,e.__scopeDialog),s=f.useRef(null),o=De(t,n.contentRef,s);return f.useEffect(()=>{const a=s.current;if(a)return Tj(a)},[]),r.jsx(zj,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&a.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,a=>a.preventDefault())})}),fA=f.forwardRef((e,t)=>{const n=In(lo,e.__scopeDialog),s=f.useRef(!1),o=f.useRef(!1);return r.jsx(zj,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(s.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(s.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),zj=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,c=In(lo,n),d=f.useRef(null),u=De(t,d);return pj(),r.jsxs(r.Fragment,{children:[r.jsx(Ph,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:a,children:r.jsx(Li,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":$h(c.open),...i,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(hA,{titleId:c.titleId}),r.jsx(xA,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Lh="DialogTitle",Uj=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=In(Lh,n);return r.jsx(Se.h2,{id:o.titleId,...s,ref:t})});Uj.displayName=Lh;var Bj="DialogDescription",Vj=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=In(Bj,n);return r.jsx(Se.p,{id:o.descriptionId,...s,ref:t})});Vj.displayName=Bj;var Hj="DialogClose",Wj=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,o=In(Hj,n);return r.jsx(Se.button,{type:"button",...s,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Wj.displayName=Hj;function $h(e){return e?"open":"closed"}var qj="DialogTitleWarning",[mA,Kj]=__(qj,{contentName:lo,titleName:Lh,docsSlug:"dialog"}),hA=({titleId:e})=>{const t=Kj(qj),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. | |
| 480 | +`)},s5=0,wi=[];function a5(e){var t=f.useRef([]),n=f.useRef([0,0]),s=f.useRef(),a=f.useState(s5++)[0],i=f.useState(dw)[0],o=f.useRef(e);f.useEffect(function(){o.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=kA([e.lockRef.current],(e.shards||[]).map(gw),!0).filter(Boolean);return g.forEach(function(j){return j.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(g,j){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var b=Wd(g),p=n.current,x="deltaX"in g?g.deltaX:p[0]-b[0],N="deltaY"in g?g.deltaY:p[1]-b[1],S,k=g.target,_=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in g&&_==="h"&&k.type==="range")return!1;var C=window.getSelection(),R=C&&C.anchorNode,T=R?R===k||R.contains(k):!1;if(T)return!1;var O=mw(_,k);if(!O)return!0;if(O?S=_:(S=_==="v"?"h":"v",O=mw(_,k)),!O)return!1;if(!s.current&&"changedTouches"in g&&(x||N)&&(s.current=S),!S)return!0;var M=s.current||S;return t5(M,j,g,M==="h"?x:N)},[]),d=f.useCallback(function(g){var j=g;if(!(!wi.length||wi[wi.length-1]!==i)){var b="deltaY"in j?xw(j):Wd(j),p=t.current.filter(function(S){return S.name===j.type&&(S.target===j.target||j.target===S.shadowParent)&&n5(S.delta,b)})[0];if(p&&p.should){j.cancelable&&j.preventDefault();return}if(!p){var x=(o.current.shards||[]).map(gw).filter(Boolean).filter(function(S){return S.contains(j.target)}),N=x.length>0?c(j,x[0]):!o.current.noIsolation;N&&j.cancelable&&j.preventDefault()}}},[]),u=f.useCallback(function(g,j,b,p){var x={name:g,delta:j,target:b,should:p,shadowParent:i5(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),h=f.useCallback(function(g){n.current=Wd(g),s.current=void 0},[]),m=f.useCallback(function(g){u(g.type,xw(g),g.target,c(g,e.lockRef.current))},[]),y=f.useCallback(function(g){u(g.type,Wd(g),g.target,c(g,e.lockRef.current))},[]);f.useEffect(function(){return wi.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",d,ji),document.addEventListener("touchmove",d,ji),document.addEventListener("touchstart",h,ji),function(){wi=wi.filter(function(g){return g!==i}),document.removeEventListener("wheel",d,ji),document.removeEventListener("touchmove",d,ji),document.removeEventListener("touchstart",h,ji)}},[]);var v=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(i,{styles:r5(a)}):null,v?f.createElement(QA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function i5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const o5=MA(cw,a5);var up=f.forwardRef(function(e,t){return f.createElement(qd,ir({},e,{ref:t,sideCar:o5}))});up.classNames=qd.classNames;var l5=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ni=new WeakMap,Kd=new WeakMap,Qd={},fp=0,vw=function(e){return e&&(e.host||vw(e.parentNode))},c5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=vw(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})},d5=function(e,t,n,s){var a=c5(t,Array.isArray(e)?e:[e]);Qd[n]||(Qd[n]=new WeakMap);var i=Qd[n],o=[],c=new Set,d=new Set(a),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};a.forEach(u);var h=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(y){if(c.has(y))h(y);else try{var v=y.getAttribute(s),w=v!==null&&v!=="false",g=(Ni.get(y)||0)+1,j=(i.get(y)||0)+1;Ni.set(y,g),i.set(y,j),o.push(y),g===1&&w&&Kd.set(y,!0),j===1&&y.setAttribute(n,"true"),w||y.setAttribute(s,"true")}catch(b){console.error("aria-hidden: cannot operate on ",y,b)}})};return h(t),c.clear(),fp++,function(){o.forEach(function(m){var y=Ni.get(m)-1,v=i.get(m)-1;Ni.set(m,y),i.set(m,v),y||(Kd.has(m)||m.removeAttribute(s),Kd.delete(m)),v||m.removeAttribute(n)}),fp--,fp||(Ni=new WeakMap,Ni=new WeakMap,Kd=new WeakMap,Qd={})}},yw=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=l5(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),d5(s,a,n,"aria-hidden")):function(){return null}};function u5(e){const t=f5(e),n=f.forwardRef((s,a)=>{const{children:i,...o}=s,c=f.Children.toArray(i),d=c.find(h5);if(d){const u=d.props.children,h=c.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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function f5(e){const t=f.forwardRef((n,s)=>{const{children:a,...i}=n;if(f.isValidElement(a)){const o=x5(a),c=p5(i,a.props);return a.type!==f.Fragment&&(c.ref=s?oi(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var m5=Symbol("radix.slottable");function h5(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===m5}function p5(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function x5(e){var s,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gd="Dialog",[bw,jw]=zt(Gd),[g5,qn]=bw(Gd),ww=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,c=f.useRef(null),d=f.useRef(null),[u,h]=cn({prop:s,defaultProp:a!=null?a:!1,onChange:i,caller:Gd});return r.jsx(g5,{scope:t,triggerRef:c,contentRef:d,contentId:Un(),titleId:Un(),descriptionId:Un(),open:u,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(m=>!m),[h]),modal:o,children:n})};ww.displayName=Gd;var Nw="DialogTrigger",Sw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=qn(Nw,n),i=Ie(t,a.triggerRef);return r.jsx(ve.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":pp(a.open),...s,ref:i,onClick:pe(e.onClick,a.onOpenToggle)})});Sw.displayName=Nw;var mp="DialogPortal",[v5,Cw]=bw(mp,{forceMount:void 0}),kw=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:a}=e,i=qn(mp,t);return r.jsx(v5,{scope:t,forceMount:n,children:f.Children.map(s,o=>r.jsx(Fn,{present:n||i.open,children:r.jsx(Wo,{asChild:!0,container:a,children:o})}))})};kw.displayName=mp;var Yd="DialogOverlay",_w=f.forwardRef((e,t)=>{const n=Cw(Yd,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,i=qn(Yd,e.__scopeDialog);return i.modal?r.jsx(Fn,{present:s||i.open,children:r.jsx(b5,{...a,ref:t})}):null});_w.displayName=Yd;var y5=u5("DialogOverlay.RemoveScroll"),b5=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=qn(Yd,n);return r.jsx(up,{as:y5,allowPinchZoom:!0,shards:[a.contentRef],children:r.jsx(ve.div,{"data-state":pp(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),ha="DialogContent",Ew=f.forwardRef((e,t)=>{const n=Cw(ha,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,i=qn(ha,e.__scopeDialog);return r.jsx(Fn,{present:s||i.open,children:i.modal?r.jsx(j5,{...a,ref:t}):r.jsx(w5,{...a,ref:t})})});Ew.displayName=ha;var j5=f.forwardRef((e,t)=>{const n=qn(ha,e.__scopeDialog),s=f.useRef(null),a=Ie(t,n.contentRef,s);return f.useEffect(()=>{const i=s.current;if(i)return yw(i)},[]),r.jsx(Pw,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,c=o.button===0&&o.ctrlKey===!0;(o.button===2||c)&&i.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault())})}),w5=f.forwardRef((e,t)=>{const n=qn(ha,e.__scopeDialog),s=f.useRef(!1),a=f.useRef(!1);return r.jsx(Pw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,c;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(c=n.triggerRef.current)==null||c.focus(),i.preventDefault()),s.current=!1,a.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"&&(a.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),Pw=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,c=qn(ha,n),d=f.useRef(null),u=Ie(t,d);return sw(),r.jsxs(r.Fragment,{children:[r.jsx(ap,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:i,children:r.jsx(Ho,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":pp(c.open),...o,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(S5,{titleId:c.titleId}),r.jsx(k5,{contentRef:d,descriptionId:c.descriptionId})]})]})}),hp="DialogTitle",Tw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=qn(hp,n);return r.jsx(ve.h2,{id:a.titleId,...s,ref:t})});Tw.displayName=hp;var Rw="DialogDescription",Aw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=qn(Rw,n);return r.jsx(ve.p,{id:a.descriptionId,...s,ref:t})});Aw.displayName=Rw;var Ow="DialogClose",Iw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=qn(Ow,n);return r.jsx(ve.button,{type:"button",...s,ref:t,onClick:pe(e.onClick,()=>a.onOpenChange(!1))})});Iw.displayName=Ow;function pp(e){return e?"open":"closed"}var Mw="DialogTitleWarning",[N5,Dw]=LE(Mw,{contentName:ha,titleName:hp,docsSlug:"dialog"}),S5=({titleId:e})=>{const t=Dw(Mw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. | |
| 455 | 481 | |
| 456 | 482 | If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. |
| 457 | 483 | |
| 458 | -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},pA="DialogDescriptionWarning",xA=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kj(pA).contentName}}.`;return f.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},zh=Oj,gA=Mj,Uh=Fj,Ji=Lj,el=$j,tl=Uj,nl=Vj,Ld=Wj;const vA=zh,Qj=({container:e,...t})=>r.jsx(Uh,{container:e!=null?e:qi(),...t});Qj.displayName="SheetPortal";const Gj=f.forwardRef(({className:e,...t},n)=>r.jsx(Ji,{className:Q("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}));Gj.displayName=Ji.displayName;const yA=oa("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"}}),Xj=f.forwardRef(({side:e="right",className:t,children:n,...s},o)=>r.jsxs(Qj,{children:[r.jsx(Gj,{}),r.jsxs(el,{ref:o,className:Q(yA({side:e}),t),...s,children:[n,r.jsxs(Ld,{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(md,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Xj.displayName=el.displayName;const bA=f.forwardRef(({className:e,...t},n)=>r.jsx(tl,{ref:n,className:Q("text-lg font-semibold text-foreground",e),...t}));bA.displayName=tl.displayName;const jA=f.forwardRef(({className:e,...t},n)=>r.jsx(nl,{ref:n,className:Q("text-sm text-muted-foreground",e),...t}));jA.displayName=nl.displayName;function oe({className:e,...t}){return r.jsx("div",{className:Q("animate-pulse rounded-md bg-muted",e),...t})}const wA="sidebar:state",NA=60*60*24*7,SA="16rem",CA="18rem",kA="3rem",_A="b",Yj=f.createContext(null);function rl(){const e=f.useContext(Yj);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Zj=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:s,style:o,children:a,...i},c)=>{const d=r4(),[u,h]=f.useState(!1),[m,v]=f.useState(e),g=t!=null?t:m,j=f.useCallback(p=>{const x=typeof p=="function"?p(g):p;n?n(x):v(x),document.cookie=`${wA}=${x}; path=/; max-age=${NA}`},[n,g]),b=f.useCallback(()=>d?h(p=>!p):j(p=>!p),[d,j,h]);f.useEffect(()=>{const p=x=>{x.key===_A&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),b())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[b]);const w=g?"expanded":"collapsed",y=f.useMemo(()=>({state:w,open:g,setOpen:j,isMobile:d,openMobile:u,setOpenMobile:h,toggleSidebar:b}),[w,g,j,d,u,h,b]);return r.jsx(Yj.Provider,{value:y,children:r.jsx(rj,{delayDuration:0,children:r.jsx("div",{style:{"--sidebar-width":SA,"--sidebar-width-icon":kA,...o},className:Q("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",s),ref:c,...i,children:a})})})});Zj.displayName="SidebarProvider";const Jj=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:s,children:o,...a},i)=>{const{isMobile:c,state:d,openMobile:u,setOpenMobile:h}=rl();return n==="none"?r.jsx("div",{className:Q("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",s),ref:i,...a,children:o}):c?r.jsx(vA,{open:u,onOpenChange:h,...a,children:r.jsx(Xj,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":CA},side:e,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):r.jsx("div",{ref:i,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:Q("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),...a,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})})})});Jj.displayName="Sidebar";const ew=f.forwardRef(({className:e,onClick:t,...n},s)=>{const{toggleSidebar:o}=rl();return r.jsxs(H,{ref:s,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:Q("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...n,children:[r.jsx(BE,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ew.displayName="SidebarTrigger";const EA=f.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:s}=rl();return r.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:Q("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})});EA.displayName="SidebarRail";const PA=f.forwardRef(({className:e,...t},n)=>r.jsx("main",{ref:n,className:Q("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}));PA.displayName="SidebarInset";const TA=f.forwardRef(({className:e,...t},n)=>r.jsx(Re,{ref:n,"data-sidebar":"input",className:Q("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));TA.displayName="SidebarInput";const tw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"header",className:Q("flex flex-col gap-2 p-2",e),...t}));tw.displayName="SidebarHeader";const nw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"footer",className:Q("flex flex-col gap-2 p-2",e),...t}));nw.displayName="SidebarFooter";const RA=f.forwardRef(({className:e,...t},n)=>r.jsx(Zi,{ref:n,"data-sidebar":"separator",className:Q("mx-2 w-auto bg-sidebar-border",e),...t}));RA.displayName="SidebarSeparator";const rw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"content",className:Q("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));rw.displayName="SidebarContent";const Bh=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group",className:Q("relative flex w-full min-w-0 flex-col p-2",e),...t}));Bh.displayName="SidebarGroup";const Vh=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const o=t?io:"div";return r.jsx(o,{ref:s,"data-sidebar":"group-label",className:Q("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})});Vh.displayName="SidebarGroupLabel";const AA=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const o=t?io:"button";return r.jsx(o,{ref:s,"data-sidebar":"group-action",className:Q("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})});AA.displayName="SidebarGroupAction";const Hh=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group-content",className:Q("w-full text-sm",e),...t}));Hh.displayName="SidebarGroupContent";const Wh=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu",className:Q("flex w-full min-w-0 flex-col gap-1",e),...t}));Wh.displayName="SidebarMenu";const sl=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,"data-sidebar":"menu-item",className:Q("group/menu-item relative",e),...t}));sl.displayName="SidebarMenuItem";const OA=oa("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"}}),ol=f.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:s="default",tooltip:o,className:a,...i},c)=>{const d=e?io:"button",{isMobile:u,state:h}=rl(),m=r.jsx(d,{ref:c,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:Q(OA({variant:n,size:s}),a),...i});return o?(typeof o=="string"&&(o={children:o}),r.jsxs(KR,{children:[r.jsx(QR,{asChild:!0,children:m}),r.jsx(sj,{side:"right",align:"center",hidden:h!=="collapsed"||u,...o})]})):m});ol.displayName="SidebarMenuButton";const IA=f.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...s},o)=>{const a=t?io:"button";return r.jsx(a,{ref:o,"data-sidebar":"menu-action",className:Q("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})});IA.displayName="SidebarMenuAction";const MA=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:Q("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}));MA.displayName="SidebarMenuBadge";const DA=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:Q("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}})]})});DA.displayName="SidebarMenuSkeleton";const FA=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:Q("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}));FA.displayName="SidebarMenuSub";const LA=f.forwardRef(({...e},t)=>r.jsx("li",{ref:t,...e}));LA.displayName="SidebarMenuSubItem";const $A=f.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:s,...o},a)=>{const i=e?io:"a";return r.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:Q("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})});$A.displayName="SidebarMenuSubButton";const al=f.forwardRef(({className:e,activeClassName:t,pendingClassName:n,to:s,...o},a)=>r.jsx(f_,{ref:a,to:s,className:({isActive:i,isPending:c})=>Q(e,i&&t,c&&n),...o}));al.displayName="NavLink";const zA=oa("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:Q(zA({variant:t}),e),...n})}const sw="double-opt-in",l=e=>Le.__(e,sw),ow=(e,t,n)=>Le._n(e,t,n,sw),le=(e,...t)=>Le.sprintf(e,...t),UA=[{title:l("Dashboard"),url:"/",icon:FE},{title:l("Opt-Ins"),url:"/optins",icon:Gn},{title:l("Forms"),url:"/forms",icon:ia},{title:l("Categories"),url:"/categories",icon:eh},{title:l("Settings"),url:"/settings",icon:Zm},{title:l("Database"),url:"/database",icon:Ui},{title:l("Audit Log"),url:"/audit",icon:fd}],BA=[],VA={BarChart3:_E,LogOut:Q0,UserPlus:Y0,Plug:Ym,Mail:Gn,FileText:ia,Tag:eh,Settings:Zm,Palette:G0,Database:Ui,ScrollText:fd,Boxes:aa},il={title:l("License"),url:"/license",icon:K0},ll={title:l("Addons"),url:"/addons",icon:aa};function HA(){var h;const{state:e}=rl(),t=e==="collapsed",n=cs(),{isProInstalled:s,isProLicenseActive:o}=Yi(),a=$t(),{data:i}=Ce({queryKey:["addons-manifest"],queryFn:()=>Z("/addons"),enabled:s}),d=[...((h=i==null?void 0:i.addons)!=null?h:[]).filter(m=>{var v;return m.available&&Array.isArray((v=m.ui)==null?void 0:v.sidebar)}).flatMap(m=>{var v;return((v=m.ui.sidebar)!=null?v:[]).map(g=>{var j;return{title:g.title,url:g.url,icon:(j=VA[g.icon])!=null?j:Ym}})}),...BA],u=m=>m==="/"?n.pathname==="/":n.pathname.startsWith(m);return r.jsxs(Jj,{collapsible:"icon",children:[r.jsx(tw,{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(Gn,{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",a.version]})]})]})}),r.jsxs(rw,{children:[r.jsxs(Bh,{children:[r.jsx(Vh,{children:l("Navigation")}),r.jsx(Hh,{children:r.jsx(Wh,{children:UA.map(m=>r.jsx(sl,{children:r.jsx(ol,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(al,{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(Bh,{children:[r.jsx(Vh,{children:l("Pro Features")}),r.jsx(Hh,{children:r.jsxs(Wh,{children:[d.map(m=>r.jsx(sl,{children:r.jsx(ol,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(al,{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:l("PRO")}),r.jsx(Nr,{className:"h-3 w-3 text-warning shrink-0"})]})]})]})})},m.title)),r.jsx(sl,{children:r.jsx(ol,{asChild:!0,isActive:u(il.url),tooltip:il.title,children:r.jsxs(al,{to:il.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(il.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:il.title})]})})}),r.jsx(sl,{children:r.jsx(ol,{asChild:!0,isActive:u(ll.url),tooltip:ll.title,children:r.jsxs(al,{to:ll.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(ll.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:ll.title})]})})})]})})]})]}),r.jsxs(nw,{children:[(a.supportUrl||a.feedbackUrl)&&r.jsxs("div",{className:"flex flex-col gap-1 px-2 pb-1",children:[a.supportUrl&&r.jsxs("a",{href:a.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(LE,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("Support")]}),a.feedbackUrl&&r.jsxs("a",{href:a.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(UE,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("Feedback")]})]}),r.jsx("div",{className:"px-2 py-1 text-[10px] text-muted-foreground text-center",children:!t&&l("Double Opt-In for WordPress")})]})]})}const aw=f.forwardRef(({...e},t)=>r.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));aw.displayName="Breadcrumb";const iw=f.forwardRef(({className:e,...t},n)=>r.jsx("ol",{ref:n,className:Q("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));iw.displayName="BreadcrumbList";const qh=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,className:Q("inline-flex items-center gap-1.5",e),...t}));qh.displayName="BreadcrumbItem";const lw=f.forwardRef(({asChild:e,className:t,...n},s)=>{const o=e?io:"a";return r.jsx(o,{ref:s,className:Q("transition-colors hover:text-foreground",t),...n})});lw.displayName="BreadcrumbLink";const cw=f.forwardRef(({className:e,...t},n)=>r.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:Q("font-normal text-foreground",e),...t}));cw.displayName="BreadcrumbPage";const dw=({children:e,className:t,...n})=>r.jsx("li",{role:"presentation","aria-hidden":"true",className:Q("[&>svg]:size-3.5",t),...n,children:e!=null?e:r.jsx(Qm,{})});dw.displayName="BreadcrumbSeparator";const WA={"/":l("Dashboard"),"/optins":l("Opt-Ins"),"/forms":l("Forms"),"/categories":l("Categories"),"/settings":l("Settings"),"/email-templates":l("Email Templates"),"/database":l("Database"),"/analytics":l("Analytics"),"/opt-out":l("Opt-Out"),"/user-creation":l("User Creation"),"/api":l("API"),"/audit":l("Audit Log"),"/license":l("License")};function qA(){const e=cs(),t=WA[e.pathname]||l("Page");return r.jsx(Zj,{children:r.jsxs("div",{className:"min-h-[calc(100vh-var(--wp-admin--admin-bar--height,32px))] flex w-full",children:[r.jsx(HA,{}),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(ew,{}),r.jsx(aw,{children:r.jsxs(iw,{children:[r.jsx(qh,{children:r.jsx(lw,{href:"#/",children:"Double Opt-In"})}),r.jsx(dw,{}),r.jsx(qh,{children:r.jsx(cw,{children:t})})]})})]}),r.jsx("main",{className:"flex-1 overflow-auto p-4 md:p-6",children:r.jsx(J2,{})})]})]})})}function co({children:e,addonId:t,featureName:n}){var w,y;const s=qn(),{data:o,isLoading:a}=Ce({queryKey:["addons-manifest"],queryFn:()=>Z("/addons")}),i=o==null?void 0:o.addons.find(p=>p.id===t),c=(i==null?void 0:i.available)===!0,{data:d}=Ce({queryKey:["addons-catalog"],queryFn:()=>Z("/addons/catalog"),enabled:!a&&!c});if(a)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(c)return r.jsx(r.Fragment,{children:e});const u=d==null?void 0:d.entries.find(p=>p.id===t),h=(w=u==null?void 0:u.status)!=null?w:"not_installed",m=(y=d==null?void 0:d.hasBundleLicense)!=null?y:!1;let v,g,j,b=aa;return h==="not_installed"?(v=le(l("%s requires the %s addon"),n,n),g=l("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."),j={label:l("Open Addons"),onClick:()=>s("/addons")},b=aa):h==="inactive"?(v=le(l("%s addon is installed but inactive"),n),g=l("Activate the addon to unlock this page. You can do that from the Addons page in one click."),j={label:l("Open Addons"),onClick:()=>s("/addons")},b=Vi):m?(v=le(l("%s addon is not available"),n),g=l("Check the Addons page for diagnostic details. A prerequisite (such as a third-party plugin) may be missing."),j={label:l("Open Addons"),onClick:()=>s("/addons")},b=aa):(v=le(l("%s is included in Pro"),n),g=l("This addon is part of the Double Opt-In Pro bundle. Activate your bundle license to unlock it — one key unlocks every included module."),j={label:l("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:v}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:g}),r.jsx(H,{onClick:j.onClick,className:"w-full",children:j.label})]})})}function er({id:e,data:t}){const n=f.useSyncExternalStore(i0,()=>l0(e),()=>[]);return n.length===0?null:r.jsx(r.Fragment,{children:n.map(({name:s,Component:o})=>r.jsx(KA,{name:s,mountId:e,children:r.jsx(o,{data:t})},s))})}class KA extends f.Component{constructor(){super(...arguments);za(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 ee=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:Q("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ee.displayName="Card";const ce=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:Q("flex flex-col space-y-1.5 p-6",e),...t}));ce.displayName="CardHeader";const ue=f.forwardRef(({className:e,...t},n)=>r.jsx("h3",{ref:n,className:Q("text-2xl font-semibold leading-none tracking-tight",e),...t}));ue.displayName="CardTitle";const Pe=f.forwardRef(({className:e,...t},n)=>r.jsx("p",{ref:n,className:Q("text-sm text-muted-foreground",e),...t}));Pe.displayName="CardDescription";const ne=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:Q("p-6 pt-0",e),...t}));ne.displayName="CardContent";const QA=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:Q("flex items-center p-6 pt-0",e),...t}));QA.displayName="CardFooter";const Jt=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:Q("w-full caption-bottom text-sm",e),...t})}));Jt.displayName="Table";const vn=f.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:Q("[&_tr]:border-b",e),...t}));vn.displayName="TableHeader";const en=f.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:Q("[&_tr:last-child]:border-0",e),...t}));en.displayName="TableBody";const GA=f.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:Q("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));GA.displayName="TableFooter";const Ie=f.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:Q("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Ie.displayName="TableRow";const Ee=f.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:Q("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ee.displayName="TableHead";const fe=f.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:Q("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));fe.displayName="TableCell";const XA=f.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:Q("mt-4 text-sm text-muted-foreground",e),...t}));XA.displayName="TableCaption";function YA(){return r.jsx(ee,{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 ZA({rows:e=3,cols:t=3}){return r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsx(Ie,{children:Array.from({length:t}).map((n,s)=>r.jsx(Ee,{children:r.jsx(oe,{className:"h-3 w-16"})},s))})}),r.jsx(en,{children:Array.from({length:e}).map((n,s)=>r.jsx(Ie,{children:Array.from({length:t}).map((o,a)=>r.jsx(fe,{children:r.jsx(oe,{className:"h-3 w-full"})},a))},s))})]})}function Kh(e){return e.toLocaleString()}function JA(){var c;const{data:e,isLoading:t}=Ce({queryKey:["dashboard-stats"],queryFn:()=>Z("/dashboard/stats")}),{data:n,isLoading:s}=Ce({queryKey:["dashboard-info"],queryFn:()=>Z("/dashboard/quick-info")}),o=e==null?void 0:e.data,a=n==null?void 0:n.data,i=o?[{label:l("Total Opt-Ins"),value:Kh(o.totalOptins),icon:Gn,change:o.confirmed+o.pending>0?l("Active"):l("No data")},{label:l("Confirmed"),value:Kh(o.confirmed),icon:ro,change:le(l("%s%% conversion"),o.conversionRate)},{label:l("Pending"),value:Kh(o.pending),icon:Qn,change:le(l("%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:l("Dashboard")}),r.jsx("p",{className:"text-muted-foreground",children:l("Overview of your Double Opt-In activity")})]}),r.jsx(er,{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(YA,{},u)):i.map(d=>r.jsx(ee,{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(QE,{className:"h-3 w-3 text-success"}),d.change]})]})]})},d.label))}),r.jsx(er,{id:"dashboard.widget"}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(ue,{className:"text-base",children:l("Recent Opt-Ins")}),r.jsx(hn,{to:"/optins",className:"text-xs text-primary hover:underline",children:l("View All")})]}),r.jsx(Pe,{children:l("Latest opt-in submissions")})]}),r.jsx(ne,{children:t?r.jsx(ZA,{rows:5,cols:4}):r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsxs(Ie,{children:[r.jsx(Ee,{children:l("Email")}),r.jsx(Ee,{children:l("Form")}),r.jsx(Ee,{children:l("Status")}),r.jsx(Ee,{className:"text-right",children:l("Date")})]})}),r.jsx(en,{children:((c=o==null?void 0:o.recentOptins)!=null?c:[]).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?l("Confirmed"):l("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(ee,{children:[r.jsx(ce,{className:"pb-3",children:r.jsx(ue,{className:"text-sm font-medium",children:l("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))}):a?r.jsx("dl",{className:"space-y-2 text-sm",children:[[l("Version"),a.version],[l("Token Expiry"),a.tokenExpiry],[l("Retention"),a.retention],[l("Rate Limit"),a.rateLimit],[l("License"),typeof a.licenseStatus=="object"&&a.licenseStatus!==null?a.licenseStatus.isActive?l("Pro Active"):l("Inactive"):a.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(ee,{children:[r.jsx(ce,{className:"pb-3",children:r.jsx(ue,{className:"text-sm font-medium",children:l("Quick Links")})}),r.jsx(ne,{children:r.jsx("ul",{className:"space-y-1.5 text-sm",children:[[l("All Opt-Ins"),"/optins"],[l("Form Settings"),"/forms"],[l("Global Settings"),"/settings"],[l("Analytics"),"/analytics"],[l("Database"),"/database"]].map(([d,u])=>r.jsx("li",{children:r.jsx(hn,{to:u,className:"text-primary hover:underline",children:d})},d))})})]})]})]})}function Qh(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 $d="Checkbox",[e5]=Xt($d),[t5,Gh]=e5($d);function n5(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:o,disabled:a,form:i,name:c,onCheckedChange:d,required:u,value:h="on",internal_do_not_use_render:m}=e,[v,g]=xn({prop:n,defaultProp:o!=null?o:!1,onChange:d,caller:$d}),[j,b]=f.useState(null),[w,y]=f.useState(null),p=f.useRef(!1),x=j?!!i||!!j.closest("form"):!0,N={checked:v,disabled:a,setChecked:g,control:j,setControl:b,name:c,form:i,value:h,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:ps(o)?!1:o,isFormControl:x,bubbleInput:w,setBubbleInput:y};return r.jsx(t5,{scope:t,...N,children:r5(m)?m(N):s})}var uw="CheckboxTrigger",fw=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},o)=>{const{control:a,value:i,disabled:c,checked:d,required:u,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:v,isFormControl:g,bubbleInput:j}=Gh(uw,e),b=De(o,h),w=f.useRef(d);return f.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const p=()=>m(w.current);return y.addEventListener("reset",p),()=>y.removeEventListener("reset",p)}},[a,m]),r.jsx(Se.button,{type:"button",role:"checkbox","aria-checked":ps(d)?"mixed":d,"aria-required":u,"data-state":gw(d),"data-disabled":c?"":void 0,disabled:c,value:i,...s,ref:b,onKeyDown:pe(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:pe(n,y=>{m(p=>ps(p)?!0:!p),j&&g&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})});fw.displayName=uw;var Xh=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:o,defaultChecked:a,required:i,disabled:c,value:d,onCheckedChange:u,form:h,...m}=e;return r.jsx(n5,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:c,required:i,onCheckedChange:u,name:s,form:h,value:d,internal_do_not_use_render:({isFormControl:v})=>r.jsxs(r.Fragment,{children:[r.jsx(fw,{...m,ref:t,__scopeCheckbox:n}),v&&r.jsx(xw,{__scopeCheckbox:n})]})})});Xh.displayName=$d;var mw="CheckboxIndicator",hw=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...o}=e,a=Gh(mw,n);return r.jsx(Kn,{present:s||ps(a.checked)||a.checked===!0,children:r.jsx(Se.span,{"data-state":gw(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});hw.displayName=mw;var pw="CheckboxBubbleInput",xw=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:c,disabled:d,name:u,value:h,form:m,bubbleInput:v,setBubbleInput:g}=Gh(pw,e),j=De(n,g),b=Qh(a),w=gh(s);f.useEffect(()=>{const p=v;if(!p)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,k=!o.current;if(b!==a&&S){const E=new Event("click",{bubbles:k});p.indeterminate=ps(a),S.call(p,ps(a)?!1:a),p.dispatchEvent(E)}},[v,b,a,o]);const y=f.useRef(ps(a)?!1:a);return r.jsx(Se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i!=null?i:y.current,required:c,disabled:d,name:u,value:h,form:m,...t,tabIndex:-1,ref:j,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});xw.displayName=pw;function r5(e){return typeof e=="function"}function ps(e){return e==="indeterminate"}function gw(e){return ps(e)?"indeterminate":e?"checked":"unchecked"}const cl=f.forwardRef(({className:e,...t},n)=>r.jsx(Xh,{ref:n,className:Q("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(hw,{className:Q("flex items-center justify-center text-current"),children:r.jsx(id,{className:"h-4 w-4"})})}));cl.displayName=Xh.displayName;function vw(e,[t,n]){return Math.min(n,Math.max(t,e))}var s5=f.createContext(void 0);function zd(e){const t=f.useContext(s5);return e||t||"ltr"}function o5(e){const t=a5(e),n=f.forwardRef((s,o)=>{const{children:a,...i}=s,c=f.Children.toArray(a),d=c.find(l5);if(d){const u=d.props.children,h=c.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,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function a5(e){const t=f.forwardRef((n,s)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const i=d5(o),c=c5(a,o.props);return o.type!==f.Fragment&&(c.ref=s?sa(s,i):i),f.cloneElement(o,c)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var i5=Symbol("radix.slottable");function l5(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===i5}function c5(e,t){const n={...t};for(const s in t){const o=e[s],a=t[s];/^on[A-Z]/.test(s)?o&&a?n[s]=(...c)=>{const d=a(...c);return o(...c),d}:o&&(n[s]=o):s==="style"?n[s]={...o,...a}:s==="className"&&(n[s]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function d5(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 u5=[" ","Enter","ArrowUp","ArrowDown"],f5=[" ","Enter"],uo="Select",[Ud,Bd,m5]=td(uo),[ba]=Xt(uo,[m5,Cd]),Vd=Cd(),[h5,xs]=ba(uo),[p5,x5]=ba(uo),yw=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:o,onOpenChange:a,value:i,defaultValue:c,onValueChange:d,dir:u,name:h,autoComplete:m,disabled:v,required:g,form:j}=e,b=Vd(t),[w,y]=f.useState(null),[p,x]=f.useState(null),[N,S]=f.useState(!1),k=zd(u),[E,C]=xn({prop:s,defaultProp:o!=null?o:!1,onChange:a,caller:uo}),[R,T]=xn({prop:i,defaultProp:c,onChange:d,caller:uo}),A=f.useRef(null),M=w?j||!!w.closest("form"):!0,[B,O]=f.useState(new Set),re=Array.from(B).map(D=>D.props.value).join(";");return r.jsx(Hb,{...b,children:r.jsxs(h5,{required:g,scope:t,trigger:w,onTriggerChange:y,valueNode:p,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Rn(),value:R,onValueChange:T,open:E,onOpenChange:C,dir:k,triggerPointerDownPosRef:A,disabled:v,children:[r.jsx(Ud.Provider,{scope:t,children:r.jsx(p5,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(D=>{O(te=>new Set(te).add(D))},[]),onNativeOptionRemove:f.useCallback(D=>{O(te=>{const I=new Set(te);return I.delete(D),I})},[]),children:n})}),M?r.jsxs(Vw,{"aria-hidden":!0,required:g,tabIndex:-1,name:h,autoComplete:m,value:R,onChange:D=>T(D.target.value),disabled:v,form:j,children:[R===void 0?r.jsx("option",{value:""}):null,Array.from(B)]},re):null]})})};yw.displayName=uo;var bw="SelectTrigger",jw=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...o}=e,a=Vd(n),i=xs(bw,n),c=i.disabled||s,d=De(t,i.onTriggerChange),u=Bd(n),h=f.useRef("touch"),[m,v,g]=Ww(b=>{const w=u().filter(x=>!x.disabled),y=w.find(x=>x.value===i.value),p=qw(w,b,y);p!==void 0&&i.onValueChange(p.value)}),j=b=>{c||(i.onOpenChange(!0),g()),b&&(i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return r.jsx(Wb,{asChild:!0,...a,children:r.jsx(Se.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Hw(i.value)?"":void 0,...o,ref:d,onClick:pe(o.onClick,b=>{b.currentTarget.focus(),h.current!=="mouse"&&j(b)}),onPointerDown:pe(o.onPointerDown,b=>{h.current=b.pointerType;const w=b.target;w.hasPointerCapture(b.pointerId)&&w.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(j(b),b.preventDefault())}),onKeyDown:pe(o.onKeyDown,b=>{const w=m.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&v(b.key),!(w&&b.key===" ")&&u5.includes(b.key)&&(j(),b.preventDefault())})})})});jw.displayName=bw;var ww="SelectValue",Nw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:o,children:a,placeholder:i="",...c}=e,d=xs(ww,n),{onValueNodeHasChildrenChange:u}=d,h=a!==void 0,m=De(t,d.onValueNodeChange);return ht(()=>{u(h)},[u,h]),r.jsx(Se.span,{...c,ref:m,style:{pointerEvents:"none"},children:Hw(d.value)?r.jsx(r.Fragment,{children:i}):a})});Nw.displayName=ww;var g5="SelectIcon",Sw=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...o}=e;return r.jsx(Se.span,{"aria-hidden":!0,...o,ref:t,children:s||"▼"})});Sw.displayName=g5;var v5="SelectPortal",Cw=e=>r.jsx($i,{asChild:!0,...e});Cw.displayName=v5;var fo="SelectContent",kw=f.forwardRef((e,t)=>{const n=xs(fo,e.__scopeSelect),[s,o]=f.useState();if(ht(()=>{o(new DocumentFragment)},[]),!n.open){const a=s;return a?Ys.createPortal(r.jsx(_w,{scope:e.__scopeSelect,children:r.jsx(Ud.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),a):null}return r.jsx(Ew,{...e,ref:t})});kw.displayName=fo;var Mn=10,[_w,gs]=ba(fo),y5="SelectContentImpl",b5=o5("SelectContent.RemoveScroll"),Ew=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:j,hideWhenDetached:b,avoidCollisions:w,...y}=e,p=xs(fo,n),[x,N]=f.useState(null),[S,k]=f.useState(null),E=De(t,G=>N(G)),[C,R]=f.useState(null),[T,A]=f.useState(null),M=Bd(n),[B,O]=f.useState(!1),re=f.useRef(!1);f.useEffect(()=>{if(x)return Tj(x)},[x]),pj();const D=f.useCallback(G=>{const[ge,...L]=M().map(he=>he.ref.current),[me]=L.slice(-1),U=document.activeElement;for(const he of G)if(he===U||(he==null||he.scrollIntoView({block:"nearest"}),he===ge&&S&&(S.scrollTop=0),he===me&&S&&(S.scrollTop=S.scrollHeight),he==null||he.focus(),document.activeElement!==U))return},[M,S]),te=f.useCallback(()=>D([C,x]),[D,C,x]);f.useEffect(()=>{B&&te()},[B,te]);const{onOpenChange:I,triggerPointerDownPosRef:F}=p;f.useEffect(()=>{if(x){let G={x:0,y:0};const ge=me=>{var U,he,Ae,He;G={x:Math.abs(Math.round(me.pageX)-((he=(U=F.current)==null?void 0:U.x)!=null?he:0)),y:Math.abs(Math.round(me.pageY)-((He=(Ae=F.current)==null?void 0:Ae.y)!=null?He:0))}},L=me=>{G.x<=10&&G.y<=10?me.preventDefault():x.contains(me.target)||I(!1),document.removeEventListener("pointermove",ge),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",L,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",L,{capture:!0})}}},[x,I,F]),f.useEffect(()=>{const G=()=>I(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[I]);const[J,xe]=Ww(G=>{const ge=M().filter(U=>!U.disabled),L=ge.find(U=>U.ref.current===document.activeElement),me=qw(ge,G,L);me&&setTimeout(()=>me.ref.current.focus())}),P=f.useCallback((G,ge,L)=>{const me=!re.current&&!L;(p.value!==void 0&&p.value===ge||me)&&(R(G),me&&(re.current=!0))},[p.value]),$=f.useCallback(()=>x==null?void 0:x.focus(),[x]),W=f.useCallback((G,ge,L)=>{const me=!re.current&&!L;(p.value!==void 0&&p.value===ge||me)&&A(G)},[p.value]),se=s==="popper"?Yh:Pw,Ne=se===Yh?{side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:j,hideWhenDetached:b,avoidCollisions:w}:{};return r.jsx(_w,{scope:n,content:x,viewport:S,onViewportChange:k,itemRefCallback:P,selectedItem:C,onItemLeave:$,itemTextRefCallback:W,focusSelectedItem:te,selectedItemText:T,position:s,isPositioned:B,searchRef:J,children:r.jsx(Mh,{as:b5,allowPinchZoom:!0,children:r.jsx(Ph,{asChild:!0,trapped:p.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:pe(o,G=>{var ge;(ge=p.trigger)==null||ge.focus({preventScroll:!0}),G.preventDefault()}),children:r.jsx(Li,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:r.jsx(se,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:G=>G.preventDefault(),...y,...Ne,onPlaced:()=>O(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:pe(y.onKeyDown,G=>{const ge=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ge&&G.key.length===1&&xe(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let me=M().filter(U=>!U.disabled).map(U=>U.ref.current);if(["ArrowUp","End"].includes(G.key)&&(me=me.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const U=G.target,he=me.indexOf(U);me=me.slice(he+1)}setTimeout(()=>D(me)),G.preventDefault()}})})})})})})});Ew.displayName=y5;var j5="SelectItemAlignedPosition",Pw=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...o}=e,a=xs(fo,n),i=gs(fo,n),[c,d]=f.useState(null),[u,h]=f.useState(null),m=De(t,E=>h(E)),v=Bd(n),g=f.useRef(!1),j=f.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:y,focusSelectedItem:p}=i,x=f.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&u&&b&&w&&y){const E=a.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),R=a.valueNode.getBoundingClientRect(),T=y.getBoundingClientRect();if(a.dir!=="rtl"){const U=T.left-C.left,he=R.left-U,Ae=E.left-he,He=E.width+Ae,ut=Math.max(He,C.width),_t=window.innerWidth-Mn,cr=vw(he,[Mn,Math.max(Mn,_t-ut)]);c.style.minWidth=He+"px",c.style.left=cr+"px"}else{const U=C.right-T.right,he=window.innerWidth-R.right-U,Ae=window.innerWidth-E.right-he,He=E.width+Ae,ut=Math.max(He,C.width),_t=window.innerWidth-Mn,cr=vw(he,[Mn,Math.max(Mn,_t-ut)]);c.style.minWidth=He+"px",c.style.right=cr+"px"}const A=v(),M=window.innerHeight-Mn*2,B=b.scrollHeight,O=window.getComputedStyle(u),re=parseInt(O.borderTopWidth,10),D=parseInt(O.paddingTop,10),te=parseInt(O.borderBottomWidth,10),I=parseInt(O.paddingBottom,10),F=re+D+B+I+te,J=Math.min(w.offsetHeight*5,F),xe=window.getComputedStyle(b),P=parseInt(xe.paddingTop,10),$=parseInt(xe.paddingBottom,10),W=E.top+E.height/2-Mn,se=M-W,Ne=w.offsetHeight/2,G=w.offsetTop+Ne,ge=re+D+G,L=F-ge;if(ge<=W){const U=A.length>0&&w===A[A.length-1].ref.current;c.style.bottom="0px";const he=u.clientHeight-b.offsetTop-b.offsetHeight,Ae=Math.max(se,Ne+(U?$:0)+he+te),He=ge+Ae;c.style.height=He+"px"}else{const U=A.length>0&&w===A[0].ref.current;c.style.top="0px";const Ae=Math.max(W,re+b.offsetTop+(U?P:0)+Ne)+L;c.style.height=Ae+"px",b.scrollTop=ge-W+b.offsetTop}c.style.margin=`${Mn}px 0`,c.style.minHeight=J+"px",c.style.maxHeight=M+"px",s==null||s(),requestAnimationFrame(()=>g.current=!0)}},[v,a.trigger,a.valueNode,c,u,b,w,y,a.dir,s]);ht(()=>x(),[x]);const[N,S]=f.useState();ht(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const k=f.useCallback(E=>{E&&j.current===!0&&(x(),p==null||p(),j.current=!1)},[x,p]);return r.jsx(N5,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:k,children:r.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:r.jsx(Se.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Pw.displayName=j5;var w5="SelectPopperPosition",Yh=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:o=Mn,...a}=e,i=Vd(n);return r.jsx(qb,{...i,...a,ref:t,align:s,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});Yh.displayName=w5;var[N5,Zh]=ba(fo,{}),Jh="SelectViewport",Tw=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...o}=e,a=gs(Jh,n),i=Zh(Jh,n),c=De(t,a.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(Ud.Slot,{scope:n,children:r.jsx(Se.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:pe(o.onScroll,u=>{const h=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=i;if(v!=null&&v.current&&m){const g=Math.abs(d.current-h.scrollTop);if(g>0){const j=window.innerHeight-Mn*2,b=parseFloat(m.style.minHeight),w=parseFloat(m.style.height),y=Math.max(b,w);if(y<j){const p=y+g,x=Math.min(j,p),N=p-x;m.style.height=x+"px",m.style.bottom==="0px"&&(h.scrollTop=N>0?N:0,m.style.justifyContent="flex-end")}}}d.current=h.scrollTop})})})]})});Tw.displayName=Jh;var Rw="SelectGroup",[S5,C5]=ba(Rw),k5=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=Rn();return r.jsx(S5,{scope:n,id:o,children:r.jsx(Se.div,{role:"group","aria-labelledby":o,...s,ref:t})})});k5.displayName=Rw;var Aw="SelectLabel",Ow=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=C5(Aw,n);return r.jsx(Se.div,{id:o.id,...s,ref:t})});Ow.displayName=Aw;var Hd="SelectItem",[_5,Iw]=ba(Hd),Mw=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:o=!1,textValue:a,...i}=e,c=xs(Hd,n),d=gs(Hd,n),u=c.value===s,[h,m]=f.useState(a!=null?a:""),[v,g]=f.useState(!1),j=De(t,p=>{var x;return(x=d.itemRefCallback)==null?void 0:x.call(d,p,s,o)}),b=Rn(),w=f.useRef("touch"),y=()=>{o||(c.onValueChange(s),c.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(_5,{scope:n,value:s,disabled:o,textId:b,isSelected:u,onItemTextChange:f.useCallback(p=>{m(x=>{var N;return x||((N=p==null?void 0:p.textContent)!=null?N:"").trim()})},[]),children:r.jsx(Ud.ItemSlot,{scope:n,value:s,disabled:o,textValue:h,children:r.jsx(Se.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:j,onFocus:pe(i.onFocus,()=>g(!0)),onBlur:pe(i.onBlur,()=>g(!1)),onClick:pe(i.onClick,()=>{w.current!=="mouse"&&y()}),onPointerUp:pe(i.onPointerUp,()=>{w.current==="mouse"&&y()}),onPointerDown:pe(i.onPointerDown,p=>{w.current=p.pointerType}),onPointerMove:pe(i.onPointerMove,p=>{var x;w.current=p.pointerType,o?(x=d.onItemLeave)==null||x.call(d):w.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(i.onPointerLeave,p=>{var x;p.currentTarget===document.activeElement&&((x=d.onItemLeave)==null||x.call(d))}),onKeyDown:pe(i.onKeyDown,p=>{var N;((N=d.searchRef)==null?void 0:N.current)!==""&&p.key===" "||(f5.includes(p.key)&&y(),p.key===" "&&p.preventDefault())})})})})});Mw.displayName=Hd;var dl="SelectItemText",Dw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:o,...a}=e,i=xs(dl,n),c=gs(dl,n),d=Iw(dl,n),u=x5(dl,n),[h,m]=f.useState(null),v=De(t,y=>m(y),d.onItemTextChange,y=>{var p;return(p=c.itemTextRefCallback)==null?void 0:p.call(c,y,d.value,d.disabled)}),g=h==null?void 0:h.textContent,j=f.useMemo(()=>r.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=u;return ht(()=>(b(j),()=>w(j)),[b,w,j]),r.jsxs(r.Fragment,{children:[r.jsx(Se.span,{id:d.textId,...a,ref:v}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Ys.createPortal(a.children,i.valueNode):null]})});Dw.displayName=dl;var Fw="SelectItemIndicator",Lw=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return Iw(Fw,n).isSelected?r.jsx(Se.span,{"aria-hidden":!0,...s,ref:t}):null});Lw.displayName=Fw;var ep="SelectScrollUpButton",$w=f.forwardRef((e,t)=>{const n=gs(ep,e.__scopeSelect),s=Zh(ep,e.__scopeSelect),[o,a]=f.useState(!1),i=De(t,s.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;a(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?r.jsx(Uw,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});$w.displayName=ep;var tp="SelectScrollDownButton",zw=f.forwardRef((e,t)=>{const n=gs(tp,e.__scopeSelect),s=Zh(tp,e.__scopeSelect),[o,a]=f.useState(!1),i=De(t,s.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,h=Math.ceil(d.scrollTop)<u;a(h)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?r.jsx(Uw,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});zw.displayName=tp;var Uw=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...o}=e,a=gs("SelectScrollButton",n),i=f.useRef(null),c=Bd(n),d=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>d(),[d]),ht(()=>{var h;const u=c().find(m=>m.ref.current===document.activeElement);(h=u==null?void 0:u.ref.current)==null||h.scrollIntoView({block:"nearest"})},[c]),r.jsx(Se.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:pe(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(s,50))}),onPointerMove:pe(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),i.current===null&&(i.current=window.setInterval(s,50))}),onPointerLeave:pe(o.onPointerLeave,()=>{d()})})}),E5="SelectSeparator",Bw=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return r.jsx(Se.div,{"aria-hidden":!0,...s,ref:t})});Bw.displayName=E5;var np="SelectArrow",P5=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,o=Vd(n),a=xs(np,n),i=gs(np,n);return a.open&&i.position==="popper"?r.jsx(Kb,{...o,...s,ref:t}):null});P5.displayName=np;var T5="SelectBubbleInput",Vw=f.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const o=f.useRef(null),a=De(s,o),i=Qh(t);return f.useEffect(()=>{const c=o.current;if(!c)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&h){const m=new Event("change",{bubbles:!0});h.call(c,t),c.dispatchEvent(m)}},[i,t]),r.jsx(Se.select,{...n,style:{...v0,...n.style},ref:a,defaultValue:t})});Vw.displayName=T5;function Hw(e){return e===""||e===void 0}function Ww(e){const t=pn(e),n=f.useRef(""),s=f.useRef(0),o=f.useCallback(i=>{const c=n.current+i;t(c),function d(u){n.current=u,window.clearTimeout(s.current),u!==""&&(s.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),a=f.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,o,a]}function qw(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=R5(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const d=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function R5(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var A5=yw,Kw=jw,O5=Nw,I5=Sw,M5=Cw,Qw=kw,D5=Tw,Gw=Ow,Xw=Mw,F5=Dw,L5=Lw,Yw=$w,Zw=zw,Jw=Bw;const je=A5,we=O5,ve=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(Kw,{ref:s,className:Q("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(I5,{asChild:!0,children:r.jsx(no,{className:"h-4 w-4 opacity-50"})})]}));ve.displayName=Kw.displayName;const e1=f.forwardRef(({className:e,...t},n)=>r.jsx(Yw,{ref:n,className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(EE,{className:"h-4 w-4"})}));e1.displayName=Yw.displayName;const t1=f.forwardRef(({className:e,...t},n)=>r.jsx(Zw,{ref:n,className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(no,{className:"h-4 w-4"})}));t1.displayName=Zw.displayName;const ye=f.forwardRef(({className:e,children:t,position:n="popper",...s},o)=>r.jsx(M5,{container:qi(),children:r.jsxs(Qw,{ref:o,className:Q("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(e1,{}),r.jsx(D5,{className:Q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(t1,{})]})}));ye.displayName=Qw.displayName;const $5=f.forwardRef(({className:e,...t},n)=>r.jsx(Gw,{ref:n,className:Q("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));$5.displayName=Gw.displayName;const z=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(Xw,{ref:s,className:Q("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(L5,{children:r.jsx(id,{className:"h-4 w-4"})})}),r.jsx(F5,{children:t})]}));z.displayName=Xw.displayName;const z5=f.forwardRef(({className:e,...t},n)=>r.jsx(Jw,{ref:n,className:Q("-mx-1 my-1 h-px bg-muted",e),...t}));z5.displayName=Jw.displayName;const Er=zh,n1=({container:e,...t})=>r.jsx(Uh,{container:e!=null?e:qi(),...t});n1.displayName="DialogPortal";const r1=f.forwardRef(({className:e,...t},n)=>r.jsx(Ji,{ref:n,className:Q("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}));r1.displayName=Ji.displayName;const tr=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(n1,{children:[r.jsx(r1,{}),r.jsxs(el,{ref:s,className:Q("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(Ld,{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(md,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));tr.displayName=el.displayName;const nr=({className:e,...t})=>r.jsx("div",{className:Q("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});nr.displayName="DialogHeader";const vs=({className:e,...t})=>r.jsx("div",{className:Q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});vs.displayName="DialogFooter";const rr=f.forwardRef(({className:e,...t},n)=>r.jsx(tl,{ref:n,className:Q("text-lg font-semibold leading-none tracking-tight",e),...t}));rr.displayName=tl.displayName;const sr=f.forwardRef(({className:e,...t},n)=>r.jsx(nl,{ref:n,className:Q("text-sm text-muted-foreground",e),...t}));sr.displayName=nl.displayName;var Wd="Collapsible",[U5,s1]=Xt(Wd),[B5,rp]=U5(Wd),o1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:o,disabled:a,onOpenChange:i,...c}=e,[d,u]=xn({prop:s,defaultProp:o!=null?o:!1,onChange:i,caller:Wd});return r.jsx(B5,{scope:n,disabled:a,contentId:Rn(),open:d,onOpenToggle:f.useCallback(()=>u(h=>!h),[u]),children:r.jsx(Se.div,{"data-state":ip(d),"data-disabled":a?"":void 0,...c,ref:t})})});o1.displayName=Wd;var a1="CollapsibleTrigger",sp=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,o=rp(a1,n);return r.jsx(Se.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ip(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...s,ref:t,onClick:pe(e.onClick,o.onOpenToggle)})});sp.displayName=a1;var op="CollapsibleContent",ap=f.forwardRef((e,t)=>{const{forceMount:n,...s}=e,o=rp(op,e.__scopeCollapsible);return r.jsx(Kn,{present:n||o.open,children:({present:a})=>r.jsx(V5,{...s,ref:t,present:a})})});ap.displayName=op;var V5=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:o,...a}=e,i=rp(op,n),[c,d]=f.useState(s),u=f.useRef(null),h=De(t,u),m=f.useRef(0),v=m.current,g=f.useRef(0),j=g.current,b=i.open||c,w=f.useRef(b),y=f.useRef(void 0);return f.useEffect(()=>{const p=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(p)},[]),ht(()=>{const p=u.current;if(p){y.current=y.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const x=p.getBoundingClientRect();m.current=x.height,g.current=x.width,w.current||(p.style.transitionDuration=y.current.transitionDuration,p.style.animationName=y.current.animationName),d(s)}},[i.open,s]),r.jsx(Se.div,{"data-state":ip(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b,...a,ref:h,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style},children:b&&o})});function ip(e){return e?"open":"closed"}var i1=o1,H5=sp,W5=ap;const ul=i1,fl=sp,ml=ap;function q5(){return r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsx(Ie,{children:Array.from({length:7}).map((e,t)=>r.jsx(Ee,{children:r.jsx(oe,{className:"h-3 w-12"})},t))})}),r.jsx(en,{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 K5({detail:e,loading:t,open:n,onClose:s,onResend:o,resending:a,onDelete:i}){const[c,d]=f.useState(!1);return r.jsx(Er,{open:n,onOpenChange:()=>s(),children:r.jsx(tr,{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(nr,{className:"space-y-1",children:[r.jsx(rr,{className:"text-base font-semibold tracking-tight",children:l("Opt-In Detail")}),r.jsx(sr,{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(ro,{className:"h-3 w-3 mr-1"}),l("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(Qn,{className:"h-3 w-3 mr-1"}),l("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(hl,{label:l("Email"),value:e.email,fullWidth:!0}),r.jsx(hl,{label:l("Form"),value:e.formName||`#${e.formId}`}),r.jsx(hl,{label:l("Category"),value:e.category?String(e.category):"—"}),r.jsx(hl,{label:l("Created"),value:e.createtime}),r.jsx(hl,{label:l("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(IE,{className:"h-3 w-3"}),l("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:[l("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:[l("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:[l("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:[l("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:[l("Reminder sent:")," "]}),r.jsx("span",{children:e.reminderSentAt})]})]}),e.formData&&Object.keys(e.formData).length>0&&r.jsxs(ul,{open:c,onOpenChange:d,children:[r.jsxs(fl,{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(ia,{className:"h-3 w-3"}),le(l("Form Data (%s fields)"),Object.keys(e.formData).length)]}),r.jsx(no,{className:`h-3 w-3 transition-transform duration-200 ${c?"rotate-180":""}`})]}),r.jsx(ml,{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"}),l("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:a,onClick:()=>o(e.id),children:[r.jsx(Gn,{className:"h-3.5 w-3.5 mr-1.5"}),l(a?"Sending...":"Resend Email")]}),r.jsxs(H,{variant:"outline",size:"sm",className:"rounded-lg text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>i(e.id),children:[r.jsx(gn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Delete")]})]})]}):null})})}function hl({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 Q5(){var G,ge,L,me;const e=Xe(),t=qn(),[n,s]=f.useState(1),[o]=f.useState(20),[a,i]=f.useState(""),[c,d]=f.useState(""),[u,h]=f.useState("all"),[m,v]=f.useState("all"),[g,j]=f.useState("all"),[b,w]=f.useState(null),[y,p]=f.useState(null),[x,N]=f.useState(new Set),{data:S,isLoading:k}=Ce({queryKey:["optins",n,o,a,u,m,g],queryFn:()=>{const U=new URLSearchParams({page:String(n),per_page:String(o)});return a&&U.set("search",a),u!=="all"&&U.set("category",u),m!=="all"&&U.set("status",m),g!=="all"&&U.set("follow_up",g),Z(`/optins?${U.toString()}`)}}),{data:E}=Ce({queryKey:["categories"],queryFn:()=>Z("/categories")}),{data:C,isLoading:R}=Ce({queryKey:["optin",b],queryFn:()=>Z(`/optins/${b}`),enabled:!!b}),T=Te({mutationFn:U=>Z(`/optins/${U}`,{method:"DELETE"}),onSuccess:()=>{q.success(l("Opt-in deleted successfully")),e.invalidateQueries({queryKey:["optins"]}),p(null),b===y&&w(null),N(U=>{const he=new Set(U);return y!==null&&he.delete(y),he})},onError:U=>{q.error(U.message||l("Failed to delete opt-in"))}}),A=Te({mutationFn:async U=>{const Ae=(await Promise.allSettled(U.map(He=>Z(`/optins/${He}`,{method:"DELETE"})))).filter(He=>He.status==="rejected").length;if(Ae>0)throw new Error(le(l("Failed to delete %1$s of %2$s items"),Ae,U.length))},onSuccess:()=>{q.success(le(l("%s opt-in(s) deleted"),x.size)),e.invalidateQueries({queryKey:["optins"]}),N(new Set),w(null)},onError:U=>{q.error(U.message||l("Bulk delete failed")),e.invalidateQueries({queryKey:["optins"]})}}),M=Te({mutationFn:U=>Z(`/optins/${U}/resend`,{method:"POST"}),onSuccess:()=>{q.success(l("Confirmation email resent"))},onError:U=>{q.error(U.message||l("Failed to resend email"))}}),B=S==null?void 0:S.data,O=(G=B==null?void 0:B.items)!=null?G:[],re=(ge=B==null?void 0:B.pages)!=null?ge:1,D=(L=E==null?void 0:E.data)!=null?L:[],te=C==null?void 0:C.data,I=f.useMemo(()=>{const U=new Map;for(const he of D)U.set(he.id,he.name);return U},[D]),F=O.length>0&&O.every(U=>x.has(U.id)),J=O.some(U=>x.has(U.id)),xe=f.useCallback(()=>{N(U=>{const he=new Set(U);if(F)for(const Ae of O)he.delete(Ae.id);else for(const Ae of O)he.add(Ae.id);return he})},[F,O]),P=f.useCallback(U=>{N(he=>{const Ae=new Set(he);return Ae.has(U)?Ae.delete(U):Ae.add(U),Ae})},[]);function $(){i(c),s(1)}function W(U){t(`/optins/${U}`)}const[se,Ne]=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:l("Opt-Ins")}),r.jsx("p",{className:"text-muted-foreground",children:l("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(WE,{className:"absolute left-2.5 top-2.5 h-3 w-3 text-muted-foreground"}),r.jsx(Re,{placeholder:l("Search email or hash..."),className:"h-8 pl-8 text-xs",value:c,onChange:U=>d(U.target.value),onKeyDown:U=>{U.key==="Enter"&&$()}})]}),r.jsxs(je,{value:u,onValueChange:U=>{h(U),s(1)},children:[r.jsx(ve,{className:"h-8 w-[130px] text-xs","aria-label":l("Category"),children:r.jsx(we,{placeholder:l("Category")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:l("All")}),D.map(U=>r.jsx(z,{value:String(U.id),children:U.name},U.id))]})]}),r.jsxs(je,{value:m,onValueChange:U=>{v(U),s(1)},children:[r.jsx(ve,{className:"h-8 w-[120px] text-xs","aria-label":l("Status"),children:r.jsx(we,{placeholder:l("Status")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:l("All")}),r.jsx(z,{value:"confirmed",children:l("Confirmed")}),r.jsx(z,{value:"pending",children:l("Pending")})]})]}),r.jsxs(je,{value:g,onValueChange:U=>{j(U),s(1)},children:[r.jsx(ve,{className:"h-8 w-[190px] text-xs","aria-label":l("Follow-up actions"),children:r.jsx(we,{placeholder:l("Follow-up actions")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:l("All follow-ups")}),r.jsx(z,{value:"problem",children:l("Follow-ups need attention")})]})]})]}),x.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:le(l("%s selected"),x.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:A.isPending,onClick:()=>Ne(!0),children:[r.jsx(gn,{className:"h-3 w-3 mr-1"}),A.isPending?l("Deleting..."):l("Delete Selected")]}),r.jsx(H,{variant:"ghost",size:"sm",className:"h-7 text-xs text-muted-foreground",onClick:()=>N(new Set),children:l("Clear selection")})]}),r.jsx(ee,{children:r.jsxs(ne,{className:"p-0",children:[k?r.jsx(q5,{}):r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsxs(Ie,{children:[r.jsx(Ee,{className:"text-xs w-10",children:r.jsx(cl,{checked:F?!0:J?"indeterminate":!1,onCheckedChange:xe,"aria-label":l("Select all")})}),r.jsx(Ee,{className:"text-xs",children:l("Email")}),r.jsx(Ee,{className:"text-xs",children:l("Form")}),r.jsx(Ee,{className:"text-xs",children:l("Category")}),r.jsx(Ee,{className:"text-xs",children:l("Status")}),r.jsx(Ee,{className:"text-xs text-right",children:l("Date")})]})}),r.jsx(en,{children:O.length===0?r.jsx(Ie,{children:r.jsx(fe,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:l("No opt-ins found")})}):O.map(U=>r.jsxs(Ie,{className:"cursor-pointer hover:bg-muted/50 transition-colors",onClick:he=>{he.target.closest("[data-checkbox]")||W(U.id)},children:[r.jsx(fe,{"data-checkbox":!0,children:r.jsx(cl,{checked:x.has(U.id),onCheckedChange:()=>P(U.id),onClick:he=>he.stopPropagation(),"aria-label":le(l("Select opt-in %s"),U.id)})}),r.jsx(fe,{children:r.jsx("button",{onClick:he=>{he.stopPropagation(),t(`/optins/${U.id}`)},className:"text-primary hover:underline text-xs font-medium",children:U.email})}),r.jsx(fe,{className:"text-xs text-muted-foreground",children:U.formName||`#${U.formId}`}),r.jsx(fe,{className:"text-xs text-muted-foreground",children:I.get(U.category)||(U.category?String(U.category):"—")}),r.jsx(fe,{children:U.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(ro,{className:"h-2.5 w-2.5 mr-0.5"}),l("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(Qn,{className:"h-2.5 w-2.5 mr-0.5"}),l("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:he=>he.stopPropagation(),children:[r.jsx(er,{id:"optins.row-action",data:{optin:U}}),r.jsx("span",{children:U.createtime})]})})]},U.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:[le(l("Page %1$s of %2$s"),(me=B==null?void 0:B.page)!=null?me:n,re),B!=null&&B.total?le(l(" (%s total)"),B.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(U=>Math.max(1,U-1)),children:r.jsx(H0,{className:"h-3 w-3"})}),r.jsx(H,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n>=re,onClick:()=>s(U=>U+1),children:r.jsx(Qm,{className:"h-3 w-3"})})]})]})]})}),r.jsx(K5,{detail:te,loading:R,open:!!b,onClose:()=>w(null),onResend:U=>M.mutate(U),resending:M.isPending,onDelete:U=>{p(U)}}),r.jsx(Er,{open:y!==null,onOpenChange:()=>p(null),children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Opt-In")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(vs,{children:[r.jsx(H,{variant:"outline",className:"rounded-lg",onClick:()=>p(null),children:l("Cancel")}),r.jsx(H,{variant:"destructive",className:"rounded-lg",disabled:T.isPending,onClick:()=>{y!==null&&T.mutate(y)},children:T.isPending?l("Deleting..."):l("Delete")})]})]})}),r.jsx(Er,{open:se,onOpenChange:()=>Ne(!1),children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:le(l("Delete %s Opt-In(s)"),x.size)}),r.jsx(sr,{children:le(l("Are you sure you want to permanently delete %s selected opt-in(s)? This action cannot be undone."),x.size)})]}),r.jsxs(vs,{children:[r.jsx(H,{variant:"outline",className:"rounded-lg",onClick:()=>Ne(!1),children:l("Cancel")}),r.jsx(H,{variant:"destructive",className:"rounded-lg",disabled:A.isPending,onClick:()=>{A.mutate(Array.from(x)),Ne(!1)},children:A.isPending?l("Deleting..."):le(l("Delete %s"),x.size)})]})]})})]})}var G5=Symbol("radix.slottable");function X5(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=G5,t}var l1="AlertDialog",[Y5]=Xt(l1,[Aj]),Pr=Aj(),c1=e=>{const{__scopeAlertDialog:t,...n}=e,s=Pr(t);return r.jsx(zh,{...s,...n,modal:!0})};c1.displayName=l1;var Z5="AlertDialogTrigger",J5=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,o=Pr(n);return r.jsx(gA,{...o,...s,ref:t})});J5.displayName=Z5;var eO="AlertDialogPortal",d1=e=>{const{__scopeAlertDialog:t,...n}=e,s=Pr(t);return r.jsx(Uh,{...s,...n})};d1.displayName=eO;var tO="AlertDialogOverlay",u1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,o=Pr(n);return r.jsx(Ji,{...o,...s,ref:t})});u1.displayName=tO;var ja="AlertDialogContent",[nO,rO]=Y5(ja),sO=X5("AlertDialogContent"),f1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:s,...o}=e,a=Pr(n),i=f.useRef(null),c=De(t,i),d=f.useRef(null);return r.jsx(mA,{contentName:ja,titleName:m1,docsSlug:"alert-dialog",children:r.jsx(nO,{scope:n,cancelRef:d,children:r.jsxs(el,{role:"alertdialog",...a,...o,ref:c,onOpenAutoFocus:pe(o.onOpenAutoFocus,u=>{var h;u.preventDefault(),(h=d.current)==null||h.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[r.jsx(sO,{children:s}),r.jsx(aO,{contentRef:i})]})})})});f1.displayName=ja;var m1="AlertDialogTitle",h1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,o=Pr(n);return r.jsx(tl,{...o,...s,ref:t})});h1.displayName=m1;var p1="AlertDialogDescription",x1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,o=Pr(n);return r.jsx(nl,{...o,...s,ref:t})});x1.displayName=p1;var oO="AlertDialogAction",g1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,o=Pr(n);return r.jsx(Ld,{...o,...s,ref:t})});g1.displayName=oO;var v1="AlertDialogCancel",y1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,{cancelRef:o}=rO(v1,n),a=Pr(n),i=De(t,o);return r.jsx(Ld,{...a,...s,ref:i})});y1.displayName=v1;var aO=({contentRef:e})=>{const t=`\`${ja}\` requires a description for the component to be accessible for screen reader users. | |
| 484 | +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},C5="DialogDescriptionWarning",k5=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Dw(C5).contentName}}.`;return f.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},xp=ww,_5=Sw,gp=kw,il=_w,ol=Ew,ll=Tw,cl=Aw,Xd=Iw;const E5=xp,Fw=({container:e,...t})=>r.jsx(gp,{container:e!=null?e:tl(),...t});Fw.displayName="SheetPortal";const Lw=f.forwardRef(({className:e,...t},n)=>r.jsx(il,{className:V("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}));Lw.displayName=il.displayName;const P5=li("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"}}),$w=f.forwardRef(({side:e="right",className:t,children:n,...s},a)=>r.jsxs(Fw,{children:[r.jsx(Lw,{}),r.jsxs(ol,{ref:a,className:V(P5({side:e}),t),...s,children:[n,r.jsxs(Xd,{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(Sd,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$w.displayName=ol.displayName;const T5=f.forwardRef(({className:e,...t},n)=>r.jsx(ll,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));T5.displayName=ll.displayName;const R5=f.forwardRef(({className:e,...t},n)=>r.jsx(cl,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));R5.displayName=cl.displayName;function ie({className:e,...t}){return r.jsx("div",{className:V("animate-pulse rounded-md bg-muted",e),...t})}const A5="sidebar:state",O5=60*60*24*7,I5="16rem",M5="18rem",D5="3rem",F5="b",zw=f.createContext(null);function dl(){const e=f.useContext(zw);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Uw=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:s,style:a,children:i,...o},c)=>{const d=mA(),[u,h]=f.useState(!1),[m,y]=f.useState(e),v=t!=null?t:m,w=f.useCallback(p=>{const x=typeof p=="function"?p(v):p;n?n(x):y(x),document.cookie=`${A5}=${x}; path=/; max-age=${O5}`},[n,v]),g=f.useCallback(()=>d?h(p=>!p):w(p=>!p),[d,w,h]);f.useEffect(()=>{const p=x=>{x.key===F5&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[g]);const j=v?"expanded":"collapsed",b=f.useMemo(()=>({state:j,open:v,setOpen:w,isMobile:d,openMobile:u,setOpenMobile:h,toggleSidebar:g}),[j,v,w,d,u,h,g]);return r.jsx(zw.Provider,{value:b,children:r.jsx(Wj,{delayDuration:0,children:r.jsx("div",{style:{"--sidebar-width":I5,"--sidebar-width-icon":D5,...a},className:V("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",s),ref:c,...o,children:i})})})});Uw.displayName="SidebarProvider";const Bw=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:s,children:a,...i},o)=>{const{isMobile:c,state:d,openMobile:u,setOpenMobile:h}=dl();return n==="none"?r.jsx("div",{className:V("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",s),ref:o,...i,children:a}):c?r.jsx(E5,{open:u,onOpenChange:h,...i,children:r.jsx($w,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":M5},side:e,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:a})})}):r.jsx("div",{ref:o,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:V("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:a})})})});Bw.displayName="Sidebar";const Vw=f.forwardRef(({className:e,onClick:t,...n},s)=>{const{toggleSidebar:a}=dl();return r.jsxs(U,{ref:s,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:V("h-7 w-7",e),onClick:i=>{t==null||t(i),a()},...n,children:[r.jsx(JP,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Vw.displayName="SidebarTrigger";const L5=f.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:s}=dl();return r.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:V("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})});L5.displayName="SidebarRail";const $5=f.forwardRef(({className:e,...t},n)=>r.jsx("main",{ref:n,className:V("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}));$5.displayName="SidebarInset";const z5=f.forwardRef(({className:e,...t},n)=>r.jsx(Pe,{ref:n,"data-sidebar":"input",className:V("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));z5.displayName="SidebarInput";const qw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"header",className:V("flex flex-col gap-2 p-2",e),...t}));qw.displayName="SidebarHeader";const Hw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"footer",className:V("flex flex-col gap-2 p-2",e),...t}));Hw.displayName="SidebarFooter";const U5=f.forwardRef(({className:e,...t},n)=>r.jsx(yi,{ref:n,"data-sidebar":"separator",className:V("mx-2 w-auto bg-sidebar-border",e),...t}));U5.displayName="SidebarSeparator";const Ww=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"content",className:V("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Ww.displayName="SidebarContent";const vp=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group",className:V("relative flex w-full min-w-0 flex-col p-2",e),...t}));vp.displayName="SidebarGroup";const yp=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?ma:"div";return r.jsx(a,{ref:s,"data-sidebar":"group-label",className:V("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})});yp.displayName="SidebarGroupLabel";const B5=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?ma:"button";return r.jsx(a,{ref:s,"data-sidebar":"group-action",className:V("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})});B5.displayName="SidebarGroupAction";const bp=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group-content",className:V("w-full text-sm",e),...t}));bp.displayName="SidebarGroupContent";const jp=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu",className:V("flex w-full min-w-0 flex-col gap-1",e),...t}));jp.displayName="SidebarMenu";const ul=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,"data-sidebar":"menu-item",className:V("group/menu-item relative",e),...t}));ul.displayName="SidebarMenuItem";const V5=li("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"}}),fl=f.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:s="default",tooltip:a,className:i,...o},c)=>{const d=e?ma:"button",{isMobile:u,state:h}=dl(),m=r.jsx(d,{ref:c,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:V(V5({variant:n,size:s}),i),...o});return a?(typeof a=="string"&&(a={children:a}),r.jsxs(rA,{children:[r.jsx(sA,{asChild:!0,children:m}),r.jsx(Kj,{side:"right",align:"center",hidden:h!=="collapsed"||u,...a})]})):m});fl.displayName="SidebarMenuButton";const q5=f.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...s},a)=>{const i=t?ma:"button";return r.jsx(i,{ref:a,"data-sidebar":"menu-action",className:V("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})});q5.displayName="SidebarMenuAction";const H5=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:V("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}));H5.displayName="SidebarMenuBadge";const W5=f.forwardRef(({className:e,showIcon:t=!1,...n},s)=>{const a=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return r.jsxs("div",{ref:s,"data-sidebar":"menu-skeleton",className:V("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&r.jsx(ie,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r.jsx(ie,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});W5.displayName="SidebarMenuSkeleton";const K5=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:V("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}));K5.displayName="SidebarMenuSub";const Q5=f.forwardRef(({...e},t)=>r.jsx("li",{ref:t,...e}));Q5.displayName="SidebarMenuSubItem";const G5=f.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:s,...a},i)=>{const o=e?ma:"a";return r.jsx(o,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:V("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),...a})});G5.displayName="SidebarMenuSubButton";const ml=f.forwardRef(({className:e,activeClassName:t,pendingClassName:n,to:s,...a},i)=>r.jsx(Ub,{ref:i,to:s,className:({isActive:o,isPending:c})=>V(e,o&&t,c&&n),...a}));ml.displayName="NavLink";const Y5=li("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 pt({className:e,variant:t,...n}){return r.jsx("div",{className:V(Y5({variant:t}),e),...n})}const Kw="double-opt-in",l=e=>qe.__(e,Kw),Zd=(e,t,n)=>qe._n(e,t,n,Kw),re=(e,...t)=>qe.sprintf(e,...t),X5=[{title:l("Dashboard"),url:"/",icon:QP},{title:l("Opt-Ins"),url:"/optins",icon:$n},{title:l("Forms"),url:"/forms",icon:ca},{title:l("Categories"),url:"/categories",icon:Th},{title:l("Settings"),url:"/settings",icon:Eh},{title:l("Database"),url:"/database",icon:Yo},{title:l("Audit Log"),url:"/audit",icon:Nd},{title:l("Help"),url:"/help",icon:T0}],Z5=[],J5={BarChart3:$P,LogOut:D0,UserPlus:z0,Plug:_h,Mail:$n,FileText:ca,Tag:Th,Settings:Eh,Palette:F0,Database:Yo,ScrollText:Nd,Boxes:ci,Webhook:iT},hl={title:l("License"),url:"/license",icon:M0},pl={title:l("Addons"),url:"/addons",icon:ci};function eO(){var h;const{state:e}=dl(),t=e==="collapsed",n=ps(),{isProInstalled:s,isProLicenseActive:a}=zd(),i=ht(),{data:o}=we({queryKey:["addons-manifest"],queryFn:()=>Q("/addons"),enabled:s}),d=[...((h=o==null?void 0:o.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(v=>{var w;return{title:v.title,url:v.url,icon:(w=J5[v.icon])!=null?w:_h}})}),...Z5],u=m=>m==="/"?n.pathname==="/":n.pathname.startsWith(m);return r.jsxs(Bw,{collapsible:"icon",children:[r.jsx(qw,{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($n,{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(Ww,{children:[r.jsxs(vp,{children:[r.jsx(yp,{children:l("Navigation")}),r.jsx(bp,{children:r.jsx(jp,{children:X5.map(m=>r.jsx(ul,{children:r.jsx(fl,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(ml,{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(vp,{children:[r.jsx(yp,{children:l("Pro Features")}),r.jsx(bp,{children:r.jsxs(jp,{children:[d.map(m=>r.jsx(ul,{children:r.jsx(fl,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(ml,{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}),!a&&r.jsxs(r.Fragment,{children:[r.jsx(pt,{variant:"outline",className:"text-[10px] px-1.5 py-0 border-primary text-primary",children:l("PRO")}),r.jsx(bd,{className:"h-3 w-3 text-warning shrink-0"})]})]})]})})},m.title)),r.jsx(ul,{children:r.jsx(fl,{asChild:!0,isActive:u(hl.url),tooltip:hl.title,children:r.jsxs(ml,{to:hl.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(hl.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:hl.title})]})})}),r.jsx(ul,{children:r.jsx(fl,{asChild:!0,isActive:u(pl.url),tooltip:pl.title,children:r.jsxs(ml,{to:pl.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(pl.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:pl.title})]})})})]})})]})]}),r.jsxs(Hw,{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(GP,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("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(ZP,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("Feedback")]})]}),r.jsx("div",{className:"px-2 py-1 text-[10px] text-muted-foreground text-center",children:!t&&l("Double Opt-In for WordPress")})]})]})}const Qw=f.forwardRef(({...e},t)=>r.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Qw.displayName="Breadcrumb";const Gw=f.forwardRef(({className:e,...t},n)=>r.jsx("ol",{ref:n,className:V("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Gw.displayName="BreadcrumbList";const Np=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,className:V("inline-flex items-center gap-1.5",e),...t}));Np.displayName="BreadcrumbItem";const Yw=f.forwardRef(({asChild:e,className:t,...n},s)=>{const a=e?ma:"a";return r.jsx(a,{ref:s,className:V("transition-colors hover:text-foreground",t),...n})});Yw.displayName="BreadcrumbLink";const Xw=f.forwardRef(({className:e,...t},n)=>r.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:V("font-normal text-foreground",e),...t}));Xw.displayName="BreadcrumbPage";const Zw=({children:e,className:t,...n})=>r.jsx("li",{role:"presentation","aria-hidden":"true",className:V("[&>svg]:size-3.5",t),...n,children:e!=null?e:r.jsx(Sh,{})});Zw.displayName="BreadcrumbSeparator";const Sp={"/":l("Dashboard"),"/optins":l("Opt-Ins"),"/forms":l("Forms"),"/categories":l("Categories"),"/settings":l("Settings"),"/email-templates":l("Email Templates"),"/database":l("Database"),"/analytics":l("Analytics"),"/addon/webhooks":l("Webhooks"),"/opt-out":l("Opt-Out"),"/user-creation":l("User Creation"),"/api":l("API"),"/audit":l("Audit Log"),"/addons":l("Addons"),"/addon-settings":l("Addons"),"/license":l("License")};function tO(e){let t=e;for(;t!=="";){if(Sp[t])return Sp[t];t=t.slice(0,t.lastIndexOf("/"))}return Sp[e]||l("Page")}function nO(){const e=ps(),t=tO(e.pathname);return r.jsx(Uw,{children:r.jsxs("div",{className:"min-h-[calc(100vh-var(--wp-admin--admin-bar--height,32px))] flex w-full",children:[r.jsx(eO,{}),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(Vw,{}),r.jsx(Qw,{children:r.jsxs(Gw,{children:[r.jsx(Np,{children:r.jsx(Yw,{href:"#/",children:"Double Opt-In"})}),r.jsx(Zw,{}),r.jsx(Np,{children:r.jsx(Xw,{children:t})})]})})]}),r.jsx("main",{className:"flex-1 overflow-auto p-4 md:p-6",children:r.jsx(dE,{})})]})]})})}function Ar({children:e,addonId:t,featureName:n}){var j,b;const s=Sn(),{data:a,isLoading:i}=we({queryKey:["addons-manifest"],queryFn:()=>Q("/addons")}),o=a==null?void 0:a.addons.find(p=>p.id===t),c=(o==null?void 0:o.available)===!0,{data:d}=we({queryKey:["addons-catalog"],queryFn:()=>Q("/addons/catalog"),enabled:!i&&!c});if(i)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(ie,{className:"h-8 w-64"}),r.jsx(ie,{className:"h-96 w-full"})]});if(c)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=(b=d==null?void 0:d.hasBundleLicense)!=null?b:!1;let y,v,w,g=ci;return h==="not_installed"?(y=re(l("%s requires the %s addon"),n,n),v=l("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:l("Open Addons"),onClick:()=>s("/addons")},g=ci):h==="inactive"?(y=re(l("%s addon is installed but inactive"),n),v=l("Activate the addon to unlock this page. You can do that from the Addons page in one click."),w={label:l("Open Addons"),onClick:()=>s("/addons")},g=Zo):m?(y=re(l("%s addon is not available"),n),v=l("Check the Addons page for diagnostic details. A prerequisite (such as a third-party plugin) may be missing."),w={label:l("Open Addons"),onClick:()=>s("/addons")},g=ci):(y=re(l("%s is included in Pro"),n),v=l("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:l("Open License"),onClick:()=>s("/license")},g=bd),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(g,{className:"h-6 w-6 text-muted-foreground"})}),r.jsx("h1",{className:"text-lg font-semibold text-foreground mb-2",children:y}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:v}),r.jsx(U,{onClick:w.onClick,className:"w-full",children:w.label})]})})}function Hn({id:e,data:t}){const n=f.useSyncExternalStore(qb,()=>Hb(e),()=>[]);return n.length===0?null:r.jsx(r.Fragment,{children:n.map(({name:s,Component:a})=>r.jsx(rO,{name:s,mountId:e,children:r.jsx(a,{data:t})},s))})}class rO extends f.Component{constructor(){super(...arguments);Wi(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 Z=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Z.displayName="Card";const le=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("flex flex-col space-y-1.5 p-6",e),...t}));le.displayName="CardHeader";const fe=f.forwardRef(({className:e,...t},n)=>r.jsx("h3",{ref:n,className:V("text-2xl font-semibold leading-none tracking-tight",e),...t}));fe.displayName="CardTitle";const Re=f.forwardRef(({className:e,...t},n)=>r.jsx("p",{ref:n,className:V("text-sm text-muted-foreground",e),...t}));Re.displayName="CardDescription";const ee=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("p-6 pt-0",e),...t}));ee.displayName="CardContent";const sO=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("flex items-center p-6 pt-0",e),...t}));sO.displayName="CardFooter";const fn=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:V("w-full caption-bottom text-sm",e),...t})}));fn.displayName="Table";const _n=f.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:V("[&_tr]:border-b",e),...t}));_n.displayName="TableHeader";const mn=f.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:V("[&_tr:last-child]:border-0",e),...t}));mn.displayName="TableBody";const aO=f.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:V("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));aO.displayName="TableFooter";const Me=f.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:V("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Me.displayName="TableRow";const Ae=f.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:V("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ae.displayName="TableHead";const ce=f.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:V("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));ce.displayName="TableCell";const iO=f.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:V("mt-4 text-sm text-muted-foreground",e),...t}));iO.displayName="TableCaption";function Jd(e){return e.confirmed?"confirmed":e.revoked?"revoked":"pending"}function Jw(e){switch(Jd(e)){case"confirmed":return l("Confirmed");case"revoked":return l("Revoked");default:return l("Pending")}}const oO={confirmed:{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",Icon:Go},pending:{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",Icon:gs},revoked:{className:"bg-slate-100 text-slate-700 border-slate-300 hover:bg-slate-100 dark:bg-slate-900 dark:text-slate-300 dark:border-slate-700",Icon:P0}};function eu({optIn:e,size:t="md",className:n}){const{className:s,Icon:a}=oO[Jd(e)],i=t==="sm";return r.jsxs(pt,{variant:"secondary",className:V(i?"text-[10px]":"","shrink-0",s,n),children:[r.jsx(a,{className:i?"h-2.5 w-2.5 mr-0.5":"h-3 w-3 mr-1"}),Jw(e)]})}const Cp=["setup-status"],kp=["setup"];async function lO(){return(await Q("/setup")).data}function cO(e,t){return Q("/setup/step",{method:"POST",body:JSON.stringify({step:e,data:t})})}function dO(){return Q("/setup/test-mail",{method:"POST"})}function uO(){return Q("/setup/finish",{method:"POST"})}function fO(){return Q("/setup/skip",{method:"POST"})}function mO(){return Q("/setup/restart",{method:"POST"})}function hO(){return we({queryKey:Cp,queryFn:()=>{var e;return(e=ht().setup)!=null?e:null},initialData:()=>{var e;return(e=ht().setup)!=null?e:null},staleTime:1/0})}function pO(){const{data:e}=hO();if(!e||e.status==="done")return null;const t=Math.min(e.step+1,e.steps);return r.jsx(Z,{className:"border-primary/30 bg-primary/[0.04]",children:r.jsxs(ee,{className:"flex flex-wrap items-center justify-between gap-4 p-5",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(Rh,{className:"h-4 w-4 text-primary","aria-hidden":"true"})}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-sm font-semibold",children:l("Finish setting up Double Opt-In")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:re(l("Step %1$d of %2$d. Your entries so far are saved."),t,e.steps)})]})]}),r.jsx(U,{asChild:!0,children:r.jsxs(vt,{to:"/setup",children:[l("Continue setup"),r.jsx(Qo,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})})]})})}function xO(){const e=Sn(),t=Ze(),n=Ee({mutationFn:mO,onSuccess:()=>{t.setQueryData(Cp,{status:"pending",step:0,steps:4}),t.removeQueries({queryKey:kp}),e("/setup")}});return r.jsx(Z,{children:r.jsxs(ee,{className:"grid gap-3 p-5",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Rh,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold",children:l("Setup wizard")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Sender, forms, confirmation email and page in four steps. Forms that already use Double Opt-In are not changed.")})]})]}),r.jsx(U,{type:"button",variant:"outline",size:"sm",onClick:()=>n.mutate(),disabled:n.isPending,children:l("Start setup wizard")})]})})}function gO({report:e}){if(!e)return null;const t=ht().adminUrl.replace(/\/?$/,"/")+"site-health.php";return r.jsx(Z,{className:"border-warning/40 bg-warning/[0.06]","data-testid":"stuck-optins",children:r.jsxs(ee,{className:"flex items-start gap-3 p-5",children:[r.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-warning/15",children:r.jsx(_t,{className:"h-4 w-4 text-warning","aria-hidden":"true"})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("h2",{className:"text-sm font-semibold",children:re(l("%1$d%% of the opt-ins from the last %2$d days are not confirmed"),e.share,e.days)}),r.jsx("p",{className:"text-sm text-muted-foreground",children:re(l("%1$d of %2$d people did not click the link in the confirmation mail. The last 24 hours are not counted."),e.unconfirmed,e.total)}),r.jsxs("ul",{className:"space-y-1.5 text-sm",children:[e.mailFailed>0&&r.jsx("li",{children:r.jsxs(vt,{to:"/optins?mail=failed",className:"inline-flex items-center gap-1 font-medium text-primary hover:underline",children:[re(Zd("%d confirmation mail could not be sent. Show it","%d confirmation mails could not be sent. Show them",e.mailFailed),e.mailFailed),r.jsx(Qo,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})}),r.jsx("li",{children:r.jsxs("a",{href:t,className:"inline-flex items-center gap-1 font-medium text-primary hover:underline",children:[l("Check in Site Health whether inboxes trust your sender domain"),r.jsx(Qo,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})}),!oa("reminder")&&r.jsx("li",{children:r.jsxs(vt,{to:"/addons",className:"inline-flex items-center gap-1 font-medium text-primary hover:underline",children:[kE("reminder")?l("Activate the license of the Reminder add-on: it sends a second mail to people who have not confirmed"):l("The Reminder add-on sends a second mail to people who have not confirmed"),r.jsx(Qo,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})})]})]})]})})}function vO(){return r.jsx(Z,{children:r.jsxs(ee,{className:"flex items-start gap-3 p-4",children:[r.jsx(ie,{className:"h-9 w-9 rounded-lg shrink-0"}),r.jsxs("div",{className:"space-y-2 flex-1",children:[r.jsx(ie,{className:"h-3 w-20"}),r.jsx(ie,{className:"h-7 w-16"}),r.jsx(ie,{className:"h-3 w-24"})]})]})})}function yO({rows:e=3,cols:t=3}){return r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsx(Me,{children:Array.from({length:t}).map((n,s)=>r.jsx(Ae,{children:r.jsx(ie,{className:"h-3 w-16"})},s))})}),r.jsx(mn,{children:Array.from({length:e}).map((n,s)=>r.jsx(Me,{children:Array.from({length:t}).map((a,i)=>r.jsx(ce,{children:r.jsx(ie,{className:"h-3 w-full"})},i))},s))})]})}function tu(e){return e.toLocaleString()}function bO(){var c,d;const{data:e,isLoading:t}=we({queryKey:["dashboard-stats"],queryFn:()=>Q("/dashboard/stats")}),{data:n,isLoading:s}=we({queryKey:["dashboard-info"],queryFn:()=>Q("/dashboard/quick-info")}),a=e==null?void 0:e.data,i=n==null?void 0:n.data,o=a?[{label:l("Total Opt-Ins"),value:tu(a.totalOptins),icon:$n,change:a.confirmed+a.pending>0?l("Active"):l("No data")},{label:l("Confirmed"),value:tu(a.confirmed),icon:Go,change:re(l("%s%% conversion"),a.conversionRate)},{label:l("Pending"),value:tu(a.pending),icon:gs,change:re(l("%s%% awaiting"),(a.totalOptins>0?a.pending/a.totalOptins*100:0).toFixed(1))},{label:l("Revoked"),value:tu((c=a.revoked)!=null?c:0),icon:P0,change:l("Consent withdrawn via the opt-out")}]:[];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Dashboard")}),r.jsx("p",{className:"text-muted-foreground",children:l("Overview of your Double Opt-In activity")})]}),r.jsx(Hn,{id:"dashboard.alert"}),r.jsx(pO,{}),r.jsx(gO,{report:a==null?void 0:a.stuckOptins}),r.jsx("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:t?Array.from({length:4}).map((u,h)=>r.jsx(vO,{},h)):o.map(u=>r.jsx(Z,{children:r.jsxs(ee,{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(u.icon,{className:"h-4.5 w-4.5 text-primary"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:u.label}),r.jsx("p",{className:"text-2xl font-bold text-foreground",children:u.value}),r.jsxs("p",{className:"text-[11px] text-muted-foreground flex items-center gap-1",children:[r.jsx(sT,{className:"h-3 w-3 text-success"}),u.change]})]})]})},u.label))}),r.jsx(Hn,{id:"dashboard.widget"}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(fe,{className:"text-base",children:l("Recent Opt-Ins")}),r.jsx(vt,{to:"/optins",className:"text-xs text-primary hover:underline",children:l("View All")})]}),r.jsx(Re,{children:l("Latest opt-in submissions")})]}),r.jsx(ee,{children:t?r.jsx(yO,{rows:5,cols:4}):r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsxs(Me,{children:[r.jsx(Ae,{children:l("Email")}),r.jsx(Ae,{children:l("Form")}),r.jsx(Ae,{children:l("Status")}),r.jsx(Ae,{className:"text-right",children:l("Date")})]})}),r.jsx(mn,{children:((d=a==null?void 0:a.recentOptins)!=null?d:[]).map(u=>r.jsxs(Me,{children:[r.jsx(ce,{className:"text-sm",children:u.email}),r.jsx(ce,{className:"text-muted-foreground text-xs",children:u.formName}),r.jsx(ce,{children:r.jsx(eu,{optIn:u,size:"sm"})}),r.jsx(ce,{className:"text-right text-xs text-muted-foreground",children:u.createtime})]},u.id))})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[r.jsxs(Z,{children:[r.jsx(le,{className:"pb-3",children:r.jsx(fe,{className:"text-sm font-medium",children:l("Quick Info")})}),r.jsx(ee,{children:s?r.jsx("div",{className:"space-y-2",children:Array.from({length:5}).map((u,h)=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx(ie,{className:"h-3 w-20"}),r.jsx(ie,{className:"h-3 w-16"})]},h))}):i?r.jsx("dl",{className:"space-y-2 text-sm",children:[[l("Version"),i.version],[l("Token Expiry"),i.tokenExpiry],[l("Retention"),i.retention],[l("Rate Limit"),i.rateLimit],[l("License"),typeof i.licenseStatus=="object"&&i.licenseStatus!==null?i.licenseStatus.isActive?l("Pro Active"):l("Inactive"):i.licenseStatus]].map(([u,h])=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx("dt",{className:"text-muted-foreground",children:u}),r.jsx("dd",{className:"font-medium text-foreground",children:h})]},u))}):null})]}),r.jsxs(Z,{children:[r.jsx(le,{className:"pb-3",children:r.jsx(fe,{className:"text-sm font-medium",children:l("Quick Links")})}),r.jsx(ee,{children:r.jsx("ul",{className:"space-y-1.5 text-sm",children:[[l("All Opt-Ins"),"/optins"],[l("Form Settings"),"/forms"],[l("Global Settings"),"/settings"],[l("Analytics"),"/analytics"],[l("Database"),"/database"]].map(([u,h])=>r.jsx("li",{children:r.jsx(vt,{to:h,className:"text-primary hover:underline",children:u})},u))})})]})]})]})}function nu(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 ru="Checkbox",[jO]=zt(ru),[wO,_p]=jO(ru);function NO(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:a,disabled:i,form:o,name:c,onCheckedChange:d,required:u,value:h="on",internal_do_not_use_render:m}=e,[y,v]=cn({prop:n,defaultProp:a!=null?a:!1,onChange:d,caller:ru}),[w,g]=f.useState(null),[j,b]=f.useState(null),p=f.useRef(!1),x=w?!!o||!!w.closest("form"):!0,N={checked:y,disabled:i,setChecked:v,control:w,setControl:g,name:c,form:o,value:h,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:Ns(a)?!1:a,isFormControl:x,bubbleInput:j,setBubbleInput:b};return r.jsx(wO,{scope:t,...N,children:SO(m)?m(N):s})}var e1="CheckboxTrigger",t1=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},a)=>{const{control:i,value:o,disabled:c,checked:d,required:u,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:y,isFormControl:v,bubbleInput:w}=_p(e1,e),g=Ie(a,h),j=f.useRef(d);return f.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const p=()=>m(j.current);return b.addEventListener("reset",p),()=>b.removeEventListener("reset",p)}},[i,m]),r.jsx(ve.button,{type:"button",role:"checkbox","aria-checked":Ns(d)?"mixed":d,"aria-required":u,"data-state":i1(d),"data-disabled":c?"":void 0,disabled:c,value:o,...s,ref:g,onKeyDown:pe(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:pe(n,b=>{m(p=>Ns(p)?!0:!p),w&&v&&(y.current=b.isPropagationStopped(),y.current||b.stopPropagation())})})});t1.displayName=e1;var Ep=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:a,defaultChecked:i,required:o,disabled:c,value:d,onCheckedChange:u,form:h,...m}=e;return r.jsx(NO,{__scopeCheckbox:n,checked:a,defaultChecked:i,disabled:c,required:o,onCheckedChange:u,name:s,form:h,value:d,internal_do_not_use_render:({isFormControl:y})=>r.jsxs(r.Fragment,{children:[r.jsx(t1,{...m,ref:t,__scopeCheckbox:n}),y&&r.jsx(a1,{__scopeCheckbox:n})]})})});Ep.displayName=ru;var n1="CheckboxIndicator",r1=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...a}=e,i=_p(n1,n);return r.jsx(Fn,{present:s||Ns(i.checked)||i.checked===!0,children:r.jsx(ve.span,{"data-state":i1(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});r1.displayName=n1;var s1="CheckboxBubbleInput",a1=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:o,required:c,disabled:d,name:u,value:h,form:m,bubbleInput:y,setBubbleInput:v}=_p(s1,e),w=Ie(n,v),g=nu(i),j=Dd(s);f.useEffect(()=>{const p=y;if(!p)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,k=!a.current;if(g!==i&&S){const _=new Event("click",{bubbles:k});p.indeterminate=Ns(i),S.call(p,Ns(i)?!1:i),p.dispatchEvent(_)}},[y,g,i,a]);const b=f.useRef(Ns(i)?!1:i);return r.jsx(ve.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o!=null?o:b.current,required:c,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%)"}})});a1.displayName=s1;function SO(e){return typeof e=="function"}function Ns(e){return e==="indeterminate"}function i1(e){return Ns(e)?"indeterminate":e?"checked":"unchecked"}const Si=f.forwardRef(({className:e,...t},n)=>r.jsx(Ep,{ref:n,className:V("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(r1,{className:V("flex items-center justify-center text-current"),children:r.jsx(xs,{className:"h-4 w-4"})})}));Si.displayName=Ep.displayName;function o1(e,[t,n]){return Math.min(n,Math.max(t,e))}var CO=f.createContext(void 0);function xl(e){const t=f.useContext(CO);return e||t||"ltr"}function kO(e){const t=_O(e),n=f.forwardRef((s,a)=>{const{children:i,...o}=s,c=f.Children.toArray(i),d=c.find(PO);if(d){const u=d.props.children,h=c.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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function _O(e){const t=f.forwardRef((n,s)=>{const{children:a,...i}=n;if(f.isValidElement(a)){const o=RO(a),c=TO(i,a.props);return a.type!==f.Fragment&&(c.ref=s?oi(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var EO=Symbol("radix.slottable");function PO(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===EO}function TO(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function RO(e){var s,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var AO=[" ","Enter","ArrowUp","ArrowDown"],OO=[" ","Enter"],pa="Select",[su,au,IO]=md(pa),[Ci]=zt(pa,[IO,Fd]),iu=Fd(),[MO,Ss]=Ci(pa),[DO,FO]=Ci(pa),l1=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:a,onOpenChange:i,value:o,defaultValue:c,onValueChange:d,dir:u,name:h,autoComplete:m,disabled:y,required:v,form:w}=e,g=iu(t),[j,b]=f.useState(null),[p,x]=f.useState(null),[N,S]=f.useState(!1),k=xl(u),[_,C]=cn({prop:s,defaultProp:a!=null?a:!1,onChange:i,caller:pa}),[R,T]=cn({prop:o,defaultProp:c,onChange:d,caller:pa}),O=f.useRef(null),M=j?w||!!j.closest("form"):!0,[B,I]=f.useState(new Set),ne=Array.from(B).map(F=>F.props.value).join(";");return r.jsx(Oj,{...g,children:r.jsxs(MO,{required:v,scope:t,trigger:j,onTriggerChange:b,valueNode:p,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Un(),value:R,onValueChange:T,open:_,onOpenChange:C,dir:k,triggerPointerDownPosRef:O,disabled:y,children:[r.jsx(su.Provider,{scope:t,children:r.jsx(DO,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(F=>{I(te=>new Set(te).add(F))},[]),onNativeOptionRemove:f.useCallback(F=>{I(te=>{const A=new Set(te);return A.delete(F),A})},[]),children:n})}),M?r.jsxs(A1,{"aria-hidden":!0,required:v,tabIndex:-1,name:h,autoComplete:m,value:R,onChange:F=>T(F.target.value),disabled:y,form:w,children:[R===void 0?r.jsx("option",{value:""}):null,Array.from(B)]},ne):null]})})};l1.displayName=pa;var c1="SelectTrigger",d1=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...a}=e,i=iu(n),o=Ss(c1,n),c=o.disabled||s,d=Ie(t,o.onTriggerChange),u=au(n),h=f.useRef("touch"),[m,y,v]=I1(g=>{const j=u().filter(x=>!x.disabled),b=j.find(x=>x.value===o.value),p=M1(j,g,b);p!==void 0&&o.onValueChange(p.value)}),w=g=>{c||(o.onOpenChange(!0),v()),g&&(o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return r.jsx(Ij,{asChild:!0,...i,children:r.jsx(ve.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":O1(o.value)?"":void 0,...a,ref:d,onClick:pe(a.onClick,g=>{g.currentTarget.focus(),h.current!=="mouse"&&w(g)}),onPointerDown:pe(a.onPointerDown,g=>{h.current=g.pointerType;const j=g.target;j.hasPointerCapture(g.pointerId)&&j.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(w(g),g.preventDefault())}),onKeyDown:pe(a.onKeyDown,g=>{const j=m.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&y(g.key),!(j&&g.key===" ")&&AO.includes(g.key)&&(w(),g.preventDefault())})})})});d1.displayName=c1;var u1="SelectValue",f1=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,children:i,placeholder:o="",...c}=e,d=Ss(u1,n),{onValueNodeHasChildrenChange:u}=d,h=i!==void 0,m=Ie(t,d.onValueNodeChange);return jt(()=>{u(h)},[u,h]),r.jsx(ve.span,{...c,ref:m,style:{pointerEvents:"none"},children:O1(d.value)?r.jsx(r.Fragment,{children:o}):i})});f1.displayName=u1;var LO="SelectIcon",m1=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...a}=e;return r.jsx(ve.span,{"aria-hidden":!0,...a,ref:t,children:s||"▼"})});m1.displayName=LO;var $O="SelectPortal",h1=e=>r.jsx(Wo,{asChild:!0,...e});h1.displayName=$O;var xa="SelectContent",p1=f.forwardRef((e,t)=>{const n=Ss(xa,e.__scopeSelect),[s,a]=f.useState();if(jt(()=>{a(new DocumentFragment)},[]),!n.open){const i=s;return i?na.createPortal(r.jsx(x1,{scope:e.__scopeSelect,children:r.jsx(su.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),i):null}return r.jsx(g1,{...e,ref:t})});p1.displayName=xa;var Wn=10,[x1,Cs]=Ci(xa),zO="SelectContentImpl",UO=kO("SelectContent.RemoveScroll"),g1=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:y,collisionPadding:v,sticky:w,hideWhenDetached:g,avoidCollisions:j,...b}=e,p=Ss(xa,n),[x,N]=f.useState(null),[S,k]=f.useState(null),_=Ie(t,se=>N(se)),[C,R]=f.useState(null),[T,O]=f.useState(null),M=au(n),[B,I]=f.useState(!1),ne=f.useRef(!1);f.useEffect(()=>{if(x)return yw(x)},[x]),sw();const F=f.useCallback(se=>{const[De,...P]=M().map(ae=>ae.ref.current),[z]=P.slice(-1),Y=document.activeElement;for(const ae of se)if(ae===Y||(ae==null||ae.scrollIntoView({block:"nearest"}),ae===De&&S&&(S.scrollTop=0),ae===z&&S&&(S.scrollTop=S.scrollHeight),ae==null||ae.focus(),document.activeElement!==Y))return},[M,S]),te=f.useCallback(()=>F([C,x]),[F,C,x]);f.useEffect(()=>{B&&te()},[B,te]);const{onOpenChange:A,triggerPointerDownPosRef:D}=p;f.useEffect(()=>{if(x){let se={x:0,y:0};const De=z=>{var Y,ae,_e,Fe;se={x:Math.abs(Math.round(z.pageX)-((ae=(Y=D.current)==null?void 0:Y.x)!=null?ae:0)),y:Math.abs(Math.round(z.pageY)-((Fe=(_e=D.current)==null?void 0:_e.y)!=null?Fe:0))}},P=z=>{se.x<=10&&se.y<=10?z.preventDefault():x.contains(z.target)||A(!1),document.removeEventListener("pointermove",De),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",De),document.addEventListener("pointerup",P,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",De),document.removeEventListener("pointerup",P,{capture:!0})}}},[x,A,D]),f.useEffect(()=>{const se=()=>A(!1);return window.addEventListener("blur",se),window.addEventListener("resize",se),()=>{window.removeEventListener("blur",se),window.removeEventListener("resize",se)}},[A]);const[W,he]=I1(se=>{const De=M().filter(Y=>!Y.disabled),P=De.find(Y=>Y.ref.current===document.activeElement),z=M1(De,se,P);z&&setTimeout(()=>z.ref.current.focus())}),me=f.useCallback((se,De,P)=>{const z=!ne.current&&!P;(p.value!==void 0&&p.value===De||z)&&(R(se),z&&(ne.current=!0))},[p.value]),je=f.useCallback(()=>x==null?void 0:x.focus(),[x]),Ne=f.useCallback((se,De,P)=>{const z=!ne.current&&!P;(p.value!==void 0&&p.value===De||z)&&O(se)},[p.value]),$e=s==="popper"?Pp:v1,Be=$e===Pp?{side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:y,collisionPadding:v,sticky:w,hideWhenDetached:g,avoidCollisions:j}:{};return r.jsx(x1,{scope:n,content:x,viewport:S,onViewportChange:k,itemRefCallback:me,selectedItem:C,onItemLeave:je,itemTextRefCallback:Ne,focusSelectedItem:te,selectedItemText:T,position:s,isPositioned:B,searchRef:W,children:r.jsx(up,{as:UO,allowPinchZoom:!0,children:r.jsx(ap,{asChild:!0,trapped:p.open,onMountAutoFocus:se=>{se.preventDefault()},onUnmountAutoFocus:pe(a,se=>{var De;(De=p.trigger)==null||De.focus({preventScroll:!0}),se.preventDefault()}),children:r.jsx(Ho,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:se=>se.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:r.jsx($e,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:se=>se.preventDefault(),...b,...Be,onPlaced:()=>I(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:pe(b.onKeyDown,se=>{const De=se.ctrlKey||se.altKey||se.metaKey;if(se.key==="Tab"&&se.preventDefault(),!De&&se.key.length===1&&he(se.key),["ArrowUp","ArrowDown","Home","End"].includes(se.key)){let z=M().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(se.key)&&(z=z.slice().reverse()),["ArrowUp","ArrowDown"].includes(se.key)){const Y=se.target,ae=z.indexOf(Y);z=z.slice(ae+1)}setTimeout(()=>F(z)),se.preventDefault()}})})})})})})});g1.displayName=zO;var BO="SelectItemAlignedPosition",v1=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...a}=e,i=Ss(xa,n),o=Cs(xa,n),[c,d]=f.useState(null),[u,h]=f.useState(null),m=Ie(t,_=>h(_)),y=au(n),v=f.useRef(!1),w=f.useRef(!0),{viewport:g,selectedItem:j,selectedItemText:b,focusSelectedItem:p}=o,x=f.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&u&&g&&j&&b){const _=i.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),R=i.valueNode.getBoundingClientRect(),T=b.getBoundingClientRect();if(i.dir!=="rtl"){const Y=T.left-C.left,ae=R.left-Y,_e=_.left-ae,Fe=_.width+_e,$=Math.max(Fe,C.width),Ce=window.innerWidth-Wn,Je=o1(ae,[Wn,Math.max(Wn,Ce-$)]);c.style.minWidth=Fe+"px",c.style.left=Je+"px"}else{const Y=C.right-T.right,ae=window.innerWidth-R.right-Y,_e=window.innerWidth-_.right-ae,Fe=_.width+_e,$=Math.max(Fe,C.width),Ce=window.innerWidth-Wn,Je=o1(ae,[Wn,Math.max(Wn,Ce-$)]);c.style.minWidth=Fe+"px",c.style.right=Je+"px"}const O=y(),M=window.innerHeight-Wn*2,B=g.scrollHeight,I=window.getComputedStyle(u),ne=parseInt(I.borderTopWidth,10),F=parseInt(I.paddingTop,10),te=parseInt(I.borderBottomWidth,10),A=parseInt(I.paddingBottom,10),D=ne+F+B+A+te,W=Math.min(j.offsetHeight*5,D),he=window.getComputedStyle(g),me=parseInt(he.paddingTop,10),je=parseInt(he.paddingBottom,10),Ne=_.top+_.height/2-Wn,$e=M-Ne,Be=j.offsetHeight/2,se=j.offsetTop+Be,De=ne+F+se,P=D-De;if(De<=Ne){const Y=O.length>0&&j===O[O.length-1].ref.current;c.style.bottom="0px";const ae=u.clientHeight-g.offsetTop-g.offsetHeight,_e=Math.max($e,Be+(Y?je:0)+ae+te),Fe=De+_e;c.style.height=Fe+"px"}else{const Y=O.length>0&&j===O[0].ref.current;c.style.top="0px";const _e=Math.max(Ne,ne+g.offsetTop+(Y?me:0)+Be)+P;c.style.height=_e+"px",g.scrollTop=De-Ne+g.offsetTop}c.style.margin=`${Wn}px 0`,c.style.minHeight=W+"px",c.style.maxHeight=M+"px",s==null||s(),requestAnimationFrame(()=>v.current=!0)}},[y,i.trigger,i.valueNode,c,u,g,j,b,i.dir,s]);jt(()=>x(),[x]);const[N,S]=f.useState();jt(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const k=f.useCallback(_=>{_&&w.current===!0&&(x(),p==null||p(),w.current=!1)},[x,p]);return r.jsx(qO,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:k,children:r.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:r.jsx(ve.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});v1.displayName=BO;var VO="SelectPopperPosition",Pp=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:a=Wn,...i}=e,o=iu(n);return r.jsx(Mj,{...o,...i,ref:t,align:s,collisionPadding:a,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)"}})});Pp.displayName=VO;var[qO,Tp]=Ci(xa,{}),Rp="SelectViewport",y1=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...a}=e,i=Cs(Rp,n),o=Tp(Rp,n),c=Ie(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(su.Slot,{scope:n,children:r.jsx(ve.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:pe(a.onScroll,u=>{const h=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:y}=o;if(y!=null&&y.current&&m){const v=Math.abs(d.current-h.scrollTop);if(v>0){const w=window.innerHeight-Wn*2,g=parseFloat(m.style.minHeight),j=parseFloat(m.style.height),b=Math.max(g,j);if(b<w){const p=b+v,x=Math.min(w,p),N=p-x;m.style.height=x+"px",m.style.bottom==="0px"&&(h.scrollTop=N>0?N:0,m.style.justifyContent="flex-end")}}}d.current=h.scrollTop})})})]})});y1.displayName=Rp;var b1="SelectGroup",[HO,WO]=Ci(b1),KO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=Un();return r.jsx(HO,{scope:n,id:a,children:r.jsx(ve.div,{role:"group","aria-labelledby":a,...s,ref:t})})});KO.displayName=b1;var j1="SelectLabel",w1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=WO(j1,n);return r.jsx(ve.div,{id:a.id,...s,ref:t})});w1.displayName=j1;var ou="SelectItem",[QO,N1]=Ci(ou),S1=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:a=!1,textValue:i,...o}=e,c=Ss(ou,n),d=Cs(ou,n),u=c.value===s,[h,m]=f.useState(i!=null?i:""),[y,v]=f.useState(!1),w=Ie(t,p=>{var x;return(x=d.itemRefCallback)==null?void 0:x.call(d,p,s,a)}),g=Un(),j=f.useRef("touch"),b=()=>{a||(c.onValueChange(s),c.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(QO,{scope:n,value:s,disabled:a,textId:g,isSelected:u,onItemTextChange:f.useCallback(p=>{m(x=>{var N;return x||((N=p==null?void 0:p.textContent)!=null?N:"").trim()})},[]),children:r.jsx(su.ItemSlot,{scope:n,value:s,disabled:a,textValue:h,children:r.jsx(ve.div,{role:"option","aria-labelledby":g,"data-highlighted":y?"":void 0,"aria-selected":u&&y,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:w,onFocus:pe(o.onFocus,()=>v(!0)),onBlur:pe(o.onBlur,()=>v(!1)),onClick:pe(o.onClick,()=>{j.current!=="mouse"&&b()}),onPointerUp:pe(o.onPointerUp,()=>{j.current==="mouse"&&b()}),onPointerDown:pe(o.onPointerDown,p=>{j.current=p.pointerType}),onPointerMove:pe(o.onPointerMove,p=>{var x;j.current=p.pointerType,a?(x=d.onItemLeave)==null||x.call(d):j.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(o.onPointerLeave,p=>{var x;p.currentTarget===document.activeElement&&((x=d.onItemLeave)==null||x.call(d))}),onKeyDown:pe(o.onKeyDown,p=>{var N;((N=d.searchRef)==null?void 0:N.current)!==""&&p.key===" "||(OO.includes(p.key)&&b(),p.key===" "&&p.preventDefault())})})})})});S1.displayName=ou;var gl="SelectItemText",C1=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,...i}=e,o=Ss(gl,n),c=Cs(gl,n),d=N1(gl,n),u=FO(gl,n),[h,m]=f.useState(null),y=Ie(t,b=>m(b),d.onItemTextChange,b=>{var p;return(p=c.itemTextRefCallback)==null?void 0:p.call(c,b,d.value,d.disabled)}),v=h==null?void 0:h.textContent,w=f.useMemo(()=>r.jsx("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:g,onNativeOptionRemove:j}=u;return jt(()=>(g(w),()=>j(w)),[g,j,w]),r.jsxs(r.Fragment,{children:[r.jsx(ve.span,{id:d.textId,...i,ref:y}),d.isSelected&&o.valueNode&&!o.valueNodeHasChildren?na.createPortal(i.children,o.valueNode):null]})});C1.displayName=gl;var k1="SelectItemIndicator",_1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return N1(k1,n).isSelected?r.jsx(ve.span,{"aria-hidden":!0,...s,ref:t}):null});_1.displayName=k1;var Ap="SelectScrollUpButton",E1=f.forwardRef((e,t)=>{const n=Cs(Ap,e.__scopeSelect),s=Tp(Ap,e.__scopeSelect),[a,i]=f.useState(!1),o=Ie(t,s.onScrollButtonChange);return jt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;i(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?r.jsx(T1,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});E1.displayName=Ap;var Op="SelectScrollDownButton",P1=f.forwardRef((e,t)=>{const n=Cs(Op,e.__scopeSelect),s=Tp(Op,e.__scopeSelect),[a,i]=f.useState(!1),o=Ie(t,s.onScrollButtonChange);return jt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,h=Math.ceil(d.scrollTop)<u;i(h)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?r.jsx(T1,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});P1.displayName=Op;var T1=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...a}=e,i=Cs("SelectScrollButton",n),o=f.useRef(null),c=au(n),d=f.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return f.useEffect(()=>()=>d(),[d]),jt(()=>{var h;const u=c().find(m=>m.ref.current===document.activeElement);(h=u==null?void 0:u.ref.current)==null||h.scrollIntoView({block:"nearest"})},[c]),r.jsx(ve.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:pe(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(s,50))}),onPointerMove:pe(a.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(s,50))}),onPointerLeave:pe(a.onPointerLeave,()=>{d()})})}),GO="SelectSeparator",R1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return r.jsx(ve.div,{"aria-hidden":!0,...s,ref:t})});R1.displayName=GO;var Ip="SelectArrow",YO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=iu(n),i=Ss(Ip,n),o=Cs(Ip,n);return i.open&&o.position==="popper"?r.jsx(Dj,{...a,...s,ref:t}):null});YO.displayName=Ip;var XO="SelectBubbleInput",A1=f.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const a=f.useRef(null),i=Ie(s,a),o=nu(t);return f.useEffect(()=>{const c=a.current;if(!c)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==t&&h){const m=new Event("change",{bubbles:!0});h.call(c,t),c.dispatchEvent(m)}},[o,t]),r.jsx(ve.select,{...n,style:{...r0,...n.style},ref:i,defaultValue:t})});A1.displayName=XO;function O1(e){return e===""||e===void 0}function I1(e){const t=Cn(e),n=f.useRef(""),s=f.useRef(0),a=f.useCallback(o=>{const c=n.current+o;t(c),function d(u){n.current=u,window.clearTimeout(s.current),u!==""&&(s.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),i=f.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,a,i]}function M1(e,t,n){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=ZO(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==n));const d=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function ZO(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var JO=l1,D1=d1,e3=f1,t3=m1,n3=h1,F1=p1,r3=y1,L1=w1,$1=S1,s3=C1,a3=_1,z1=E1,U1=P1,B1=R1;const ye=JO,be=e3,xe=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(D1,{ref:s,className:V("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(t3,{asChild:!0,children:r.jsx(la,{className:"h-4 w-4 opacity-50"})})]}));xe.displayName=D1.displayName;const V1=f.forwardRef(({className:e,...t},n)=>r.jsx(z1,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(zP,{className:"h-4 w-4"})}));V1.displayName=z1.displayName;const q1=f.forwardRef(({className:e,...t},n)=>r.jsx(U1,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(la,{className:"h-4 w-4"})}));q1.displayName=U1.displayName;const ge=f.forwardRef(({className:e,children:t,position:n="popper",...s},a)=>r.jsx(n3,{container:tl(),children:r.jsxs(F1,{ref:a,className:V("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(V1,{}),r.jsx(r3,{className:V("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(q1,{})]})}));ge.displayName=F1.displayName;const i3=f.forwardRef(({className:e,...t},n)=>r.jsx(L1,{ref:n,className:V("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));i3.displayName=L1.displayName;const L=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs($1,{ref:s,className:V("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(a3,{children:r.jsx(xs,{className:"h-4 w-4"})})}),r.jsx(s3,{children:t})]}));L.displayName=$1.displayName;const o3=f.forwardRef(({className:e,...t},n)=>r.jsx(B1,{ref:n,className:V("-mx-1 my-1 h-px bg-muted",e),...t}));o3.displayName=B1.displayName;const Or=xp,H1=({container:e,...t})=>r.jsx(gp,{container:e!=null?e:tl(),...t});H1.displayName="DialogPortal";const W1=f.forwardRef(({className:e,...t},n)=>r.jsx(il,{ref:n,className:V("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}));W1.displayName=il.displayName;const or=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(H1,{children:[r.jsx(W1,{}),r.jsxs(ol,{ref:s,className:V("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(Xd,{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(Sd,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));or.displayName=ol.displayName;const lr=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});lr.displayName="DialogHeader";const ks=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ks.displayName="DialogFooter";const cr=f.forwardRef(({className:e,...t},n)=>r.jsx(ll,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));cr.displayName=ll.displayName;const dr=f.forwardRef(({className:e,...t},n)=>r.jsx(cl,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));dr.displayName=cl.displayName;var lu="Collapsible",[l3,K1]=zt(lu),[c3,Mp]=l3(lu),Q1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:a,disabled:i,onOpenChange:o,...c}=e,[d,u]=cn({prop:s,defaultProp:a!=null?a:!1,onChange:o,caller:lu});return r.jsx(c3,{scope:n,disabled:i,contentId:Un(),open:d,onOpenToggle:f.useCallback(()=>u(h=>!h),[u]),children:r.jsx(ve.div,{"data-state":$p(d),"data-disabled":i?"":void 0,...c,ref:t})})});Q1.displayName=lu;var G1="CollapsibleTrigger",Dp=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,a=Mp(G1,n);return r.jsx(ve.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":$p(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...s,ref:t,onClick:pe(e.onClick,a.onOpenToggle)})});Dp.displayName=G1;var Fp="CollapsibleContent",Lp=f.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=Mp(Fp,e.__scopeCollapsible);return r.jsx(Fn,{present:n||a.open,children:({present:i})=>r.jsx(d3,{...s,ref:t,present:i})})});Lp.displayName=Fp;var d3=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:a,...i}=e,o=Mp(Fp,n),[c,d]=f.useState(s),u=f.useRef(null),h=Ie(t,u),m=f.useRef(0),y=m.current,v=f.useRef(0),w=v.current,g=o.open||c,j=f.useRef(g),b=f.useRef(void 0);return f.useEffect(()=>{const p=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(p)},[]),jt(()=>{const p=u.current;if(p){b.current=b.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const x=p.getBoundingClientRect();m.current=x.height,v.current=x.width,j.current||(p.style.transitionDuration=b.current.transitionDuration,p.style.animationName=b.current.animationName),d(s)}},[o.open,s]),r.jsx(ve.div,{"data-state":$p(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...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:g&&a})});function $p(e){return e?"open":"closed"}var Y1=Q1,u3=Dp,f3=Lp;const vl=Y1,yl=Dp,bl=Lp;function m3(){return r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsx(Me,{children:Array.from({length:7}).map((e,t)=>r.jsx(Ae,{children:r.jsx(ie,{className:"h-3 w-12"})},t))})}),r.jsx(mn,{children:Array.from({length:5}).map((e,t)=>r.jsx(Me,{children:Array.from({length:7}).map((n,s)=>r.jsx(ce,{children:r.jsx(ie,{className:"h-3 w-full"})},s))},t))})]})}function h3({detail:e,loading:t,open:n,onClose:s,onResend:a,resending:i,onDelete:o}){const[c,d]=f.useState(!1);return r.jsx(Or,{open:n,onOpenChange:()=>s(),children:r.jsx(or,{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(ie,{className:"h-3 w-24"}),r.jsx(ie,{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(lr,{className:"space-y-1",children:[r.jsx(cr,{className:"text-base font-semibold tracking-tight",children:l("Opt-In Detail")}),r.jsx(dr,{className:"font-mono text-xs text-muted-foreground truncate",children:e.hash})]})}),r.jsx(eu,{optIn:e})]})}),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(ki,{label:l("Email"),value:e.email,fullWidth:!0}),r.jsx(ki,{label:l("Form"),value:e.formName||`#${e.formId}`}),e.subscription&&r.jsx(ki,{label:l("Subscription"),value:e.subscription.label}),r.jsx(ki,{label:l("Category"),value:e.category?String(e.category):"—"}),r.jsx(ki,{label:l("Created"),value:e.createtime}),r.jsx(ki,{label:l("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(HP,{className:"h-3 w-3"}),l("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:[l("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:[l("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:[l("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:[l("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:[l("Reminder sent:")," "]}),r.jsx("span",{children:e.reminderSentAt})]})]}),e.formData&&Object.keys(e.formData).length>0&&r.jsxs(vl,{open:c,onOpenChange:d,children:[r.jsxs(yl,{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(ca,{className:"h-3 w-3"}),re(l("Form Data (%s fields)"),Object.keys(e.formData).length)]}),r.jsx(la,{className:`h-3 w-3 transition-transform duration-200 ${c?"rotate-180":""}`})]}),r.jsx(bl,{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(kt,{className:"h-3 w-3"}),l("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:[Jd(e)==="pending"&&r.jsxs(U,{variant:"outline",size:"sm",className:"rounded-lg",disabled:i,onClick:()=>a(e.id),children:[r.jsx($n,{className:"h-3.5 w-3.5 mr-1.5"}),l(i?"Sending...":"Resend Email")]}),r.jsxs(U,{variant:"outline",size:"sm",className:"rounded-lg text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>o(e.id),children:[r.jsx(kn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Delete")]})]})]}):null})})}function ki({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 p3(){var Fe,$,Ce,Je,Vt;const e=Ze(),t=Sn(),[n,s]=f.useState(1),[a]=f.useState(20),[i,o]=f.useState(""),[c,d]=f.useState(""),[u,h]=f.useState("all"),[m,y]=f.useState("all"),[v,w]=f.useState("all"),[g]=Vb(),[j,b]=f.useState("all"),[p,x]=f.useState(g.get("mail")==="failed"?"failed":"all"),[N,S]=f.useState(null),[k,_]=f.useState(null),[C,R]=f.useState(new Set),{data:T,isLoading:O}=we({queryKey:["optins",n,a,i,u,m,v,p,j],queryFn:()=>{const q=new URLSearchParams({page:String(n),per_page:String(a)});return i&&q.set("search",i),u!=="all"&&q.set("category",u),m!=="all"&&q.set("status",m),v!=="all"&&q.set("follow_up",v),p!=="all"&&q.set("mail",p),j!=="all"&&q.set("group",j),Q(`/optins?${q.toString()}`)}}),{data:M}=we({queryKey:["subscription-groups"],queryFn:()=>Q("/subscription-groups")}),B=(Fe=M==null?void 0:M.data)!=null&&Fe.available?M.data.groups:[],{data:I}=we({queryKey:["categories"],queryFn:()=>Q("/categories")}),{data:ne,isLoading:F}=we({queryKey:["optin",N],queryFn:()=>Q(`/optins/${N}`),enabled:!!N}),te=Ee({mutationFn:q=>Q(`/optins/${q}`,{method:"DELETE"}),onSuccess:()=>{G.success(l("Opt-in deleted successfully")),e.invalidateQueries({queryKey:["optins"]}),_(null),N===k&&S(null),R(q=>{const Ue=new Set(q);return k!==null&&Ue.delete(k),Ue})},onError:q=>{G.error(q.message||l("Failed to delete opt-in"))}}),A=Ee({mutationFn:async q=>{const We=(await Promise.allSettled(q.map(xn=>Q(`/optins/${xn}`,{method:"DELETE"})))).filter(xn=>xn.status==="rejected").length;if(We>0)throw new Error(re(l("Failed to delete %1$s of %2$s items"),We,q.length))},onSuccess:()=>{G.success(re(l("%s opt-in(s) deleted"),C.size)),e.invalidateQueries({queryKey:["optins"]}),R(new Set),S(null)},onError:q=>{G.error(q.message||l("Bulk delete failed")),e.invalidateQueries({queryKey:["optins"]})}}),D=Ee({mutationFn:q=>Q(`/optins/${q}/resend`,{method:"POST"}),onSuccess:()=>{G.success(l("Confirmation email resent"))},onError:q=>{G.error(q.message||l("Failed to resend email"))}}),W=T==null?void 0:T.data,he=($=W==null?void 0:W.items)!=null?$:[],me=(Ce=W==null?void 0:W.pages)!=null?Ce:1,je=(Je=I==null?void 0:I.data)!=null?Je:[],Ne=ne==null?void 0:ne.data,$e=f.useMemo(()=>{const q=new Map;for(const Ue of je)q.set(Number(Ue.id),Ue.name);return q},[je]),Be=he.length>0&&he.every(q=>C.has(q.id)),se=he.some(q=>C.has(q.id)),De=f.useCallback(()=>{R(q=>{const Ue=new Set(q);if(Be)for(const We of he)Ue.delete(We.id);else for(const We of he)Ue.add(We.id);return Ue})},[Be,he]),P=f.useCallback(q=>{R(Ue=>{const We=new Set(Ue);return We.has(q)?We.delete(q):We.add(q),We})},[]);function z(){o(c),s(1)}function Y(q){t(`/optins/${q}`)}const[ae,_e]=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:l("Opt-Ins")}),r.jsx("p",{className:"text-muted-foreground",children:l("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(tT,{className:"absolute left-2.5 top-2.5 h-3 w-3 text-muted-foreground"}),r.jsx(Pe,{placeholder:l("Search email or hash..."),className:"h-8 pl-8 text-xs",value:c,onChange:q=>d(q.target.value),onKeyDown:q=>{q.key==="Enter"&&z()}})]}),r.jsxs(ye,{value:u,onValueChange:q=>{h(q),s(1)},children:[r.jsx(xe,{className:"h-8 w-[130px] text-xs","aria-label":l("Category"),children:r.jsx(be,{placeholder:l("Category")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All")}),je.map(q=>r.jsx(L,{value:String(q.id),children:q.name},q.id))]})]}),r.jsxs(ye,{value:m,onValueChange:q=>{y(q),s(1)},children:[r.jsx(xe,{className:"h-8 w-[120px] text-xs","aria-label":l("Status"),children:r.jsx(be,{placeholder:l("Status")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All")}),r.jsx(L,{value:"confirmed",children:l("Confirmed")}),r.jsx(L,{value:"pending",children:l("Pending")}),r.jsx(L,{value:"revoked",children:l("Revoked")})]})]}),B.length>0&&r.jsxs(ye,{value:j,onValueChange:q=>{b(q),s(1)},children:[r.jsx(xe,{className:"h-8 w-[170px] text-xs","aria-label":l("Subscription"),children:r.jsx(be,{placeholder:l("Subscription")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All subscriptions")}),B.map(q=>r.jsx(L,{value:q.key,children:q.label},q.key))]})]}),r.jsxs(ye,{value:v,onValueChange:q=>{w(q),s(1)},children:[r.jsx(xe,{className:"h-8 w-[190px] text-xs","aria-label":l("Follow-up actions"),children:r.jsx(be,{placeholder:l("Follow-up actions")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All follow-ups")}),r.jsx(L,{value:"problem",children:l("Follow-ups need attention")})]})]}),r.jsxs(ye,{value:p,onValueChange:q=>{x(q),s(1)},children:[r.jsx(xe,{className:"h-8 w-[170px] text-xs","aria-label":l("Confirmation mail"),children:r.jsx(be,{placeholder:l("Confirmation mail")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All mails")}),r.jsx(L,{value:"failed",children:l("Mail failed")})]})]})]}),C.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:re(l("%s selected"),C.size)}),r.jsx("div",{className:"h-4 w-px bg-border"}),r.jsxs(U,{variant:"outline",size:"sm",className:"h-7 text-xs text-destructive border-destructive/30 hover:bg-destructive/10",disabled:A.isPending,onClick:()=>_e(!0),children:[r.jsx(kn,{className:"h-3 w-3 mr-1"}),A.isPending?l("Deleting..."):l("Delete Selected")]}),r.jsx(U,{variant:"ghost",size:"sm",className:"h-7 text-xs text-muted-foreground",onClick:()=>R(new Set),children:l("Clear selection")})]}),r.jsx(Z,{children:r.jsxs(ee,{className:"p-0",children:[O?r.jsx(m3,{}):r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsxs(Me,{children:[r.jsx(Ae,{className:"text-xs w-10",children:r.jsx(Si,{checked:Be?!0:se?"indeterminate":!1,onCheckedChange:De,"aria-label":l("Select all")})}),r.jsx(Ae,{className:"text-xs",children:l("Email")}),r.jsx(Ae,{className:"text-xs",children:l("Form")}),r.jsx(Ae,{className:"text-xs",children:l("Category")}),r.jsx(Ae,{className:"text-xs",children:l("Status")}),r.jsx(Ae,{className:"text-xs text-right",children:l("Date")})]})}),r.jsx(mn,{children:he.length===0?r.jsx(Me,{children:r.jsx(ce,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:l("No opt-ins found")})}):he.map(q=>r.jsxs(Me,{className:"cursor-pointer hover:bg-muted/50 transition-colors",onClick:Ue=>{Ue.target.closest("[data-checkbox]")||Y(q.id)},children:[r.jsx(ce,{"data-checkbox":!0,children:r.jsx(Si,{checked:C.has(q.id),onCheckedChange:()=>P(q.id),onClick:Ue=>Ue.stopPropagation(),"aria-label":re(l("Select opt-in %s"),q.id)})}),r.jsx(ce,{children:r.jsx("button",{onClick:Ue=>{Ue.stopPropagation(),t(`/optins/${q.id}`)},className:"text-primary hover:underline text-xs font-medium",children:q.email})}),r.jsxs(ce,{className:"text-xs text-muted-foreground",children:[q.formName||`#${q.formId}`,q.subscription&&r.jsx("span",{className:"block text-[10px] text-muted-foreground/80",children:re(l("Subscription: %s"),q.subscription.label)})]}),r.jsx(ce,{className:"text-xs text-muted-foreground",children:$e.get(q.category)||(q.category?String(q.category):"—")}),r.jsxs(ce,{children:[r.jsx(eu,{optIn:q,size:"sm"}),q.mailStatus==="failed"&&r.jsx(pt,{variant:"secondary",className:"ml-1 text-[10px] bg-red-50 text-red-700 border-red-200 dark:bg-red-950 dark:text-red-400 dark:border-red-800",title:l("The confirmation mail could not be handed to the mail server."),children:l("Mail failed")})]}),r.jsx(ce,{className:"text-right text-xs text-muted-foreground",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",onClick:Ue=>Ue.stopPropagation(),children:[r.jsx(Hn,{id:"optins.row-action",data:{optin:q}}),r.jsx("span",{children:q.createtime})]})})]},q.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:[re(l("Page %1$s of %2$s"),(Vt=W==null?void 0:W.page)!=null?Vt:n,me),W!=null&&W.total?re(l(" (%s total)"),W.total):""]}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n<=1,onClick:()=>s(q=>Math.max(1,q-1)),children:r.jsx(R0,{className:"h-3 w-3"})}),r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n>=me,onClick:()=>s(q=>q+1),children:r.jsx(Sh,{className:"h-3 w-3"})})]})]})]})}),r.jsx(h3,{detail:Ne,loading:F,open:!!N,onClose:()=>S(null),onResend:q=>D.mutate(q),resending:D.isPending,onDelete:q=>{_(q)}}),r.jsx(Or,{open:k!==null,onOpenChange:()=>_(null),children:r.jsxs(or,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(lr,{children:[r.jsx(cr,{children:l("Delete Opt-In")}),r.jsx(dr,{children:l("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(ks,{children:[r.jsx(U,{variant:"outline",className:"rounded-lg",onClick:()=>_(null),children:l("Cancel")}),r.jsx(U,{variant:"destructive",className:"rounded-lg",disabled:te.isPending,onClick:()=>{k!==null&&te.mutate(k)},children:te.isPending?l("Deleting..."):l("Delete")})]})]})}),r.jsx(Or,{open:ae,onOpenChange:()=>_e(!1),children:r.jsxs(or,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(lr,{children:[r.jsx(cr,{children:re(l("Delete %s Opt-In(s)"),C.size)}),r.jsx(dr,{children:re(l("Are you sure you want to permanently delete %s selected opt-in(s)? This action cannot be undone."),C.size)})]}),r.jsxs(ks,{children:[r.jsx(U,{variant:"outline",className:"rounded-lg",onClick:()=>_e(!1),children:l("Cancel")}),r.jsx(U,{variant:"destructive",className:"rounded-lg",disabled:A.isPending,onClick:()=>{A.mutate(Array.from(C)),_e(!1)},children:A.isPending?l("Deleting..."):re(l("Delete %s"),C.size)})]})]})})]})}var x3=Symbol("radix.slottable");function g3(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=x3,t}var X1="AlertDialog",[v3]=zt(X1,[jw]),Ir=jw(),Z1=e=>{const{__scopeAlertDialog:t,...n}=e,s=Ir(t);return r.jsx(xp,{...s,...n,modal:!0})};Z1.displayName=X1;var y3="AlertDialogTrigger",b3=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Ir(n);return r.jsx(_5,{...a,...s,ref:t})});b3.displayName=y3;var j3="AlertDialogPortal",J1=e=>{const{__scopeAlertDialog:t,...n}=e,s=Ir(t);return r.jsx(gp,{...s,...n})};J1.displayName=j3;var w3="AlertDialogOverlay",eN=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Ir(n);return r.jsx(il,{...a,...s,ref:t})});eN.displayName=w3;var _i="AlertDialogContent",[N3,S3]=v3(_i),C3=g3("AlertDialogContent"),tN=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:s,...a}=e,i=Ir(n),o=f.useRef(null),c=Ie(t,o),d=f.useRef(null);return r.jsx(N5,{contentName:_i,titleName:nN,docsSlug:"alert-dialog",children:r.jsx(N3,{scope:n,cancelRef:d,children:r.jsxs(ol,{role:"alertdialog",...i,...a,ref:c,onOpenAutoFocus:pe(a.onOpenAutoFocus,u=>{var h;u.preventDefault(),(h=d.current)==null||h.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[r.jsx(C3,{children:s}),r.jsx(_3,{contentRef:o})]})})})});tN.displayName=_i;var nN="AlertDialogTitle",rN=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Ir(n);return r.jsx(ll,{...a,...s,ref:t})});rN.displayName=nN;var sN="AlertDialogDescription",aN=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Ir(n);return r.jsx(cl,{...a,...s,ref:t})});aN.displayName=sN;var k3="AlertDialogAction",iN=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Ir(n);return r.jsx(Xd,{...a,...s,ref:t})});iN.displayName=k3;var oN="AlertDialogCancel",lN=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,{cancelRef:a}=S3(oN,n),i=Ir(n),o=Ie(t,a);return r.jsx(Xd,{...i,...s,ref:o})});lN.displayName=oN;var _3=({contentRef:e})=>{const t=`\`${_i}\` requires a description for the component to be accessible for screen reader users. | |
| 459 | 485 | |
| 460 | -You can add a description to the \`${ja}\` by passing a \`${p1}\` component as a child, which also benefits sighted users by adding visible context to the dialog. | |
| 486 | +You can add a description to the \`${_i}\` by passing a \`${sN}\` component as a child, which also benefits sighted users by adding visible context to the dialog. | |
| 461 | 487 | |
| 462 | -Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ja}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. | |
| 488 | +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${_i}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. | |
| 463 | 489 | |
| 464 | -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var s;document.getElementById((s=e.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},iO=c1,lO=d1,b1=u1,j1=f1,w1=g1,N1=y1,S1=h1,C1=x1;const cO=iO,k1=({container:e,...t})=>r.jsx(lO,{container:e!=null?e:qi(),...t});k1.displayName="AlertDialogPortal";const _1=f.forwardRef(({className:e,...t},n)=>r.jsx(b1,{className:Q("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}));_1.displayName=b1.displayName;const E1=f.forwardRef(({className:e,...t},n)=>r.jsxs(k1,{children:[r.jsx(_1,{}),r.jsx(j1,{ref:n,className:Q("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),...t})]}));E1.displayName=j1.displayName;const P1=({className:e,...t})=>r.jsx("div",{className:Q("flex flex-col space-y-2 text-center sm:text-left",e),...t});P1.displayName="AlertDialogHeader";const T1=({className:e,...t})=>r.jsx("div",{className:Q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});T1.displayName="AlertDialogFooter";const R1=f.forwardRef(({className:e,...t},n)=>r.jsx(S1,{ref:n,className:Q("text-lg font-semibold",e),...t}));R1.displayName=S1.displayName;const A1=f.forwardRef(({className:e,...t},n)=>r.jsx(C1,{ref:n,className:Q("text-sm text-muted-foreground",e),...t}));A1.displayName=C1.displayName;const O1=f.forwardRef(({className:e,...t},n)=>r.jsx(w1,{ref:n,className:Q(kh(),e),...t}));O1.displayName=w1.displayName;const I1=f.forwardRef(({className:e,...t},n)=>r.jsx(N1,{ref:n,className:Q(kh({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));I1.displayName=N1.displayName;function dO(e){switch(e){case"pending":return l("Pending");case"running":return l("Running");case"succeeded":return l("Done");case"failed_retryable":return l("Failed — retry scheduled");case"failed_permanent":return l("Failed");case"unknown":return l("Outcome unknown");case"skipped":return l("Skipped")}}function uO(e){switch(e){case"completed":return l("Completed");case"partial":return l("Partially successful");case"failed":return l("Failed");case"unknown":return l("Unclear");case"pending":return l("In progress");case"legacy_unknown":return l("No status recorded");default:return l("None")}}function fO(e){var n;return(n={http_forbidden:l("The internal request was blocked (HTTP 401/403) — usually a firewall or security plugin."),http_not_found:l("The internal request target was not found (HTTP 404)."),http_rate_limited:l("The internal request was rate-limited (HTTP 429)."),http_redirect:l("The internal request was redirected; redirects are not followed."),http_server_error:l("The server answered with an error (HTTP 5xx) — the action may have run."),http_client_error:l("The internal request was rejected."),invalid_response:l("The response could not be read — the action may have run."),transport_connect_failed:l("The site could not reach itself; nothing was executed."),transport_timeout_unknown:l("The request timed out after it was sent — the action may have run."),transport_error_unknown:l("The connection broke after the request was sent — the action may have run."),captcha_revalidation_failed:l("The spam protection rejected the confirmed submission."),validation_failed:l("The form rejected the stored submission."),form_rejected:l("The form rejected the stored submission."),form_missing:l("The form no longer exists."),integration_unavailable:l("The form plugin is not active."),replay_unauthorized:l("The internal request was not accepted as an authorised replay."),registrar_unavailable:l("The form plugin's actions could not be restricted; nothing was executed."),entry_write_failed:l("The entry could not be saved."),entry_write_partial:l("The entry was saved incompletely."),entry_missing:l("The stored form entry no longer exists."),mail_handoff_failed:l("The mail was not handed to the mailer."),action_failed:l("The action reported an error."),action_outcome_unknown:l("The action did not report a result — it may have run."),action_removed:l("The action was removed from the form after the opt-in was confirmed."),adapter_exception:l("An unexpected error interrupted the action — it may have run."),lease_expired:l("The attempt was interrupted — the action may have run."),payload_missing:l("The stored submission data is missing."),files_missing:l("Uploaded files needed for this action are missing."),plan_failed:l("The follow-up actions could not be determined."),spam_rejected:l("The form's spam check rejected the stored submission."),submission_aborted:l("The form plugin aborted the submission."),send_default_mail_disabled:l("Disabled by the f12_cf7_doubleoptin_send_default_mail filter."),not_supported:l("Not supported by this form plugin edition."),not_applicable_in_replay:l("Not applicable after confirmation."),no_recipient:l("No recipient configured."),no_actions_configured:l("The form has no follow-up actions."),opted_out:l("The address has opted out.")}[e])!=null?n:e}function mO({status:e}){switch(e){case"succeeded":return r.jsx(ro,{className:"h-3.5 w-3.5 text-emerald-600","aria-hidden":"true"});case"failed_permanent":return r.jsx(Gm,{className:"h-3.5 w-3.5 text-destructive","aria-hidden":"true"});case"failed_retryable":return r.jsx(ud,{className:"h-3.5 w-3.5 text-amber-600","aria-hidden":"true"});case"unknown":return r.jsx(PE,{className:"h-3.5 w-3.5 text-amber-600","aria-hidden":"true"});case"skipped":return r.jsx("span",{className:"inline-block h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true",children:"–"});default:return r.jsx(Qn,{className:"h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true"})}}function hO({optinId:e}){const t=Xe(),[n,s]=f.useState(!1),o=["optin-follow-ups",e],{data:a,isLoading:i}=Ce({queryKey:o,queryFn:()=>Z(`/optins/${e}/follow-ups`)}),c=Te({mutationFn:j=>Z(`/optins/${e}/follow-ups/retry`,{method:"POST",body:JSON.stringify({include_unknown:j})}),onSuccess:j=>{var w;t.setQueryData(o,j),t.invalidateQueries({queryKey:["optins"]}),((w=j==null?void 0:j.data)==null?void 0:w.aggregate)==="completed"?q.success(l("Follow-up actions completed")):q.warning(l("Retry finished — some actions still need attention"))},onError:j=>q.error(j.message||l("Retry failed"))});if(i)return r.jsx(oe,{className:"h-32 w-full"});const d=a==null?void 0:a.data;if(!d||!d.confirmed&&d.actions.length===0)return null;const u=d.actions.filter(j=>j.action_kind!=="marker"||j.status!=="skipped"),h=u.some(j=>["pending","failed_retryable","failed_permanent"].includes(j.status)),m=u.some(j=>j.status==="unknown"),v=["partial","failed","unknown"].includes(d.aggregate),g=()=>{const j={optin_id:d.optin_id,form_id:d.form_id,aggregate:d.aggregate,versions:d.versions,actions:d.actions.map(b=>({action_id:b.action_id,status:b.status,error_code:b.error_code,http_status:b.http_status,response_kind:b.response_kind,attempts:b.attempts,attempt_id:b.attempt_id,trigger:b.trigger,started_at:b.started_at,finished_at:b.finished_at,next_attempt_at:b.next_attempt_at,evidence:b.evidence,entry_ref:b.entry_ref}))};navigator.clipboard.writeText(JSON.stringify(j,null,2)).then(()=>q.success(l("Diagnosis copied to clipboard")),()=>q.error(l("Failed to copy")))};return r.jsxs(ee,{role:"region","aria-label":l("Follow-up actions"),className:v?"border-amber-300 dark:border-amber-800":void 0,children:[r.jsxs(ce,{className:"flex flex-row flex-wrap items-center justify-between gap-2 space-y-0",children:[r.jsxs(ue,{className:"text-sm flex items-center gap-2 whitespace-nowrap",children:[v&&r.jsx(zt,{className:"h-4 w-4 text-amber-600","aria-hidden":"true"}),l("Follow-up actions"),r.jsx(Qe,{variant:"outline",className:"font-normal",children:uO(d.aggregate)})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(H,{variant:"ghost",size:"sm",onClick:g,children:[r.jsx(Xm,{className:"h-3.5 w-3.5 mr-1.5","aria-hidden":"true"}),l("Copy diagnosis")]}),d.managed&&h&&r.jsxs(H,{variant:"outline",size:"sm",disabled:c.isPending,onClick:()=>c.mutate(!1),children:[r.jsx(ud,{className:"h-3.5 w-3.5 mr-1.5","aria-hidden":"true"}),c.isPending?l("Running..."):l("Retry failed actions")]}),d.managed&&m&&r.jsx(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:c.isPending,onClick:()=>s(!0),children:l("Also retry unclear actions")})]})]}),r.jsxs(ne,{className:"space-y-3",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:l("The confirmation stays valid either way. This shows whether the form's own actions — stored entry, notification mails, webhooks — ran after it.")}),d.aggregate==="legacy_unknown"&&r.jsx("p",{className:"text-sm",children:l("This opt-in was confirmed before follow-up actions were recorded (or by an integration that does not report them). It is not replayed automatically, so historic mails are not sent again.")}),u.length>0&&r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsxs(Ie,{children:[r.jsx(Ee,{children:l("Action")}),r.jsx(Ee,{children:l("Status")}),r.jsx(Ee,{children:l("Reason")}),r.jsx(Ee,{className:"text-right",children:l("Attempts")}),r.jsx(Ee,{children:l("Last attempt (UTC)")})]})}),r.jsx(en,{children:u.map(j=>r.jsxs(Ie,{children:[r.jsxs(fe,{children:[r.jsx("div",{className:"font-medium",children:j.action_label||j.action_id}),r.jsx("div",{className:"text-xs text-muted-foreground font-mono",children:j.action_id})]}),r.jsx(fe,{children:r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(mO,{status:j.status}),dO(j.status)]})}),r.jsxs(fe,{className:"text-xs",children:[j.error_code?fO(j.error_code):"—",j.http_status>0&&r.jsxs("span",{className:"text-muted-foreground",children:[" (HTTP ",j.http_status,")"]}),j.status==="failed_retryable"&&j.next_attempt_at&&r.jsx("div",{className:"text-muted-foreground",children:le(l("Next automatic attempt: %s"),j.next_attempt_at)}),j.entry_ref&&r.jsx("div",{className:"text-muted-foreground",children:le(l("Entry: %s"),j.entry_ref)})]}),r.jsx(fe,{className:"text-right tabular-nums",children:j.attempts}),r.jsx(fe,{className:"text-xs font-mono",children:j.finished_at||j.started_at||"—"})]},j.id))})]}),u.some(j=>j.status==="failed_retryable")&&r.jsx("p",{className:"text-xs text-muted-foreground",children:l('Automatic retries depend on WP-Cron, which only runs when the site has visitors. Use "Retry failed actions" to run them now.')})]}),r.jsx(cO,{open:n,onOpenChange:s,children:r.jsxs(E1,{children:[r.jsxs(P1,{children:[r.jsx(R1,{children:l("Retry actions with an unknown outcome?")}),r.jsx(A1,{children:l("These actions may already have run — for example a mail that was sent before the connection broke. Retrying them can send a duplicate mail or create a duplicate entry. Check the recipient's mailbox or the form plugin's entries first.")})]}),r.jsxs(T1,{children:[r.jsx(I1,{children:l("Cancel")}),r.jsx(O1,{onClick:()=>c.mutate(!0),children:l("Retry anyway")})]})]})})]})}function M1(e){navigator.clipboard.writeText(e).then(()=>q.success(l("Copied to clipboard")),()=>q.error(l("Failed to copy")))}function lp(e,t=""){const n=[];for(const[s,o]of Object.entries(e)){const a=t?`${t}.${s}`:s;o&&typeof o=="object"&&!Array.isArray(o)?n.push(...lp(o,a)):Array.isArray(o)?n.push([a,o.join(", ")]):n.push([a,String(o!=null?o:"")])}return n}function pO(){var N;const{id:e}=Gc(),t=qn(),n=Xe(),s=$t(),[o,a]=f.useState(!1),[i,c]=f.useState(!0),[d,u]=f.useState(!1),[h,m]=f.useState(!1),{data:v,isLoading:g}=Ce({queryKey:["optin",e],queryFn:()=>Z(`/optins/${e}`),enabled:!!e}),j=Te({mutationFn:()=>Z(`/optins/${e}`,{method:"DELETE"}),onSuccess:()=>{q.success(l("Opt-in deleted")),n.invalidateQueries({queryKey:["optins"]}),t("/optins")},onError:S=>q.error(S.message||l("Delete failed"))}),b=Te({mutationFn:()=>Z(`/optins/${e}/resend`,{method:"POST"}),onSuccess:()=>q.success(l("Confirmation email resent")),onError:S=>q.error(S.message||l("Failed to resend"))}),w=Te({mutationFn:()=>Z(`/optins/${e}/reset-confirmation`,{method:"POST"}),onSuccess:()=>{q.success(l("Confirmation reset — click the email link again to re-test")),n.invalidateQueries({queryKey:["optin",e]}),n.invalidateQueries({queryKey:["optins"]})},onError:S=>q.error(S.message||l("Failed to reset"))}),y=v==null?void 0:v.data;if(g)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(!y)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(H,{variant:"ghost",size:"sm",asChild:!0,children:r.jsxs(hn,{to:"/optins",children:[r.jsx(ad,{className:"h-4 w-4 mr-1"})," ",l("Back to Opt-Ins")]})}),r.jsx("p",{className:"text-muted-foreground",children:l("Opt-In not found.")})]});const p=y.formData?y.formData.fields?lp(y.formData.fields):lp(y.formData):[],x=`${s.adminUrl}admin-ajax.php?action=doi_export_consent&scope=single&id=${y.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(hn,{to:"/optins",children:r.jsx(ad,{className:"h-4 w-4"})})}),r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Opt-In Detail")}),y.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(ro,{className:"h-3 w-3 mr-1"}),l("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(Qn,{className:"h-3 w-3 mr-1"}),l("Pending")]})]}),r.jsx("p",{className:"text-xs text-muted-foreground font-mono ml-10",children:y.hash})]}),r.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[!y.confirmed&&r.jsxs(H,{variant:"outline",size:"sm",disabled:b.isPending,onClick:()=>b.mutate(),children:[r.jsx(Gn,{className:"h-3.5 w-3.5 mr-1.5"}),b.isPending?l("Sending..."):l("Resend Email")]}),y._devResetAvailable&&y.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:w.isPending,onClick:()=>{window.confirm(l(`Reset this opt-in to PENDING for re-testing? | |
| 490 | +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var s;document.getElementById((s=e.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},E3=Z1,P3=J1,cN=eN,dN=tN,uN=iN,fN=lN,mN=rN,hN=aN;const T3=E3,pN=({container:e,...t})=>r.jsx(P3,{container:e!=null?e:tl(),...t});pN.displayName="AlertDialogPortal";const xN=f.forwardRef(({className:e,...t},n)=>r.jsx(cN,{className:V("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}));xN.displayName=cN.displayName;const gN=f.forwardRef(({className:e,...t},n)=>r.jsxs(pN,{children:[r.jsx(xN,{}),r.jsx(dN,{ref:n,className:V("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),...t})]}));gN.displayName=dN.displayName;const vN=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});vN.displayName="AlertDialogHeader";const yN=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});yN.displayName="AlertDialogFooter";const bN=f.forwardRef(({className:e,...t},n)=>r.jsx(mN,{ref:n,className:V("text-lg font-semibold",e),...t}));bN.displayName=mN.displayName;const jN=f.forwardRef(({className:e,...t},n)=>r.jsx(hN,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));jN.displayName=hN.displayName;const wN=f.forwardRef(({className:e,...t},n)=>r.jsx(uN,{ref:n,className:V(np(),e),...t}));wN.displayName=uN.displayName;const NN=f.forwardRef(({className:e,...t},n)=>r.jsx(fN,{ref:n,className:V(np({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));NN.displayName=fN.displayName;function R3(e){switch(e){case"pending":return l("Pending");case"running":return l("Running");case"succeeded":return l("Done");case"failed_retryable":return l("Failed — retry scheduled");case"failed_permanent":return l("Failed");case"unknown":return l("Outcome unknown");case"skipped":return l("Skipped")}}function A3(e){switch(e){case"completed":return l("Completed");case"partial":return l("Partially successful");case"failed":return l("Failed");case"unknown":return l("Unclear");case"pending":return l("In progress");case"legacy_unknown":return l("No status recorded");default:return l("None")}}function O3(e){var n;return(n={http_forbidden:l("The internal request was blocked (HTTP 401/403) — usually a firewall or security plugin."),http_not_found:l("The internal request target was not found (HTTP 404)."),http_rate_limited:l("The internal request was rate-limited (HTTP 429)."),http_redirect:l("The internal request was redirected; redirects are not followed."),http_server_error:l("The server answered with an error (HTTP 5xx) — the action may have run."),http_client_error:l("The internal request was rejected."),invalid_response:l("The response could not be read — the action may have run."),transport_connect_failed:l("The site could not reach itself; nothing was executed."),transport_timeout_unknown:l("The request timed out after it was sent — the action may have run."),transport_error_unknown:l("The connection broke after the request was sent — the action may have run."),captcha_revalidation_failed:l("The spam protection rejected the confirmed submission."),validation_failed:l("The form rejected the stored submission."),form_rejected:l("The form rejected the stored submission."),form_missing:l("The form no longer exists."),integration_unavailable:l("The form plugin is not active."),replay_unauthorized:l("The internal request was not accepted as an authorised replay."),registrar_unavailable:l("The form plugin's actions could not be restricted; nothing was executed."),entry_write_failed:l("The entry could not be saved."),entry_write_partial:l("The entry was saved incompletely."),entry_missing:l("The stored form entry no longer exists."),mail_handoff_failed:l("The mail was not handed to the mailer."),action_failed:l("The action reported an error."),action_outcome_unknown:l("The action did not report a result — it may have run."),action_removed:l("The action was removed from the form after the opt-in was confirmed."),adapter_exception:l("An unexpected error interrupted the action — it may have run."),lease_expired:l("The attempt was interrupted — the action may have run."),payload_missing:l("The stored submission data is missing."),files_missing:l("Uploaded files needed for this action are missing."),plan_failed:l("The follow-up actions could not be determined."),spam_rejected:l("The form's spam check rejected the stored submission."),submission_aborted:l("The form plugin aborted the submission."),send_default_mail_disabled:l("Disabled by the f12_cf7_doubleoptin_send_default_mail filter."),not_supported:l("Not supported by this form plugin edition."),not_applicable_in_replay:l("Not applicable after confirmation."),no_recipient:l("No recipient configured."),no_actions_configured:l("The form has no follow-up actions."),no_notifications_configured:l("The form has no notification mails set up."),opted_out:l("The address has opted out.")}[e])!=null?n:e}function I3({status:e}){switch(e){case"succeeded":return r.jsx(Go,{className:"h-3.5 w-3.5 text-emerald-600","aria-hidden":"true"});case"failed_permanent":return r.jsx(Ch,{className:"h-3.5 w-3.5 text-destructive","aria-hidden":"true"});case"failed_retryable":return r.jsx(wd,{className:"h-3.5 w-3.5 text-amber-600","aria-hidden":"true"});case"unknown":return r.jsx(UP,{className:"h-3.5 w-3.5 text-amber-600","aria-hidden":"true"});case"skipped":return r.jsx("span",{className:"inline-block h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true",children:"–"});default:return r.jsx(gs,{className:"h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true"})}}function M3({optinId:e}){const t=Ze(),[n,s]=f.useState(!1),a=["optin-follow-ups",e],{data:i,isLoading:o}=we({queryKey:a,queryFn:()=>Q(`/optins/${e}/follow-ups`)}),c=Ee({mutationFn:w=>Q(`/optins/${e}/follow-ups/retry`,{method:"POST",body:JSON.stringify({include_unknown:w})}),onSuccess:w=>{var j;t.setQueryData(a,w),t.invalidateQueries({queryKey:["optins"]}),((j=w==null?void 0:w.data)==null?void 0:j.aggregate)==="completed"?G.success(l("Follow-up actions completed")):G.warning(l("Retry finished — some actions still need attention"))},onError:w=>G.error(w.message||l("Retry failed"))});if(o)return r.jsx(ie,{className:"h-32 w-full"});const d=i==null?void 0:i.data;if(!d||!d.confirmed&&d.actions.length===0)return null;const u=d.actions.filter(w=>w.action_kind!=="marker"||w.status!=="skipped"),h=u.some(w=>["pending","failed_retryable","failed_permanent"].includes(w.status)),m=u.some(w=>w.status==="unknown"),y=["partial","failed","unknown"].includes(d.aggregate),v=()=>{const w={optin_id:d.optin_id,form_id:d.form_id,aggregate:d.aggregate,versions:d.versions,actions:d.actions.map(g=>({action_id:g.action_id,status:g.status,error_code:g.error_code,http_status:g.http_status,response_kind:g.response_kind,attempts:g.attempts,attempt_id:g.attempt_id,trigger:g.trigger,started_at:g.started_at,finished_at:g.finished_at,next_attempt_at:g.next_attempt_at,evidence:g.evidence,entry_ref:g.entry_ref}))};navigator.clipboard.writeText(JSON.stringify(w,null,2)).then(()=>G.success(l("Diagnosis copied to clipboard")),()=>G.error(l("Failed to copy")))};return r.jsxs(Z,{role:"region","aria-label":l("Follow-up actions"),className:y?"border-amber-300 dark:border-amber-800":void 0,children:[r.jsxs(le,{className:"flex flex-row flex-wrap items-center justify-between gap-2 space-y-0",children:[r.jsxs(fe,{className:"text-sm flex items-center gap-2 whitespace-nowrap",children:[y&&r.jsx(_t,{className:"h-4 w-4 text-amber-600","aria-hidden":"true"}),l("Follow-up actions"),r.jsx(pt,{variant:"outline",className:"font-normal",children:A3(d.aggregate)})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(U,{variant:"ghost",size:"sm",onClick:v,children:[r.jsx(kh,{className:"h-3.5 w-3.5 mr-1.5","aria-hidden":"true"}),l("Copy diagnosis")]}),d.managed&&h&&r.jsxs(U,{variant:"outline",size:"sm",disabled:c.isPending,onClick:()=>c.mutate(!1),children:[r.jsx(wd,{className:"h-3.5 w-3.5 mr-1.5","aria-hidden":"true"}),c.isPending?l("Running..."):l("Retry failed actions")]}),d.managed&&m&&r.jsx(U,{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:c.isPending,onClick:()=>s(!0),children:l("Also retry unclear actions")})]})]}),r.jsxs(ee,{className:"space-y-3",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:l("The confirmation stays valid either way. This shows whether the form's own actions — stored entry, notification mails, webhooks — ran after it.")}),d.aggregate==="legacy_unknown"&&r.jsx("p",{className:"text-sm",children:l("This opt-in was confirmed before follow-up actions were recorded (or by an integration that does not report them). It is not replayed automatically, so historic mails are not sent again.")}),u.length>0&&r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsxs(Me,{children:[r.jsx(Ae,{children:l("Action")}),r.jsx(Ae,{children:l("Status")}),r.jsx(Ae,{children:l("Reason")}),r.jsx(Ae,{className:"text-right",children:l("Attempts")}),r.jsx(Ae,{children:l("Last attempt (UTC)")})]})}),r.jsx(mn,{children:u.map(w=>r.jsxs(Me,{children:[r.jsxs(ce,{children:[r.jsx("div",{className:"font-medium",children:w.action_label||w.action_id}),r.jsx("div",{className:"text-xs text-muted-foreground font-mono",children:w.action_id})]}),r.jsx(ce,{children:r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(I3,{status:w.status}),R3(w.status)]})}),r.jsxs(ce,{className:"text-xs",children:[w.error_code?O3(w.error_code):"—",w.http_status>0&&r.jsxs("span",{className:"text-muted-foreground",children:[" (HTTP ",w.http_status,")"]}),w.status==="failed_retryable"&&w.next_attempt_at&&r.jsx("div",{className:"text-muted-foreground",children:re(l("Next automatic attempt: %s"),w.next_attempt_at)}),w.entry_ref&&r.jsx("div",{className:"text-muted-foreground",children:re(l("Entry: %s"),w.entry_ref)})]}),r.jsx(ce,{className:"text-right tabular-nums",children:w.attempts}),r.jsx(ce,{className:"text-xs font-mono",children:w.finished_at||w.started_at||"—"})]},w.id))})]}),u.some(w=>w.status==="failed_retryable")&&r.jsx("p",{className:"text-xs text-muted-foreground",children:l('Automatic retries depend on WP-Cron, which only runs when the site has visitors. Use "Retry failed actions" to run them now.')})]}),r.jsx(T3,{open:n,onOpenChange:s,children:r.jsxs(gN,{children:[r.jsxs(vN,{children:[r.jsx(bN,{children:l("Retry actions with an unknown outcome?")}),r.jsx(jN,{children:l("These actions may already have run — for example a mail that was sent before the connection broke. Retrying them can send a duplicate mail or create a duplicate entry. Check the recipient's mailbox or the form plugin's entries first.")})]}),r.jsxs(yN,{children:[r.jsx(NN,{children:l("Cancel")}),r.jsx(wN,{onClick:()=>c.mutate(!0),children:l("Retry anyway")})]})]})})]})}function SN(e){navigator.clipboard.writeText(e).then(()=>G.success(l("Copied to clipboard")),()=>G.error(l("Failed to copy")))}function zp(e,t=""){const n=[];for(const[s,a]of Object.entries(e)){const i=t?`${t}.${s}`:s;a&&typeof a=="object"&&!Array.isArray(a)?n.push(...zp(a,i)):Array.isArray(a)?n.push([i,a.join(", ")]):n.push([i,String(a!=null?a:"")])}return n}function D3(){var N,S;const{id:e}=ai(),t=Sn(),n=Ze(),s=ht(),[a,i]=f.useState(!1),[o,c]=f.useState(!0),[d,u]=f.useState(!1),[h,m]=f.useState(!1),{data:y,isLoading:v}=we({queryKey:["optin",e],queryFn:()=>Q(`/optins/${e}`),enabled:!!e}),w=Ee({mutationFn:()=>Q(`/optins/${e}`,{method:"DELETE"}),onSuccess:()=>{G.success(l("Opt-in deleted")),n.invalidateQueries({queryKey:["optins"]}),t("/optins")},onError:k=>G.error(k.message||l("Delete failed"))}),g=Ee({mutationFn:()=>Q(`/optins/${e}/resend`,{method:"POST"}),onSuccess:()=>{G.success(l("Confirmation email resent")),n.invalidateQueries({queryKey:["optin",e]})},onError:k=>{G.error(k.message||l("Failed to resend")),n.invalidateQueries({queryKey:["optin",e]})}}),j=Ee({mutationFn:()=>Q(`/optins/${e}/reset-confirmation`,{method:"POST"}),onSuccess:()=>{G.success(l("Confirmation reset — click the email link again to re-test")),n.invalidateQueries({queryKey:["optin",e]}),n.invalidateQueries({queryKey:["optins"]})},onError:k=>G.error(k.message||l("Failed to reset"))}),b=y==null?void 0:y.data;if(v)return r.jsxs("div",{className:"space-y-6",children:[r.jsx(ie,{className:"h-8 w-48"}),r.jsx(ie,{className:"h-64 w-full"}),r.jsx(ie,{className:"h-48 w-full"})]});if(!b)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(U,{variant:"ghost",size:"sm",asChild:!0,children:r.jsxs(vt,{to:"/optins",children:[r.jsx(vd,{className:"h-4 w-4 mr-1"})," ",l("Back to Opt-Ins")]})}),r.jsx("p",{className:"text-muted-foreground",children:l("Opt-In not found.")})]});const p=b.formData?b.formData.fields?zp(b.formData.fields):zp(b.formData):[],x=`${s.adminUrl}admin-ajax.php?action=doi_export_consent&scope=single&id=${b.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(U,{variant:"ghost",size:"icon",className:"h-8 w-8",asChild:!0,children:r.jsx(vt,{to:"/optins",children:r.jsx(vd,{className:"h-4 w-4"})})}),r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Opt-In Detail")}),r.jsx(eu,{optIn:b})]}),r.jsx("p",{className:"text-xs text-muted-foreground font-mono ml-10",children:b.hash})]}),r.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[Jd(b)==="pending"&&r.jsxs(U,{variant:"outline",size:"sm",disabled:g.isPending,onClick:()=>g.mutate(),children:[r.jsx($n,{className:"h-3.5 w-3.5 mr-1.5"}),g.isPending?l("Sending..."):l("Resend Email")]}),b._devResetAvailable&&b.confirmed&&r.jsxs(U,{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(l(`Reset this opt-in to PENDING for re-testing? | |
| 465 | 491 | |
| 466 | 492 | This is a DEV-ONLY action (WP_DEBUG mode). It clears the confirmation flag so you can click the same email link again. |
| 467 | 493 | |
| 468 | 494 | 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. |
| 469 | 495 | |
| 470 | -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.`))&&w.mutate()},title:l("Dev-only: revert to pending so the same confirmation link can be re-tested"),children:[r.jsx(Qn,{className:"h-3.5 w-3.5 mr-1.5"}),w.isPending?l("Resetting..."):l("Reset to pending (dev)")]}),r.jsxs(H,{variant:"outline",size:"sm",className:"text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>a(!0),children:[r.jsx(gn,{className:"h-3.5 w-3.5 mr-1.5"}),l("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.jsx(hO,{optinId:y.id}),r.jsxs(ee,{children:[r.jsx(ce,{children:r.jsx(ue,{className:"text-sm",children:l("Basic Information")})}),r.jsx(ne,{children:r.jsx(Jt,{children:r.jsxs(en,{children:[r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground w-40",children:l("ID")}),r.jsx(fe,{children:y.id})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Email")}),r.jsx(fe,{children:y.email})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Form")}),r.jsxs(fe,{children:[y.formName," (#",y.formId,")"]})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Category")}),r.jsx(fe,{children:y.categoryName?r.jsxs(hn,{to:`/categories/${y.category}`,className:"text-primary hover:underline inline-flex items-center gap-1",children:[r.jsx(eh,{className:"h-3 w-3"}),y.categoryName]}):y.category?String(y.category):"—"})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Registration Date")}),r.jsx(fe,{children:y.createtime})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Registration IP")}),r.jsx(fe,{className:"font-mono text-xs",children:y.ipRegister||"—"})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Confirmation Date")}),r.jsx(fe,{children:y.confirmed?y.updatetime:"—"})]}),r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Confirmation IP")}),r.jsx(fe,{className:"font-mono text-xs",children:y.ipConfirmation||"—"})]}),y.ipOptout&&r.jsxs(r.Fragment,{children:[r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Opt-Out IP")}),r.jsx(fe,{className:"font-mono text-xs",children:y.ipOptout})]}),y.optouttime&&r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Opt-Out Date")}),r.jsx(fe,{children:y.optouttime})]})]}),y.reminderSentAt&&r.jsxs(Ie,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Reminder Sent")}),r.jsx(fe,{children:y.reminderSentAt})]})]})})})]}),r.jsxs(ee,{children:[r.jsx(ce,{children:r.jsxs(ue,{className:"text-sm flex items-center gap-2",children:[r.jsx(yt,{className:"h-4 w-4"}),l("Consent Evidence")]})}),r.jsxs(ne,{className:"space-y-3",children:[y.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:l("Consent text shown to user")}),r.jsx("p",{className:"text-sm text-blue-800/80 dark:text-blue-300/80 leading-relaxed",children:y.consentText})]}):r.jsx("p",{className:"text-sm text-muted-foreground italic",children:l("No consent text was configured for this form at the time of submission.")}),y.consentField?r.jsxs("div",{className:"text-xs space-y-1",children:[r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("Acknowledgment field:")})," ",r.jsx("code",{className:"font-mono bg-muted px-1 py-0.5 rounded",children:y.consentField})]}),r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("User acknowledged:")})," ",y.consentAcknowledged?r.jsx("span",{className:"font-medium text-green-700 dark:text-green-400",children:l("✓ Yes")}):r.jsx("span",{className:"font-medium text-amber-700 dark:text-amber-400",children:l("✗ No (legacy record or gate disabled)")})]})]}):y.consentText?r.jsx("p",{className:"text-xs text-amber-700 dark:text-amber-400 italic",children:l("⚠ 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(ul,{open:i,onOpenChange:c,children:r.jsxs(ee,{children:[r.jsx(fl,{asChild:!0,children:r.jsx(ce,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(ue,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(ia,{className:"h-4 w-4"}),le(l("Form Fields (%d)"),p.length)]}),r.jsx(no,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${i?"rotate-180":""}`})]})})}),r.jsx(ml,{children:r.jsx(ne,{className:"pt-0",children:r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsxs(Ie,{children:[r.jsx(Ee,{className:"text-xs",children:l("Key")}),r.jsx(Ee,{className:"text-xs",children:l("Value")})]})}),r.jsx(en,{children:p.map(([S,k])=>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:k})]},S))})]})})})]})}),y.formHtml&&r.jsx(ul,{open:d,onOpenChange:u,children:r.jsxs(ee,{className:"overflow-hidden",children:[r.jsx(fl,{asChild:!0,children:r.jsx(ce,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(ue,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(q0,{className:"h-4 w-4"}),l("Form HTML")]}),r.jsx(no,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${d?"rotate-180":""}`})]})})}),r.jsx(ml,{children:r.jsxs(ne,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:l("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:()=>M1(y.formHtml),children:r.jsx(Xm,{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:y.formHtml})})]})]})})]})}),y.mailOptinHtml&&r.jsx(ul,{open:h,onOpenChange:m,children:r.jsxs(ee,{className:"overflow-hidden",children:[r.jsx(fl,{asChild:!0,children:r.jsx(ce,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(ue,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(Gn,{className:"h-4 w-4"}),l("Opt-In Mail")]}),r.jsx(no,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${h?"rotate-180":""}`})]})})}),r.jsx(ml,{children:r.jsxs(ne,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:l("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:()=>M1(y.mailOptinHtml),children:r.jsx(Xm,{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:y.mailOptinHtml})})]})]})})]})}),r.jsx(er,{id:"optin.detail-panel",data:{optin:y}})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsx(ce,{children:r.jsxs(ue,{className:"text-sm flex items-center gap-2",children:[r.jsx(Bi,{className:"h-4 w-4"}),l("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:`${x}&format=json`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(Bi,{className:"h-3.5 w-3.5 mr-2"}),l("Export JSON")]})}),r.jsx(H,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${x}&format=csv`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(Bi,{className:"h-3.5 w-3.5 mr-2"}),l("Export CSV")]})})]})]}),r.jsxs(ee,{children:[r.jsx(ce,{children:r.jsx(ue,{className:"text-sm",children:l("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:l("Status")}),r.jsx("p",{className:"text-sm font-medium",children:y.confirmed?l("Confirmed"):l("Pending")})]}),r.jsx(Zi,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Form")}),r.jsx("p",{className:"text-sm font-medium",children:y.formName})]}),r.jsx(Zi,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Category")}),r.jsx("p",{className:"text-sm font-medium",children:y.categoryName||(y.category?`#${y.category}`:"—")})]}),r.jsx(Zi,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Created")}),r.jsx("p",{className:"text-sm font-medium",children:y.createtime})]})]})]})]})]}),r.jsx(Er,{open:o,onOpenChange:a,children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Opt-In")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(vs,{children:[r.jsx(H,{variant:"outline",className:"rounded-lg",onClick:()=>a(!1),children:l("Cancel")}),r.jsx(H,{variant:"destructive",className:"rounded-lg",disabled:j.isPending,onClick:()=>j.mutate(),children:j.isPending?l("Deleting..."):l("Delete")})]})]})})]})}var qd="Switch",[xO]=Xt(qd),[gO,vO]=xO(qd),D1=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:s,checked:o,defaultChecked:a,required:i,disabled:c,value:d="on",onCheckedChange:u,form:h,...m}=e,[v,g]=f.useState(null),j=De(t,x=>g(x)),b=f.useRef(!1),w=v?h||!!v.closest("form"):!0,[y,p]=xn({prop:o,defaultProp:a!=null?a:!1,onChange:u,caller:qd});return r.jsxs(gO,{scope:n,checked:y,disabled:c,children:[r.jsx(Se.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":z1(y),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:j,onClick:pe(e.onClick,x=>{p(N=>!N),w&&(b.current=x.isPropagationStopped(),b.current||x.stopPropagation())})}),w&&r.jsx($1,{control:v,bubbles:!b.current,name:s,value:d,checked:y,required:i,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});D1.displayName=qd;var F1="SwitchThumb",L1=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...s}=e,o=vO(F1,n);return r.jsx(Se.span,{"data-state":z1(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t})});L1.displayName=F1;var yO="SwitchBubbleInput",$1=f.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:s=!0,...o},a)=>{const i=f.useRef(null),c=De(i,a),d=Qh(n),u=gh(t);return f.useEffect(()=>{const h=i.current;if(!h)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&g){const j=new Event("click",{bubbles:s});g.call(h,n),h.dispatchEvent(j)}},[d,n,s]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$1.displayName=yO;function z1(e){return e?"checked":"unchecked"}var U1=D1,bO=L1;const tn=f.forwardRef(({className:e,...t},n)=>r.jsx(U1,{className:Q("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(bO,{className:Q("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")})}));tn.displayName=U1.displayName;function cp(){return r.jsx("span",{className:"pro-badge ml-1.5",children:l("PRO")})}function jO({title:e,description:t,featurePreview:n}){const{isProInstalled:s,isProLicenseActive:o}=Yi(),a=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:l("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:()=>a("/license"),children:l("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"}),l("Upgrade to Pro")]})]})]})}const wO=["[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]"],dp=[{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"}],NO=[{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."}];function B1(e){switch(e){case"recipient":return l("Recipient field");case"subject":return l("Subject");case"body_or_template":return l("Email body or template");default:return e}}function mo(e){return!e||e.length===0?"":e.map(B1).join(", ")}function up(e,t){var h,m,v,g;const n=[],s=((h=e.recipient)!=null?h:"").toString().trim(),o=t?new Set(t.map(j=>j.name)):null;(s===""||o!==null&&!o.has(s))&&n.push("recipient"),((m=e.subject)!=null?m:"").toString().trim()===""&&n.push("subject");const c=((v=e.body)!=null?v:"").toString().includes("[doubleoptinlink]"),u=((g=e.template)!=null?g:"").toString().trim()!=="";return!c&&!u&&n.push("body_or_template"),n}const V1={cf7:{label:"Contact Form 7",pro:!1},avada:{label:"Avada Forms",pro:!1,notice:l("Moving to Pro in 3.8.0")},elementor:{label:"Elementor Forms",pro:!0,info:l('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 SO(){var v;const{isProInstalled:e,isProLicenseActive:t}=Yi(),n=Xe(),s=qn(),{data:o,isLoading:a}=Ce({queryKey:["forms"],queryFn:()=>Z("/forms")}),i=(v=o==null?void 0:o.data)!=null?v:{},c=Te({mutationFn:({integration:g,formId:j})=>Z(`/forms/${g}/${j}/toggle`,{method:"POST"}),onSuccess:()=>{n.invalidateQueries({queryKey:["forms"]}),q.success(l("Form toggled"))},onError:g=>{if(g instanceof Dm&&g.code==="INCOMPLETE_CONFIG"){q.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:g.missing&&g.missing.length>0?le(l("Missing: %s"),mo(g.missing)):void 0});return}q.error(g.message)}}),d=Object.entries(i).flatMap(([,g])=>{var j;return(j=g==null?void 0:g.forms)!=null?j:[]}),u=d.length,h=d.filter(g=>g.enabled).length;if(a)return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("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(g=>r.jsx(ee,{children:r.jsx(ne,{className:"pt-6",children:r.jsx(oe,{className:"h-8 w-20"})})},g))}),[1,2].map(g=>r.jsx(ee,{children:r.jsx(ne,{className:"pt-6",children:r.jsx(oe,{className:"h-24 w-full"})})},g))]});const m=Object.keys(V1).map(g=>{var w,y;const j=V1[g],b=i[g];return{key:g,name:(w=b==null?void 0:b.name)!=null?w:j.label,forms:(y=b==null?void 0:b.forms)!=null?y:[],pro:j.pro,notice:j.notice,info:j.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:l("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage Double Opt-In settings for all your forms")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsx(ue,{className:"text-xs text-muted-foreground",children:l("Total Forms")})}),r.jsx(ne,{children:r.jsxs("div",{className:"text-2xl font-bold flex items-center gap-2",children:[u," ",r.jsx(ia,{className:"h-4 w-4 text-primary"})]})})]}),r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsx(ue,{className:"text-xs text-muted-foreground",children:l("DOI Active")})}),r.jsx(ne,{children:r.jsx("div",{className:"text-2xl font-bold text-success",children:h})})]}),r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsx(ue,{className:"text-xs text-muted-foreground",children:l("DOI Inactive")})}),r.jsx(ne,{children:r.jsx("div",{className:"text-2xl font-bold text-warning",children:u-h})})]})]}),m.map(g=>{const j=g.pro,b=j&&(!e||!t);return r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-3",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ia,{className:"h-4 w-4 text-muted-foreground"}),r.jsx(ue,{className:"text-sm font-semibold",children:g.name}),j&&!t&&r.jsx(cp,{}),r.jsx(Qe,{variant:"secondary",className:"ml-auto text-[10px] bg-primary/10 text-primary border-0",children:le(l("%s forms"),g.forms.length)})]})}),r.jsxs(ne,{children:[g.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"})," ",g.notice]}),g.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"})," ",g.info]}),b?r.jsx(jO,{title:le(l("%s Integration"),g.name),description:le(l("Unlock Double Opt-In support for %s with Pro."),g.name)}):g.forms.length===0?r.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:l("No forms detected.")}):r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsxs(Ie,{children:[r.jsx(Ee,{className:"text-xs w-20",children:l("Status")}),r.jsx(Ee,{className:"text-xs",children:l("Form Title")}),r.jsx(Ee,{className:"text-xs w-24",children:l("Form ID")}),r.jsx(Ee,{className:"text-xs text-right w-40",children:l("Actions")})]})}),r.jsx(en,{children:g.forms.map(w=>{var N;const y=w.isComplete!==!1,p=(N=w.missingFields)!=null?N:[],x=!y&&!w.enabled;return r.jsxs(Ie,{children:[r.jsx(fe,{children:r.jsx("span",{title:x?le(l("Complete the configuration to enable. Missing: %s"),mo(p)):void 0,children:r.jsx(tn,{checked:!!w.enabled,disabled:x,onCheckedChange:()=>c.mutate({integration:g.key,formId:w.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:w.title}),!y&&r.jsxs(Qe,{variant:"outline",title:le(l("Missing: %s"),mo(p)),className:"text-[10px] border-warning text-warning gap-1",children:[r.jsx(zt,{className:"h-3 w-3"}),l("Configuration incomplete")]})]})}),r.jsx(fe,{children:r.jsxs(Qe,{variant:"secondary",className:"font-mono text-[10px]",children:["#",w.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/${g.key}/${w.id}/settings`),children:l("Configure")}),r.jsx(H,{size:"icon",variant:"ghost",className:"h-9 w-9 text-muted-foreground hover:text-foreground",title:l("Edit form"),"aria-label":l("Edit form"),disabled:!w.edit_url,onClick:()=>{w.edit_url&&window.open(String(w.edit_url),"_blank","noopener,noreferrer")},children:r.jsx(cd,{className:"h-4 w-4"})})]})})]},w.id)})})]})]})]},g.key)})]})}var CO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kO=CO.reduce((e,t)=>{const n=Sh(`Primitive.${t}`),s=f.forwardRef((o,a)=>{const{asChild:i,...c}=o,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:a})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),_O="Label",H1=f.forwardRef((e,t)=>r.jsx(kO.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())}}));H1.displayName=_O;var W1=H1;const EO=oa("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),X=f.forwardRef(({className:e,...t},n)=>r.jsx(W1,{ref:n,className:Q(EO(),e),...t}));X.displayName=W1.displayName;var fp="rovingFocusGroup.onEntryFocus",PO={bubbles:!1,cancelable:!0},pl="RovingFocusGroup",[mp,q1,TO]=td(pl),[RO,K1]=Xt(pl,[TO]),[AO,OO]=RO(pl),Q1=f.forwardRef((e,t)=>r.jsx(mp.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(mp.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(IO,{...e,ref:t})})}));Q1.displayName=pl;var IO=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...m}=e,v=f.useRef(null),g=De(t,v),j=zd(a),[b,w]=xn({prop:i,defaultProp:c!=null?c:null,onChange:d,caller:pl}),[y,p]=f.useState(!1),x=pn(u),N=q1(n),S=f.useRef(!1),[k,E]=f.useState(0);return f.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(fp,x),()=>C.removeEventListener(fp,x)},[x]),r.jsx(AO,{scope:n,orientation:s,dir:j,loop:o,currentTabStopId:b,onItemFocus:f.useCallback(C=>w(C),[w]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>E(C=>C-1),[]),children:r.jsx(Se.div,{tabIndex:y||k===0?-1:0,"data-orientation":s,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{S.current=!0}),onFocus:pe(e.onFocus,C=>{const R=!S.current;if(C.target===C.currentTarget&&R&&!y){const T=new CustomEvent(fp,PO);if(C.currentTarget.dispatchEvent(T),!T.defaultPrevented){const A=N().filter(D=>D.focusable),M=A.find(D=>D.active),B=A.find(D=>D.id===b),re=[M,B,...A].filter(Boolean).map(D=>D.ref.current);Y1(re,h)}}S.current=!1}),onBlur:pe(e.onBlur,()=>p(!1))})})}),G1="RovingFocusGroupItem",X1=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:o=!1,tabStopId:a,children:i,...c}=e,d=Rn(),u=a||d,h=OO(G1,n),m=h.currentTabStopId===u,v=q1(n),{onFocusableItemAdd:g,onFocusableItemRemove:j,currentTabStopId:b}=h;return f.useEffect(()=>{if(s)return g(),()=>j()},[s,g,j]),r.jsx(mp.ItemSlot,{scope:n,id:u,focusable:s,active:o,children:r.jsx(Se.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:pe(e.onMouseDown,w=>{s?h.onItemFocus(u):w.preventDefault()}),onFocus:pe(e.onFocus,()=>h.onItemFocus(u)),onKeyDown:pe(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){h.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const y=FO(w,h.orientation,h.dir);if(y!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let x=v().filter(N=>N.focusable).map(N=>N.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const N=x.indexOf(w.currentTarget);x=h.loop?LO(x,N+1):x.slice(N+1)}setTimeout(()=>Y1(x))}}),children:typeof i=="function"?i({isCurrentTabStop:m,hasTabStop:b!=null}):i})})});X1.displayName=G1;var MO={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function DO(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function FO(e,t,n){const s=DO(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return MO[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 LO(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var $O=Q1,zO=X1,Kd="Tabs",[UO]=Xt(Kd,[K1]),Z1=K1(),[BO,hp]=UO(Kd),J1=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:c,activationMode:d="automatic",...u}=e,h=zd(c),[m,v]=xn({prop:s,onChange:o,defaultProp:a!=null?a:"",caller:Kd});return r.jsx(BO,{scope:n,baseId:Rn(),value:m,onValueChange:v,orientation:i,dir:h,activationMode:d,children:r.jsx(Se.div,{dir:h,"data-orientation":i,...u,ref:t})})});J1.displayName=Kd;var eN="TabsList",tN=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...o}=e,a=hp(eN,n),i=Z1(n);return r.jsx($O,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:s,children:r.jsx(Se.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});tN.displayName=eN;var nN="TabsTrigger",rN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:o=!1,...a}=e,i=hp(nN,n),c=Z1(n),d=aN(i.baseId,s),u=iN(i.baseId,s),h=s===i.value;return r.jsx(zO,{asChild:!0,...c,focusable:!o,active:h,children:r.jsx(Se.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,...a,ref:t,onMouseDown:pe(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?i.onValueChange(s):m.preventDefault()}),onKeyDown:pe(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&i.onValueChange(s)}),onFocus:pe(e.onFocus,()=>{const m=i.activationMode!=="manual";!h&&!o&&m&&i.onValueChange(s)})})})});rN.displayName=nN;var sN="TabsContent",oN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,forceMount:o,children:a,...i}=e,c=hp(sN,n),d=aN(c.baseId,s),u=iN(c.baseId,s),h=s===c.value,m=f.useRef(h);return f.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),r.jsx(Kn,{present:o||h,children:({present:v})=>r.jsx(Se.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&a})})});oN.displayName=sN;function aN(e,t){return`${e}-trigger-${t}`}function iN(e,t){return`${e}-content-${t}`}var VO=J1,lN=tN,cN=rN,dN=oN;const uN=VO,pp=f.forwardRef(({className:e,...t},n)=>r.jsx(lN,{ref:n,className:Q("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));pp.displayName=lN.displayName;const ys=f.forwardRef(({className:e,...t},n)=>r.jsx(cN,{ref:n,className:Q("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}));ys.displayName=cN.displayName;const xl=f.forwardRef(({className:e,...t},n)=>r.jsx(dN,{ref:n,className:Q("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));xl.displayName=dN.displayName;const Tr=f.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:Q("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}));Tr.displayName="Textarea";function HO({settings:e,onChange:t,fields:n,categories:s,pages:o}){var h,m,v,g,j,b,w,y;const a=((h=e.consentText)!=null?h:"").toString().trim(),i=((m=e.consentField)!=null?m:"").toString().trim(),c=new Set(n.map(p=>p.name===null||p.name===void 0?"":String(p.name).toLowerCase()).filter(Boolean)),d=l("Submissions are still accepted, but they are stored without any provable consent."),u=i&&!c.has(i.toLowerCase())?{tone:"red",message:le(l('The selected acceptance field "%s" does not exist on this form.'),i)+" "+d+" "+l("Pick a field that's actually present, or leave the dropdown empty.")}:a&&!i?{tone:"amber",message:l("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(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{className:"text-base",children:l("Consent & categorization")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"consent-text",children:l("Consent text (GDPR)")}),r.jsx(Tr,{id:"consent-text",className:"mt-1.5",placeholder:l("I agree to receive the newsletter..."),rows:3,value:(v=e.consentText)!=null?v:"",onChange:p=>t("consentText",p.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("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(X,{htmlFor:"consent-field",children:l("Consent acceptance field")}),r.jsxs(je,{value:(g=e.consentField)!=null?g:"",onValueChange:p=>t("consentField",p==="__none__"?"":p),children:[r.jsx(ve,{id:"consent-field",className:"mt-1.5",children:r.jsx(we,{placeholder:l("-- None --")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__none__",children:l("-- None --")}),n.filter(p=>p.name!==null&&p.name!==void 0&&p.name!=="").map(p=>{const x=String(p.name);return r.jsx(z,{value:x,children:p.label||x},x)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Form field that captures the user's explicit consent (e.g. a CF7")," ",r.jsx("code",{children:"[acceptance]"})," ",l("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).")]})]}),u&&r.jsxs("div",{className:"rounded-md border p-3 flex items-start gap-2 text-xs "+(u.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:u.tone==="red"?"alert":void 0,children:[u.tone==="red"?r.jsx(ld,{className:"h-4 w-4 mt-0.5 shrink-0"}):r.jsx(zt,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsx("span",{className:"leading-relaxed",children:u.message})]}),r.jsxs("div",{children:[r.jsx(X,{children:l("Category")}),r.jsxs(je,{value:String((j=e.category)!=null?j:0),onValueChange:p=>t("category",Number(p)),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:l("Select category")})}),r.jsx(ye,{children:Object.entries(s).map(([p,x])=>r.jsx(z,{value:String(p),children:String(x)},p))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Optional grouping for opt-ins in the overview and stats. Useful when several forms feed into different topics (newsletter, contact, etc.).")})]})]})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{className:"text-base",children:l("Submission rules")}),r.jsx(Pe,{children:l("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(X,{children:l("Conditional trigger")}),r.jsxs(je,{value:(b=e.conditions)!=null?b:"disabled",onValueChange:p=>t("conditions",p),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:"disabled",children:l("Disabled")}),n.filter(p=>p.name!==null&&p.name!==void 0&&p.name!=="").map(p=>{const x=String(p.name);return r.jsx(z,{value:x,children:p.label||x},x)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l('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"})," ",l("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(X,{children:l("Confirmation page")}),r.jsxs(je,{value:String((w=e.confirmationPage)!=null?w:-1),onValueChange:p=>t("confirmationPage",Number(p)),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:l("Select page")})}),r.jsx(ye,{children:Object.entries(o).map(([p,x])=>r.jsx(z,{value:String(p),children:String(x)},p))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("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(X,{children:l("Error redirect page")}),r.jsxs(je,{value:String((y=e.errorRedirectPage)!=null?y:-1),onValueChange:p=>t("errorRedirectPage",Number(p)),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:l("Select page")})}),r.jsx(ye,{children:Object.entries(o).map(([p,x])=>r.jsx(z,{value:String(p),children:String(x)},p))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("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 WO({settings:e,onChange:t,fields:n,templates:s,templateDetails:o,adminUrl:a}){var m,v,g,j,b,w,y,p;const i=(m=e.template)!=null?m:"",c=i.startsWith("custom_"),d=c?o==null?void 0:o[i]:null,u=c,h=d&&a?`#/email-templates/${d.id}/edit`:null;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{className:"text-base",children:l("Sender & recipient")}),r.jsx(Pe,{children:l("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(X,{children:[l("Recipient field")," ",r.jsx(xp,{})]}),r.jsxs(je,{value:(v=e.recipient)!=null?v:"",onValueChange:x=>t("recipient",x),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:l("Select field")})}),r.jsx(ye,{children:n.filter(x=>x.name!==null&&x.name!==void 0&&x.name!=="").map(x=>{const N=String(x.name);return r.jsx(z,{value:N,children:x.label||N},N)})})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("The form field that holds the subscriber's email address.")," ",r.jsx("strong",{children:l("Required")})," ",l("— 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(X,{htmlFor:"from-email",children:l("From email")}),r.jsx(Re,{id:"from-email",className:"mt-1.5",value:(g=e.sender)!=null?g:"",onChange:x=>t("sender",x.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Sender address for the confirmation mail. Leave empty to use the WordPress default (site admin email).")})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"from-name",children:l("From name")}),r.jsx(Re,{id:"from-name",className:"mt-1.5",value:(j=e.senderName)!=null?j:"",onChange:x=>t("senderName",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Display name shown as")," ",r.jsx("code",{children:"From: Name <email>"}),l(". Leave empty for a bare-email From header.")]})]})]})]})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{className:"text-base",children:l("Email content")}),r.jsx(Pe,{children:l("Subject, template, and the body shown to the user.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(X,{htmlFor:"subject",children:[l("Subject")," ",r.jsx(xp,{})]}),r.jsx(Re,{id:"subject",className:"mt-1.5",value:(b=e.subject)!=null?b:"",onChange:x=>t("subject",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Subject line of the confirmation mail.")," ",r.jsx("strong",{children:l("Required")}),l(" — empty subjects often land in spam folders.")]})]}),r.jsxs("div",{children:[r.jsx(X,{children:l("Email template")}),r.jsxs(je,{value:(w=e.template)!=null?w:"",onValueChange:x=>t("template",x),children:[r.jsx(ve,{className:"mt-1.5",children:r.jsx(we,{placeholder:l("Select template")})}),r.jsx(ye,{children:Object.entries(s).map(([x,N])=>r.jsx(z,{value:x,children:String(N)},x))})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("HTML wrapper for the body.")," ",r.jsx("code",{children:"blank"})," ",l("keeps the body verbatim; the built-in")," ",r.jsx("code",{children:"newsletter_*"})," ",l("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(X,{htmlFor:"body",children:[l("Message body")," ",!c&&r.jsx(xp,{})]}),u?r.jsx(qO,{title:(y=d==null?void 0:d.title)!=null?y:i,editorUrl:h}):r.jsxs(r.Fragment,{children:[r.jsx(Tr,{id:"body",className:"mt-1.5 font-mono text-xs",rows:12,value:(p=e.body)!=null?p:"",onChange:x=>t("body",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Mail body. Must contain")," ",r.jsx("code",{children:"[doubleoptinlink]"}),l(" — 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(ul,{children:[r.jsx(fl,{className:"text-xs text-primary hover:underline mt-1",children:l("Show placeholders")}),r.jsx(ml,{className:"mt-2 flex flex-wrap gap-1",children:wO.map(x=>r.jsx("code",{className:"bg-secondary text-foreground text-[10px] px-1.5 py-0.5 rounded cursor-pointer hover:bg-primary/10",children:x},x))})]})]})]})]})]})]})}function xp(){return r.jsx("span",{"aria-label":l("Required"),title:l("Required field — Double Opt-In cannot be enabled until this is filled in"),className:"text-destructive font-bold",children:"*"})}function qO({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(Gn,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:l("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:le(l("%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(dd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit in Email Designer")]})}):r.jsx(H,{variant:"secondary",size:"sm",disabled:!0,children:l("Editor link unavailable")})]})]})}function KO({settings:e,onChange:t,fields:n}){var c;const s=(d,u)=>{var m;const h={...(m=e.fieldMapping)!=null?m:{},[d]:u};t("fieldMapping",h)},o=dp.filter(d=>{var u;return!!((u=e.fieldMapping)!=null&&u[d.key])}).length,a=new Set(Object.values((c=e.fieldMapping)!=null?c:{}).filter(Boolean).map(d=>String(d))),i=n.filter(d=>d.name!==null&&d.name!==void 0&&d.name!==""&&!a.has(String(d.name)));return r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{className:"text-base",children:l("Field mapping")}),r.jsxs(Pe,{children:[l("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]"}),l("); if no auto-match is found they render as an empty string. System placeholders like")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",l("are filled by the plugin itself and are not mapped here.")]})]}),r.jsxs(ne,{className:"space-y-6",children:[NO.map(d=>{const u=dp.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,v;return r.jsx(QO,{mapping:h,value:(v=(m=e.fieldMapping)==null?void 0:m[h.key])!=null?v:"",fields:n,onChange:g=>s(h.key,g)},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(W0,{className:"h-3.5 w-3.5 text-green-600"}),r.jsx("span",{children:le(l("%d of %d placeholders mapped"),o,dp.length)})]}),i.length>0&&r.jsxs("div",{className:"flex items-start gap-2 text-amber-700",children:[r.jsx(ld,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"}),r.jsxs("div",{children:[r.jsxs("span",{className:"font-medium",children:[i.length," form field",i.length===1?"":"s"," not mapped"]}),r.jsxs("span",{className:"text-muted-foreground",children:[" ",l("— captured on submit but never read by the email.")," "]}),r.jsxs("div",{className:"mt-1 flex flex-wrap gap-1",children:[i.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)}),i.length>8&&r.jsxs(Qe,{variant:"outline",className:"text-[10px]",children:["+",i.length-8]})]})]})]})]})]})]})}function QO({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:a=>s(a==="__none__"?"":a),children:[r.jsx(ve,{className:"h-8 text-xs",children:r.jsx(we,{placeholder:l("Select form field")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__none__",children:l("-- None --")}),n.filter(a=>a.name!==null&&a.name!==void 0&&a.name!=="").map(a=>{const i=String(a.name);return r.jsx(z,{value:i,children:a.label||i},i)})]})]})]})}const GO=["general","email","mapping","pro"];function XO(){var T,A,M,B,O,re;const{integration:e,id:t}=Gc(),n=qn(),s=Xe(),[o,a]=p_(),i=o.get("tab"),c=GO.includes(i!=null?i:"")?i:"general",d=D=>{const te=new URLSearchParams(o);D==="general"?te.delete("tab"):te.set("tab",D),a(te,{replace:!0})},[u,h]=f.useState({}),{data:m,isLoading:v}=Ce({queryKey:["form-settings",t,e],queryFn:()=>Z(`/forms/${e}/${t}/settings`),enabled:!!e&&!!t}),g=(T=m==null?void 0:m.data)!=null&&T.fields&&Array.isArray(m.data.fields)?m.data.fields:[];f.useEffect(()=>{var D;if((D=m==null?void 0:m.data)!=null&&D.settings){const te=m.data.settings,I=Array.isArray(m.data.fields)?m.data.fields:[];if(te.enabled&&up(te,I).length>0){h({...te,enabled:!1});return}h({...te})}},[m]);const j=Te({mutationFn:D=>Z(`/forms/${e}/${t}/settings`,{method:"PUT",body:JSON.stringify({settings:D})}),onSuccess:D=>{var te,I;if(s.invalidateQueries({queryKey:["forms"]}),s.invalidateQueries({queryKey:["form-settings"]}),(te=D.data)!=null&&te.autoDisabled){const F=(I=D.data.missing)!=null?I:[];q.warning(l("Double Opt-In was auto-disabled."),{description:F.length>0?le(l("Configuration is incomplete: %s."),mo(F)):l("Configuration is incomplete.")}),h(J=>({...J,enabled:!1}));return}q.success(l("Settings saved"))},onError:D=>{if(D instanceof Dm&&D.code==="INCOMPLETE_CONFIG"){q.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:D.missing&&D.missing.length>0?le(l("Missing: %s"),mo(D.missing)):void 0}),h(te=>({...te,enabled:!1}));return}q.error(D.message)}}),b=(D,te)=>h(I=>{const F={...I,[D]:te};return F.enabled&&up(F,g).length>0&&(F.enabled=!1),F}),y=f.useSyncExternalStore(i0,()=>l0("forms.pro-features"),()=>[]).length>0;if(f.useEffect(()=>{c==="pro"&&!y&&d("general")},[c,y]),v||!(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,x=$t(),N={settings:u,onChange:b,fields:g,templates:(A=p.templates)!=null?A:{},categories:(M=p.categories)!=null?M:{},pages:(B=p.pages)!=null?B:{},templateDetails:(O=p.templateDetails)!=null?O:{},adminUrl:x.adminUrl,integration:p.integration},S=up(u,g),k=S.length===0,E=!k&&!u.enabled,C=D=>{if(D&&!k){q.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:le(l("Missing: %s."),mo(S))});return}b("enabled",D)},R=new Set;return(S.includes("recipient")||S.includes("subject")||S.includes("body_or_template"))&&R.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(ad,{className:"h-3.5 w-3.5"}),l("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:le(l("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 "+(k?"bg-card":"bg-amber-50 border-amber-300 dark:bg-amber-950/30 dark:border-amber-900/50"),title:k?void 0:le(l("Configuration incomplete. Missing: %s"),mo(S)),children:[!k&&r.jsx(zt,{className:"h-4 w-4 text-amber-600 shrink-0","aria-label":l("Configuration incomplete")}),r.jsx(X,{htmlFor:"form-enabled",className:"text-sm",children:u.enabled?l("Enabled"):l("Disabled")}),r.jsx(tn,{id:"form-enabled",checked:(re=u.enabled)!=null?re:!1,disabled:E,onCheckedChange:C,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:l("Cancel")}),r.jsx(H,{size:"sm",disabled:j.isPending,onClick:()=>j.mutate(u),children:j.isPending?l("Saving..."):l("Save settings")})]})]})]})}),!k&&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(zt,{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:l("Configuration incomplete")}),r.jsx("p",{className:"leading-relaxed",children:l("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(D=>r.jsx("li",{children:B1(D)},D))})]})]})}),r.jsxs(uN,{value:c,onValueChange:d,className:"!mt-12",children:[r.jsxs(pp,{children:[r.jsx(ys,{value:"general",children:l("General")}),r.jsxs(ys,{value:"email",className:"gap-1",children:[l("Email"),R.has("email")&&r.jsx(zt,{className:"h-3 w-3 text-amber-600","aria-label":l("Tab contains incomplete required fields")})]}),r.jsx(ys,{value:"mapping",children:l("Mapping")}),y&&r.jsx(ys,{value:"pro",children:l("Pro Features")})]}),r.jsx(xl,{value:"general",className:"mt-6",children:r.jsx(HO,{...N})}),r.jsx(xl,{value:"email",className:"mt-6",children:r.jsx(WO,{...N})}),r.jsx(xl,{value:"mapping",className:"mt-6",children:r.jsx(KO,{...N})}),y&&r.jsx(xl,{value:"pro",className:"mt-6",children:r.jsx(er,{id:"forms.pro-features",data:N})})]}),r.jsx(er,{id:"forms.integration-settings",data:{form:{id:p.id,title:p.title,integration:p.integration},integration:p.integration,settings:u}})]})}function YO(){return r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsx(Ie,{children:Array.from({length:6}).map((e,t)=>r.jsx(Ee,{children:r.jsx(oe,{className:"h-3 w-16"})},t))})}),r.jsx(en,{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 fN(){var p;const e=Xe(),[t,n]=f.useState(""),[s,o]=f.useState(null),[a,i]=f.useState(null),[c,d]=f.useState(""),{data:u,isLoading:h}=Ce({queryKey:["categories"],queryFn:()=>Z("/categories")}),m=Te({mutationFn:x=>Z("/categories",{method:"POST",body:JSON.stringify({name:x})}),onSuccess:()=>{q.success(l("Category created")),n(""),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{q.error(x.message||l("Failed to create category"))}}),v=Te({mutationFn:({id:x,name:N})=>Z(`/categories/${x}`,{method:"PUT",body:JSON.stringify({name:N})}),onSuccess:()=>{q.success(l("Category updated")),i(null),d(""),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{q.error(x.message||l("Failed to update category"))}}),g=Te({mutationFn:x=>Z(`/categories/${x}`,{method:"DELETE"}),onSuccess:()=>{q.success(l("Category deleted")),o(null),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{q.error(x.message||l("Failed to delete category"))}}),j=(p=u==null?void 0:u.data)!=null?p:[];function b(x){i(x.id),d(x.name)}function w(){i(null),d("")}function y(){a!==null&&c.trim()&&v.mutate({id:a,name:c.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:l("Categories")}),r.jsx("p",{className:"text-muted-foreground",children:l("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(ee,{children:r.jsx(ne,{className:"p-0",children:h?r.jsx(YO,{}):r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsxs(Ie,{children:[r.jsx(Ee,{className:"text-xs",children:l("ID")}),r.jsx(Ee,{className:"text-xs",children:l("Name")}),r.jsx(Ee,{className:"text-xs",children:l("Opt-Ins")}),r.jsx(Ee,{className:"text-xs",children:l("Created")}),r.jsx(Ee,{className:"text-xs",children:l("Updated")}),r.jsx(Ee,{className:"text-xs text-right",children:l("Actions")})]})}),r.jsx(en,{children:j.length===0?r.jsx(Ie,{children:r.jsx(fe,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:l("No categories found")})}):j.map(x=>r.jsxs(Ie,{children:[r.jsx(fe,{className:"tabular-nums text-muted-foreground text-xs",children:x.id}),r.jsx(fe,{children:a===x.id?r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(Re,{value:c,onChange:N=>d(N.target.value),className:"h-7 text-sm",onKeyDown:N=>{N.key==="Enter"&&y(),N.key==="Escape"&&w()},autoFocus:!0}),r.jsx(H,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:y,disabled:v.isPending,children:r.jsx(id,{className:"h-3.5 w-3.5 text-success"})}),r.jsx(H,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:w,children:r.jsx(md,{className:"h-3.5 w-3.5"})})]}):r.jsx(hn,{to:`/categories/${x.id}`,className:"text-primary hover:underline font-medium text-sm",children:x.name})}),r.jsx(fe,{className:"tabular-nums text-muted-foreground text-xs",children:x.optin_count}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:x.createtime}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:x.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(x),children:[r.jsx(dd,{className:"h-3 w-3 mr-1"}),l("Edit")]}),r.jsx(H,{variant:"ghost",size:"sm",className:"text-destructive text-xs h-7",onClick:()=>o(x.id),children:l("Delete")})]})})]},x.id))})]})})})}),r.jsx("div",{children:r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-3",children:r.jsx(ue,{className:"text-sm font-medium",children:l("New Category")})}),r.jsxs(ne,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Name:")}),r.jsx(Re,{className:"mt-1.5",value:t,onChange:x=>n(x.target.value),placeholder:l("Category name"),onKeyDown:x=>{x.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?l("Adding..."):l("Add")})]})]})})]}),r.jsx(Er,{open:s!==null,onOpenChange:()=>o(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Category")}),r.jsx(sr,{children:l("Are you sure? This action cannot be undone.")})]}),r.jsxs(vs,{children:[r.jsx(H,{variant:"outline",onClick:()=>o(null),children:l("Cancel")}),r.jsx(H,{variant:"destructive",disabled:g.isPending,onClick:()=>{s!==null&&g.mutate(s)},children:g.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function gp({icon:e,title:t,description:n,children:s}){return r.jsxs(ee,{children:[r.jsx(ce,{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(ue,{className:"text-sm font-medium",children:t}),r.jsx(Pe,{className:"text-xs",children:n})]})]})}),r.jsx(ne,{className:"border-t pt-4 space-y-4",children:s})]})}function ZO(){return r.jsx("div",{className:"space-y-4",children:Array.from({length:4}).map((e,t)=>r.jsxs(ee,{children:[r.jsx(ce,{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 JO(){var p,x,N,S,k,E,C,R,T;const{isProInstalled:e,isProLicenseActive:t}=Yi(),n=ra("reminder"),s=ra("mx-validator"),o=ra("domain-blocklist"),a=!n&&!s&&!o,i=Xe(),c=$t(),{data:d,isLoading:u}=Ce({queryKey:["settings"],queryFn:()=>Z("/settings")}),{data:h}=Ce({queryKey:["pages"],queryFn:()=>Z("/settings/pages")}),[m,v]=f.useState({}),[g,j]=f.useState(!1);f.useEffect(()=>{d!=null&&d.data&&!g&&(v(d.data),j(!0))},[d,g]);const b=Te({mutationFn:()=>Z("/settings",{method:"PUT",body:JSON.stringify(m)}),onSuccess:A=>{q.success(l("Settings saved successfully")),i.invalidateQueries({queryKey:["settings"]})},onError:A=>{q.error(A.message||l("Failed to save settings"))}});function w(A,M){v(B=>({...B,[A]:M}))}const y=(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:l("Settings")}),r.jsx("p",{className:"text-muted-foreground",children:l("Configure global Double Opt-In settings")})]}),r.jsxs(H,{size:"sm",onClick:()=>b.mutate(),disabled:b.isPending,children:[r.jsx(so,{className:"mr-2 h-4 w-4"}),b.isPending?l("Saving..."):l("Save Changes")]})]}),u?r.jsx(ZO,{}):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(gp,{icon:Qn,title:l("Data Retention"),description:l("Configure automatic cleanup of opt-in records"),children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Delete Opt-Ins after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Re,{type:"number",value:(x=m.delete)!=null?x:12,onChange:A=>w("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=>w("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:l("Days")}),r.jsx(z,{value:"months",children:l("Months")}),r.jsx(z,{value:"years",children:l("Years")})]})]})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:l("Set to 0 to disable. GDPR recommends regular cleanup.")})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Delete Unconfirmed after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Re,{type:"number",value:(S=m.delete_unconfirmed)!=null?S:7,onChange:A=>w("delete_unconfirmed",Number(A.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(je,{value:(k=m.delete_unconfirmed_period)!=null?k:"months",onValueChange:A=>w("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:l("Days")}),r.jsx(z,{value:"months",children:l("Months")}),r.jsx(z,{value:"years",children:l("Years")})]})]})]})]})]}),r.jsx(gp,{icon:RE,title:l("Privacy"),description:l("Privacy policy and GDPR settings"),children:r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Privacy Policy Page")}),r.jsxs(je,{value:m.privacy_policy_page?String(m.privacy_policy_page):"",onValueChange:A=>w("privacy_policy_page",Number(A)),children:[r.jsx(ve,{className:"mt-1.5 h-9",children:r.jsx(we,{placeholder:l("Select page")})}),r.jsx(ye,{children:y.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:l("Used for [doubleoptin_privacy_url] placeholder")})]})}),r.jsx(gp,{icon:Jm,title:l("Security"),description:l("Token and rate limiting configuration"),children:r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Token Expiry (Hours)")}),r.jsx(Re,{type:"number",value:(E=m.token_expiry_hours)!=null?E:48,onChange:A=>w("token_expiry_hours",Number(A.target.value)),className:"mt-1.5 h-9",min:0,max:720})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Rate Limit IP")}),r.jsx(Re,{type:"number",value:(C=m.rate_limit_ip)!=null?C:5,onChange:A=>w("rate_limit_ip",Number(A.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Rate Limit Email")}),r.jsx(Re,{type:"number",value:(R=m.rate_limit_email)!=null?R:3,onChange:A=>w("rate_limit_email",Number(A.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Rate Limit Window (Min)")}),r.jsx(Re,{type:"number",value:(T=m.rate_limit_window)!=null?T:60,onChange:A=>w("rate_limit_window",Number(A.target.value)),className:"mt-1.5 h-9",min:1,max:1440})]})]})}),r.jsx(ee,{children:r.jsx(ce,{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(ue,{className:"text-sm font-medium",children:l("Telemetry")}),r.jsx(Pe,{className:"text-xs",children:l("Helps improve the plugin. No personal data collected.")})]})]}),r.jsx(tn,{checked:!!m.telemetry,onCheckedChange:A=>w("telemetry",A?1:0)})]})})}),r.jsx(ee,{children:r.jsx(ce,{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(ME,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(ue,{className:"text-sm font-medium",children:l("Show credit link")}),r.jsx(Pe,{className:"text-xs",children:l('Adds a small "Double Opt-In by Forge12" link on the page a subscriber lands on after confirming. Off by default.')})]})]}),r.jsx(tn,{checked:!!m.credit_link,onCheckedChange:A=>w("credit_link",A?1:0)})]})})}),r.jsx(ee,{children:r.jsx(ce,{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(Ui,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(ue,{className:"text-sm font-medium",children:l("Keep data on uninstall")}),r.jsx(Pe,{className:"text-xs",children:l("Preserve opt-in records and categories if the plugin is deleted. Turn off for a full cleanup on uninstall.")})]})]}),r.jsx(tn,{checked:!!m.keep_data_on_uninstall,onCheckedChange:A=>w("keep_data_on_uninstall",A?1:0)})]})})})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(ee,{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:l("Global settings affect all forms. Individual form settings can override some options.")})]})}),a&&r.jsx(ee,{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:l("Unlock Pro Features")}),r.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1 mt-2",children:[r.jsxs("li",{children:["✓ ",l("Automatic reminders")]}),r.jsxs("li",{children:["✓ ",l("Email domain validation")]}),r.jsxs("li",{children:["✓ ",l("Disposable email blocking")]}),r.jsxs("li",{children:["✓ ",l("Priority support")]})]}),r.jsxs("a",{href:c.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"}),l("Upgrade to Pro")]})]})]})})})]})]}),r.jsx(er,{id:"settings.tab",data:{settings:m}})]})}function e3(){var h;const e=Xe(),[t,n]=f.useState(null),{data:s,isLoading:o}=Ce({queryKey:["email-templates"],queryFn:()=>Z("/email-templates"),refetchOnMount:"always"}),a=(h=s==null?void 0:s.data)!=null?h:[],i=Te({mutationFn:m=>Z(`/email-templates/${m}/duplicate`,{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),q.success(l("Template duplicated"))},onError:m=>q.error(m.message)}),c=Te({mutationFn:m=>Z(`/email-templates/${m}`,{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),q.success(l("Template deleted")),n(null)},onError:m=>{q.error(m.message),n(null)}}),d=Te({mutationFn:({id:m,status:v})=>Z(`/email-templates/${m}`,{method:"PUT",body:JSON.stringify({status:v})}),onSuccess:(m,v)=>{e.invalidateQueries({queryKey:["email-templates"]}),q.success(v.status==="publish"?l("Template published"):l("Template moved to draft"))},onError:m=>q.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:l("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your email templates")})]}),r.jsx(ee,{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))})})]}):a.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:l("Email Templates")})}),r.jsx(ee,{className:"py-16 text-center",children:r.jsxs(ne,{children:[r.jsx(G0,{className:"h-16 w-16 text-muted-foreground/30 mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-semibold mb-1",children:l("No templates yet")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l("Create your first email template")}),r.jsx(H,{asChild:!0,children:r.jsx(hn,{to:"/email-templates/new",children:l("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:l("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your email templates")})]}),r.jsx(H,{size:"sm",asChild:!0,children:r.jsxs(hn,{to:"/email-templates/new",children:[r.jsx(la,{className:"h-4 w-4 mr-1"})," ",l("Create New")]})})]}),r.jsx(ee,{children:r.jsx(ne,{className:"p-0",children:r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsxs(Ie,{children:[r.jsx(Ee,{className:"text-xs",children:l("Name")}),r.jsx(Ee,{className:"text-xs",children:l("Status")}),r.jsx(Ee,{className:"text-xs",children:l("Created")}),r.jsx(Ee,{className:"text-xs",children:l("Modified")}),r.jsx(Ee,{className:"text-xs text-right",children:l("Actions")})]})}),r.jsx(en,{children:a.map(m=>r.jsxs(Ie,{children:[r.jsx(fe,{children:r.jsx(hn,{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:v=>d.mutate({id:m.id,status:v}),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:l("Published")}),r.jsx(z,{value:"draft",children:l("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(hn,{to:`/email-templates/${m.id}/edit`,children:l("Edit")})}),r.jsx(H,{size:"sm",variant:"outline",className:"text-xs",disabled:i.isPending,onClick:()=>i.mutate(m.id),children:l("Duplicate")}),r.jsx(H,{size:"sm",variant:"ghost",className:"text-destructive text-xs",onClick:()=>n(m.id),children:l("Delete")})]})]},m.id))})]})})}),r.jsx(Er,{open:t!==null,onOpenChange:()=>n(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Template")}),r.jsx(sr,{children:l("Are you sure you want to delete this template? This action cannot be undone.")})]}),r.jsxs(vs,{children:[r.jsx(H,{variant:"outline",onClick:()=>n(null),children:l("Cancel")}),r.jsx(H,{variant:"destructive",disabled:c.isPending,onClick:()=>{t!==null&&c.mutate(t)},children:c.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function t3(){var m;const e=Xe(),[t,n]=f.useState(null),[s,o]=f.useState(""),{data:a,isLoading:i}=Ce({queryKey:["db-stats"],queryFn:()=>Z("/database/stats")}),c=(m=a==null?void 0:a.data)!=null?m:{total:0,confirmed:0,unconfirmed:0},d=Te({mutationFn:v=>Z("/database/clean",{method:"POST",body:JSON.stringify({scope:v})}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),q.success(l("Records deleted successfully")),n(null)},onError:v=>{q.error(v.message),n(null)}}),u=Te({mutationFn:()=>Z("/database/reset",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),q.success(l("Database reset successfully")),n(null),o("")},onError:v=>{q.error(v.message),n(null),o("")}}),h=[{key:"all",title:l("Delete All Opt-Ins"),desc:l("Remove all opt-in records from the database"),icon:gn},{key:"confirmed",title:l("Delete Confirmed Only"),desc:l("Remove only confirmed opt-in records"),icon:ro},{key:"unconfirmed",title:l("Delete Unconfirmed Only"),desc:l("Remove only unconfirmed/pending opt-in records"),icon:Qn}];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Database Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your opt-in database records")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Ui,{className:"h-3 w-3"})," ",l("Total Records")]})}),r.jsx(ne,{children:i?r.jsx(oe,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold",children:c.total})})]}),r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(ro,{className:"h-3 w-3 text-success"})," ",l("Confirmed")]})}),r.jsx(ne,{children:i?r.jsx(oe,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-success",children:c.confirmed})})]}),r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Qn,{className:"h-3 w-3 text-warning"})," ",l("Unconfirmed")]})}),r.jsx(ne,{children:i?r.jsx(oe,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:c.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(zt,{className:"h-4 w-4 shrink-0"}),l("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(v=>r.jsx(ee,{className:"text-center",children:r.jsxs(ne,{className:"pt-6 pb-4",children:[r.jsx(v.icon,{className:"h-8 w-8 mx-auto mb-3 text-muted-foreground"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:v.title}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:v.desc}),r.jsx(H,{variant:v.key==="all"?"destructive":"outline",size:"sm",className:"text-xs",onClick:()=>n(v.key),children:v.title})]})},v.key))}),r.jsx(ee,{className:"border-destructive/50",children:r.jsxs(ne,{className:"pt-6 pb-4 text-center",children:[r.jsx(ud,{className:"h-8 w-8 mx-auto mb-3 text-destructive"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:l("Reset Database")}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:l("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:l("Reset Database")})]})})]}),r.jsx("div",{children:r.jsx(ee,{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:l("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($E,{className:"h-3 w-3"})," ",l("Go to Settings")]})]})]})})})]}),r.jsx(Er,{open:t!==null&&t!=="reset",onOpenChange:()=>n(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Confirm Deletion")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete these records? This action cannot be undone.")})]}),r.jsxs(vs,{children:[r.jsx(H,{variant:"outline",onClick:()=>n(null),children:l("Cancel")}),r.jsx(H,{variant:"destructive",disabled:d.isPending,onClick:()=>{t&&d.mutate(t)},children:d.isPending?l("Deleting..."):l("Delete")})]})]})}),r.jsx(Er,{open:t==="reset",onOpenChange:()=>{n(null),o("")},children:r.jsxs(tr,{className:"max-w-[440px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{className:"text-destructive",children:l("Reset Database")}),r.jsx(sr,{children:l("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(X,{className:"text-sm",children:l("Type DELETE to confirm:")}),r.jsx(Re,{value:s,onChange:v=>o(v.target.value),placeholder:"DELETE",className:"font-mono"})]}),r.jsxs(vs,{children:[r.jsx(H,{variant:"outline",onClick:()=>{n(null),o("")},children:l("Cancel")}),r.jsx(H,{variant:"destructive",disabled:s!=="DELETE"||u.isPending,onClick:()=>u.mutate(),children:u.isPending?l("Resetting..."):l("Reset Database")})]})]})})]})}function vp({children:e,featureName:t=l("this feature"),requireAddon:n}){const{isProInstalled:s,isProLicenseActive:o}=Yi(),a=qn();if(n!==void 0){if(ra(n))return r.jsx(r.Fragment,{children:e});const i=s&&o,c=l(i?"Addon Required":"Pro Bundle Required"),d=i?r.jsxs(r.Fragment,{children:[l("The")," ",r.jsx("span",{className:"font-medium",children:n})," ",le(l("addon isn't active on this site. Install and activate it to use %s."),t)]}):le(l("Activate your Double Opt-In Pro bundle to unlock %s."),t),u=i?{label:l("Open Addons Page"),to:"/addons"}:{label:l("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:c}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:d}),r.jsx(H,{onClick:()=>a(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:l("Activate Pro License")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:le(l("Enter your license key to unlock %s."),t)}),r.jsx(Re,{placeholder:"XXXX-XXXX-XXXX-XXXX",className:"font-mono mb-3 text-center"}),r.jsx(H,{className:"w-full mb-2",children:l("Activate License")}),r.jsx("button",{onClick:()=>a("/license"),className:"text-xs text-muted-foreground hover:text-primary",children:l("Or enter your key on the License page")})]})})]}):null}var Dn="Accordion",n3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[yp,r3,s3]=td(Dn),[Qd]=Xt(Dn,[s3,s1]),bp=s1(),mN=V.forwardRef((e,t)=>{const{type:n,...s}=e,o=s,a=s;return r.jsx(yp.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsx(l3,{...a,ref:t}):r.jsx(i3,{...o,ref:t})})});mN.displayName=Dn;var[hN,o3]=Qd(Dn),[pN,a3]=Qd(Dn,{collapsible:!1}),i3=V.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[c,d]=xn({prop:n,defaultProp:s!=null?s:"",onChange:o,caller:Dn});return r.jsx(hN,{scope:e.__scopeAccordion,value:V.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:V.useCallback(()=>a&&d(""),[a,d]),children:r.jsx(pN,{scope:e.__scopeAccordion,collapsible:a,children:r.jsx(xN,{...i,ref:t})})})}),l3=V.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:o=()=>{},...a}=e,[i,c]=xn({prop:n,defaultProp:s!=null?s:[],onChange:o,caller:Dn}),d=V.useCallback(h=>c((m=[])=>[...m,h]),[c]),u=V.useCallback(h=>c((m=[])=>m.filter(v=>v!==h)),[c]);return r.jsx(hN,{scope:e.__scopeAccordion,value:i,onItemOpen:d,onItemClose:u,children:r.jsx(pN,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsx(xN,{...a,ref:t})})})}),[c3,Gd]=Qd(Dn),xN=V.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:s,dir:o,orientation:a="vertical",...i}=e,c=V.useRef(null),d=De(c,t),u=r3(n),m=zd(o)==="ltr",v=pe(e.onKeyDown,g=>{var C;if(!n3.includes(g.key))return;const j=g.target,b=u().filter(R=>{var T;return!((T=R.ref.current)!=null&&T.disabled)}),w=b.findIndex(R=>R.ref.current===j),y=b.length;if(w===-1)return;g.preventDefault();let p=w;const x=0,N=y-1,S=()=>{p=w+1,p>N&&(p=x)},k=()=>{p=w-1,p<x&&(p=N)};switch(g.key){case"Home":p=x;break;case"End":p=N;break;case"ArrowRight":a==="horizontal"&&(m?S():k());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(m?k():S());break;case"ArrowUp":a==="vertical"&&k();break}const E=p%y;(C=b[E].ref.current)==null||C.focus()});return r.jsx(c3,{scope:n,disabled:s,direction:o,orientation:a,children:r.jsx(yp.Slot,{scope:n,children:r.jsx(Se.div,{...i,"data-orientation":a,ref:d,onKeyDown:s?void 0:v})})})}),Xd="AccordionItem",[d3,jp]=Qd(Xd),gN=V.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...o}=e,a=Gd(Xd,n),i=o3(Xd,n),c=bp(n),d=Rn(),u=s&&i.value.includes(s)||!1,h=a.disabled||e.disabled;return r.jsx(d3,{scope:n,open:u,disabled:h,triggerId:d,children:r.jsx(i1,{"data-orientation":a.orientation,"data-state":NN(u),...c,...o,ref:t,disabled:h,open:u,onOpenChange:m=>{m?i.onItemOpen(s):i.onItemClose(s)}})})});gN.displayName=Xd;var vN="AccordionHeader",yN=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,o=Gd(Dn,n),a=jp(vN,n);return r.jsx(Se.h3,{"data-orientation":o.orientation,"data-state":NN(a.open),"data-disabled":a.disabled?"":void 0,...s,ref:t})});yN.displayName=vN;var Np="AccordionTrigger",bN=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,o=Gd(Dn,n),a=jp(Np,n),i=a3(Np,n),c=bp(n);return r.jsx(yp.ItemSlot,{scope:n,children:r.jsx(H5,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...c,...s,ref:t})})});bN.displayName=Np;var jN="AccordionContent",wN=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,o=Gd(Dn,n),a=jp(jN,n),i=bp(n);return r.jsx(W5,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wN.displayName=jN;function NN(e){return e?"open":"closed"}var u3=mN,f3=gN,m3=yN,SN=bN,CN=wN;const h3=u3,kN=f.forwardRef(({className:e,...t},n)=>r.jsx(f3,{ref:n,className:Q("border-b",e),...t}));kN.displayName="AccordionItem";const _N=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(m3,{className:"flex",children:r.jsxs(SN,{ref:s,className:Q("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(no,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));_N.displayName=SN.displayName;const EN=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(CN,{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:Q("pb-4 pt-0",e),children:t})}));EN.displayName=CN.displayName;const Sp=["success","invalid_email","invalid_nonce","save_failed","send_failed"],PN={success:{title:"",body:""},invalid_email:{title:"",body:""},invalid_nonce:{title:"",body:""},save_failed:{title:"",body:""},send_failed:{title:"",body:""}},TN={success:{label:l("Success — email sent"),hint:l("Shown after the user submits their email and the confirmation mail goes out.")},invalid_email:{label:l("Error — invalid email"),hint:l("Shown when the visitor entered an obviously malformed address.")},invalid_nonce:{label:l("Error — session expired"),hint:l("Shown when the form's CSRF nonce was rejected (form sat unsubmitted for too long).")},save_failed:{label:l("Error — save failed"),hint:l("Shown on rare DB write failures.")},send_failed:{label:l("Error — email not sent"),hint:l("Shown when the request was recorded but the email could not go out — most often because the subject or body below is still empty. This case used to show the success notice instead, so visitors waited for a mail that was never sent.")}},Cp=["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"],RN=Cp.reduce((e,t)=>({...e,[t]:""}),{}),p3=[{group:l("Table columns"),items:[{key:"column_subscription"},{key:"column_signed_up"},{key:"column_status"},{key:"column_valid_until"}]},{group:l("Status badges"),items:[{key:"badge_active"},{key:"badge_cancelled"}]},{group:l("Action buttons"),items:[{key:"cancel_button",hint:l("Per-row button to cancel one subscription.")},{key:"bulk_button",hint:l("Button above the table, shown when 2+ active rows exist.")},{key:"reactivate_button",hint:l("Per-row button to re-activate a cancelled subscription.")}]},{group:l("Confirm modal — prompts"),items:[{key:"cancel_confirm",hint:l("Shown in the modal before cancelling a single subscription.")},{key:"bulk_confirm",hint:l("Shown in the modal before bulk-cancelling all subscriptions.")},{key:"reactivate_confirm",hint:l("Shown in the modal before re-activating a cancelled subscription.")}]},{group:l("Confirm modal — buttons"),items:[{key:"confirm_yes",hint:l("Confirms the action — red button. Shared across all three prompts.")},{key:"confirm_no",hint:l("Closes the modal without acting — neutral button. Shared across all three prompts.")}]},{group:l("Empty state"),items:[{key:"empty_state",hint:l("Shown when the email has no subscriptions on file.")}]}],kp=["cancelled","cancelled_all","reactivated"],AN={cancelled:{title:"",body:""},cancelled_all:{title:"",body:""},reactivated:{title:"",body:""}},_p={cancelled:{label:l("After cancelling one subscription"),hint:l("Green notice shown on the list page after the visitor clicks Cancel on a single row."),bodyPlaceholders:l("%s = form/subscription title")},cancelled_all:{label:l("After bulk-cancelling"),hint:l("Green notice shown after the visitor confirms the Cancel ALL action."),bodyPlaceholders:l("%d = number of cancelled subscriptions")},reactivated:{label:l("After re-activating"),hint:l("Green notice shown after the visitor clicks Reactivate on a previously cancelled subscription."),bodyPlaceholders:l("%s = form/subscription title")}},x3={enabled:!0,defaults:{optout_page:0,optout_subject:"Opt-out Confirmation",optout_template:"",optout_body:"",notices:PN,labels:RN,list_notices:AN,disabled_notice:{enabled:!1,title:"",body:""}},forms:[]};function g3(){var I,F,J,xe;const e=ra("opt-out"),t=Xe(),{data:n,isLoading:s}=Ce({queryKey:["optout-settings"],queryFn:()=>Z("/optout/settings"),enabled:e}),{data:o}=Ce({queryKey:["pages"],queryFn:()=>Z("/settings/pages")}),{data:a}=Ce({queryKey:["email-templates-list"],queryFn:()=>Z("/settings/email-templates-list")}),{data:i}=Ce({queryKey:["forms"],queryFn:()=>Z("/forms"),enabled:e}),[c,d]=f.useState(x3),[u,h]=f.useState(!1),[m,v]=f.useState("");f.useEffect(()=>{var he,Ae,He,ut,_t,cr,Ts,Fa,No,sn,kl,dr,Zd,Jd,Ot,Dr;if(!(n!=null&&n.data)||u)return;const P=n.data,$=(_t=P._defaults)!=null?_t:{optout_page:Number((he=P.optout_page)!=null?he:0),optout_subject:String((Ae=P.optout_subject)!=null?Ae:""),optout_template:String((He=P.optout_template)!=null?He:""),optout_body:String((ut=P.optout_body)!=null?ut:"")},W=(cr=P._defaults)==null?void 0:cr.notices,se=Sp.reduce((ur,jn)=>{var on,So,Rs,Fr;return ur[jn]={title:String((So=(on=W==null?void 0:W[jn])==null?void 0:on.title)!=null?So:""),body:String((Fr=(Rs=W==null?void 0:W[jn])==null?void 0:Rs.body)!=null?Fr:"")},ur},{}),Ne=(Ts=P._defaults)==null?void 0:Ts.labels,G=Cp.reduce((ur,jn)=>{var on;return ur[jn]=String((on=Ne==null?void 0:Ne[jn])!=null?on:""),ur},{}),ge=(Fa=P._defaults)==null?void 0:Fa.list_notices,L=kp.reduce((ur,jn)=>{var on,So,Rs,Fr;return ur[jn]={title:String((So=(on=ge==null?void 0:ge[jn])==null?void 0:on.title)!=null?So:""),body:String((Fr=(Rs=ge==null?void 0:ge[jn])==null?void 0:Rs.body)!=null?Fr:"")},ur},{}),me=(No=P._defaults)==null?void 0:No.disabled_notice,U={enabled:!!((sn=me==null?void 0:me.enabled)!=null&&sn),title:String((kl=me==null?void 0:me.title)!=null?kl:""),body:String((dr=me==null?void 0:me.body)!=null?dr:"")};d({enabled:P._enabled!==!1,defaults:{optout_page:Number((Zd=$.optout_page)!=null?Zd:0),optout_subject:String((Jd=$.optout_subject)!=null?Jd:""),optout_template:String((Ot=$.optout_template)!=null?Ot:""),optout_body:String((Dr=$.optout_body)!=null?Dr:""),notices:se,labels:G,list_notices:L,disabled_notice:U},forms:Array.isArray(P._forms)?P._forms:[]}),h(!0)},[n,u]);const g=f.useMemo(()=>{var $,W,se;const P=($=n==null?void 0:n.data)==null?void 0:$._disabled_notice_defaults;return{title:String((W=P==null?void 0:P.title)!=null?W:""),body:String((se=P==null?void 0:P.body)!=null?se:"")}},[n]),j=f.useMemo(()=>{var $;const P=($=n==null?void 0:n.data)==null?void 0:$._labels_defaults;return P?Cp.reduce((W,se)=>{var Ne;return W[se]=String((Ne=P[se])!=null?Ne:""),W},{}):RN},[n]),b=f.useMemo(()=>{var $;const P=($=n==null?void 0:n.data)==null?void 0:$._list_notices_defaults;return P?kp.reduce((W,se)=>{var Ne,G,ge,L;return W[se]={title:String((G=(Ne=P[se])==null?void 0:Ne.title)!=null?G:""),body:String((L=(ge=P[se])==null?void 0:ge.body)!=null?L:"")},W},{}):AN},[n]),w=f.useMemo(()=>{var $;const P=($=n==null?void 0:n.data)==null?void 0:$._notices_defaults;return P?Sp.reduce((W,se)=>{var Ne,G,ge,L;return W[se]={title:String((G=(Ne=P[se])==null?void 0:Ne.title)!=null?G:""),body:String((L=(ge=P[se])==null?void 0:ge.body)!=null?L:"")},W},{}):PN},[n]),y=f.useMemo(()=>{var W;const P=(W=i==null?void 0:i.data)!=null?W:{},$=[];for(const[se,Ne]of Object.entries(P))if(Ne)for(const G of Ne.forms){const ge=typeof G.id=="string"?G.id:String(G.id),L=Number(ge.split("_")[0]);L&&$.push({key:`${se}_${ge}`,integration:se,integrationName:Ne.name,formId:L,restId:ge,title:G.title||`#${L}`})}return $},[i]),p=(P,$)=>{const W=y.find(se=>se.integration===P&&se.formId===$);return W?`${W.integrationName} / ${W.title}`:`${P} / #${$}`},x=Te({mutationFn:()=>Z("/optout/page/generate",{method:"POST"}),onSuccess:P=>{t.invalidateQueries({queryKey:["pages"]}),d($=>({...$,defaults:{...$.defaults,optout_page:P.page_id}})),q.success(P.message)},onError:P=>{const $=(P==null?void 0:P.message)||l("Failed to generate opt-out page.");q.error($)}}),N=Te({mutationFn:P=>Z("/optout/settings",{method:"PUT",body:JSON.stringify({enabled:P.enabled,optout_page:P.defaults.optout_page,optout_subject:P.defaults.optout_subject,optout_template:P.defaults.optout_template,optout_body:P.defaults.optout_body,defaults:P.defaults,forms:P.forms})}),onSuccess:P=>{t.invalidateQueries({queryKey:["optout-settings"]}),q.success(P.message||l("Opt-out settings saved."))},onError:P=>{q.error(P.message||l("Failed to save settings."))}}),S=(I=o==null?void 0:o.data)!=null?I:[],k=(F=a==null?void 0:a.data)!=null?F:[];function E(P,$){d(W=>({...W,defaults:{...W.defaults,[P]:$}}))}function C(P,$,W){d(se=>({...se,defaults:{...se.defaults,notices:{...se.defaults.notices,[P]:{...se.defaults.notices[P],[$]:W}}}}))}function R(P,$){d(W=>({...W,defaults:{...W.defaults,labels:{...W.defaults.labels,[P]:$}}}))}function T(P,$,W){d(se=>({...se,defaults:{...se.defaults,list_notices:{...se.defaults.list_notices,[P]:{...se.defaults.list_notices[P],[$]:W}}}}))}function A(P,$){d(W=>({...W,defaults:{...W.defaults,disabled_notice:{...W.defaults.disabled_notice,[P]:$}}}))}function M(){if(!m)return;const P=y.find($=>$.key===m);if(P){if(c.forms.some($=>$.integration===P.integration&&$.form_id===P.formId)){q.warning(l("This form is already in the list."));return}d($=>({...$,forms:[...$.forms,{integration:P.integration,form_id:P.formId,enabled:null,optout_page:null,optout_subject:null,optout_template:null,optout_body:null}]})),v("")}}function B(P){d($=>({...$,forms:$.forms.filter((W,se)=>se!==P)}))}function O(P,$,W){d(se=>({...se,forms:se.forms.map((Ne,G)=>G===P?{...Ne,[$]:W}:Ne)}))}const re=f.useMemo(()=>{const P=S.find($=>$.id===c.defaults.optout_page);return P?P.title:l("(no page selected)")},[S,c.defaults.optout_page]),D=f.useMemo(()=>{if(!c.defaults.optout_template)return l("(inline body)");const P=k.find($=>String($.id)===String(c.defaults.optout_template));return P?P.title:c.defaults.optout_template},[k,c.defaults.optout_template]),te=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(Q0,{className:"h-6 w-6"}),l("Opt-Out Settings"),!e&&r.jsx(cp,{})]}),r.jsx("p",{className:"text-muted-foreground",children:l("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(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Feature toggle")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"optout-enabled",className:"text-base",children:l("Opt-Out enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, no opt-out mails are sent for any form — regardless of per-form overrides below.")})]}),r.jsx(tn,{id:"optout-enabled",checked:c.enabled,onCheckedChange:P=>d($=>({...$,enabled:P}))})]})})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("When disabled")}),r.jsxs(Pe,{children:[l("Controls what visitors see if the master toggle above is off. By default the opt-out form + list shortcodes render")," ",r.jsx("strong",{children:l("nothing")})," ",l("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(X,{htmlFor:"disabled-notice-enabled",className:"text-base",children:l("Show the notice when disabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("Only relevant when the master toggle above is off — has no effect while opt-out is active.")})]}),r.jsx(tn,{id:"disabled-notice-enabled",checked:c.defaults.disabled_notice.enabled,onCheckedChange:P=>A("enabled",P)})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:"disabled-notice-title",children:l("Title")}),r.jsx(Re,{id:"disabled-notice-title",className:"mt-1 h-9 text-xs",placeholder:g.title||l("Default title"),value:c.defaults.disabled_notice.title,onChange:P=>A("title",P.target.value)})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:"disabled-notice-body",children:l("Body")}),r.jsx(Tr,{id:"disabled-notice-body",className:"mt-1 text-xs min-h-[60px]",placeholder:g.body||l("Default body"),value:c.defaults.disabled_notice.body,onChange:P=>A("body",P.target.value)})]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Opt-Out Page (default)")}),r.jsxs(Pe,{children:[l("Page that hosts the opt-out form and list — applies to every form unless overridden below. Use")," ",r.jsx("strong",{children:l("Generate")})," ",l("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:c.defaults.optout_page?String(c.defaults.optout_page):"",onValueChange:P=>E("optout_page",P?Number(P):0),children:[r.jsx(ve,{className:"flex-1",children:r.jsx(we,{placeholder:l("Select a page...")})}),r.jsx(ye,{children:S.map(P=>r.jsx(z,{value:P.id.toString(),children:P.title},P.id))})]}),r.jsxs(H,{type:"button",variant:"outline",onClick:()=>x.mutate(),disabled:x.isPending,title:l("Create a new page with the opt-out shortcodes"),children:[r.jsx(XE,{className:"h-4 w-4 mr-1.5"}),x.isPending?l("Generating..."):l("Generate")]})]}),c.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=${c.defaults.optout_page}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-foreground",children:[r.jsx(cd,{className:"h-3 w-3"}),l("Open page")]}),r.jsxs("a",{href:`${$t().adminUrl.replace(/\/+$/,"")}/post.php?post=${c.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(dd,{className:"h-3 w-3"}),l("Edit page")]})]})]})]}),r.jsxs(ee,{children:[r.jsx(ce,{children:r.jsxs(ue,{className:"flex items-center gap-2",children:[r.jsx(q0,{className:"h-4 w-4"}),l("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:l("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:l("Display the opt-in/opt-out status list")})]})]})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Opt-Out Email (defaults)")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"optout-subject",children:l("Subject")}),r.jsx(Re,{id:"optout-subject",value:c.defaults.optout_subject,onChange:P=>E("optout_subject",P.target.value),placeholder:l("Opt-out Confirmation")})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{htmlFor:"optout-template",children:l("Template")}),r.jsxs(je,{value:c.defaults.optout_template||"__none__",onValueChange:P=>E("optout_template",P==="__none__"?"":P),children:[r.jsx(ve,{id:"optout-template",children:r.jsx(we,{placeholder:l("None (use body below)")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"__none__",children:l("None")}),k.map(P=>r.jsx(z,{value:String(P.id),children:P.title},P.id))]})]})]}),c.defaults.optout_template?r.jsx(y3,{templateId:c.defaults.optout_template,title:(xe=(J=k.find(P=>String(P.id)===String(c.defaults.optout_template)))==null?void 0:J.title)!=null?xe:c.defaults.optout_template}):r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{htmlFor:"optout-body",children:l("Email Body")}),r.jsx(Tr,{id:"optout-body",value:c.defaults.optout_body,onChange:P=>E("optout_body",P.target.value),className:"font-mono min-h-[300px]",placeholder:l("HTML email body...")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Available placeholder:")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"[doubleoptin_optout_url]"})]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Notice texts")}),r.jsxs(Pe,{children:[l("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:l('String Translation → Domain "double-opt-in-opt-out"')})," ",l("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"}):Sp.map(P=>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:TN[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:TN[P].hint})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`notice-${P}-title`,children:l("Title")}),r.jsx(Re,{id:`notice-${P}-title`,className:"mt-1 h-9 text-xs",placeholder:w[P].title||l("Default title"),value:c.defaults.notices[P].title,onChange:$=>C(P,"title",$.target.value)})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`notice-${P}-body`,children:l("Body")}),r.jsx(Tr,{id:`notice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:w[P].body||l("Default body"),value:c.defaults.notices[P].body,onChange:$=>C(P,"body",$.target.value)})]})]})]},P))})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("List page labels")}),r.jsx(Pe,{children:l("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(h3,{type:"multiple",className:"w-full",children:p3.map(P=>r.jsxs(kN,{value:P.group,children:[r.jsx(_N,{className:"text-sm",children:P.group}),r.jsx(EN,{children:r.jsx("div",{className:"space-y-3 pt-2",children:P.items.map(({key:$,hint:W})=>r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`label-${$}`,children:$}),r.jsx(Re,{id:`label-${$}`,className:"mt-1 h-9 text-xs",placeholder:j[$]||l("Default"),value:c.defaults.labels[$],onChange:se=>R($,se.target.value)}),W&&r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:W})]},$))})})]},P.group))})})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("List page notices")}),r.jsxs(Pe,{children:[l("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"})," ",l("placeholders — see each entry's hint.")]})]}),r.jsx(ne,{className:"space-y-5",children:s?r.jsx(oe,{className:"h-64 w-full"}):kp.map(P=>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:_p[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:_p[P].hint}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:[r.jsx("strong",{children:l("Placeholder:")})," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:_p[P].bodyPlaceholders})]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`listnotice-${P}-title`,children:l("Title")}),r.jsx(Re,{id:`listnotice-${P}-title`,className:"mt-1 h-9 text-xs",placeholder:b[P].title||l("Default title"),value:c.defaults.list_notices[P].title,onChange:$=>T(P,"title",$.target.value)})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`listnotice-${P}-body`,children:l("Body")}),r.jsx(Tr,{id:`listnotice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:b[P].body||l("Default body"),value:c.defaults.list_notices[P].body,onChange:$=>T(P,"body",$.target.value)})]})]})]},P))})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Per-form overrides")}),r.jsx(Pe,{children:l('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:v,children:[r.jsx(ve,{className:"flex-1",children:r.jsx(we,{placeholder:l("Select a form to add…")})}),r.jsx(ye,{children:y.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:l("No forms detected")}):y.map(P=>r.jsxs(z,{value:P.key,children:[P.integrationName," / ",P.title]},P.key))})]}),r.jsxs(H,{onClick:M,disabled:!m,children:[r.jsx(la,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),c.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:l("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:c.forms.map((P,$)=>r.jsx(v3,{entry:P,label:p(P.integration,P.form_id),pages:S,templates:k,defaultPageLabel:re,defaultTemplateLabel:D,defaultSubject:c.defaults.optout_subject,onChange:(W,se)=>O($,W,se),onRemove:()=>B($)},`${P.integration}_${P.form_id}`))})]})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2",children:r.jsx(H,{onClick:()=>N.mutate(c),disabled:N.isPending,children:N.isPending?l("Saving..."):l("Save")})})]}),r.jsx("div",{className:"space-y-6",children:r.jsxs(ee,{children:[r.jsx(ce,{children:r.jsx(ue,{className:"text-sm",children:l("Hooks Reference")})}),r.jsx(ne,{children:r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:l("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:l("Modify the opt-out email body before sending.")})]})})]})})]})]});return r.jsx(vp,{featureName:l("Opt-Out System"),requireAddon:"opt-out",children:te})}function v3({entry:e,label:t,pages:n,templates:s,defaultPageLabel:o,defaultTemplateLabel:a,defaultSubject:i,onChange:c,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:l("Remove this override"),children:r.jsx(gn,{className:"h-4 w-4"})})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Opt-out for this form")}),r.jsxs(je,{value:u,onValueChange:v=>{v==="__inherit"?c("enabled",null):v==="yes"?c("enabled",!0):c("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:l("Inherit (active)")}),r.jsx(z,{value:"yes",children:l("Enabled for this form")}),r.jsx(z,{value:"no",children:l("Disabled for this form")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:l('"Disabled" suppresses opt-out invitation mails for this form. Existing opt-out hashes still resolve.')})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Opt-out page")}),r.jsxs(je,{value:e.optout_page?String(e.optout_page):"__inherit",onValueChange:v=>c("optout_page",v==="__inherit"?null:Number(v)),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:le(l("Inherit (%s)"),o)}),n.map(v=>r.jsx(z,{value:v.id.toString(),children:v.title},v.id))]})]})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(X,{className:"text-xs",children:l("Subject override")}),r.jsx(Re,{className:"mt-1 h-9 text-xs",placeholder:le(l("Inherit (%s)"),i||l("(empty)")),value:(h=e.optout_subject)!=null?h:"",onChange:v=>c("optout_subject",v.target.value===""?null:v.target.value)})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(X,{className:"text-xs",children:l("Template override")}),r.jsxs(je,{value:e.optout_template||"__inherit",onValueChange:v=>c("optout_template",v==="__inherit"?null:v),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:le(l("Inherit (%s)"),a)}),s.map(v=>r.jsx(z,{value:String(v.id),children:v.title},v.id))]})]})]}),!e.optout_template&&r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(X,{className:"text-xs",children:l("Body override")}),r.jsx(Tr,{className:"mt-1 text-xs font-mono min-h-[120px]",placeholder:l("Inherit from defaults — leave empty to use the default body."),value:(m=e.optout_body)!=null?m:"",onChange:v=>c("optout_body",v.target.value===""?null:v.target.value)})]})]})]})}function y3({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(X,{children:l("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(Gn,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:l("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:le(l("%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(dd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit in Email Designer")]})}):r.jsx(H,{variant:"secondary",size:"sm",disabled:!0,children:l("Editor link unavailable")})]})]})]})}const ON=[{value:"subscriber",label:l("Subscriber")},{value:"contributor",label:l("Contributor")},{value:"author",label:l("Author")},{value:"editor",label:l("Editor")}],Ep={all:{title:l("All forms (every confirmation creates a user)"),hint:l("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:l("Only selected forms (opt-in list — default)"),hint:l("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:l("All forms EXCEPT selected (opt-out list)"),hint:l("Every form auto-creates EXCEPT those in the list. Symmetric to `all` with an exclusion list.")}},b3={enabled:!0,mode:"selected",defaults:{role:"subscriber",send_welcome_mail:!0,force_password_change:!1,duplicate_policy:"skip",field_map:{}},conditions:[]};function j3(e,t,n,s){const o=l(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:le(l("Auto-create a %s on every confirmation"),t),detail:le(l("Every DOI form on the site triggers user creation on confirm. %s"),o)}:e==="selected"?n===0?{headline:l("No forms in scope — auto user creation is currently inactive"),detail:l("mode=selected with an empty list means no form is in scope. Add at least one form below to enable.")}:{headline:le(ow("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:le(l("Only the listed forms trigger user creation. Forms not in the list are completely unaffected. %s"),o)}:n===0?{headline:le(l("Auto-create a %s on every confirmation"),t),detail:le(l("No exclusions configured — every form triggers user creation. %s"),o)}:{headline:le(l("Auto-create a %1$s on every form EXCEPT the %2$s excluded"),t,n),detail:le(ow("%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 w3(){const e=Xe(),{data:t,isLoading:n}=Ce({queryKey:["user-creation-settings"],queryFn:()=>Z("/user-creation/settings")}),{data:s}=Ce({queryKey:["forms"],queryFn:()=>Z("/forms")}),[o,a]=f.useState(b3),[i,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var N,S,k,E,C,R,T,A,M;if(!t||i)return;const x=(N=t.data)!=null?N:t;a({enabled:x.enabled!==!1,mode:(S=x.mode)!=null?S:"selected",defaults:{role:(E=(k=x.defaults)==null?void 0:k.role)!=null?E:"subscriber",send_welcome_mail:((C=x.defaults)==null?void 0:C.send_welcome_mail)!==!1,force_password_change:((R=x.defaults)==null?void 0:R.force_password_change)===!0,duplicate_policy:(A=(T=x.defaults)==null?void 0:T.duplicate_policy)!=null?A:"skip",field_map:(M=x.defaults)!=null&&M.field_map&&typeof x.defaults.field_map=="object"?x.defaults.field_map:{}},conditions:Array.isArray(x.conditions)?x.conditions:[]}),c(!0)},[t,i]);const h=f.useMemo(()=>{var S;const x=(S=s==null?void 0:s.data)!=null?S:{},N=[];for(const[k,E]of Object.entries(x))if(E)for(const C of E.forms){const R=Number(typeof C.id=="string"?C.id.split("_")[0]:C.id);R&&N.push({key:`${k}_${R}`,integration:k,integrationName:E.name,formId:R,title:C.title||`#${R}`})}return N},[s]),m=(x,N)=>{const S=h.find(k=>k.integration===x&&k.formId===N);return S?`${S.integrationName} / ${S.title}`:`${x} / #${N}`},v=Te({mutationFn:()=>Z("/user-creation/settings",{method:"PUT",body:JSON.stringify(o)}),onSuccess:()=>{q.success(l("User Creation settings saved.")),e.invalidateQueries({queryKey:["user-creation-settings"]})},onError:x=>{q.error(x.message||l("Failed to save User Creation settings."))}});function g(x,N){a(S=>({...S,defaults:{...S.defaults,[x]:N}}))}function j(){if(!d)return;const x=h.find(N=>N.key===d);if(x){if(o.conditions.some(N=>N.integration===x.integration&&N.form_id===x.formId)){q.warning(l("This form is already in the list."));return}a(N=>({...N,conditions:[...N.conditions,{integration:x.integration,form_id:x.formId,role:null,send_welcome_mail:null,duplicate_policy:null,field_map:null}]})),u("")}}function b(x){a(N=>({...N,conditions:N.conditions.filter((S,k)=>k!==x)}))}function w(x,N,S){a(k=>({...k,conditions:k.conditions.map((E,C)=>C===x?{...E,[N]:S}:E)}))}if(n)return r.jsx(oe,{className:"h-96 w-full"});const y=j3(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(Y0,{className:"h-6 w-6"}),l("Auto User Creation")]}),r.jsx("p",{className:"text-muted-foreground",children:l("Create a WordPress user automatically after opt-in confirmation")})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Feature toggle")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"uc-enabled",className:"text-base",children:l("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, no users are auto-created — confirmations still complete normally, just without a WP user being made.")})]}),r.jsx(tn,{id:"uc-enabled",checked:o.enabled,onCheckedChange:x=>a(N=>({...N,enabled:x}))})]})})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("How User Creation applies")}),r.jsx(Pe,{children:l("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(Ep).map(x=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(o.mode===x?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"uc-mode",value:x,checked:o.mode===x,onChange:()=>a(N=>({...N,mode:x})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:Ep[x].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:Ep[x].hint})]})]},x)),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:l("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:y.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:y.detail})]})]})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Default settings")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"uc-role",children:l("Default role")}),r.jsxs(je,{value:o.defaults.role,onValueChange:x=>g("role",x),children:[r.jsx(ve,{id:"uc-role",className:"mt-1.5",children:r.jsx(we,{})}),r.jsx(ye,{children:ON.map(x=>r.jsx(z,{value:x.value,children:x.label},x.value))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Administrator is excluded for security — no role-escalation via opt-in.")})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"uc-policy",children:l("Duplicate user policy")}),r.jsxs(je,{value:o.defaults.duplicate_policy,onValueChange:x=>g("duplicate_policy",x),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:l("Skip (do nothing)")}),r.jsx(z,{value:"update_meta",children:l("Update meta of existing user")}),r.jsx(z,{value:"error",children:l("Treat as error")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:"update_meta"})," ",l("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(X,{htmlFor:"uc-welcome",children:l("Send WP password-reset email")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Standard WP welcome flow — let the new user set their own password. Disable if you handle onboarding mails elsewhere.")})]}),r.jsx(tn,{id:"uc-welcome",checked:o.defaults.send_welcome_mail,onCheckedChange:x=>g("send_welcome_mail",x)})]}),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(X,{htmlFor:"uc-force-pw",children:l("Force password change on first login")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("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(tn,{id:"uc-force-pw",checked:o.defaults.force_password_change,onCheckedChange:x=>g("force_password_change",x)})]}),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:l("Want to block disposable-email domains?")})," ",l("Install the")," ",r.jsx("strong",{children:"Domain Blocklist"})," ",l("addon. It intercepts before any opt-in record or confirmation mail — cleaner than skipping just the user-create step.")," ",l("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"})," ",l("filter.")]})]})})]})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:o.mode==="selected"?l("Forms to apply auto-creation to"):o.mode==="all_except"?l("Forms to exclude from auto-creation"):l("Per-form overrides")}),r.jsxs(Pe,{children:[o.mode==="all"&&l("All forms are in scope. Add entries here to override the defaults for specific forms."),o.mode==="selected"&&l("Only forms in this list create users on confirmation."),o.mode==="all_except"&&l("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:l("Select a form to add…")})}),r.jsx(ye,{children:h.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:l("No forms detected")}):h.map(x=>r.jsxs(z,{value:x.key,children:[x.integrationName," / ",x.title]},x.key))})]}),r.jsxs(H,{onClick:j,disabled:!d,children:[r.jsx(la,{className:"h-4 w-4 mr-1.5"}),l("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"?l("No forms in the list yet. Auto user creation is currently inactive — add at least one form above."):o.mode==="all_except"?l("No exclusions configured. Every form creates users — same as mode=all."):l("No per-form overrides. Defaults apply to every form.")})]}):r.jsx("div",{className:"space-y-3",children:o.conditions.map((x,N)=>{var S,k;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(x.integration,x.form_id)}),r.jsx(H,{variant:"ghost",size:"sm",onClick:()=>b(N),title:l("Remove from list"),children:r.jsx(gn,{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(X,{className:"text-xs",children:l("Override role")}),r.jsxs(je,{value:(S=x.role)!=null?S:"__inherit",onValueChange:E=>w(N,"role",E==="__inherit"?null:E),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:le(l("Inherit (%s)"),o.defaults.role)}),ON.map(E=>r.jsx(z,{value:E.value,children:E.label},E.value))]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override duplicate policy")}),r.jsxs(je,{value:(k=x.duplicate_policy)!=null?k:"__inherit",onValueChange:E=>w(N,"duplicate_policy",E==="__inherit"?null:E),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:le(l("Inherit (%s)"),o.defaults.duplicate_policy)}),r.jsx(z,{value:"skip",children:l("Skip")}),r.jsx(z,{value:"update_meta",children:l("Update meta")}),r.jsx(z,{value:"error",children:l("Error")})]})]})]})]})]},`${x.integration}_${x.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(H,{onClick:()=>v.mutate(),disabled:v.isPending,children:[v.isPending?r.jsx(Pn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(so,{className:"h-4 w-4 mr-1.5"}),l("Save User Creation settings")]})})]})]}),r.jsx(ee,{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:l("Auto-created users get a random password. The standard WordPress password-reset email is sent automatically (toggle above to disable).")}),r.jsxs("p",{children:[l("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"})," ",l("filter — see the addon documentation.")]})]})]})})})]});return r.jsx(vp,{featureName:l("Auto User Creation"),requireAddon:"user-registration",children:p})}const N3=[{value:"__none__",label:l("None")},{value:"cleverreach",label:"CleverReach"}];function S3(){var u;const e=ra("cleverreach"),t=Xe(),{data:n,isLoading:s}=Ce({queryKey:["api-settings"],queryFn:()=>Z("/api/settings"),enabled:e}),[o,a]=f.useState({service:"",cleverreach_client_id:"",cleverreach_client_secret:"",cleverreach_connected:!1});f.useEffect(()=>{n!=null&&n.data&&a(n.data)},[n]);const i=Te({mutationFn:h=>Z("/api/settings",{method:"PUT",body:JSON.stringify(h)}),onSuccess:h=>{t.invalidateQueries({queryKey:["api-settings"]}),q.success(h.message||l("API settings saved."))},onError:h=>{q.error(h.message||l("Failed to save settings."))}}),c=Te({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"]}),q.success(h.message||l("Connected to CleverReach.")))},onError:h=>{q.error(h.message||l("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(Ym,{className:"h-6 w-6"}),l("API Integrations"),!e&&r.jsx(cp,{})]}),r.jsx("p",{className:"text-muted-foreground",children:l("Connect external services to your Double Opt-In system")})]}),r.jsxs("div",{className:"max-w-[600px] space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("API Endpoint")}),r.jsx(Pe,{children:l("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=>a(m=>({...m,service:h==="__none__"?"":h})),children:[r.jsx(ve,{children:r.jsx(we,{placeholder:l("None")})}),r.jsx(ye,{children:N3.map(h=>r.jsx(z,{value:h.value,children:h.label},h.value))})]})})]}),o.service==="cleverreach"&&r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:"CleverReach"}),r.jsx(Pe,{children:l("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(X,{htmlFor:"cr-client-id",children:l("Client ID")}),r.jsx(Re,{id:"cr-client-id",value:o.cleverreach_client_id,onChange:h=>a(m=>({...m,cleverreach_client_id:h.target.value})),placeholder:l("Enter Client ID")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("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:[l("CleverReach REST API settings"),r.jsx(cd,{className:"h-3 w-3"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{htmlFor:"cr-client-secret",children:l("Client Secret")}),r.jsx(Re,{id:"cr-client-secret",type:"password",value:(u=o.cleverreach_client_secret)!=null?u:"",onChange:h=>a(m=>({...m,cleverreach_client_secret:h.target.value})),placeholder:l("Enter Client Secret")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("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:[l("CleverReach REST API settings"),r.jsx(cd,{className:"h-3 w-3"})]})]})]}),r.jsx(ee,{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:l("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?l("Connected"):l("Not Connected")}),o.cleverreach_connected&&o.cleverreach_expires_at&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Expires:")," ",o.cleverreach_expires_at]})]}),r.jsx(H,{variant:o.cleverreach_connected?"outline":"default",size:"sm",onClick:()=>c.mutate(),disabled:c.isPending,children:c.isPending?l("Connecting..."):o.cleverreach_connected?l("Reconnect"):l("Connect to CleverReach")})]})})})]})})]}),r.jsx(H,{onClick:()=>i.mutate(o),disabled:i.isPending||s,children:i.isPending?l("Saving..."):l("Save")})]})]});return r.jsx(vp,{featureName:l("API Integrations"),requireAddon:"cleverreach",children:d})}function C3(){var d;const e=Xe(),[t,n]=f.useState(""),{data:s,isLoading:o}=Ce({queryKey:["license"],queryFn:()=>Z("/license")}),a=s==null?void 0:s.data,i=Te({mutationFn:u=>Z("/license/activate",{method:"POST",body:JSON.stringify({key:u})}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),q.success(u.message||l("License activated successfully.")),n("")},onError:u=>{q.error(u.message||l("Failed to activate license."))}}),c=Te({mutationFn:()=>Z("/license/deactivate",{method:"POST"}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),q.success(u.message||l("License deactivated."))},onError:u=>{q.error(u.message||l("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:l("License")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your Double Opt-In Pro license")})]}),r.jsxs("div",{className:"max-w-[600px] mx-auto space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(ce,{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(Jm,{className:"h-6 w-6 text-muted-foreground"})})}),r.jsx(ue,{children:l("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:a!=null&&a.isActive?"default":"secondary",className:a!=null&&a.isActive?"bg-green-100 text-green-800 hover:bg-green-100":"",children:a!=null&&a.isActive?l("Active"):l("Inactive")}),(a==null?void 0:a.isActive)&&r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-sm font-medium",children:a.licenseType}),a.expiresAt&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Expires:")," ",a.expiresAt]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsxs(ue,{className:"flex items-center gap-2",children:[r.jsx(K0,{className:"h-4 w-4"}),l("License Key")]}),r.jsx(Pe,{children:a!=null&&a.isActive?l("Your license is currently active."):l("Enter your license key to activate Pro features.")})]}),r.jsx(ne,{children:a!=null&&a.isActive?r.jsxs("div",{className:"space-y-3",children:[r.jsx(Re,{value:a.key||"",readOnly:!0,className:"font-mono text-center bg-muted"}),r.jsx(H,{variant:"destructive",className:"w-full",onClick:()=>c.mutate(),disabled:c.isPending,children:c.isPending?l("Deactivating..."):l("Deactivate")})]}):r.jsxs("div",{className:"space-y-3",children:[r.jsx(Re,{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:()=>i.mutate(t),disabled:!t.trim()||i.isPending,children:i.isPending?l("Activating..."):l("Activate")})]})})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Included modules")}),r.jsx(Pe,{children:l("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=a==null?void 0:a.features)!=null?d:[]).map(u=>r.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[u.available?r.jsx(id,{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(er,{id:"license.section",data:{license:a}})]})}const IN=new Set(["avada","elementor","wpforms","gravity-forms"]);function k3(){var v,g;const e=Xe(),{data:t,isLoading:n}=Ce({queryKey:["addons-catalog"],queryFn:()=>Z("/addons/catalog")}),{data:s}=Ce({queryKey:["license"],queryFn:()=>Z("/license")}),o=s==null?void 0:s.data,a=(v=t==null?void 0:t.entries)!=null?v:[],i=(g=t==null?void 0:t.hasBundleLicense)!=null?g:!1,c=$t(),d=Te({mutationFn:j=>Z(`/addons/${j}/activate`,{method:"POST"}),onSuccess:(j,b)=>{var y,p;const w=(p=(y=a.find(x=>x.id===b))==null?void 0:y.name)!=null?p:b;q.success(le(l("%s activated."),w)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:j=>{q.error(j.message||l("Failed to activate addon."))}}),u=Te({mutationFn:j=>Z(`/addons/${j}/deactivate`,{method:"POST"}),onSuccess:(j,b)=>{var y,p;const w=(p=(y=a.find(x=>x.id===b))==null?void 0:y.name)!=null?p:b;q.success(le(l("%s deactivated."),w)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:j=>{q.error(j.message||l("Failed to deactivate addon."))}}),h=Te({mutationFn:j=>Z("/bundle/installer/install",{method:"POST",body:JSON.stringify({id:j})}),onSuccess:(j,b)=>{var y,p;const w=(p=(y=a.find(x=>x.id===b))==null?void 0:y.name)!=null?p:b;q.success(le(l("%s installed."),w)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:j=>{q.error(j.message||l("Failed to install addon."))}});f.useEffect(()=>{const j=()=>{e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})};return window.addEventListener("f12-doi:addons-changed",j),()=>window.removeEventListener("f12-doi:addons-changed",j)},[e]);const m=a.reduce((j,b)=>(j[b.status]++,j),{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:l("Addons")}),r.jsx("p",{className:"text-muted-foreground",children:l("Extend Double Opt-In with official addons. Bundled addons can be installed in one click once your Pro license is active.")})]}),r.jsx(er,{id:"addons.list",data:{entries:a,license:o,hasLicense:i}}),r.jsxs(ee,{children:[r.jsx(ce,{children:r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{children:[r.jsxs(ue,{className:"flex items-center gap-2",children:[r.jsx(aa,{className:"h-5 w-5"}),l("Addon catalog")]}),r.jsx(Pe,{children:n?l("Loading…"):le(l("%1$s active · %2$s installed · %3$s available"),m.active,m.inactive,m.not_installed)})]}),!i&&!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"}),l("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((j,b)=>r.jsx(oe,{className:"h-44 w-full"},b))}):a.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:l("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:a.map(j=>r.jsx(_3,{entry:j,hasLicense:i,adminUrl:c.adminUrl,onActivate:()=>d.mutate(j.id),onDeactivate:()=>u.mutate(j.id),onInstall:()=>h.mutate(j.id),isActivating:d.isPending&&d.variables===j.id,isDeactivating:u.isPending&&u.variables===j.id,isInstalling:h.isPending&&h.variables===j.id},j.id))})})]})]})}function _3({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:o,isActivating:a,isDeactivating:i,isInstalling:c}){const[d,u]=f.useState(!1),h=IN.has(e.id),m=e.status==="active"&&e.operational&&h&&(e.integrationRegistered===!1||e.integrationAvailable===!1),v=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(P3,{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(E3,{loaded:e.operational}),r.jsx("span",{children:e.name})]}),r.jsx(T3,{entry:e})]})]}),r.jsx("p",{className:"text-sm text-muted-foreground flex-1",children:e.description}),v&&r.jsx(R3,{entry:e}),e.capabilities.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1",children:e.capabilities.slice(0,3).map(g=>r.jsx(Qe,{variant:"outline",className:"text-[10px] font-mono",children:g},g))}),r.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[r.jsx(M3,{entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:o,isActivating:a,isDeactivating:i,isInstalling:c}),r.jsx(H,{size:"sm",variant:"ghost",onClick:()=>u(g=>!g),"aria-label":l("Toggle diagnostic info"),title:l("Diagnostic info"),children:r.jsx(kE,{className:"h-4 w-4"})})]}),d&&r.jsx(I3,{entry:e})]})}function E3({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:l(e?"Loaded":"Not loaded"),"aria-label":l(e?"Loaded":"Not loaded")})}function P3({entry:e}){return e.status==="active"?e.operational?r.jsx(W0,{className:"h-5 w-5 text-green-600 shrink-0 mt-0.5"}):r.jsx(zt,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):e.status==="inactive"?r.jsx(Vi,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):r.jsx(TE,{className:"h-5 w-5 text-muted-foreground shrink-0 mt-0.5"})}function T3({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:l("Active")}):r.jsx(Qe,{className:"bg-amber-100 text-amber-800 hover:bg-amber-100 mt-1",children:l("Active · issues")}):e.status==="inactive"?r.jsx(Qe,{variant:"secondary",className:"mt-1",children:l("Installed · inactive")}):r.jsx(Qe,{variant:"outline",className:"mt-1",children:l("Not installed")})}function R3({entry:e}){const t=e.inactiveReason?O3(e.inactiveReason):A3(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 A3(e){return IN.has(e.id)?e.integrationRegistered===!1?{icon:zt,title:l("Form integration not registered"),body:l("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:zt,title:l("Form integration unavailable at runtime"),body:l("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 O3(e){return e==="prerequisite"?{icon:VE,title:l("Prerequisite missing"),body:l("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:zt,title:l("Addon failed to register"),body:l("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 I3({entry:e}){var o;const t=a=>a===null?"—":String(a),n=a=>a===null?"—":String(a),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:l("Diagnostic")}),r.jsx("table",{className:"w-full",children:r.jsx("tbody",{children:s.map(([a,i])=>r.jsxs("tr",{children:[r.jsx("td",{className:"pr-3 text-muted-foreground align-top",children:a}),r.jsx("td",{className:"break-all",children:i})]},a))})})]})}function M3({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:o,isActivating:a,isDeactivating:i,isInstalling:c}){return e.status==="active"?r.jsxs(H,{size:"sm",variant:"outline",className:"flex-1",onClick:s,disabled:i,children:[i?r.jsx(Pn,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Vi,{className:"h-4 w-4 mr-1"}),l(i?"Deactivating…":"Deactivate")]}):e.status==="inactive"?r.jsxs(H,{size:"sm",variant:"default",className:"flex-1",onClick:n,disabled:a,children:[a?r.jsx(Pn,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Vi,{className:"h-4 w-4 mr-1"}),l(a?"Activating…":"Activate")]}):t?r.jsxs(H,{size:"sm",variant:"default",className:"flex-1",onClick:o,disabled:c,children:[c?r.jsx(Pn,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Bi,{className:"h-4 w-4 mr-1"}),l(c?"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(KE,{className:"h-4 w-4 mr-1"}),l("Upgrade to Pro")]})})}const Pp="__dummy__",D3=l("Don't forget to confirm your subscription");function F3(){var x,N,S,k,E;const e=Xe(),{data:t,isLoading:n}=Ce({queryKey:["settings"],queryFn:()=>Z("/settings")}),{data:s}=Ce({queryKey:["email-templates-list"],queryFn:()=>Z("/settings/email-templates-list")}),[o,a]=f.useState({}),[i,c]=f.useState(!1);f.useEffect(()=>{var C,R,T,A;t!=null&&t.data&&!i&&(a({reminder_enabled:(C=t.data.reminder_enabled)!=null?C:0,reminder_delay:(R=t.data.reminder_delay)!=null?R: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}),c(!0))},[t,i]);const d=Te({mutationFn:()=>Z("/settings",{method:"PUT",body:JSON.stringify(o)}),onSuccess:()=>{q.success(l("Reminder settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:C=>{q.error(C.message||l("Failed to save reminder settings."))}}),u=Te({mutationFn:()=>Z("/addons/reminder/regenerate-template",{method:"POST"}),onSuccess:C=>{if(!C.success||!C.templateId){q.error(C.message||l("Could not regenerate the default template."));return}q.success(C.message),a(R=>({...R,reminder_template:`custom_${C.templateId}`})),e.invalidateQueries({queryKey:["email-templates-list"]})},onError:C=>{q.error(C.message||l("Could not regenerate the default template."))}});function h(C,R){a(T=>({...T,[C]:R}))}const m=(x=s==null?void 0:s.data)!=null?x:[],[v,g]=f.useState(""),[j,b]=f.useState(Pp),{data:w}=Ce({queryKey:["reminder-recent-unconfirmed"],queryFn:()=>Z("/addons/reminder/recent-unconfirmed")}),y=Te({mutationFn:()=>Z("/addons/reminder/send-test",{method:"POST",body:JSON.stringify({recipient:v,optin_id:j===Pp?null:Number(j)})}),onSuccess:C=>{C.success?q.success(C.message):q.error(C.message||l("Could not send the test reminder."))},onError:C=>{q.error(C.message||l("Could not send the test reminder."))}}),p=(N=w==null?void 0:w.data)!=null?N:[];return r.jsxs(r.Fragment,{children:[r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Reminder behaviour")}),r.jsx(Pe,{children:l("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(X,{className:"text-sm font-medium",children:l("Send reminder emails")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Master switch. When off the cron runs but skips every pending opt-in. When on the fields below take effect.")})]}),r.jsx(tn,{checked:!!o.reminder_enabled,onCheckedChange:C=>h("reminder_enabled",C?1:0)})]}),r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"reminder-delay",children:l("Delay before reminder (hours)")}),r.jsx(Re,{id:"reminder-delay",type:"number",min:1,className:"mt-1.5",value:(S=o.reminder_delay)!=null?S:24,onChange:C=>h("reminder_delay",Number(C.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:le(l("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(X,{htmlFor:"reminder-subject",children:l("Subject line")}),r.jsx(Re,{id:"reminder-subject",className:"mt-1.5",placeholder:D3,value:(k=o.reminder_subject)!=null?k:"",onChange:C=>h("reminder_subject",C.target.value)})]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"reminder-template",children:l("Email template")}),r.jsxs(je,{value:(E=o.reminder_template)!=null?E:"",onValueChange:C=>h("reminder_template",C),children:[r.jsx(ve,{id:"reminder-template",className:"mt-1.5",children:r.jsx(we,{placeholder:l("Select a template")})}),r.jsx(ye,{children:m.length===0?r.jsx(z,{value:"__empty__",disabled:!0,children:l("No templates available — click Regenerate below.")}):m.map(C=>r.jsx(z,{value:String(C.id),children:C.title},C.id))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Pick any custom template from the Email Designer. The")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",l("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(Pn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(so,{className:"h-4 w-4 mr-1.5"}),l("Save reminder settings")]}),r.jsxs(H,{variant:"outline",onClick:()=>u.mutate(),disabled:u.isPending,title:l("Re-create the default reminder template in the Email Designer. Useful if you deleted it by accident."),children:[u.isPending?r.jsx(Pn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(HE,{className:"h-4 w-4 mr-1.5"}),l("Regenerate default template")]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Send test reminder")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"test-recipient",children:l("Recipient")}),r.jsx(Re,{id:"test-recipient",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:v,onChange:C=>g(C.target.value)}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("The test mail is sent here, not to the opt-in's real email address.")})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"test-optin",children:l("Use opt-in data for placeholders")}),r.jsxs(je,{value:j,onValueChange:C=>b(C),children:[r.jsx(ve,{id:"test-optin",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:Pp,children:l("Dummy data (no real record)")}),p.map(C=>r.jsxs(z,{value:String(C.id),children:["#",C.id," — ",C.email," (",C.created_at,")"]},C.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("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:()=>y.mutate(),disabled:y.isPending||!v,variant:"secondary",children:[y.isPending?r.jsx(Pn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(qE,{className:"h-4 w-4 mr-1.5"}),l("Send test reminder")]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground",children:[l("The subject is prefixed with")," ",r.jsx("code",{children:"[TEST]"})," ",l("so it's obvious in your inbox.")]})]})]})]})]})}const L3=l("The email domain does not appear to accept emails. Please check your email address.");function $3(){var u,h;const e=Xe(),{data:t,isLoading:n}=Ce({queryKey:["settings"],queryFn:()=>Z("/settings")}),[s,o]=f.useState({}),[a,i]=f.useState(!1);f.useEffect(()=>{var m,v;t!=null&&t.data&&!a&&(o({mx_validation_behavior:(m=t.data.mx_validation_behavior)!=null?m:"silent",mx_validation_message:(v=t.data.mx_validation_message)!=null?v:""}),i(!0))},[t,a]);const c=Te({mutationFn:()=>Z("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{q.success(l("MX validation settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:m=>{q.error(m.message||l("Failed to save MX validation settings."))}});function d(m,v){o(g=>({...g,[m]:v}))}return r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("MX validation behaviour")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"mx-behavior",children:l("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:l("Silent rejection — drop the opt-in without telling the user")}),r.jsx(z,{value:"block",children:l("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:l("Silent")})," ",l("looks like a successful submission to the user but no record is created — useful for spam suppression.")," ",r.jsx("strong",{children:l("Block")})," ",l("is better UX for legit users with typos (e.g.")," ",r.jsx("code",{children:"gmial.com"}),")."]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"mx-message",children:l("Custom error message")}),r.jsx(Re,{id:"mx-message",className:"mt-1.5",placeholder:L3,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:[l("Only shown when behaviour is set to")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("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:l("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:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?r.jsx(Pn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(so,{className:"h-4 w-4 mr-1.5"}),l("Save MX settings")]})})]})})]})}const z3=l("This email domain is not allowed. Please use a different email address."),U3=`tempmail.com | |
| 496 | +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:l("Dev-only: revert to pending so the same confirmation link can be re-tested"),children:[r.jsx(gs,{className:"h-3.5 w-3.5 mr-1.5"}),j.isPending?l("Resetting..."):l("Reset to pending (dev)")]}),r.jsxs(U,{variant:"outline",size:"sm",className:"text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>i(!0),children:[r.jsx(kn,{className:"h-3.5 w-3.5 mr-1.5"}),l("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.jsx(M3,{optinId:b.id}),r.jsxs(Z,{children:[r.jsx(le,{children:r.jsx(fe,{className:"text-sm",children:l("Basic Information")})}),r.jsx(ee,{children:r.jsx(fn,{children:r.jsxs(mn,{children:[r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground w-40",children:l("ID")}),r.jsx(ce,{children:b.id})]}),r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Email")}),r.jsx(ce,{children:b.email})]}),r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Form")}),r.jsxs(ce,{children:[b.formName," (#",b.formId,")"]})]}),r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Category")}),r.jsx(ce,{children:b.categoryName?r.jsxs(vt,{to:`/categories/${b.category}`,className:"text-primary hover:underline inline-flex items-center gap-1",children:[r.jsx(Th,{className:"h-3 w-3"}),b.categoryName]}):b.category?String(b.category):"—"})]}),r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Registration Date")}),r.jsx(ce,{children:b.createtime})]}),r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Registration IP")}),r.jsx(ce,{className:"font-mono text-xs",children:b.ipRegister||"—"})]}),r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Confirmation Date")}),r.jsx(ce,{children:b.confirmed||b.revoked&&b.ipConfirmation?b.updatetime:"—"})]}),r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Confirmation IP")}),r.jsx(ce,{className:"font-mono text-xs",children:b.ipConfirmation||"—"})]}),b.ipOptout&&r.jsxs(r.Fragment,{children:[r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Opt-Out IP")}),r.jsx(ce,{className:"font-mono text-xs",children:b.ipOptout})]}),b.optouttime&&r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Opt-Out Date")}),r.jsx(ce,{children:b.optouttime})]})]}),b.reminderSentAt&&r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Reminder Sent")}),r.jsx(ce,{children:b.reminderSentAt})]}),b.mailStatus&&r.jsxs(Me,{children:[r.jsx(ce,{className:"font-medium text-muted-foreground",children:l("Confirmation mail")}),r.jsx(ce,{children:b.mailStatus==="failed"?r.jsxs("span",{className:"text-red-700 dark:text-red-400",children:[re(l("Could not be sent (%s)"),b.mailStatusAt||""),b.mailError&&r.jsx("span",{className:"block text-xs text-muted-foreground font-mono break-all",children:b.mailError}),r.jsx("span",{className:"block text-xs text-muted-foreground",children:l("Check the mail settings of your site, then use “Resend Email”.")})]}):r.jsxs("span",{children:[re(l("Handed to the mail server (%s)"),b.mailStatusAt||""),r.jsx("span",{className:"block text-xs text-muted-foreground",children:l("Whether it arrived in the inbox is beyond what WordPress can see.")})]})})]})]})})})]}),r.jsxs(Z,{children:[r.jsx(le,{children:r.jsxs(fe,{className:"text-sm flex items-center gap-2",children:[r.jsx(kt,{className:"h-4 w-4"}),l("Consent Evidence")]})}),r.jsxs(ee,{className:"space-y-3",children:[b.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:l("Consent text shown to user")}),r.jsx("p",{className:"text-sm text-blue-800/80 dark:text-blue-300/80 leading-relaxed",children:b.consentText})]}):r.jsx("p",{className:"text-sm text-muted-foreground italic",children:l("No consent text was configured for this form at the time of submission.")}),b.consentField?r.jsxs("div",{className:"text-xs space-y-1",children:[r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("Acknowledgment field:")})," ",r.jsx("code",{className:"font-mono bg-muted px-1 py-0.5 rounded",children:b.consentField})]}),r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("User acknowledged:")})," ",b.consentAcknowledged?r.jsx("span",{className:"font-medium text-green-700 dark:text-green-400",children:l("✓ Yes")}):r.jsx("span",{className:"font-medium text-amber-700 dark:text-amber-400",children:l("✗ No (legacy record or gate disabled)")})]})]}):b.consentText?r.jsx("p",{className:"text-xs text-amber-700 dark:text-amber-400 italic",children:l("⚠ 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(vl,{open:o,onOpenChange:c,children:r.jsxs(Z,{children:[r.jsx(yl,{asChild:!0,children:r.jsx(le,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(fe,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(ca,{className:"h-4 w-4"}),re(l("Form Fields (%d)"),p.length)]}),r.jsx(la,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${o?"rotate-180":""}`})]})})}),r.jsx(bl,{children:r.jsx(ee,{className:"pt-0",children:r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsxs(Me,{children:[r.jsx(Ae,{className:"text-xs",children:l("Key")}),r.jsx(Ae,{className:"text-xs",children:l("Value")})]})}),r.jsx(mn,{children:p.map(([k,_])=>r.jsxs(Me,{children:[r.jsx(ce,{className:"font-mono text-xs text-muted-foreground",children:k}),r.jsx(ce,{className:"text-sm break-all",children:_})]},k))})]})})})]})}),b.formHtml&&r.jsx(vl,{open:d,onOpenChange:u,children:r.jsxs(Z,{className:"overflow-hidden",children:[r.jsx(yl,{asChild:!0,children:r.jsx(le,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(fe,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(I0,{className:"h-4 w-4"}),l("Form HTML")]}),r.jsx(la,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${d?"rotate-180":""}`})]})})}),r.jsx(bl,{children:r.jsxs(ee,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:l("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(U,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-7 w-7 z-10",onClick:()=>SN(b.formHtml),children:r.jsx(kh,{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:b.formHtml})})]})]})})]})}),b.mailOptinHtml&&r.jsx(vl,{open:h,onOpenChange:m,children:r.jsxs(Z,{className:"overflow-hidden",children:[r.jsx(yl,{asChild:!0,children:r.jsx(le,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(fe,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx($n,{className:"h-4 w-4"}),l("Opt-In Mail")]}),r.jsx(la,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${h?"rotate-180":""}`})]})})}),r.jsx(bl,{children:r.jsxs(ee,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:l("The confirmation email that was sent to the visitor.")}),r.jsxs("div",{className:"relative",children:[r.jsx(U,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-7 w-7 z-10",onClick:()=>SN(b.mailOptinHtml),children:r.jsx(kh,{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:b.mailOptinHtml})})]})]})})]})}),r.jsx(Hn,{id:"optin.detail-panel",data:{optin:b}})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs(Z,{children:[r.jsx(le,{children:r.jsxs(fe,{className:"text-sm flex items-center gap-2",children:[r.jsx(Xo,{className:"h-4 w-4"}),l("Export Consent Record (GDPR)")]})}),r.jsxs(ee,{className:"space-y-2",children:[r.jsx(U,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${x}&format=json`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(Xo,{className:"h-3.5 w-3.5 mr-2"}),l("Export JSON")]})}),r.jsx(U,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${x}&format=csv`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(Xo,{className:"h-3.5 w-3.5 mr-2"}),l("Export CSV")]})}),((S=b.exportLinks)!=null?S:[]).filter(k=>typeof(k==null?void 0:k.url)=="string"&&/^https?:\/\//.test(k.url)&&k.label).map(k=>r.jsx(U,{variant:"outline",size:"sm",className:"w-full justify-start h-auto min-h-9 py-2 whitespace-normal text-left",asChild:!0,children:r.jsxs("a",{href:k.url,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(ca,{className:"h-3.5 w-3.5 mr-2 shrink-0"}),k.label]})},k.url))]})]}),r.jsxs(Z,{children:[r.jsx(le,{children:r.jsx(fe,{className:"text-sm",children:l("Quick Info")})}),r.jsxs(ee,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Status")}),r.jsx("p",{className:"text-sm font-medium",children:Jw(b)})]}),r.jsx(yi,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Form")}),r.jsx("p",{className:"text-sm font-medium",children:b.formName})]}),r.jsx(yi,{}),b.subscription&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Subscription")}),r.jsx("p",{className:"text-sm font-medium",children:b.subscription.label}),b.linkedOptIns&&b.linkedOptIns.length>0&&r.jsx("ul",{className:"mt-2 space-y-1","aria-label":l("Linked sign-ups"),children:b.linkedOptIns.map(k=>r.jsxs("li",{className:"text-xs",children:[r.jsx(vt,{to:`/optins/${k.id}`,className:"text-primary hover:underline",children:k.formName||`#${k.formId}`}),r.jsxs("span",{className:"text-muted-foreground",children:[" · ",k.createtime]})]},k.id))})]}),r.jsx(yi,{})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Category")}),r.jsx("p",{className:"text-sm font-medium",children:b.categoryName||(b.category?`#${b.category}`:"—")})]}),r.jsx(yi,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Created")}),r.jsx("p",{className:"text-sm font-medium",children:b.createtime})]})]})]})]})]}),r.jsx(Or,{open:a,onOpenChange:i,children:r.jsxs(or,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(lr,{children:[r.jsx(cr,{children:l("Delete Opt-In")}),r.jsx(dr,{children:l("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(ks,{children:[r.jsx(U,{variant:"outline",className:"rounded-lg",onClick:()=>i(!1),children:l("Cancel")}),r.jsx(U,{variant:"destructive",className:"rounded-lg",disabled:w.isPending,onClick:()=>w.mutate(),children:w.isPending?l("Deleting..."):l("Delete")})]})]})})]})}var cu="Switch",[F3]=zt(cu),[L3,$3]=F3(cu),CN=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:s,checked:a,defaultChecked:i,required:o,disabled:c,value:d="on",onCheckedChange:u,form:h,...m}=e,[y,v]=f.useState(null),w=Ie(t,x=>v(x)),g=f.useRef(!1),j=y?h||!!y.closest("form"):!0,[b,p]=cn({prop:a,defaultProp:i!=null?i:!1,onChange:u,caller:cu});return r.jsxs(L3,{scope:n,checked:b,disabled:c,children:[r.jsx(ve.button,{type:"button",role:"switch","aria-checked":b,"aria-required":o,"data-state":PN(b),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:w,onClick:pe(e.onClick,x=>{p(N=>!N),j&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})}),j&&r.jsx(EN,{control:y,bubbles:!g.current,name:s,value:d,checked:b,required:o,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});CN.displayName=cu;var kN="SwitchThumb",_N=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...s}=e,a=$3(kN,n);return r.jsx(ve.span,{"data-state":PN(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t})});_N.displayName=kN;var z3="SwitchBubbleInput",EN=f.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:s=!0,...a},i)=>{const o=f.useRef(null),c=Ie(o,i),d=nu(n),u=Dd(t);return f.useEffect(()=>{const h=o.current;if(!h)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&v){const w=new Event("click",{bubbles:s});v.call(h,n),h.dispatchEvent(w)}},[d,n,s]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});EN.displayName=z3;function PN(e){return e?"checked":"unchecked"}var TN=CN,U3=_N;const Et=f.forwardRef(({className:e,...t},n)=>r.jsx(TN,{className:V("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(U3,{className:V("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")})}));Et.displayName=TN.displayName;function Up(){return r.jsx("span",{className:"pro-badge ml-1.5",children:l("PRO")})}function B3({title:e,description:t,upgradeUrl:n}){const{isProInstalled:s,isProLicenseActive:a}=zd(),i=Sn();return s&&a?null:r.jsx("div",{className:"border border-dashed border-border rounded-lg p-6",children:r.jsxs("div",{className:"text-center",children:[r.jsx("span",{className:"pro-badge mb-3 inline-block",children:l("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&&!a?r.jsx(U,{variant:"default",size:"sm",onClick:()=>i("/license"),children:l("Activate License")}):r.jsxs("a",{href:n||ht().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:[l("See the add-on"),r.jsx(di,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]})})}const V3=["[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]"],Bp=[{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"}],q3=[{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."}];function RN(e){switch(e){case"recipient":return l("Recipient field");case"subject":return l("Subject");case"body_or_template":return l("Email body or template");default:return e}}function ga(e){return!e||e.length===0?"":e.map(RN).join(", ")}function Vp(e,t){var h,m,y,v;const n=[],s=((h=e.recipient)!=null?h:"").toString().trim(),a=t?new Set(t.map(w=>w.name)):null;(s===""||a!==null&&!a.has(s))&&n.push("recipient"),((m=e.subject)!=null?m:"").toString().trim()===""&&n.push("subject");const c=((y=e.body)!=null?y:"").toString().includes("[doubleoptinlink]"),u=((v=e.template)!=null?v:"").toString().trim()!=="";return!c&&!u&&n.push("body_or_template"),n}const qp={cf7:{label:"Contact Form 7",pro:!1},avada:{label:"Avada Forms",pro:!0,detectorId:"avada"},elementor:{label:"Elementor Forms",pro:!0,detectorId:"elementor_pro",info:l('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,detectorId:"wpforms"},gravity:{label:"Gravity Forms",pro:!0,detectorId:"gravityforms"}};function H3(){var v,w;const{isProInstalled:e,isProLicenseActive:t}=zd(),n=Ze(),s=Sn(),{data:a,isLoading:i}=we({queryKey:["forms"],queryFn:()=>Q("/forms")}),o=(v=a==null?void 0:a.data)!=null?v:{},c=Ee({mutationFn:({integration:g,formId:j})=>Q(`/forms/${g}/${j}/toggle`,{method:"POST"}),onSuccess:()=>{n.invalidateQueries({queryKey:["forms"]}),G.success(l("Form toggled"))},onError:g=>{if(g instanceof dd&&g.code==="INCOMPLETE_CONFIG"){G.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:g.missing&&g.missing.length>0?re(l("Missing: %s"),ga(g.missing)):void 0});return}G.error(g.message)}}),d=Object.entries(o).flatMap(([,g])=>{var j;return(j=g==null?void 0:g.forms)!=null?j:[]}),u=d.length,h=d.filter(g=>g.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:l("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("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(g=>r.jsx(Z,{children:r.jsx(ee,{className:"pt-6",children:r.jsx(ie,{className:"h-8 w-20"})})},g))}),[1,2].map(g=>r.jsx(Z,{children:r.jsx(ee,{className:"pt-6",children:r.jsx(ie,{className:"h-24 w-full"})})},g))]});const m=(w=ht().formPlugins)!=null?w:[],y=Object.keys(qp).filter(g=>{const j=qp[g];return!j.pro||o[g]!==void 0||m.some(b=>b.id===j.detectorId)}).map(g=>{var p,x,N;const j=qp[g],b=o[g];return{key:g,name:(p=b==null?void 0:b.name)!=null?p:j.label,forms:(x=b==null?void 0:b.forms)!=null?x:[],pro:j.pro,notice:j.notice,info:j.info,productUrl:(N=m.find(S=>S.id===j.detectorId))==null?void 0:N.productUrl}});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage Double Opt-In settings for all your forms")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsx(fe,{className:"text-xs text-muted-foreground",children:l("Total Forms")})}),r.jsx(ee,{children:r.jsxs("div",{className:"text-2xl font-bold flex items-center gap-2",children:[u," ",r.jsx(ca,{className:"h-4 w-4 text-primary"})]})})]}),r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsx(fe,{className:"text-xs text-muted-foreground",children:l("DOI Active")})}),r.jsx(ee,{children:r.jsx("div",{className:"text-2xl font-bold text-success",children:h})})]}),r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsx(fe,{className:"text-xs text-muted-foreground",children:l("DOI Inactive")})}),r.jsx(ee,{children:r.jsx("div",{className:"text-2xl font-bold text-warning",children:u-h})})]})]}),y.map(g=>{const j=g.pro,b=j&&o[g.key]===void 0,p=e&&t;return r.jsxs(Z,{children:[r.jsx(le,{className:"pb-3",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ca,{className:"h-4 w-4 text-muted-foreground"}),r.jsx(fe,{className:"text-sm font-semibold",children:g.name}),j&&!t&&r.jsx(Up,{}),r.jsx(pt,{variant:"secondary",className:"ml-auto text-[10px] bg-primary/10 text-primary border-0",children:re(Zd("%s form","%s forms",g.forms.length),g.forms.length)})]})}),r.jsxs(ee,{children:[g.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(kt,{className:"h-3.5 w-3.5"})," ",g.notice]}),g.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(kt,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"})," ",g.info]}),b&&p?r.jsxs("p",{className:"text-sm text-muted-foreground py-4 text-center",children:[re(l("The %s add-on is not active yet."),g.name)," ",r.jsx(vt,{to:"/addons",className:"text-primary underline",children:l("Open Add-ons")})]}):b?r.jsx(B3,{title:re(l("%s Integration"),g.name),description:re(l("%s is installed on this site, but its forms do not have Double Opt-In yet. The add-on adds it."),g.name),upgradeUrl:g.productUrl}):g.forms.length===0?r.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:l("No forms detected.")}):r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsxs(Me,{children:[r.jsx(Ae,{className:"text-xs w-20",children:l("Status")}),r.jsx(Ae,{className:"text-xs",children:l("Form Title")}),r.jsx(Ae,{className:"text-xs w-24",children:l("Form ID")}),r.jsx(Ae,{className:"text-xs text-right w-40",children:l("Actions")})]})}),r.jsx(mn,{children:g.forms.map(x=>{var _;const N=x.isComplete!==!1,S=(_=x.missingFields)!=null?_:[],k=!N&&!x.enabled;return r.jsxs(Me,{children:[r.jsx(ce,{children:r.jsx("span",{title:k?re(l("Complete the configuration to enable. Missing: %s"),ga(S)):void 0,children:r.jsx(Et,{checked:!!x.enabled,disabled:k,onCheckedChange:()=>c.mutate({integration:g.key,formId:x.id}),className:"data-[state=checked]:bg-success"})})}),r.jsx(ce,{className:"font-medium text-sm",children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{children:x.title}),!N&&r.jsxs(pt,{variant:"outline",title:re(l("Missing: %s"),ga(S)),className:"text-[10px] border-warning text-warning gap-1",children:[r.jsx(_t,{className:"h-3 w-3"}),l("Configuration incomplete")]})]})}),r.jsx(ce,{children:r.jsxs(pt,{variant:"secondary",className:"font-mono text-[10px]",children:["#",x.id]})}),r.jsx(ce,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",children:[r.jsx(U,{size:"sm",className:"text-xs",onClick:()=>s(`/forms/${g.key}/${x.id}/settings`),children:l("Configure")}),r.jsx(U,{size:"icon",variant:"ghost",className:"h-9 w-9 text-muted-foreground hover:text-foreground",title:l("Edit form"),"aria-label":l("Edit form"),disabled:!x.edit_url,onClick:()=>{x.edit_url&&window.open(String(x.edit_url),"_blank","noopener,noreferrer")},children:r.jsx(di,{className:"h-4 w-4"})})]})})]},x.id)})})]})]})]},g.key)})]})}var W3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K3=W3.reduce((e,t)=>{const n=ep(`Primitive.${t}`),s=f.forwardRef((a,i)=>{const{asChild:o,...c}=a,d=o?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),Q3="Label",AN=f.forwardRef((e,t)=>r.jsx(K3.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));AN.displayName=Q3;var ON=AN;const G3=li("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),H=f.forwardRef(({className:e,...t},n)=>r.jsx(ON,{ref:n,className:V(G3(),e),...t}));H.displayName=ON.displayName;var Hp="rovingFocusGroup.onEntryFocus",Y3={bubbles:!1,cancelable:!0},jl="RovingFocusGroup",[Wp,IN,X3]=md(jl),[Z3,du]=zt(jl,[X3]),[J3,eI]=Z3(jl),MN=f.forwardRef((e,t)=>r.jsx(Wp.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(Wp.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(tI,{...e,ref:t})})}));MN.displayName=jl;var tI=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...m}=e,y=f.useRef(null),v=Ie(t,y),w=xl(i),[g,j]=cn({prop:o,defaultProp:c!=null?c:null,onChange:d,caller:jl}),[b,p]=f.useState(!1),x=Cn(u),N=IN(n),S=f.useRef(!1),[k,_]=f.useState(0);return f.useEffect(()=>{const C=y.current;if(C)return C.addEventListener(Hp,x),()=>C.removeEventListener(Hp,x)},[x]),r.jsx(J3,{scope:n,orientation:s,dir:w,loop:a,currentTabStopId:g,onItemFocus:f.useCallback(C=>j(C),[j]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>_(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>_(C=>C-1),[]),children:r.jsx(ve.div,{tabIndex:b||k===0?-1:0,"data-orientation":s,...m,ref:v,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{S.current=!0}),onFocus:pe(e.onFocus,C=>{const R=!S.current;if(C.target===C.currentTarget&&R&&!b){const T=new CustomEvent(Hp,Y3);if(C.currentTarget.dispatchEvent(T),!T.defaultPrevented){const O=N().filter(F=>F.focusable),M=O.find(F=>F.active),B=O.find(F=>F.id===g),ne=[M,B,...O].filter(Boolean).map(F=>F.ref.current);LN(ne,h)}}S.current=!1}),onBlur:pe(e.onBlur,()=>p(!1))})})}),DN="RovingFocusGroupItem",FN=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:i,children:o,...c}=e,d=Un(),u=i||d,h=eI(DN,n),m=h.currentTabStopId===u,y=IN(n),{onFocusableItemAdd:v,onFocusableItemRemove:w,currentTabStopId:g}=h;return f.useEffect(()=>{if(s)return v(),()=>w()},[s,v,w]),r.jsx(Wp.ItemSlot,{scope:n,id:u,focusable:s,active:a,children:r.jsx(ve.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:pe(e.onMouseDown,j=>{s?h.onItemFocus(u):j.preventDefault()}),onFocus:pe(e.onFocus,()=>h.onItemFocus(u)),onKeyDown:pe(e.onKeyDown,j=>{if(j.key==="Tab"&&j.shiftKey){h.onItemShiftTab();return}if(j.target!==j.currentTarget)return;const b=sI(j,h.orientation,h.dir);if(b!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let x=y().filter(N=>N.focusable).map(N=>N.ref.current);if(b==="last")x.reverse();else if(b==="prev"||b==="next"){b==="prev"&&x.reverse();const N=x.indexOf(j.currentTarget);x=h.loop?aI(x,N+1):x.slice(N+1)}setTimeout(()=>LN(x))}}),children:typeof o=="function"?o({isCurrentTabStop:m,hasTabStop:g!=null}):o})})});FN.displayName=DN;var nI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function sI(e,t,n){const s=rI(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return nI[s]}function LN(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function aI(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var $N=MN,zN=FN,uu="Tabs",[iI]=zt(uu,[du]),UN=du(),[oI,Kp]=iI(uu),BN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:c,activationMode:d="automatic",...u}=e,h=xl(c),[m,y]=cn({prop:s,onChange:a,defaultProp:i!=null?i:"",caller:uu});return r.jsx(oI,{scope:n,baseId:Un(),value:m,onValueChange:y,orientation:o,dir:h,activationMode:d,children:r.jsx(ve.div,{dir:h,"data-orientation":o,...u,ref:t})})});BN.displayName=uu;var VN="TabsList",qN=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...a}=e,i=Kp(VN,n),o=UN(n);return r.jsx($N,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:s,children:r.jsx(ve.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});qN.displayName=VN;var HN="TabsTrigger",WN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:a=!1,...i}=e,o=Kp(HN,n),c=UN(n),d=GN(o.baseId,s),u=YN(o.baseId,s),h=s===o.value;return r.jsx(zN,{asChild:!0,...c,focusable:!a,active:h,children:r.jsx(ve.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":u,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:pe(e.onMouseDown,m=>{!a&&m.button===0&&m.ctrlKey===!1?o.onValueChange(s):m.preventDefault()}),onKeyDown:pe(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&o.onValueChange(s)}),onFocus:pe(e.onFocus,()=>{const m=o.activationMode!=="manual";!h&&!a&&m&&o.onValueChange(s)})})})});WN.displayName=HN;var KN="TabsContent",QN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,forceMount:a,children:i,...o}=e,c=Kp(KN,n),d=GN(c.baseId,s),u=YN(c.baseId,s),h=s===c.value,m=f.useRef(h);return f.useEffect(()=>{const y=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(y)},[]),r.jsx(Fn,{present:a||h,children:({present:y})=>r.jsx(ve.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!y,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:y&&i})})});QN.displayName=KN;function GN(e,t){return`${e}-trigger-${t}`}function YN(e,t){return`${e}-content-${t}`}var lI=BN,XN=qN,ZN=WN,JN=QN;const eS=lI,Qp=f.forwardRef(({className:e,...t},n)=>r.jsx(XN,{ref:n,className:V("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Qp.displayName=XN.displayName;const _s=f.forwardRef(({className:e,...t},n)=>r.jsx(ZN,{ref:n,className:V("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}));_s.displayName=ZN.displayName;const wl=f.forwardRef(({className:e,...t},n)=>r.jsx(JN,{ref:n,className:V("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));wl.displayName=JN.displayName;const Mr=f.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:V("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}));Mr.displayName="Textarea";function cI({settings:e,onChange:t,fields:n,categories:s,pages:a}){var v,w,g,j,b,p,x,N,S,k;const i=((v=e.consentText)!=null?v:"").toString().trim(),o=((w=e.consentField)!=null?w:"").toString().trim(),c=new Set(n.map(_=>_.name===null||_.name===void 0?"":String(_.name).toLowerCase()).filter(Boolean)),d=l("Submissions are still accepted, but they are stored without any provable consent."),u=o&&!c.has(o.toLowerCase())?{tone:"red",message:re(l('The selected acceptance field "%s" does not exist on this form.'),o)+" "+d+" "+l("Pick a field that's actually present, or leave the dropdown empty.")}:i&&!o?{tone:"amber",message:l("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,h=_=>_.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),m=o?h((j=(g=n.find(_=>{var C;return String((C=_.name)!=null?C:"").toLowerCase()===o.toLowerCase()}))==null?void 0:g.text)!=null?j:""):"",y=m!==""&&h(i)!==m;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{className:"text-base",children:l("Consent & categorization")}),r.jsx(Re,{children:l("What gets stored with each opt-in for GDPR audit, and how this form's opt-ins are grouped.")})]}),r.jsxs(ee,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"consent-text",children:l("Consent text (GDPR)")}),r.jsx(Mr,{id:"consent-text",className:"mt-1.5",placeholder:l("I agree to receive the newsletter..."),rows:3,value:(b=e.consentText)!=null?b:"",onChange:_=>t("consentText",_.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("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(H,{htmlFor:"consent-field",children:l("Consent acceptance field")}),r.jsxs(ye,{value:(p=e.consentField)!=null?p:"",onValueChange:_=>t("consentField",_==="__none__"?"":_),children:[r.jsx(xe,{id:"consent-field",className:"mt-1.5",children:r.jsx(be,{placeholder:l("-- None --")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__none__",children:l("-- None --")}),n.filter(_=>_.name!==null&&_.name!==void 0&&_.name!=="").map(_=>{const C=String(_.name);return r.jsx(L,{value:C,children:_.label||C},C)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Form field that captures the user's explicit consent (e.g. a CF7")," ",r.jsx("code",{children:"[acceptance]"})," ",l("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).")]})]}),u&&r.jsxs("div",{className:"rounded-md border p-3 flex items-start gap-2 text-xs "+(u.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:u.tone==="red"?"alert":void 0,children:[u.tone==="red"?r.jsx(yd,{className:"h-4 w-4 mt-0.5 shrink-0"}):r.jsx(_t,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsx("span",{className:"leading-relaxed",children:u.message})]}),!u&&y&&r.jsx("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-3 text-xs 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(_t,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsxs("div",{className:"grid gap-2 leading-relaxed",children:[r.jsx("span",{children:l(i===""?"The form shows this text next to the checkbox:":"The consent text differs from what the form shows next to the checkbox. Each opt-in stores the consent text above, not the wording the visitor actually saw:")}),r.jsx("q",{className:"italic",children:m}),r.jsx(U,{type:"button",size:"sm",variant:"outline",className:"justify-self-start h-auto min-h-8 whitespace-normal text-left",onClick:()=>t("consentText",m),children:l("Use the form's text")})]})]})}),r.jsxs("div",{children:[r.jsx(H,{children:l("Category")}),r.jsxs(ye,{value:String((x=e.category)!=null?x:0),onValueChange:_=>t("category",Number(_)),children:[r.jsx(xe,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select category")})}),r.jsx(ge,{children:Object.entries(s).map(([_,C])=>r.jsx(L,{value:String(_),children:String(C)},_))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Optional grouping for opt-ins in the overview and stats. Useful when several forms feed into different topics (newsletter, contact, etc.).")})]})]})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{className:"text-base",children:l("Submission rules")}),r.jsx(Re,{children:l("Decide when a submission triggers the opt-in and where the user lands afterwards.")})]}),r.jsxs(ee,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(H,{children:l("Conditional trigger")}),r.jsxs(ye,{value:(N=e.conditions)!=null?N:"disabled",onValueChange:_=>t("conditions",_),children:[r.jsx(xe,{className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"disabled",children:l("Disabled")}),n.filter(_=>_.name!==null&&_.name!==void 0&&_.name!=="").map(_=>{const C=String(_.name);return r.jsx(L,{value:C,children:_.label||C},C)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l('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"})," ",l("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(H,{children:l("Confirmation page")}),r.jsxs(ye,{value:String((S=e.confirmationPage)!=null?S:-1),onValueChange:_=>t("confirmationPage",Number(_)),children:[r.jsx(xe,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select page")})}),r.jsx(ge,{children:Object.entries(a).map(([_,C])=>r.jsx(L,{value:String(_),children:String(C)},_))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Where the user lands after clicking the confirmation link. If no page is selected, the link opens the site's start page.")})]}),r.jsxs("div",{children:[r.jsx(H,{children:l("Error redirect page")}),r.jsxs(ye,{value:String((k=e.errorRedirectPage)!=null?k:-1),onValueChange:_=>t("errorRedirectPage",Number(_)),children:[r.jsx(xe,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select page")})}),r.jsx(ge,{children:Object.entries(a).map(([_,C])=>r.jsx(L,{value:String(_),children:String(C)},_))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("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 dI({settings:e,onChange:t,fields:n,templates:s,templateDetails:a,adminUrl:i}){var m,y,v,w,g,j,b,p;const o=(m=e.template)!=null?m:"",c=o.startsWith("custom_"),d=c?a==null?void 0:a[o]:null,u=c,h=d&&i?`#/email-templates/${d.id}/edit`:null;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{className:"text-base",children:l("Sender & recipient")}),r.jsx(Re,{children:l("Where the confirmation email comes from and which form field carries the user's address.")})]}),r.jsxs(ee,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(H,{children:[l("Recipient field")," ",r.jsx(Gp,{})]}),r.jsxs(ye,{value:(y=e.recipient)!=null?y:"",onValueChange:x=>t("recipient",x),children:[r.jsx(xe,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select field")})}),r.jsx(ge,{children:n.filter(x=>x.name!==null&&x.name!==void 0&&x.name!=="").map(x=>{const N=String(x.name);return r.jsx(L,{value:N,children:x.label||N},N)})})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("The form field that holds the subscriber's email address.")," ",r.jsx("strong",{children:l("Required")})," ",l("— 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(H,{htmlFor:"from-email",children:l("From email")}),r.jsx(Pe,{id:"from-email",className:"mt-1.5",value:(v=e.sender)!=null?v:"",onChange:x=>t("sender",x.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Sender address for the confirmation mail. Leave empty to use the WordPress default (site admin email).")})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"from-name",children:l("From name")}),r.jsx(Pe,{id:"from-name",className:"mt-1.5",value:(w=e.senderName)!=null?w:"",onChange:x=>t("senderName",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Display name shown as")," ",r.jsx("code",{children:"From: Name <email>"}),l(". Leave empty for a bare-email From header.")]})]})]})]})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{className:"text-base",children:l("Email content")}),r.jsx(Re,{children:l("Subject, template, and the body shown to the user.")})]}),r.jsxs(ee,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(H,{htmlFor:"subject",children:[l("Subject")," ",r.jsx(Gp,{})]}),r.jsx(Pe,{id:"subject",className:"mt-1.5",value:(g=e.subject)!=null?g:"",onChange:x=>t("subject",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Subject line of the confirmation mail.")," ",r.jsx("strong",{children:l("Required")}),l(" — empty subjects often land in spam folders.")]})]}),r.jsxs("div",{children:[r.jsx(H,{children:l("Email template")}),r.jsxs(ye,{value:(j=e.template)!=null?j:"",onValueChange:x=>t("template",x),children:[r.jsx(xe,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select template")})}),r.jsx(ge,{children:Object.entries(s).map(([x,N])=>r.jsx(L,{value:x,children:String(N)},x))})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("HTML wrapper for the body.")," ",r.jsx("code",{children:"blank"})," ",l("keeps the body verbatim; the built-in")," ",r.jsx("code",{children:"newsletter_*"})," ",l("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(H,{htmlFor:"body",children:[l("Message body")," ",!c&&r.jsx(Gp,{})]}),u?r.jsx(uI,{title:(b=d==null?void 0:d.title)!=null?b:o,editorUrl:h}):r.jsxs(r.Fragment,{children:[r.jsx(Mr,{id:"body",className:"mt-1.5 font-mono text-xs",rows:12,value:(p=e.body)!=null?p:"",onChange:x=>t("body",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Mail body. Must contain")," ",r.jsx("code",{children:"[doubleoptinlink]"}),l(" — 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(vl,{children:[r.jsx(yl,{className:"text-xs text-primary hover:underline mt-1",children:l("Show placeholders")}),r.jsx(bl,{className:"mt-2 flex flex-wrap gap-1",children:V3.map(x=>r.jsx("code",{className:"bg-secondary text-foreground text-[10px] px-1.5 py-0.5 rounded cursor-pointer hover:bg-primary/10",children:x},x))})]})]})]})]})]})]})}function Gp(){return r.jsx("span",{"aria-label":l("Required"),title:l("Required field — Double Opt-In cannot be enabled until this is filled in"),className:"text-destructive font-bold",children:"*"})}function uI({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($n,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:l("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:re(l("%s was built in the email designer. Edit the message body there — this textarea is bypassed for custom templates."),e)}),t?r.jsx(U,{asChild:!0,variant:"secondary",size:"sm",children:r.jsxs("a",{href:t,children:[r.jsx(jd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit in Email Designer")]})}):r.jsx(U,{variant:"secondary",size:"sm",disabled:!0,children:l("Editor link unavailable")})]})]})}function fI({settings:e,onChange:t,fields:n}){var c;const s=(d,u)=>{var m;const h={...(m=e.fieldMapping)!=null?m:{},[d]:u};t("fieldMapping",h)},a=Bp.filter(d=>{var u;return!!((u=e.fieldMapping)!=null&&u[d.key])}).length,i=new Set(Object.values((c=e.fieldMapping)!=null?c:{}).filter(Boolean).map(d=>String(d))),o=n.filter(d=>d.name!==null&&d.name!==void 0&&d.name!==""&&!i.has(String(d.name)));return r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{className:"text-base",children:l("Field mapping")}),r.jsxs(Re,{children:[l("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]"}),l("); if no auto-match is found they render as an empty string. System placeholders like")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",l("are filled by the plugin itself and are not mapped here.")]})]}),r.jsxs(ee,{className:"space-y-6",children:[q3.map(d=>{const u=Bp.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(mI,{mapping:h,value:(y=(m=e.fieldMapping)==null?void 0:m[h.key])!=null?y:"",fields:n,onChange:v=>s(h.key,v)},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(A0,{className:"h-3.5 w-3.5 text-green-600"}),r.jsx("span",{children:re(l("%d of %d placeholders mapped"),a,Bp.length)})]}),o.length>0&&r.jsxs("div",{className:"flex items-start gap-2 text-amber-700",children:[r.jsx(yd,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"}),r.jsxs("div",{children:[r.jsxs("span",{className:"font-medium",children:[o.length," form field",o.length===1?"":"s"," not mapped"]}),r.jsxs("span",{className:"text-muted-foreground",children:[" ",l("— captured on submit but never read by the email.")," "]}),r.jsxs("div",{className:"mt-1 flex flex-wrap gap-1",children:[o.slice(0,8).map(d=>{const u=String(d.name);return r.jsx(pt,{variant:"outline",className:"text-[10px] font-mono",children:d.label||u},u)}),o.length>8&&r.jsxs(pt,{variant:"outline",className:"text-[10px]",children:["+",o.length-8]})]})]})]})]})]})]})}function mI({mapping:e,value:t,fields:n,onChange:s}){const a=!!t;return r.jsxs("div",{className:"rounded-md border p-3 space-y-2 transition-colors "+(a?"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 "+(a?"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(ye,{value:t||"__none__",onValueChange:i=>s(i==="__none__"?"":i),children:[r.jsx(xe,{className:"h-8 text-xs",children:r.jsx(be,{placeholder:l("Select form field")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__none__",children:l("-- None --")}),n.filter(i=>i.name!==null&&i.name!==void 0&&i.name!=="").map(i=>{const o=String(i.name);return r.jsx(L,{value:o,children:i.label||o},o)})]})]})]})}const hI=["general","email","mapping","pro"];function pI(){var T,O,M,B,I,ne;const{integration:e,id:t}=ai(),n=Sn(),s=Ze(),[a,i]=Vb(),o=a.get("tab"),c=hI.includes(o!=null?o:"")?o:"general",d=F=>{const te=new URLSearchParams(a);F==="general"?te.delete("tab"):te.set("tab",F),i(te,{replace:!0})},[u,h]=f.useState({}),{data:m,isLoading:y}=we({queryKey:["form-settings",t,e],queryFn:()=>Q(`/forms/${e}/${t}/settings`),enabled:!!e&&!!t}),v=(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 te=m.data.settings,A=Array.isArray(m.data.fields)?m.data.fields:[];if(te.enabled&&Vp(te,A).length>0){h({...te,enabled:!1});return}h({...te})}},[m]);const w=Ee({mutationFn:F=>Q(`/forms/${e}/${t}/settings`,{method:"PUT",body:JSON.stringify({settings:F})}),onSuccess:F=>{var te,A;if(s.invalidateQueries({queryKey:["forms"]}),s.invalidateQueries({queryKey:["form-settings"]}),(te=F.data)!=null&&te.autoDisabled){const D=(A=F.data.missing)!=null?A:[];G.warning(l("Double Opt-In was auto-disabled."),{description:D.length>0?re(l("Configuration is incomplete: %s."),ga(D)):l("Configuration is incomplete.")}),h(W=>({...W,enabled:!1}));return}G.success(l("Settings saved"))},onError:F=>{if(F instanceof dd&&F.code==="INCOMPLETE_CONFIG"){G.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:F.missing&&F.missing.length>0?re(l("Missing: %s"),ga(F.missing)):void 0}),h(te=>({...te,enabled:!1}));return}G.error(F.message)}}),g=(F,te)=>h(A=>{const D={...A,[F]:te};return D.enabled&&Vp(D,v).length>0&&(D.enabled=!1),D}),b=f.useSyncExternalStore(qb,()=>Hb("forms.pro-features"),()=>[]).length>0;if(f.useEffect(()=>{c==="pro"&&!b&&d("general")},[c,b]),y||!(m!=null&&m.data))return r.jsxs("div",{className:"space-y-4",children:[r.jsx(ie,{className:"h-10 w-64"}),r.jsx(ie,{className:"h-10 w-full"}),r.jsx(ie,{className:"h-96 w-full"})]});const p=m.data,x=ht(),N={settings:u,onChange:g,fields:v,templates:(O=p.templates)!=null?O:{},categories:(M=p.categories)!=null?M:{},pages:(B=p.pages)!=null?B:{},templateDetails:(I=p.templateDetails)!=null?I:{},adminUrl:x.adminUrl,integration:p.integration},S=Vp(u,v),k=S.length===0,_=!k&&!u.enabled,C=F=>{if(F&&!k){G.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:re(l("Missing: %s."),ga(S))});return}g("enabled",F)},R=new Set;return(S.includes("recipient")||S.includes("subject")||S.includes("body_or_template"))&&R.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(vd,{className:"h-3.5 w-3.5"}),l("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:re(l("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 "+(k?"bg-card":"bg-amber-50 border-amber-300 dark:bg-amber-950/30 dark:border-amber-900/50"),title:k?void 0:re(l("Configuration incomplete. Missing: %s"),ga(S)),children:[!k&&r.jsx(_t,{className:"h-4 w-4 text-amber-600 shrink-0","aria-label":l("Configuration incomplete")}),r.jsx(H,{htmlFor:"form-enabled",className:"text-sm",children:u.enabled?l("Enabled"):l("Disabled")}),r.jsx(Et,{id:"form-enabled",checked:(ne=u.enabled)!=null?ne:!1,disabled:_,onCheckedChange:C,className:"data-[state=checked]:bg-success"})]}),r.jsxs(pt,{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(U,{variant:"outline",size:"sm",onClick:()=>n("/forms"),children:l("Cancel")}),r.jsx(U,{size:"sm",disabled:w.isPending,onClick:()=>w.mutate(u),children:w.isPending?l("Saving..."):l("Save settings")})]})]})]})}),!k&&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(_t,{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:l("Configuration incomplete")}),r.jsx("p",{className:"leading-relaxed",children:l("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=>r.jsx("li",{children:RN(F)},F))})]})]})}),r.jsxs(eS,{value:c,onValueChange:d,className:"!mt-12",children:[r.jsxs(Qp,{children:[r.jsx(_s,{value:"general",children:l("General")}),r.jsxs(_s,{value:"email",className:"gap-1",children:[l("Email"),R.has("email")&&r.jsx(_t,{className:"h-3 w-3 text-amber-600","aria-label":l("Tab contains incomplete required fields")})]}),r.jsx(_s,{value:"mapping",children:l("Mapping")}),b&&r.jsx(_s,{value:"pro",children:l("Pro Features")})]}),r.jsx(wl,{value:"general",className:"mt-6",children:r.jsx(cI,{...N})}),r.jsx(wl,{value:"email",className:"mt-6",children:r.jsx(dI,{...N})}),r.jsx(wl,{value:"mapping",className:"mt-6",children:r.jsx(fI,{...N})}),b&&r.jsx(wl,{value:"pro",className:"mt-6",children:r.jsx(Hn,{id:"forms.pro-features",data:N})})]}),r.jsx(Hn,{id:"forms.integration-settings",data:{form:{id:p.id,title:p.title,integration:p.integration},integration:p.integration,settings:u}})]})}function xI(){return r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsx(Me,{children:Array.from({length:6}).map((e,t)=>r.jsx(Ae,{children:r.jsx(ie,{className:"h-3 w-16"})},t))})}),r.jsx(mn,{children:Array.from({length:3}).map((e,t)=>r.jsx(Me,{children:Array.from({length:6}).map((n,s)=>r.jsx(ce,{children:r.jsx(ie,{className:"h-3 w-full"})},s))},t))})]})}function tS(){var p;const e=Ze(),[t,n]=f.useState(""),[s,a]=f.useState(null),[i,o]=f.useState(null),[c,d]=f.useState(""),{data:u,isLoading:h}=we({queryKey:["categories"],queryFn:()=>Q("/categories")}),m=Ee({mutationFn:x=>Q("/categories",{method:"POST",body:JSON.stringify({name:x})}),onSuccess:()=>{G.success(l("Category created")),n(""),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{G.error(x.message||l("Failed to create category"))}}),y=Ee({mutationFn:({id:x,name:N})=>Q(`/categories/${x}`,{method:"PUT",body:JSON.stringify({name:N})}),onSuccess:()=>{G.success(l("Category updated")),o(null),d(""),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{G.error(x.message||l("Failed to update category"))}}),v=Ee({mutationFn:x=>Q(`/categories/${x}`,{method:"DELETE"}),onSuccess:()=>{G.success(l("Category deleted")),a(null),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{G.error(x.message||l("Failed to delete category"))}}),w=(p=u==null?void 0:u.data)!=null?p:[];function g(x){o(x.id),d(x.name)}function j(){o(null),d("")}function b(){i!==null&&c.trim()&&y.mutate({id:i,name:c.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:l("Categories")}),r.jsx("p",{className:"text-muted-foreground",children:l("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(Z,{children:r.jsx(ee,{className:"p-0",children:h?r.jsx(xI,{}):r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsxs(Me,{children:[r.jsx(Ae,{className:"text-xs",children:l("ID")}),r.jsx(Ae,{className:"text-xs",children:l("Name")}),r.jsx(Ae,{className:"text-xs",children:l("Opt-Ins")}),r.jsx(Ae,{className:"text-xs",children:l("Created")}),r.jsx(Ae,{className:"text-xs",children:l("Updated")}),r.jsx(Ae,{className:"text-xs text-right",children:l("Actions")})]})}),r.jsx(mn,{children:w.length===0?r.jsx(Me,{children:r.jsx(ce,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:l("No categories found")})}):w.map(x=>r.jsxs(Me,{children:[r.jsx(ce,{className:"tabular-nums text-muted-foreground text-xs",children:x.id}),r.jsx(ce,{children:i===x.id?r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(Pe,{value:c,onChange:N=>d(N.target.value),className:"h-7 text-sm",onKeyDown:N=>{N.key==="Enter"&&b(),N.key==="Escape"&&j()},autoFocus:!0}),r.jsx(U,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:b,disabled:y.isPending,children:r.jsx(xs,{className:"h-3.5 w-3.5 text-success"})}),r.jsx(U,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:j,children:r.jsx(Sd,{className:"h-3.5 w-3.5"})})]}):r.jsx(vt,{to:`/categories/${x.id}`,className:"text-primary hover:underline font-medium text-sm",children:x.name})}),r.jsx(ce,{className:"tabular-nums text-muted-foreground text-xs",children:x.optin_count}),r.jsx(ce,{className:"text-muted-foreground text-xs",children:x.createtime}),r.jsx(ce,{className:"text-muted-foreground text-xs",children:x.updatetime}),r.jsx(ce,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-1",children:[r.jsxs(U,{variant:"ghost",size:"sm",className:"text-xs h-7",onClick:()=>g(x),children:[r.jsx(jd,{className:"h-3 w-3 mr-1"}),l("Edit")]}),r.jsx(U,{variant:"ghost",size:"sm",className:"text-destructive text-xs h-7",onClick:()=>a(x.id),children:l("Delete")})]})})]},x.id))})]})})})}),r.jsx("div",{children:r.jsxs(Z,{children:[r.jsx(le,{className:"pb-3",children:r.jsx(fe,{className:"text-sm font-medium",children:l("New Category")})}),r.jsxs(ee,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Name:")}),r.jsx(Pe,{className:"mt-1.5",value:t,onChange:x=>n(x.target.value),placeholder:l("Category name"),onKeyDown:x=>{x.key==="Enter"&&t.trim()&&m.mutate(t.trim())}})]}),r.jsx(U,{size:"sm",disabled:!t.trim()||m.isPending,onClick:()=>{t.trim()&&m.mutate(t.trim())},children:m.isPending?l("Adding..."):l("Add")})]})]})})]}),r.jsx(Or,{open:s!==null,onOpenChange:()=>a(null),children:r.jsxs(or,{className:"max-w-[400px]",children:[r.jsxs(lr,{children:[r.jsx(cr,{children:l("Delete Category")}),r.jsx(dr,{children:l("Are you sure? This action cannot be undone.")})]}),r.jsxs(ks,{children:[r.jsx(U,{variant:"outline",onClick:()=>a(null),children:l("Cancel")}),r.jsx(U,{variant:"destructive",disabled:v.isPending,onClick:()=>{s!==null&&v.mutate(s)},children:v.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function Yp({icon:e,title:t,description:n,children:s}){return r.jsxs(Z,{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(fe,{className:"text-sm font-medium",children:t}),r.jsx(Re,{className:"text-xs",children:n})]})]})}),r.jsx(ee,{className:"border-t pt-4 space-y-4",children:s})]})}function gI(){return r.jsx("div",{className:"space-y-4",children:Array.from({length:4}).map((e,t)=>r.jsxs(Z,{children:[r.jsx(le,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ie,{className:"h-9 w-9 rounded-lg"}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(ie,{className:"h-4 w-32"}),r.jsx(ie,{className:"h-3 w-48"})]})]})}),r.jsxs(ee,{className:"border-t pt-4 space-y-4",children:[r.jsx(ie,{className:"h-9 w-full"}),r.jsx(ie,{className:"h-9 w-full"})]})]},t))})}function vI(){var p,x,N,S,k,_,C,R,T;const{isProInstalled:e,isProLicenseActive:t}=zd(),n=oa("reminder"),s=oa("mx-validator"),a=oa("domain-blocklist"),i=!n&&!s&&!a,o=Ze(),c=ht(),{data:d,isLoading:u}=we({queryKey:["settings"],queryFn:()=>Q("/settings")}),{data:h}=we({queryKey:["pages"],queryFn:()=>Q("/settings/pages")}),[m,y]=f.useState({}),[v,w]=f.useState(!1);f.useEffect(()=>{d!=null&&d.data&&!v&&(y(d.data),w(!0))},[d,v]);const g=Ee({mutationFn:()=>Q("/settings",{method:"PUT",body:JSON.stringify(m)}),onSuccess:O=>{G.success(l("Settings saved successfully")),o.invalidateQueries({queryKey:["settings"]})},onError:O=>{G.error(O.message||l("Failed to save settings"))}});function j(O,M){y(B=>({...B,[O]:M}))}const b=(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:l("Settings")}),r.jsx("p",{className:"text-muted-foreground",children:l("Configure global Double Opt-In settings")})]}),r.jsxs(U,{size:"sm",onClick:()=>g.mutate(),disabled:g.isPending,children:[r.jsx(da,{className:"mr-2 h-4 w-4"}),g.isPending?l("Saving..."):l("Save Changes")]})]}),u?r.jsx(gI,{}):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(Yp,{icon:gs,title:l("Data Retention"),description:l("Configure automatic cleanup of opt-in records"),children:[r.jsxs("div",{children:[r.jsx(H,{className:"text-xs font-medium",children:l("Delete Opt-Ins after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Pe,{type:"number",value:(x=m.delete)!=null?x:12,onChange:O=>j("delete",Number(O.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(ye,{value:(N=m.delete_period)!=null?N:"months",onValueChange:O=>j("delete_period",O),children:[r.jsx(xe,{className:"w-28 h-9",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"days",children:l("Days")}),r.jsx(L,{value:"months",children:l("Months")}),r.jsx(L,{value:"years",children:l("Years")})]})]})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:l("Set to 0 to disable. GDPR recommends regular cleanup.")})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs font-medium",children:l("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:O=>j("delete_unconfirmed",Number(O.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(ye,{value:(k=m.delete_unconfirmed_period)!=null?k:"months",onValueChange:O=>j("delete_unconfirmed_period",O),children:[r.jsx(xe,{className:"w-28 h-9",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"days",children:l("Days")}),r.jsx(L,{value:"months",children:l("Months")}),r.jsx(L,{value:"years",children:l("Years")})]})]})]})]})]}),r.jsx(Yp,{icon:BP,title:l("Privacy"),description:l("Privacy policy and GDPR settings"),children:r.jsxs("div",{children:[r.jsx(H,{className:"text-xs font-medium",children:l("Privacy Policy Page")}),r.jsxs(ye,{value:m.privacy_policy_page?String(m.privacy_policy_page):"",onValueChange:O=>j("privacy_policy_page",Number(O)),children:[r.jsx(xe,{className:"mt-1.5 h-9",children:r.jsx(be,{placeholder:l("Select page")})}),r.jsx(ge,{children:b.map(O=>r.jsx(L,{value:String(O.id),children:O.title},O.id))})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:l("Used for [doubleoptin_privacy_url] placeholder")})]})}),r.jsx(Yp,{icon:Ph,title:l("Security"),description:l("Token and rate limiting configuration"),children:r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(H,{className:"text-xs font-medium",children:l("Token Expiry (Hours)")}),r.jsx(Pe,{type:"number",value:(_=m.token_expiry_hours)!=null?_:48,onChange:O=>j("token_expiry_hours",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:720})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs font-medium",children:l("Rate Limit IP")}),r.jsx(Pe,{type:"number",value:(C=m.rate_limit_ip)!=null?C:5,onChange:O=>j("rate_limit_ip",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs font-medium",children:l("Rate Limit Email")}),r.jsx(Pe,{type:"number",value:(R=m.rate_limit_email)!=null?R:3,onChange:O=>j("rate_limit_email",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs font-medium",children:l("Rate Limit Window (Min)")}),r.jsx(Pe,{type:"number",value:(T=m.rate_limit_window)!=null?T:60,onChange:O=>j("rate_limit_window",Number(O.target.value)),className:"mt-1.5 h-9",min:1,max:1440})]})]})}),r.jsx(Z,{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(kt,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(fe,{className:"text-sm font-medium",children:l("Telemetry")}),r.jsx(Re,{className:"text-xs",children:l("Helps improve the plugin. No personal data collected.")})]})]}),r.jsx(Et,{checked:!!m.telemetry,onCheckedChange:O=>j("telemetry",O?1:0)})]})})}),r.jsx(Z,{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(WP,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(fe,{className:"text-sm font-medium",children:l("Show credit link")}),r.jsx(Re,{className:"text-xs",children:l('Adds a small "Double Opt-In by Forge12" link on the page a subscriber lands on after confirming. Off by default.')})]})]}),r.jsx(Et,{checked:!!m.credit_link,onCheckedChange:O=>j("credit_link",O?1:0)})]})})}),r.jsx(Z,{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(Yo,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(fe,{className:"text-sm font-medium",children:l("Keep data on uninstall")}),r.jsx(Re,{className:"text-xs",children:l("Preserve opt-in records and categories if the plugin is deleted. Turn off for a full cleanup on uninstall.")})]})]}),r.jsx(Et,{checked:!!m.keep_data_on_uninstall,onCheckedChange:O=>j("keep_data_on_uninstall",O?1:0)})]})})})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(Z,{children:r.jsxs(ee,{className:"flex items-start gap-2 p-4",children:[r.jsx(kt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Global settings affect all forms. Individual form settings can override some options.")})]})}),r.jsx(xO,{}),i&&r.jsx(Z,{className:"border-primary/20 bg-primary/[0.03]",children:r.jsx(ee,{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(L0,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l("Available as add-ons")}),r.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1 mt-2",children:[r.jsxs("li",{children:["✓ ",l("Automatic reminders")]}),r.jsxs("li",{children:["✓ ",l("Email domain validation")]}),r.jsxs("li",{children:["✓ ",l("Disposable email blocking")]}),r.jsxs("li",{children:["✓ ",l("Priority support")]})]}),r.jsx("a",{href:c.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:l("See the add-ons")})]})]})})})]})]}),r.jsx(Hn,{id:"settings.tab",data:{settings:m}})]})}function yI(){var h;const e=Ze(),[t,n]=f.useState(null),{data:s,isLoading:a}=we({queryKey:["email-templates"],queryFn:()=>Q("/email-templates"),refetchOnMount:"always"}),i=(h=s==null?void 0:s.data)!=null?h:[],o=Ee({mutationFn:m=>Q(`/email-templates/${m}/duplicate`,{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),G.success(l("Template duplicated"))},onError:m=>G.error(m.message)}),c=Ee({mutationFn:m=>Q(`/email-templates/${m}`,{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),G.success(l("Template deleted")),n(null)},onError:m=>{G.error(m.message),n(null)}}),d=Ee({mutationFn:({id:m,status:y})=>Q(`/email-templates/${m}`,{method:"PUT",body:JSON.stringify({status:y})}),onSuccess:(m,y)=>{e.invalidateQueries({queryKey:["email-templates"]}),G.success(y.status==="publish"?l("Template published"):l("Template moved to draft"))},onError:m=>G.error(m.message)}),u=m=>m==="publish"||m==="Published";return a?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your email templates")})]}),r.jsx(Z,{children:r.jsx(ee,{className:"pt-6 space-y-3",children:[1,2,3].map(m=>r.jsx(ie,{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:l("Email Templates")})}),r.jsx(Z,{className:"py-16 text-center",children:r.jsxs(ee,{children:[r.jsx(F0,{className:"h-16 w-16 text-muted-foreground/30 mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-semibold mb-1",children:l("No templates yet")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l("Create your first email template")}),r.jsx(U,{asChild:!0,children:r.jsx(vt,{to:"/email-templates/new",children:l("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:l("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your email templates")})]}),r.jsx(U,{size:"sm",asChild:!0,children:r.jsxs(vt,{to:"/email-templates/new",children:[r.jsx(ui,{className:"h-4 w-4 mr-1"})," ",l("Create New")]})})]}),r.jsx(Z,{children:r.jsx(ee,{className:"p-0",children:r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsxs(Me,{children:[r.jsx(Ae,{className:"text-xs",children:l("Name")}),r.jsx(Ae,{className:"text-xs",children:l("Status")}),r.jsx(Ae,{className:"text-xs",children:l("Created")}),r.jsx(Ae,{className:"text-xs",children:l("Modified")}),r.jsx(Ae,{className:"text-xs text-right",children:l("Actions")})]})}),r.jsx(mn,{children:i.map(m=>r.jsxs(Me,{children:[r.jsx(ce,{children:r.jsx(vt,{to:`/email-templates/${m.id}/edit`,className:"text-primary hover:underline font-medium text-sm",children:m.title})}),r.jsx(ce,{children:r.jsxs(ye,{value:u(m.status)?"publish":"draft",onValueChange:y=>d.mutate({id:m.id,status:y}),disabled:d.isPending,children:[r.jsx(xe,{className:`h-8 w-[150px] text-xs ${u(m.status)?"text-green-600 dark:text-green-500":"text-muted-foreground"}`,children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"publish",children:l("Published")}),r.jsx(L,{value:"draft",children:l("Draft")})]})]})}),r.jsx(ce,{className:"text-muted-foreground text-xs",children:m.created_at}),r.jsx(ce,{className:"text-muted-foreground text-xs",children:m.modified_at}),r.jsxs(ce,{className:"text-right space-x-1",children:[r.jsx(U,{size:"sm",className:"text-xs",asChild:!0,children:r.jsx(vt,{to:`/email-templates/${m.id}/edit`,children:l("Edit")})}),r.jsx(U,{size:"sm",variant:"outline",className:"text-xs",disabled:o.isPending,onClick:()=>o.mutate(m.id),children:l("Duplicate")}),r.jsx(U,{size:"sm",variant:"ghost",className:"text-destructive text-xs",onClick:()=>n(m.id),children:l("Delete")})]})]},m.id))})]})})}),r.jsx(Or,{open:t!==null,onOpenChange:()=>n(null),children:r.jsxs(or,{className:"max-w-[400px]",children:[r.jsxs(lr,{children:[r.jsx(cr,{children:l("Delete Template")}),r.jsx(dr,{children:l("Are you sure you want to delete this template? This action cannot be undone.")})]}),r.jsxs(ks,{children:[r.jsx(U,{variant:"outline",onClick:()=>n(null),children:l("Cancel")}),r.jsx(U,{variant:"destructive",disabled:c.isPending,onClick:()=>{t!==null&&c.mutate(t)},children:c.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function bI(){var m;const e=Ze(),[t,n]=f.useState(null),[s,a]=f.useState(""),{data:i,isLoading:o}=we({queryKey:["db-stats"],queryFn:()=>Q("/database/stats")}),c=(m=i==null?void 0:i.data)!=null?m:{total:0,confirmed:0,unconfirmed:0},d=Ee({mutationFn:y=>Q("/database/clean",{method:"POST",body:JSON.stringify({scope:y})}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),G.success(l("Records deleted successfully")),n(null)},onError:y=>{G.error(y.message),n(null)}}),u=Ee({mutationFn:()=>Q("/database/reset",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),G.success(l("Database reset successfully")),n(null),a("")},onError:y=>{G.error(y.message),n(null),a("")}}),h=[{key:"all",title:l("Delete All Opt-Ins"),desc:l("Remove all opt-in records from the database"),icon:kn},{key:"confirmed",title:l("Delete Confirmed Only"),desc:l("Remove only confirmed opt-in records"),icon:Go},{key:"unconfirmed",title:l("Delete Unconfirmed Only"),desc:l("Remove only unconfirmed/pending opt-in records"),icon:gs}];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Database Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your opt-in database records")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Yo,{className:"h-3 w-3"})," ",l("Total Records")]})}),r.jsx(ee,{children:o?r.jsx(ie,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold",children:c.total})})]}),r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Go,{className:"h-3 w-3 text-success"})," ",l("Confirmed")]})}),r.jsx(ee,{children:o?r.jsx(ie,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-success",children:c.confirmed})})]}),r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(gs,{className:"h-3 w-3 text-warning"})," ",l("Unconfirmed")]})}),r.jsx(ee,{children:o?r.jsx(ie,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:c.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(_t,{className:"h-4 w-4 shrink-0"}),l("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(Z,{className:"text-center",children:r.jsxs(ee,{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(U,{variant:y.key==="all"?"destructive":"outline",size:"sm",className:"text-xs",onClick:()=>n(y.key),children:y.title})]})},y.key))}),r.jsx(Z,{className:"border-destructive/50",children:r.jsxs(ee,{className:"pt-6 pb-4 text-center",children:[r.jsx(wd,{className:"h-8 w-8 mx-auto mb-3 text-destructive"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:l("Reset Database")}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:l("Drop and recreate all Double Opt-In tables. This removes all data permanently.")}),r.jsx(U,{variant:"destructive",size:"sm",className:"text-xs",onClick:()=>n("reset"),children:l("Reset Database")})]})})]}),r.jsx("div",{children:r.jsx(Z,{children:r.jsxs(ee,{className:"flex items-start gap-2 p-4",children:[r.jsx(kt,{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:l("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(YP,{className:"h-3 w-3"})," ",l("Go to Settings")]})]})]})})})]}),r.jsx(Or,{open:t!==null&&t!=="reset",onOpenChange:()=>n(null),children:r.jsxs(or,{className:"max-w-[400px]",children:[r.jsxs(lr,{children:[r.jsx(cr,{children:l("Confirm Deletion")}),r.jsx(dr,{children:l("Are you sure you want to permanently delete these records? This action cannot be undone.")})]}),r.jsxs(ks,{children:[r.jsx(U,{variant:"outline",onClick:()=>n(null),children:l("Cancel")}),r.jsx(U,{variant:"destructive",disabled:d.isPending,onClick:()=>{t&&d.mutate(t)},children:d.isPending?l("Deleting..."):l("Delete")})]})]})}),r.jsx(Or,{open:t==="reset",onOpenChange:()=>{n(null),a("")},children:r.jsxs(or,{className:"max-w-[440px]",children:[r.jsxs(lr,{children:[r.jsx(cr,{className:"text-destructive",children:l("Reset Database")}),r.jsx(dr,{children:l("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(H,{className:"text-sm",children:l("Type DELETE to confirm:")}),r.jsx(Pe,{value:s,onChange:y=>a(y.target.value),placeholder:"DELETE",className:"font-mono"})]}),r.jsxs(ks,{children:[r.jsx(U,{variant:"outline",onClick:()=>{n(null),a("")},children:l("Cancel")}),r.jsx(U,{variant:"destructive",disabled:s!=="DELETE"||u.isPending,onClick:()=>u.mutate(),children:u.isPending?l("Resetting..."):l("Reset Database")})]})]})})]})}var Kn="Accordion",jI=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Xp,wI,NI]=md(Kn),[fu]=zt(Kn,[NI,K1]),Zp=K1(),nS=K.forwardRef((e,t)=>{const{type:n,...s}=e,a=s,i=s;return r.jsx(Xp.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsx(_I,{...i,ref:t}):r.jsx(kI,{...a,ref:t})})});nS.displayName=Kn;var[rS,SI]=fu(Kn),[sS,CI]=fu(Kn,{collapsible:!1}),kI=K.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},collapsible:i=!1,...o}=e,[c,d]=cn({prop:n,defaultProp:s!=null?s:"",onChange:a,caller:Kn});return r.jsx(rS,{scope:e.__scopeAccordion,value:K.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:K.useCallback(()=>i&&d(""),[i,d]),children:r.jsx(sS,{scope:e.__scopeAccordion,collapsible:i,children:r.jsx(aS,{...o,ref:t})})})}),_I=K.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},...i}=e,[o,c]=cn({prop:n,defaultProp:s!=null?s:[],onChange:a,caller:Kn}),d=K.useCallback(h=>c((m=[])=>[...m,h]),[c]),u=K.useCallback(h=>c((m=[])=>m.filter(y=>y!==h)),[c]);return r.jsx(rS,{scope:e.__scopeAccordion,value:o,onItemOpen:d,onItemClose:u,children:r.jsx(sS,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsx(aS,{...i,ref:t})})})}),[EI,mu]=fu(Kn),aS=K.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:s,dir:a,orientation:i="vertical",...o}=e,c=K.useRef(null),d=Ie(c,t),u=wI(n),m=xl(a)==="ltr",y=pe(e.onKeyDown,v=>{var C;if(!jI.includes(v.key))return;const w=v.target,g=u().filter(R=>{var T;return!((T=R.ref.current)!=null&&T.disabled)}),j=g.findIndex(R=>R.ref.current===w),b=g.length;if(j===-1)return;v.preventDefault();let p=j;const x=0,N=b-1,S=()=>{p=j+1,p>N&&(p=x)},k=()=>{p=j-1,p<x&&(p=N)};switch(v.key){case"Home":p=x;break;case"End":p=N;break;case"ArrowRight":i==="horizontal"&&(m?S():k());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(m?k():S());break;case"ArrowUp":i==="vertical"&&k();break}const _=p%b;(C=g[_].ref.current)==null||C.focus()});return r.jsx(EI,{scope:n,disabled:s,direction:a,orientation:i,children:r.jsx(Xp.Slot,{scope:n,children:r.jsx(ve.div,{...o,"data-orientation":i,ref:d,onKeyDown:s?void 0:y})})})}),hu="AccordionItem",[PI,Jp]=fu(hu),iS=K.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...a}=e,i=mu(hu,n),o=SI(hu,n),c=Zp(n),d=Un(),u=s&&o.value.includes(s)||!1,h=i.disabled||e.disabled;return r.jsx(PI,{scope:n,open:u,disabled:h,triggerId:d,children:r.jsx(Y1,{"data-orientation":i.orientation,"data-state":fS(u),...c,...a,ref:t,disabled:h,open:u,onOpenChange:m=>{m?o.onItemOpen(s):o.onItemClose(s)}})})});iS.displayName=hu;var oS="AccordionHeader",lS=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=mu(Kn,n),i=Jp(oS,n);return r.jsx(ve.h3,{"data-orientation":a.orientation,"data-state":fS(i.open),"data-disabled":i.disabled?"":void 0,...s,ref:t})});lS.displayName=oS;var ex="AccordionTrigger",cS=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=mu(Kn,n),i=Jp(ex,n),o=CI(ex,n),c=Zp(n);return r.jsx(Xp.ItemSlot,{scope:n,children:r.jsx(u3,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...c,...s,ref:t})})});cS.displayName=ex;var dS="AccordionContent",uS=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=mu(Kn,n),i=Jp(dS,n),o=Zp(n);return r.jsx(f3,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...o,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});uS.displayName=dS;function fS(e){return e?"open":"closed"}var TI=nS,RI=iS,AI=lS,mS=cS,hS=uS;const OI=TI,pS=f.forwardRef(({className:e,...t},n)=>r.jsx(RI,{ref:n,className:V("border-b",e),...t}));pS.displayName="AccordionItem";const xS=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(AI,{className:"flex",children:r.jsxs(mS,{ref:s,className:V("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(la,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));xS.displayName=mS.displayName;const gS=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(hS,{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:V("pb-4 pt-0",e),children:t})}));gS.displayName=hS.displayName;const tx=["success","invalid_email","invalid_nonce","save_failed","send_failed"],vS={success:{title:"",body:""},invalid_email:{title:"",body:""},invalid_nonce:{title:"",body:""},save_failed:{title:"",body:""},send_failed:{title:"",body:""}},yS={success:{label:l("Success — email sent"),hint:l("Shown after the user submits their email and the confirmation mail goes out.")},invalid_email:{label:l("Error — invalid email"),hint:l("Shown when the visitor entered an obviously malformed address.")},invalid_nonce:{label:l("Error — session expired"),hint:l("Shown when the form's CSRF nonce was rejected (form sat unsubmitted for too long).")},save_failed:{label:l("Error — save failed"),hint:l("Shown on rare DB write failures.")},send_failed:{label:l("Error — email not sent"),hint:l("Shown when the request was recorded but the email could not go out — most often because the subject or body below is still empty. This case used to show the success notice instead, so visitors waited for a mail that was never sent.")}},nx=["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"],bS=nx.reduce((e,t)=>({...e,[t]:""}),{}),II=[{group:l("Table columns"),items:[{key:"column_subscription"},{key:"column_signed_up"},{key:"column_status"},{key:"column_valid_until"}]},{group:l("Status badges"),items:[{key:"badge_active"},{key:"badge_cancelled"}]},{group:l("Action buttons"),items:[{key:"cancel_button",hint:l("Per-row button to cancel one subscription.")},{key:"bulk_button",hint:l("Button above the table, shown when 2+ active rows exist.")},{key:"reactivate_button",hint:l("Per-row button to re-activate a cancelled subscription.")}]},{group:l("Confirm modal — prompts"),items:[{key:"cancel_confirm",hint:l("Shown in the modal before cancelling a single subscription.")},{key:"bulk_confirm",hint:l("Shown in the modal before bulk-cancelling all subscriptions.")},{key:"reactivate_confirm",hint:l("Shown in the modal before re-activating a cancelled subscription.")}]},{group:l("Confirm modal — buttons"),items:[{key:"confirm_yes",hint:l("Confirms the action — red button. Shared across all three prompts.")},{key:"confirm_no",hint:l("Closes the modal without acting — neutral button. Shared across all three prompts.")}]},{group:l("Empty state"),items:[{key:"empty_state",hint:l("Shown when the email has no subscriptions on file.")}]}],rx=["cancelled","cancelled_all","reactivated"],jS={cancelled:{title:"",body:""},cancelled_all:{title:"",body:""},reactivated:{title:"",body:""}},sx={cancelled:{label:l("After cancelling one subscription"),hint:l("Green notice shown on the list page after the visitor clicks Cancel on a single row."),bodyPlaceholders:l("%s = form/subscription title")},cancelled_all:{label:l("After bulk-cancelling"),hint:l("Green notice shown after the visitor confirms the Cancel ALL action."),bodyPlaceholders:l("%d = number of cancelled subscriptions")},reactivated:{label:l("After re-activating"),hint:l("Green notice shown after the visitor clicks Reactivate on a previously cancelled subscription."),bodyPlaceholders:l("%s = form/subscription title")}},MI={enabled:!1,title:"",body:""},DI={enabled:!1,on_optin:!1,on_reactivate:!1,recipients:"",include_email:!1,subject:"",intro:"",line:""};function FI(){return{event:l("Consent withdrawn"),form_title:l("Newsletter"),category:l("Customers"),source:l("consent centre"),date:"2026-10-08 10:30",optin_id:"42",email:"[email protected]",site_name:"Example",count:"1"}}function ax(e,t){const n=FI();return e.replace(/\{([a-z_]+)\}/g,(s,a)=>a==="email"&&!t?"":a in n?n[a]:s)}const LI={enabled:!0,defaults:{optout_page:0,optout_subject:"Opt-out Confirmation",optout_template:"",optout_body:"",notices:vS,labels:bS,list_notices:jS,disabled_notice:MI,notify:DI},forms:[]};function $I(){var je,Ne,$e,Be,se,De;const e=oa("opt-out"),t=Ze(),{data:n,isLoading:s}=we({queryKey:["optout-settings"],queryFn:()=>Q("/optout/settings"),enabled:e}),{data:a}=we({queryKey:["pages"],queryFn:()=>Q("/settings/pages")}),{data:i}=we({queryKey:["email-templates-list"],queryFn:()=>Q("/settings/email-templates-list")}),{data:o}=we({queryKey:["forms"],queryFn:()=>Q("/forms"),enabled:e}),[c,d]=f.useState(LI),[u,h]=f.useState(!1),[m,y]=f.useState("");f.useEffect(()=>{var q,Ue,We,xn,hr,wu,Nu,qt,Ur,Su,Cu,_a,ku,Ol,qi,Br,Il,Vr,_u,Eu,Ml,Dl,Pu,Hi,Gn,Tu,ke,Ve,Ye,Jt,en,Yn,pr,tn,Xn,cC,dC,uC,fC,mC;if(!(n!=null&&n.data)||u)return;const P=n.data,z=(hr=P._defaults)!=null?hr:{optout_page:Number((q=P.optout_page)!=null?q:0),optout_subject:String((Ue=P.optout_subject)!=null?Ue:""),optout_template:String((We=P.optout_template)!=null?We:""),optout_body:String((xn=P.optout_body)!=null?xn:"")},Y=(wu=P._defaults)==null?void 0:wu.notices,ae=tx.reduce((Ls,xr)=>{var $s,Fl,Ll,$l;return Ls[xr]={title:String((Fl=($s=Y==null?void 0:Y[xr])==null?void 0:$s.title)!=null?Fl:""),body:String(($l=(Ll=Y==null?void 0:Y[xr])==null?void 0:Ll.body)!=null?$l:"")},Ls},{}),_e=(Nu=P._defaults)==null?void 0:Nu.labels,Fe=nx.reduce((Ls,xr)=>{var $s;return Ls[xr]=String(($s=_e==null?void 0:_e[xr])!=null?$s:""),Ls},{}),$=(qt=P._defaults)==null?void 0:qt.list_notices,Ce=rx.reduce((Ls,xr)=>{var $s,Fl,Ll,$l;return Ls[xr]={title:String((Fl=($s=$==null?void 0:$[xr])==null?void 0:$s.title)!=null?Fl:""),body:String(($l=(Ll=$==null?void 0:$[xr])==null?void 0:Ll.body)!=null?$l:"")},Ls},{}),Je=(Ur=P._defaults)==null?void 0:Ur.disabled_notice,Vt={enabled:!!((Su=Je==null?void 0:Je.enabled)!=null&&Su),title:String((Cu=Je==null?void 0:Je.title)!=null?Cu:""),body:String((_a=Je==null?void 0:Je.body)!=null?_a:"")};d({enabled:P._enabled!==!1,defaults:{optout_page:Number((ku=z.optout_page)!=null?ku:0),optout_subject:String((Ol=z.optout_subject)!=null?Ol:""),optout_template:String((qi=z.optout_template)!=null?qi:""),optout_body:String((Br=z.optout_body)!=null?Br:""),notices:ae,labels:Fe,list_notices:Ce,disabled_notice:Vt,notify:{enabled:!!((_u=(Vr=(Il=P._defaults)==null?void 0:Il.notify)==null?void 0:Vr.enabled)!=null&&_u),on_optin:!!((Dl=(Ml=(Eu=P._defaults)==null?void 0:Eu.notify)==null?void 0:Ml.on_optin)!=null&&Dl),on_reactivate:!!((Gn=(Hi=(Pu=P._defaults)==null?void 0:Pu.notify)==null?void 0:Hi.on_reactivate)!=null&&Gn),recipients:String((Ve=(ke=(Tu=P._defaults)==null?void 0:Tu.notify)==null?void 0:ke.recipients)!=null?Ve:""),include_email:!!((en=(Jt=(Ye=P._defaults)==null?void 0:Ye.notify)==null?void 0:Jt.include_email)!=null&&en),subject:String((tn=(pr=(Yn=P._defaults)==null?void 0:Yn.notify)==null?void 0:pr.subject)!=null?tn:""),intro:String((dC=(cC=(Xn=P._defaults)==null?void 0:Xn.notify)==null?void 0:cC.intro)!=null?dC:""),line:String((mC=(fC=(uC=P._defaults)==null?void 0:uC.notify)==null?void 0:fC.line)!=null?mC:"")}},forms:Array.isArray(P._forms)?P._forms:[]}),h(!0)},[n,u]);const v=f.useMemo(()=>{var z,Y,ae;const P=(z=n==null?void 0:n.data)==null?void 0:z._disabled_notice_defaults;return{title:String((Y=P==null?void 0:P.title)!=null?Y:""),body:String((ae=P==null?void 0:P.body)!=null?ae:"")}},[n]),w=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._labels_defaults;return P?nx.reduce((Y,ae)=>{var _e;return Y[ae]=String((_e=P[ae])!=null?_e:""),Y},{}):bS},[n]),g=(Ne=(je=n==null?void 0:n.data)==null?void 0:je._notify_defaults)!=null?Ne:null,[j,b]=f.useState("line");function p(P){const z=c.defaults.notify[j];F(j,`${z}{${P}}`)}const x=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._list_notices_defaults;return P?rx.reduce((Y,ae)=>{var _e,Fe,$,Ce;return Y[ae]={title:String((Fe=(_e=P[ae])==null?void 0:_e.title)!=null?Fe:""),body:String((Ce=($=P[ae])==null?void 0:$.body)!=null?Ce:"")},Y},{}):jS},[n]),N=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._notices_defaults;return P?tx.reduce((Y,ae)=>{var _e,Fe,$,Ce;return Y[ae]={title:String((Fe=(_e=P[ae])==null?void 0:_e.title)!=null?Fe:""),body:String((Ce=($=P[ae])==null?void 0:$.body)!=null?Ce:"")},Y},{}):vS},[n]),S=f.useMemo(()=>{var Y;const P=(Y=o==null?void 0:o.data)!=null?Y:{},z=[];for(const[ae,_e]of Object.entries(P))if(_e)for(const Fe of _e.forms){const $=typeof Fe.id=="string"?Fe.id:String(Fe.id),Ce=Number($.split("_")[0]);Ce&&z.push({key:`${ae}_${$}`,integration:ae,integrationName:_e.name,formId:Ce,restId:$,title:Fe.title||`#${Ce}`})}return z},[o]),k=(P,z)=>{const Y=S.find(ae=>ae.integration===P&&ae.formId===z);return Y?`${Y.integrationName} / ${Y.title}`:`${P} / #${z}`},_=Ee({mutationFn:()=>Q("/optout/page/generate",{method:"POST"}),onSuccess:P=>{t.invalidateQueries({queryKey:["pages"]}),d(z=>({...z,defaults:{...z.defaults,optout_page:P.page_id}})),G.success(P.message)},onError:P=>{const z=(P==null?void 0:P.message)||l("Failed to generate opt-out page.");G.error(z)}}),C=Ee({mutationFn:P=>Q("/optout/settings",{method:"PUT",body:JSON.stringify({enabled:P.enabled,optout_page:P.defaults.optout_page,optout_subject:P.defaults.optout_subject,optout_template:P.defaults.optout_template,optout_body:P.defaults.optout_body,defaults:P.defaults,forms:P.forms})}),onSuccess:P=>{t.invalidateQueries({queryKey:["optout-settings"]}),G.success(P.message||l("Opt-out settings saved."))},onError:P=>{G.error(P.message||l("Failed to save settings."))}}),R=($e=a==null?void 0:a.data)!=null?$e:[],T=(Be=i==null?void 0:i.data)!=null?Be:[];function O(P,z){d(Y=>({...Y,defaults:{...Y.defaults,[P]:z}}))}function M(P,z,Y){d(ae=>({...ae,defaults:{...ae.defaults,notices:{...ae.defaults.notices,[P]:{...ae.defaults.notices[P],[z]:Y}}}}))}function B(P,z){d(Y=>({...Y,defaults:{...Y.defaults,labels:{...Y.defaults.labels,[P]:z}}}))}function I(P,z,Y){d(ae=>({...ae,defaults:{...ae.defaults,list_notices:{...ae.defaults.list_notices,[P]:{...ae.defaults.list_notices[P],[z]:Y}}}}))}function ne(P,z){d(Y=>({...Y,defaults:{...Y.defaults,disabled_notice:{...Y.defaults.disabled_notice,[P]:z}}}))}function F(P,z){d(Y=>({...Y,defaults:{...Y.defaults,notify:{...Y.defaults.notify,[P]:z}}}))}function te(){if(!m)return;const P=S.find(z=>z.key===m);if(P){if(c.forms.some(z=>z.integration===P.integration&&z.form_id===P.formId)){G.warning(l("This form is already in the list."));return}d(z=>({...z,forms:[...z.forms,{integration:P.integration,form_id:P.formId,enabled:null,optout_page:null,optout_subject:null,optout_template:null,optout_body:null}]})),y("")}}function A(P){d(z=>({...z,forms:z.forms.filter((Y,ae)=>ae!==P)}))}function D(P,z,Y){d(ae=>({...ae,forms:ae.forms.map((_e,Fe)=>Fe===P?{..._e,[z]:Y}:_e)}))}const W=f.useMemo(()=>{const P=R.find(z=>z.id===c.defaults.optout_page);return P?P.title:l("(no page selected)")},[R,c.defaults.optout_page]),he=f.useMemo(()=>{if(!c.defaults.optout_template)return l("(inline body)");const P=T.find(z=>String(z.id)===String(c.defaults.optout_template));return P?P.title:c.defaults.optout_template},[T,c.defaults.optout_template]);return 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(D0,{className:"h-6 w-6"}),l("Opt-Out Settings"),!e&&r.jsx(Up,{})]}),r.jsx("p",{className:"text-muted-foreground",children:l("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(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Feature toggle")}),r.jsx(Re,{children:l("Turn the entire opt-out feature on or off without deactivating the addon plugin. Useful for pausing while debugging.")})]}),r.jsx(ee,{children:s?r.jsx(ie,{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(H,{htmlFor:"optout-enabled",className:"text-base",children:l("Opt-Out enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, no opt-out mails are sent for any form — regardless of per-form overrides below.")})]}),r.jsx(Et,{id:"optout-enabled",checked:c.enabled,onCheckedChange:P=>d(z=>({...z,enabled:P}))})]})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("When disabled")}),r.jsxs(Re,{children:[l("Controls what visitors see if the master toggle above is off. By default the opt-out form + list shortcodes render")," ",r.jsx("strong",{children:l("nothing")})," ",l("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(ee,{className:"space-y-4",children:s?r.jsx(ie,{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(H,{htmlFor:"disabled-notice-enabled",className:"text-base",children:l("Show the notice when disabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("Only relevant when the master toggle above is off — has no effect while opt-out is active.")})]}),r.jsx(Et,{id:"disabled-notice-enabled",checked:c.defaults.disabled_notice.enabled,onCheckedChange:P=>ne("enabled",P)})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:"disabled-notice-title",children:l("Title")}),r.jsx(Pe,{id:"disabled-notice-title",className:"mt-1 h-9 text-xs",placeholder:v.title||l("Default title"),value:c.defaults.disabled_notice.title,onChange:P=>ne("title",P.target.value)})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:"disabled-notice-body",children:l("Body")}),r.jsx(Mr,{id:"disabled-notice-body",className:"mt-1 text-xs min-h-[60px]",placeholder:v.body||l("Default body"),value:c.defaults.disabled_notice.body,onChange:P=>ne("body",P.target.value)})]})]})]})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Notifications")}),r.jsx(Re,{children:l("Sends you a mail when a consent is withdrawn, confirmed or reactivated. Several changes at once (Cancel all) arrive as one mail.")})]}),r.jsx(ee,{className:"space-y-4",children:s?r.jsx(ie,{className:"h-24 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsx(H,{htmlFor:"notify-enabled",className:"text-base",children:l("Notify me about unsubscribes")}),r.jsx(Et,{id:"notify-enabled",checked:c.defaults.notify.enabled,onCheckedChange:P=>F("enabled",P)})]}),g?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsx(H,{htmlFor:"notify-on-optin",className:"text-base",children:l("Notify me about confirmed opt-ins")}),r.jsx(Et,{id:"notify-on-optin",checked:c.defaults.notify.on_optin,onCheckedChange:P=>F("on_optin",P)})]}),r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsx(H,{htmlFor:"notify-on-reactivate",className:"text-base",children:l("Notify me about reactivations")}),r.jsx(Et,{id:"notify-on-reactivate",checked:c.defaults.notify.on_reactivate,onCheckedChange:P=>F("on_reactivate",P)})]})]}):r.jsx("p",{className:"text-sm text-muted-foreground",children:l("Notifications about confirmed opt-ins and reactivations, and your own wording, need Opt-Out add-on 1.8.0 or newer.")}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:"notify-recipients",children:l("Recipients")}),r.jsx(Pe,{id:"notify-recipients","aria-describedby":"notify-recipients-hint",className:"mt-1 h-9 text-xs",placeholder:l("Empty = the site administrator's address"),value:c.defaults.notify.recipients,onChange:P=>F("recipients",P.target.value)}),r.jsx("p",{id:"notify-recipients-hint",className:"mt-1 text-xs text-muted-foreground",children:l("Separate several addresses with a comma.")})]}),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(H,{htmlFor:"notify-include-email",className:"text-base",children:l("Name the email address in the mail")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("Off by default: the mail then only names the opt-in ID, not the person.")})]}),r.jsx(Et,{id:"notify-include-email",checked:c.defaults.notify.include_email,onCheckedChange:P=>F("include_email",P)})]}),g&&r.jsxs("div",{className:"space-y-3 rounded-lg border p-4",children:[r.jsx("p",{className:"text-base font-medium",children:l("Wording of the mail")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("Leave a field empty to use the default. Click a placeholder to add it to the field you edited last.")}),[["subject",l("Subject")],["intro",l("Introduction")],["line",l("Line per change")]].map(([P,z])=>r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:`notify-${P}`,children:z}),r.jsx(Pe,{id:`notify-${P}`,className:"mt-1 h-9 text-xs",placeholder:g[P],value:c.defaults.notify[P],onFocus:()=>b(P),onChange:Y=>F(P,Y.target.value)})]},P)),r.jsx("div",{className:"flex flex-wrap gap-1",role:"group","aria-label":l("Placeholders"),children:g.names.map(P=>r.jsx(U,{type:"button",variant:"outline",size:"sm",className:"h-7 px-2 font-mono text-xs",onClick:()=>p(P),children:`{${P}}`},P))}),r.jsxs("div",{className:"rounded-md bg-muted p-3 text-xs","aria-live":"polite",children:[r.jsx("p",{className:"mb-1 font-medium",children:l("Preview")}),r.jsx("p",{children:ax(c.defaults.notify.subject||g.subject,c.defaults.notify.include_email)}),r.jsx("p",{className:"mt-1",children:ax(c.defaults.notify.intro||g.intro,c.defaults.notify.include_email)}),r.jsxs("p",{className:"mt-1",children:["• ",ax(c.defaults.notify.line||g.line,c.defaults.notify.include_email)]})]})]})]})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Opt-Out Page (default)")}),r.jsxs(Re,{children:[l("Page that hosts the opt-out form and list — applies to every form unless overridden below. Use")," ",r.jsx("strong",{children:l("Generate")})," ",l("to create one in a single click with both shortcodes already in place.")]})]}),r.jsxs(ee,{children:[s?r.jsx(ie,{className:"h-10 w-full"}):r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:c.defaults.optout_page?String(c.defaults.optout_page):"",onValueChange:P=>O("optout_page",P?Number(P):0),children:[r.jsx(xe,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a page...")})}),r.jsx(ge,{children:R.map(P=>r.jsx(L,{value:P.id.toString(),children:P.title},P.id))})]}),r.jsxs(U,{type:"button",variant:"outline",onClick:()=>_.mutate(),disabled:_.isPending,title:l("Create a new page with the opt-out shortcodes"),children:[r.jsx(Rh,{className:"h-4 w-4 mr-1.5"}),_.isPending?l("Generating..."):l("Generate")]})]}),c.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=${c.defaults.optout_page}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-foreground",children:[r.jsx(di,{className:"h-3 w-3"}),l("Open page")]}),r.jsxs("a",{href:`${ht().adminUrl.replace(/\/+$/,"")}/post.php?post=${c.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(jd,{className:"h-3 w-3"}),l("Edit page")]})]})]})]}),r.jsxs(Z,{children:[r.jsx(le,{children:r.jsxs(fe,{className:"flex items-center gap-2",children:[r.jsx(I0,{className:"h-4 w-4"}),l("Shortcode Reference")]})}),r.jsxs(ee,{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:l("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:l("Display the opt-in/opt-out status list")})]})]})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Opt-Out Email (defaults)")}),r.jsx(Re,{children:l("Subject + body for the confirmation email. Per-form overrides below take precedence over these defaults.")})]}),r.jsx(ee,{className:"space-y-4",children:s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(ie,{className:"h-10 w-full"}),r.jsx(ie,{className:"h-10 w-full"}),r.jsx(ie,{className:"h-40 w-full"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(H,{htmlFor:"optout-subject",children:l("Subject")}),r.jsx(Pe,{id:"optout-subject",value:c.defaults.optout_subject,onChange:P=>O("optout_subject",P.target.value),placeholder:l("Opt-out Confirmation")})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(H,{htmlFor:"optout-template",children:l("Template")}),r.jsxs(ye,{value:c.defaults.optout_template||"__none__",onValueChange:P=>O("optout_template",P==="__none__"?"":P),children:[r.jsx(xe,{id:"optout-template",children:r.jsx(be,{placeholder:l("None (use body below)")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__none__",children:l("None")}),T.map(P=>r.jsx(L,{value:String(P.id),children:P.title},P.id))]})]})]}),c.defaults.optout_template?r.jsx(UI,{templateId:c.defaults.optout_template,title:(De=(se=T.find(P=>String(P.id)===String(c.defaults.optout_template)))==null?void 0:se.title)!=null?De:c.defaults.optout_template}):r.jsxs("div",{className:"space-y-2",children:[r.jsx(H,{htmlFor:"optout-body",children:l("Email Body")}),r.jsx(Mr,{id:"optout-body",value:c.defaults.optout_body,onChange:P=>O("optout_body",P.target.value),className:"font-mono min-h-[300px]",placeholder:l("HTML email body...")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Available placeholder:")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"[doubleoptin_optout_url]"})]})]})]})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Notice texts")}),r.jsxs(Re,{children:[l("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:l('String Translation → Domain "double-opt-in-opt-out"')})," ",l("so you can translate it per language; without WPML the text is shown as-is.")]})]}),r.jsx(ee,{className:"space-y-5",children:s?r.jsx(ie,{className:"h-64 w-full"}):tx.map(P=>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:yS[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:yS[P].hint})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:`notice-${P}-title`,children:l("Title")}),r.jsx(Pe,{id:`notice-${P}-title`,className:"mt-1 h-9 text-xs",placeholder:N[P].title||l("Default title"),value:c.defaults.notices[P].title,onChange:z=>M(P,"title",z.target.value)})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:`notice-${P}-body`,children:l("Body")}),r.jsx(Mr,{id:`notice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:N[P].body||l("Default body"),value:c.defaults.notices[P].body,onChange:z=>M(P,"body",z.target.value)})]})]})]},P))})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("List page labels")}),r.jsx(Re,{children:l("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(ee,{children:s?r.jsx(ie,{className:"h-64 w-full"}):r.jsx(OI,{type:"multiple",className:"w-full",children:II.map(P=>r.jsxs(pS,{value:P.group,children:[r.jsx(xS,{className:"text-sm",children:P.group}),r.jsx(gS,{children:r.jsx("div",{className:"space-y-3 pt-2",children:P.items.map(({key:z,hint:Y})=>r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:`label-${z}`,children:z}),r.jsx(Pe,{id:`label-${z}`,className:"mt-1 h-9 text-xs",placeholder:w[z]||l("Default"),value:c.defaults.labels[z],onChange:ae=>B(z,ae.target.value)}),Y&&r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:Y})]},z))})})]},P.group))})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("List page notices")}),r.jsxs(Re,{children:[l("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"})," ",l("placeholders — see each entry's hint.")]})]}),r.jsx(ee,{className:"space-y-5",children:s?r.jsx(ie,{className:"h-64 w-full"}):rx.map(P=>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:sx[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:sx[P].hint}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:[r.jsx("strong",{children:l("Placeholder:")})," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:sx[P].bodyPlaceholders})]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:`listnotice-${P}-title`,children:l("Title")}),r.jsx(Pe,{id:`listnotice-${P}-title`,className:"mt-1 h-9 text-xs",placeholder:x[P].title||l("Default title"),value:c.defaults.list_notices[P].title,onChange:z=>I(P,"title",z.target.value)})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",htmlFor:`listnotice-${P}-body`,children:l("Body")}),r.jsx(Mr,{id:`listnotice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:x[P].body||l("Default body"),value:c.defaults.list_notices[P].body,onChange:z=>I(P,"body",z.target.value)})]})]})]},P))})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Per-form overrides")}),r.jsx(Re,{children:l('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(ee,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:m,onValueChange:y,children:[r.jsx(xe,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ge,{children:S.length===0?r.jsx(L,{value:"__empty",disabled:!0,children:l("No forms detected")}):S.map(P=>r.jsxs(L,{value:P.key,children:[P.integrationName," / ",P.title]},P.key))})]}),r.jsxs(U,{onClick:te,disabled:!m,children:[r.jsx(ui,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),c.forms.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(kt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("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:c.forms.map((P,z)=>r.jsx(zI,{entry:P,label:k(P.integration,P.form_id),pages:R,templates:T,defaultPageLabel:W,defaultTemplateLabel:he,defaultSubject:c.defaults.optout_subject,onChange:(Y,ae)=>D(z,Y,ae),onRemove:()=>A(z)},`${P.integration}_${P.form_id}`))})]})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2",children:r.jsx(U,{onClick:()=>C.mutate(c),disabled:C.isPending,children:C.isPending?l("Saving..."):l("Save")})})]}),r.jsx("div",{className:"space-y-6",children:r.jsxs(Z,{children:[r.jsx(le,{children:r.jsx(fe,{className:"text-sm",children:l("Hooks Reference")})}),r.jsx(ee,{children:r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:l("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:l("Modify the opt-out email body before sending.")})]})})]})})]})]})}function zI({entry:e,label:t,pages:n,templates:s,defaultPageLabel:a,defaultTemplateLabel:i,defaultSubject:o,onChange:c,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(U,{variant:"ghost",size:"sm",onClick:d,title:l("Remove this override"),children:r.jsx(kn,{className:"h-4 w-4"})})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Opt-out for this form")}),r.jsxs(ye,{value:u,onValueChange:y=>{y==="__inherit"?c("enabled",null):y==="yes"?c("enabled",!0):c("enabled",!1)},children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__inherit",children:l("Inherit (active)")}),r.jsx(L,{value:"yes",children:l("Enabled for this form")}),r.jsx(L,{value:"no",children:l("Disabled for this form")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:l('"Disabled" suppresses opt-out invitation mails for this form. Existing opt-out hashes still resolve.')})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Opt-out page")}),r.jsxs(ye,{value:e.optout_page?String(e.optout_page):"__inherit",onValueChange:y=>c("optout_page",y==="__inherit"?null:Number(y)),children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__inherit",children:re(l("Inherit (%s)"),a)}),n.map(y=>r.jsx(L,{value:y.id.toString(),children:y.title},y.id))]})]})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(H,{className:"text-xs",children:l("Subject override")}),r.jsx(Pe,{className:"mt-1 h-9 text-xs",placeholder:re(l("Inherit (%s)"),o||l("(empty)")),value:(h=e.optout_subject)!=null?h:"",onChange:y=>c("optout_subject",y.target.value===""?null:y.target.value)})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(H,{className:"text-xs",children:l("Template override")}),r.jsxs(ye,{value:e.optout_template||"__inherit",onValueChange:y=>c("optout_template",y==="__inherit"?null:y),children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__inherit",children:re(l("Inherit (%s)"),i)}),s.map(y=>r.jsx(L,{value:String(y.id),children:y.title},y.id))]})]})]}),!e.optout_template&&r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(H,{className:"text-xs",children:l("Body override")}),r.jsx(Mr,{className:"mt-1 text-xs font-mono min-h-[120px]",placeholder:l("Inherit from defaults — leave empty to use the default body."),value:(m=e.optout_body)!=null?m:"",onChange:y=>c("optout_body",y.target.value===""?null:y.target.value)})]})]})]})}function UI({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(H,{children:l("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($n,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:l("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:re(l("%s was built in the email designer. Edit the message body there — this textarea is bypassed for custom templates."),t)}),n?r.jsx(U,{asChild:!0,variant:"secondary",size:"sm",children:r.jsxs("a",{href:n,children:[r.jsx(jd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit in Email Designer")]})}):r.jsx(U,{variant:"secondary",size:"sm",disabled:!0,children:l("Editor link unavailable")})]})]})]})}const ix=[{value:"subscriber",label:l("Subscriber")},{value:"contributor",label:l("Contributor")},{value:"author",label:l("Author")},{value:"editor",label:l("Editor")}];function wS(e){var t,n;return(n=(t=ix.find(s=>s.value===e))==null?void 0:t.label)!=null?n:e}const ox={all:{title:l("All forms (every confirmation creates a user)"),hint:l("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:l("Only selected forms (opt-in list — default)"),hint:l("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:l("All forms EXCEPT selected (opt-out list)"),hint:l("Every form auto-creates EXCEPT those in the list. Symmetric to `all` with an exclusion list.")}},BI={enabled:!0,mode:"selected",defaults:{role:"subscriber",send_welcome_mail:!0,force_password_change:!1,duplicate_policy:"skip",field_map:{}},conditions:[]};function VI(e,t,n,s){const a=wS(t),i=l(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:re(l("Auto-create a %s on every confirmation"),a),detail:re(l("Every DOI form on the site triggers user creation on confirm. %s"),i)}:e==="selected"?n===0?{headline:l("No forms in scope — auto user creation is currently inactive"),detail:l("mode=selected with an empty list means no form is in scope. Add at least one form below to enable.")}:{headline:re(Zd("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),a,n),detail:re(l("Only the listed forms trigger user creation. Forms not in the list are completely unaffected. %s"),i)}:n===0?{headline:re(l("Auto-create a %s on every confirmation"),a),detail:re(l("No exclusions configured — every form triggers user creation. %s"),i)}:{headline:re(l("Auto-create a %1$s on every form EXCEPT the %2$s excluded"),a,n),detail:re(Zd("%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,i)}}function qI(){const e=Ze(),{data:t,isLoading:n}=we({queryKey:["user-creation-settings"],queryFn:()=>Q("/user-creation/settings")}),{data:s}=we({queryKey:["forms"],queryFn:()=>Q("/forms")}),[a,i]=f.useState(BI),[o,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var N,S,k,_,C,R,T,O,M;if(!t||o)return;const x=(N=t.data)!=null?N:t;i({enabled:x.enabled!==!1,mode:(S=x.mode)!=null?S:"selected",defaults:{role:(_=(k=x.defaults)==null?void 0:k.role)!=null?_:"subscriber",send_welcome_mail:((C=x.defaults)==null?void 0:C.send_welcome_mail)!==!1,force_password_change:((R=x.defaults)==null?void 0:R.force_password_change)===!0,duplicate_policy:(O=(T=x.defaults)==null?void 0:T.duplicate_policy)!=null?O:"skip",field_map:(M=x.defaults)!=null&&M.field_map&&typeof x.defaults.field_map=="object"?x.defaults.field_map:{}},conditions:Array.isArray(x.conditions)?x.conditions:[]}),c(!0)},[t,o]);const h=f.useMemo(()=>{var S;const x=(S=s==null?void 0:s.data)!=null?S:{},N=[];for(const[k,_]of Object.entries(x))if(_)for(const C of _.forms){const R=Number(typeof C.id=="string"?C.id.split("_")[0]:C.id);R&&N.push({key:`${k}_${R}`,integration:k,integrationName:_.name,formId:R,title:C.title||`#${R}`})}return N},[s]),m=(x,N)=>{const S=h.find(k=>k.integration===x&&k.formId===N);return S?`${S.integrationName} / ${S.title}`:`${x} / #${N}`},y=Ee({mutationFn:()=>Q("/user-creation/settings",{method:"PUT",body:JSON.stringify(a)}),onSuccess:()=>{G.success(l("User Creation settings saved.")),e.invalidateQueries({queryKey:["user-creation-settings"]})},onError:x=>{G.error(x.message||l("Failed to save User Creation settings."))}});function v(x,N){i(S=>({...S,defaults:{...S.defaults,[x]:N}}))}function w(){if(!d)return;const x=h.find(N=>N.key===d);if(x){if(a.conditions.some(N=>N.integration===x.integration&&N.form_id===x.formId)){G.warning(l("This form is already in the list."));return}i(N=>({...N,conditions:[...N.conditions,{integration:x.integration,form_id:x.formId,role:null,send_welcome_mail:null,duplicate_policy:null,field_map:null}]})),u("")}}function g(x){i(N=>({...N,conditions:N.conditions.filter((S,k)=>k!==x)}))}function j(x,N,S){i(k=>({...k,conditions:k.conditions.map((_,C)=>C===x?{..._,[N]:S}:_)}))}if(n)return r.jsx(ie,{className:"h-96 w-full"});const b=VI(a.mode,a.defaults.role,a.conditions.length,a.defaults.duplicate_policy);return 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(z0,{className:"h-6 w-6"}),l("Auto User Creation")]}),r.jsx("p",{className:"text-muted-foreground",children:l("Create a WordPress user automatically after opt-in confirmation")})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Feature toggle")}),r.jsx(Re,{children:l("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(ee,{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(H,{htmlFor:"uc-enabled",className:"text-base",children:l("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, no users are auto-created — confirmations still complete normally, just without a WP user being made.")})]}),r.jsx(Et,{id:"uc-enabled",checked:a.enabled,onCheckedChange:x=>i(N=>({...N,enabled:x}))})]})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("How User Creation applies")}),r.jsx(Re,{children:l("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(ee,{className:"space-y-3",children:[Object.keys(ox).map(x=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(a.mode===x?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"uc-mode",value:x,checked:a.mode===x,onChange:()=>i(N=>({...N,mode:x})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:ox[x].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:ox[x].hint})]})]},x)),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:l("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:b.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:b.detail})]})]})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Default settings")}),r.jsx(Re,{children:l("Applied to every form in scope. Per-form entries can override individually.")})]}),r.jsxs(ee,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"uc-role",children:l("Default role")}),r.jsxs(ye,{value:a.defaults.role,onValueChange:x=>v("role",x),children:[r.jsx(xe,{id:"uc-role",className:"mt-1.5",children:r.jsx(be,{})}),r.jsx(ge,{children:ix.map(x=>r.jsx(L,{value:x.value,children:x.label},x.value))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Administrator is excluded for security — no role-escalation via opt-in.")})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"uc-policy",children:l("Duplicate user policy")}),r.jsxs(ye,{value:a.defaults.duplicate_policy,onValueChange:x=>v("duplicate_policy",x),children:[r.jsx(xe,{id:"uc-policy",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"skip",children:l("Skip (do nothing)")}),r.jsx(L,{value:"update_meta",children:l("Update meta of existing user")}),r.jsx(L,{value:"error",children:l("Treat as error")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:"update_meta"})," ",l("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(H,{htmlFor:"uc-welcome",children:l("Send WP password-reset email")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Standard WP welcome flow — let the new user set their own password. Disable if you handle onboarding mails elsewhere.")})]}),r.jsx(Et,{id:"uc-welcome",checked:a.defaults.send_welcome_mail,onCheckedChange:x=>v("send_welcome_mail",x)})]}),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(H,{htmlFor:"uc-force-pw",children:l("Force password change on first login")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("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(Et,{id:"uc-force-pw",checked:a.defaults.force_password_change,onCheckedChange:x=>v("force_password_change",x)})]}),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(kt,{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:l("Want to block disposable-email domains?")})," ",l("Install the")," ",r.jsx("strong",{children:"Domain Blocklist"})," ",l("addon. It intercepts before any opt-in record or confirmation mail — cleaner than skipping just the user-create step.")," ",l("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"})," ",l("filter.")]})]})})]})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:a.mode==="selected"?l("Forms to apply auto-creation to"):a.mode==="all_except"?l("Forms to exclude from auto-creation"):l("Per-form overrides")}),r.jsxs(Re,{children:[a.mode==="all"&&l("All forms are in scope. Add entries here to override the defaults for specific forms."),a.mode==="selected"&&l("Only forms in this list create users on confirmation."),a.mode==="all_except"&&l("These forms are exempt — they confirm normally but no WP user is created.")]})]}),r.jsxs(ee,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:d,onValueChange:u,children:[r.jsx(xe,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ge,{children:h.length===0?r.jsx(L,{value:"__empty",disabled:!0,children:l("No forms detected")}):h.map(x=>r.jsxs(L,{value:x.key,children:[x.integrationName," / ",x.title]},x.key))})]}),r.jsxs(U,{onClick:w,disabled:!d,children:[r.jsx(ui,{className:"h-4 w-4 mr-1.5"}),l("Add")]})]}),a.conditions.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(kt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:a.mode==="selected"?l("No forms in the list yet. Auto user creation is currently inactive — add at least one form above."):a.mode==="all_except"?l("No exclusions configured. Every form creates users — same as mode=all."):l("No per-form overrides. Defaults apply to every form.")})]}):r.jsx("div",{className:"space-y-3",children:a.conditions.map((x,N)=>{var S,k;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(x.integration,x.form_id)}),r.jsx(U,{variant:"ghost",size:"sm",onClick:()=>g(N),title:l("Remove from list"),children:r.jsx(kn,{className:"h-4 w-4"})})]}),a.mode!=="all_except"&&r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 mt-3",children:[r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Override role")}),r.jsxs(ye,{value:(S=x.role)!=null?S:"__inherit",onValueChange:_=>j(N,"role",_==="__inherit"?null:_),children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__inherit",children:re(l("Inherit (%s)"),wS(a.defaults.role))}),ix.map(_=>r.jsx(L,{value:_.value,children:_.label},_.value))]})]})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Override duplicate policy")}),r.jsxs(ye,{value:(k=x.duplicate_policy)!=null?k:"__inherit",onValueChange:_=>j(N,"duplicate_policy",_==="__inherit"?null:_),children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__inherit",children:re(l("Inherit (%s)"),a.defaults.duplicate_policy)}),r.jsx(L,{value:"skip",children:l("Skip")}),r.jsx(L,{value:"update_meta",children:l("Update meta")}),r.jsx(L,{value:"error",children:l("Error")})]})]})]})]})]},`${x.integration}_${x.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(U,{onClick:()=>y.mutate(),disabled:y.isPending,children:[y.isPending?r.jsx(Ln,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(da,{className:"h-4 w-4 mr-1.5"}),l("Save User Creation settings")]})})]})]}),r.jsx(Z,{className:"border-blue-200 bg-blue-50/50",children:r.jsx(ee,{className:"pt-6",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx(kt,{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:l("Auto-created users get a random password. The standard WordPress password-reset email is sent automatically (toggle above to disable).")}),r.jsxs("p",{children:[l("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"})," ",l("filter — see the addon documentation.")]})]})]})})})]})}const HI=[{value:"__none__",label:l("None")},{value:"cleverreach",label:"CleverReach"}];function WI(){var u;const e=oa("cleverreach"),t=Ze(),{data:n,isLoading:s}=we({queryKey:["api-settings"],queryFn:()=>Q("/api/settings"),enabled:e}),[a,i]=f.useState({service:"",cleverreach_client_id:"",cleverreach_client_secret:"",cleverreach_connected:!1});f.useEffect(()=>{n!=null&&n.data&&i(n.data)},[n]);const o=Ee({mutationFn:h=>Q("/api/settings",{method:"PUT",body:JSON.stringify(h)}),onSuccess:h=>{t.invalidateQueries({queryKey:["api-settings"]}),G.success(h.message||l("API settings saved."))},onError:h=>{G.error(h.message||l("Failed to save settings."))}}),c=Ee({mutationFn:()=>Q("/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"]}),G.success(h.message||l("Connected to CleverReach.")))},onError:h=>{G.error(h.message||l("Failed to connect to CleverReach."))}});return 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(_h,{className:"h-6 w-6"}),l("API Integrations"),!e&&r.jsx(Up,{})]}),r.jsx("p",{className:"text-muted-foreground",children:l("Connect external services to your Double Opt-In system")})]}),r.jsxs("div",{className:"max-w-[600px] space-y-6",children:[r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("API Endpoint")}),r.jsx(Re,{children:l("Select the external service to connect.")})]}),r.jsx(ee,{children:s?r.jsx(ie,{className:"h-10 w-full"}):r.jsxs(ye,{value:a.service||"__none__",onValueChange:h=>i(m=>({...m,service:h==="__none__"?"":h})),children:[r.jsx(xe,{children:r.jsx(be,{placeholder:l("None")})}),r.jsx(ge,{children:HI.map(h=>r.jsx(L,{value:h.value,children:h.label},h.value))})]})})]}),a.service==="cleverreach"&&r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:"CleverReach"}),r.jsx(Re,{children:l("Configure your CleverReach API credentials.")})]}),r.jsx(ee,{className:"space-y-4",children:s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(ie,{className:"h-10 w-full"}),r.jsx(ie,{className:"h-10 w-full"}),r.jsx(ie,{className:"h-10 w-full"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(H,{htmlFor:"cr-client-id",children:l("Client ID")}),r.jsx(Pe,{id:"cr-client-id",value:a.cleverreach_client_id,onChange:h=>i(m=>({...m,cleverreach_client_id:h.target.value})),placeholder:l("Enter Client ID")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("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:[l("CleverReach REST API settings"),r.jsx(di,{className:"h-3 w-3"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(H,{htmlFor:"cr-client-secret",children:l("Client Secret")}),r.jsx(Pe,{id:"cr-client-secret",type:"password",value:(u=a.cleverreach_client_secret)!=null?u:"",onChange:h=>i(m=>({...m,cleverreach_client_secret:h.target.value})),placeholder:l("Enter Client Secret")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("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:[l("CleverReach REST API settings"),r.jsx(di,{className:"h-3 w-3"})]})]})]}),r.jsx(Z,{className:"border-dashed",children:r.jsx(ee,{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:l("Connection Status")}),r.jsx(pt,{variant:a.cleverreach_connected?"default":"secondary",className:a.cleverreach_connected?"bg-green-100 text-green-800 hover:bg-green-100":"bg-amber-100 text-amber-800 hover:bg-amber-100",children:a.cleverreach_connected?l("Connected"):l("Not Connected")}),a.cleverreach_connected&&a.cleverreach_expires_at&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Expires:")," ",a.cleverreach_expires_at]})]}),r.jsx(U,{variant:a.cleverreach_connected?"outline":"default",size:"sm",onClick:()=>c.mutate(),disabled:c.isPending,children:c.isPending?l("Connecting..."):a.cleverreach_connected?l("Reconnect"):l("Connect to CleverReach")})]})})})]})})]}),r.jsx(U,{onClick:()=>o.mutate(a),disabled:o.isPending||s,children:o.isPending?l("Saving..."):l("Save")})]})]})}function KI(){var d;const e=Ze(),[t,n]=f.useState(""),{data:s,isLoading:a}=we({queryKey:["license"],queryFn:()=>Q("/license")}),i=s==null?void 0:s.data,o=Ee({mutationFn:u=>Q("/license/activate",{method:"POST",body:JSON.stringify({key:u})}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),G.success(u.message||l("License activated successfully.")),n("")},onError:u=>{G.error(u.message||l("Failed to activate license."))}}),c=Ee({mutationFn:()=>Q("/license/deactivate",{method:"POST"}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),G.success(u.message||l("License deactivated."))},onError:u=>{G.error(u.message||l("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:l("License")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your Double Opt-In Pro license")})]}),r.jsxs("div",{className:"max-w-[600px] mx-auto space-y-6",children:[r.jsxs(Z,{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(Ph,{className:"h-6 w-6 text-muted-foreground"})})}),r.jsx(fe,{children:l("License Status")})]}),r.jsx(ee,{className:"text-center space-y-3",children:a?r.jsxs("div",{className:"space-y-2",children:[r.jsx(ie,{className:"h-6 w-24 mx-auto"}),r.jsx(ie,{className:"h-4 w-40 mx-auto"})]}):r.jsxs(r.Fragment,{children:[r.jsx(pt,{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?l("Active"):l("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:[l("Expires:")," ",i.expiresAt]})]})]})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsxs(fe,{className:"flex items-center gap-2",children:[r.jsx(M0,{className:"h-4 w-4"}),l("License Key")]}),r.jsx(Re,{children:i!=null&&i.isActive?l("Your license is currently active."):l("Enter your license key to activate Pro features.")})]}),r.jsx(ee,{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(U,{variant:"destructive",className:"w-full",onClick:()=>c.mutate(),disabled:c.isPending,children:c.isPending?l("Deactivating..."):l("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(U,{className:"w-full",onClick:()=>o.mutate(t),disabled:!t.trim()||o.isPending,children:o.isPending?l("Activating..."):l("Activate")})]})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Included modules")}),r.jsx(Re,{children:l("Every module below is unlocked by your Pro bundle license. A check means it is installed and active on this site.")})]}),r.jsx(ee,{children:a?r.jsx("div",{className:"space-y-2",children:Array.from({length:6}).map((u,h)=>r.jsx(ie,{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(xs,{className:"h-4 w-4 text-green-600 shrink-0"}):r.jsx(bd,{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(Hn,{id:"license.section",data:{license:i}})]})}const NS=new Set(["avada","elementor","wpforms","gravity-forms"]);function QI(){var v,w;const e=Ze(),{data:t,isLoading:n}=we({queryKey:["addons-catalog"],queryFn:()=>Q("/addons/catalog")}),{data:s}=we({queryKey:["license"],queryFn:()=>Q("/license")}),a=s==null?void 0:s.data,i=(v=t==null?void 0:t.entries)!=null?v:[],o=(w=t==null?void 0:t.hasBundleLicense)!=null?w:!1,c=ht(),d=()=>{e.invalidateQueries({queryKey:["addons-catalog"]}),RE().then(()=>e.invalidateQueries({queryKey:["addons-manifest"]}))},u=Ee({mutationFn:g=>Q(`/addons/${g}/activate`,{method:"POST"}),onSuccess:(g,j)=>{var p,x;const b=(x=(p=i.find(N=>N.id===j))==null?void 0:p.name)!=null?x:j;G.success(re(l("%s activated."),b)),d()},onError:g=>{G.error(g.message||l("Failed to activate addon."))}}),h=Ee({mutationFn:g=>Q(`/addons/${g}/deactivate`,{method:"POST"}),onSuccess:(g,j)=>{var p,x;const b=(x=(p=i.find(N=>N.id===j))==null?void 0:p.name)!=null?x:j;G.success(re(l("%s deactivated."),b)),d()},onError:g=>{G.error(g.message||l("Failed to deactivate addon."))}}),m=Ee({mutationFn:g=>Q("/bundle/installer/install",{method:"POST",body:JSON.stringify({id:g})}),onSuccess:(g,j)=>{var p,x;const b=(x=(p=i.find(N=>N.id===j))==null?void 0:p.name)!=null?x:j;G.success(re(l("%s installed."),b)),d()},onError:g=>{G.error(g.message||l("Failed to install addon."))}});f.useEffect(()=>{const g=()=>{d()};return window.addEventListener("f12-doi:addons-changed",g),()=>window.removeEventListener("f12-doi:addons-changed",g)},[e]);const y=i.reduce((g,j)=>(g[j.status]++,g),{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:l("Addons")}),r.jsx("p",{className:"text-muted-foreground",children:l("Extend Double Opt-In with official addons. Bundled addons can be installed in one click once your Pro license is active.")})]}),r.jsx(Hn,{id:"addons.list",data:{entries:i,license:a,hasLicense:o}}),r.jsxs(Z,{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(fe,{className:"flex items-center gap-2",children:[r.jsx(ci,{className:"h-5 w-5"}),l("Addon catalog")]}),r.jsx(Re,{children:n?l("Loading…"):re(l("%1$s active · %2$s installed · %3$s available"),y.active,y.inactive,y.not_installed)})]}),!o&&!n&&r.jsx(U,{asChild:!0,size:"sm",variant:"default",children:r.jsxs("a",{href:"#/license",children:[r.jsx(bd,{className:"h-4 w-4 mr-1"}),l("Activate Pro")]})})]})}),r.jsx(ee,{children:n?r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((g,j)=>r.jsx(ie,{className:"h-44 w-full"},j))}):i.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:l("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(g=>r.jsx(GI,{entry:g,hasLicense:o,adminUrl:c.adminUrl,onActivate:()=>u.mutate(g.id),onDeactivate:()=>h.mutate(g.id),onInstall:()=>m.mutate(g.id),isActivating:u.isPending&&u.variables===g.id,isDeactivating:h.isPending&&h.variables===g.id,isInstalling:m.isPending&&m.variables===g.id},g.id))})})]})]})}function GI({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:i,isDeactivating:o,isInstalling:c}){const[d,u]=f.useState(!1),h=NS.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(XI,{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(YI,{loaded:e.operational}),r.jsx("span",{children:e.name})]}),r.jsx(ZI,{entry:e})]})]}),r.jsx("p",{className:"text-sm text-muted-foreground flex-1",children:e.description}),y&&r.jsx(JI,{entry:e}),e.capabilities.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1",children:e.capabilities.slice(0,3).map(v=>r.jsx(pt,{variant:"outline",className:"text-[10px] font-mono",children:v},v))}),r.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[r.jsx(rM,{entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:i,isDeactivating:o,isInstalling:c}),r.jsx(U,{size:"sm",variant:"ghost",onClick:()=>u(v=>!v),"aria-label":l("Toggle diagnostic info"),title:l("Diagnostic info"),children:r.jsx(LP,{className:"h-4 w-4"})})]}),d&&r.jsx(nM,{entry:e})]})}function YI({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:l(e?"Loaded":"Not loaded"),"aria-label":l(e?"Loaded":"Not loaded")})}function XI({entry:e}){return e.status==="active"?e.operational?r.jsx(A0,{className:"h-5 w-5 text-green-600 shrink-0 mt-0.5"}):r.jsx(_t,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):e.status==="inactive"?r.jsx(Zo,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):r.jsx(O0,{className:"h-5 w-5 text-muted-foreground shrink-0 mt-0.5"})}function ZI({entry:e}){return e.status==="active"?e.operational?r.jsx(pt,{className:"bg-green-100 text-green-800 hover:bg-green-100 mt-1",children:l("Active")}):r.jsx(pt,{className:"bg-amber-100 text-amber-800 hover:bg-amber-100 mt-1",children:l("Active · issues")}):e.status==="inactive"?r.jsx(pt,{variant:"secondary",className:"mt-1",children:l("Installed · inactive")}):r.jsx(pt,{variant:"outline",className:"mt-1",children:l("Not installed")})}function JI({entry:e}){const t=e.inactiveReason?tM(e.inactiveReason):eM(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 eM(e){return NS.has(e.id)?e.integrationRegistered===!1?{icon:_t,title:l("Form integration not registered"),body:l("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:_t,title:l("Form integration unavailable at runtime"),body:l("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 tM(e){return e==="prerequisite"?{icon:L0,title:l("Prerequisite missing"),body:l("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:_t,title:l("Addon failed to register"),body:l("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 nM({entry:e}){var a;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",(a=e.inactiveReason)!=null?a:"—"],["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:l("Diagnostic")}),r.jsx("table",{className:"w-full",children:r.jsx("tbody",{children:s.map(([i,o])=>r.jsxs("tr",{children:[r.jsx("td",{className:"pr-3 text-muted-foreground align-top",children:i}),r.jsx("td",{className:"break-all",children:o})]},i))})})]})}function rM({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:i,isDeactivating:o,isInstalling:c}){return e.status==="active"?r.jsxs(U,{size:"sm",variant:"outline",className:"flex-1",onClick:s,disabled:o,children:[o?r.jsx(Ln,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Zo,{className:"h-4 w-4 mr-1"}),l(o?"Deactivating…":"Deactivate")]}):e.status==="inactive"?r.jsxs(U,{size:"sm",variant:"default",className:"flex-1",onClick:n,disabled:i,children:[i?r.jsx(Ln,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Zo,{className:"h-4 w-4 mr-1"}),l(i?"Activating…":"Activate")]}):t?r.jsxs(U,{size:"sm",variant:"default",className:"flex-1",onClick:a,disabled:c,children:[c?r.jsx(Ln,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Xo,{className:"h-4 w-4 mr-1"}),l(c?"Installing…":"Install")]}):r.jsx(U,{asChild:!0,size:"sm",variant:"default",className:"flex-1",children:r.jsxs("a",{href:ht().upgradeUrl,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(rT,{className:"h-4 w-4 mr-1"}),l("Upgrade to Pro")]})})}const lx="__dummy__",sM=l("Don't forget to confirm your subscription");function aM(){var x,N,S,k,_;const e=Ze(),{data:t,isLoading:n}=we({queryKey:["settings"],queryFn:()=>Q("/settings")}),{data:s}=we({queryKey:["email-templates-list"],queryFn:()=>Q("/settings/email-templates-list")}),[a,i]=f.useState({}),[o,c]=f.useState(!1);f.useEffect(()=>{var C,R,T,O;t!=null&&t.data&&!o&&(i({reminder_enabled:(C=t.data.reminder_enabled)!=null?C:0,reminder_delay:(R=t.data.reminder_delay)!=null?R:24,reminder_subject:(T=t.data.reminder_subject)!=null?T:"",reminder_template:(O=t.data.reminder_template)!=null?O:"",token_expiry_hours:t.data.token_expiry_hours}),c(!0))},[t,o]);const d=Ee({mutationFn:()=>Q("/settings",{method:"PUT",body:JSON.stringify(a)}),onSuccess:()=>{G.success(l("Reminder settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:C=>{G.error(C.message||l("Failed to save reminder settings."))}}),u=Ee({mutationFn:()=>Q("/addons/reminder/regenerate-template",{method:"POST"}),onSuccess:C=>{if(!C.success||!C.templateId){G.error(C.message||l("Could not regenerate the default template."));return}G.success(C.message),i(R=>({...R,reminder_template:`custom_${C.templateId}`})),e.invalidateQueries({queryKey:["email-templates-list"]})},onError:C=>{G.error(C.message||l("Could not regenerate the default template."))}});function h(C,R){i(T=>({...T,[C]:R}))}const m=(x=s==null?void 0:s.data)!=null?x:[],[y,v]=f.useState(""),[w,g]=f.useState(lx),{data:j}=we({queryKey:["reminder-recent-unconfirmed"],queryFn:()=>Q("/addons/reminder/recent-unconfirmed")}),b=Ee({mutationFn:()=>Q("/addons/reminder/send-test",{method:"POST",body:JSON.stringify({recipient:y,optin_id:w===lx?null:Number(w)})}),onSuccess:C=>{C.success?G.success(C.message):G.error(C.message||l("Could not send the test reminder."))},onError:C=>{G.error(C.message||l("Could not send the test reminder."))}}),p=(N=j==null?void 0:j.data)!=null?N:[];return r.jsxs(r.Fragment,{children:[r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Reminder behaviour")}),r.jsx(Re,{children:l("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(ee,{className:"space-y-5",children:n?r.jsx(ie,{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(H,{className:"text-sm font-medium",children:l("Send reminder emails")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Master switch. When off the cron runs but skips every pending opt-in. When on the fields below take effect.")})]}),r.jsx(Et,{checked:!!a.reminder_enabled,onCheckedChange:C=>h("reminder_enabled",C?1:0)})]}),r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"reminder-delay",children:l("Delay before reminder (hours)")}),r.jsx(Pe,{id:"reminder-delay",type:"number",min:1,className:"mt-1.5",value:(S=a.reminder_delay)!=null?S:24,onChange:C=>h("reminder_delay",Number(C.target.value))}),a.reminder_delay!==void 0&&a.token_expiry_hours!==void 0&&a.reminder_delay>=a.token_expiry_hours&&r.jsx("p",{className:"text-[11px] text-destructive mt-1.5",children:re(l("Delay is ≥ confirmation-link expiry (%dh) — the reminder may arrive after the link has already expired."),a.token_expiry_hours)})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"reminder-subject",children:l("Subject line")}),r.jsx(Pe,{id:"reminder-subject",className:"mt-1.5",placeholder:sM,value:(k=a.reminder_subject)!=null?k:"",onChange:C=>h("reminder_subject",C.target.value)})]})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"reminder-template",children:l("Email template")}),r.jsxs(ye,{value:(_=a.reminder_template)!=null?_:"",onValueChange:C=>h("reminder_template",C),children:[r.jsx(xe,{id:"reminder-template",className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select a template")})}),r.jsx(ge,{children:m.length===0?r.jsx(L,{value:"__empty__",disabled:!0,children:l("No templates available — click Regenerate below.")}):m.map(C=>r.jsx(L,{value:String(C.id),children:C.title},C.id))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Pick any custom template from the Email Designer. The")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",l("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(U,{onClick:()=>d.mutate(),disabled:d.isPending,children:[d.isPending?r.jsx(Ln,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(da,{className:"h-4 w-4 mr-1.5"}),l("Save reminder settings")]}),r.jsxs(U,{variant:"outline",onClick:()=>u.mutate(),disabled:u.isPending,title:l("Re-create the default reminder template in the Email Designer. Useful if you deleted it by accident."),children:[u.isPending?r.jsx(Ln,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(eT,{className:"h-4 w-4 mr-1.5"}),l("Regenerate default template")]})]})]})})]}),r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Send test reminder")}),r.jsx(Re,{children:l("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(ee,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"test-recipient",children:l("Recipient")}),r.jsx(Pe,{id:"test-recipient",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:y,onChange:C=>v(C.target.value)}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("The test mail is sent here, not to the opt-in's real email address.")})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"test-optin",children:l("Use opt-in data for placeholders")}),r.jsxs(ye,{value:w,onValueChange:C=>g(C),children:[r.jsx(xe,{id:"test-optin",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:lx,children:l("Dummy data (no real record)")}),p.map(C=>r.jsxs(L,{value:String(C.id),children:["#",C.id," — ",C.email," (",C.created_at,")"]},C.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("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(U,{onClick:()=>b.mutate(),disabled:b.isPending||!y,variant:"secondary",children:[b.isPending?r.jsx(Ln,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(nT,{className:"h-4 w-4 mr-1.5"}),l("Send test reminder")]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground",children:[l("The subject is prefixed with")," ",r.jsx("code",{children:"[TEST]"})," ",l("so it's obvious in your inbox.")]})]})]})]})]})}const iM=l("The email domain does not appear to accept emails. Please check your email address.");function oM(){var u,h;const e=Ze(),{data:t,isLoading:n}=we({queryKey:["settings"],queryFn:()=>Q("/settings")}),[s,a]=f.useState({}),[i,o]=f.useState(!1);f.useEffect(()=>{var m,y;t!=null&&t.data&&!i&&(a({mx_validation_behavior:(m=t.data.mx_validation_behavior)!=null?m:"silent",mx_validation_message:(y=t.data.mx_validation_message)!=null?y:""}),o(!0))},[t,i]);const c=Ee({mutationFn:()=>Q("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{G.success(l("MX validation settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:m=>{G.error(m.message||l("Failed to save MX validation settings."))}});function d(m,y){a(v=>({...v,[m]:y}))}return r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("MX validation behaviour")}),r.jsx(Re,{children:l("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(ee,{className:"space-y-5",children:n?r.jsx(ie,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"mx-behavior",children:l("Validation behaviour")}),r.jsxs(ye,{value:(u=s.mx_validation_behavior)!=null?u:"silent",onValueChange:m=>d("mx_validation_behavior",m),children:[r.jsx(xe,{id:"mx-behavior",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"silent",children:l("Silent rejection — drop the opt-in without telling the user")}),r.jsx(L,{value:"block",children:l("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:l("Silent")})," ",l("looks like a successful submission to the user but no record is created — useful for spam suppression.")," ",r.jsx("strong",{children:l("Block")})," ",l("is better UX for legit users with typos (e.g.")," ",r.jsx("code",{children:"gmial.com"}),")."]})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"mx-message",children:l("Custom error message")}),r.jsx(Pe,{id:"mx-message",className:"mt-1.5",placeholder:iM,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:[l("Only shown when behaviour is set to")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("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(kt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("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(U,{onClick:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?r.jsx(Ln,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(da,{className:"h-4 w-4 mr-1.5"}),l("Save MX settings")]})})]})})]})}const lM=l("This email domain is not allowed. Please use a different email address."),cM=`tempmail.com | |
| 471 | 497 | disposable-email.com |
| 472 | -10minutemail.com`;function B3(){var h,m,v,g;const e=Xe(),{data:t,isLoading:n}=Ce({queryKey:["settings"],queryFn:()=>Z("/settings")}),[s,o]=f.useState({}),[a,i]=f.useState(!1);f.useEffect(()=>{var j,b,w;t!=null&&t.data&&!a&&(o({domain_blocklist:(j=t.data.domain_blocklist)!=null?j:"",domain_blocklist_behavior:(b=t.data.domain_blocklist_behavior)!=null?b:"silent",domain_blocklist_message:(w=t.data.domain_blocklist_message)!=null?w:""}),i(!0))},[t,a]);const c=Te({mutationFn:()=>Z("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{q.success(l("Domain blocklist settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:j=>{q.error(j.message||l("Failed to save domain blocklist settings."))}});function d(j,b){o(w=>({...w,[j]:b}))}const u=((h=s.domain_blocklist)!=null?h:"").split(` | |
| 473 | -`).map(j=>j.trim()).filter(j=>j!=="").length;return r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Domain blocklist")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"domain-blocklist",children:le(l(u===1?"Blocked domains (%d entry)":"Blocked domains (%d entries)"),u)}),r.jsx(Tr,{id:"domain-blocklist",className:"mt-1.5 font-mono text-xs",rows:8,placeholder:U3,value:(m=s.domain_blocklist)!=null?m:"",onChange:j=>d("domain_blocklist",j.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("One domain per line. No")," ",r.jsx("code",{children:"@"}),l(", no protocol, no wildcards. Submissions to")," ",r.jsx("code",{children:"user@<domain>"})," ",l("are rejected on exact match.")]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"domain-behavior",children:l("Validation behaviour")}),r.jsxs(je,{value:(v=s.domain_blocklist_behavior)!=null?v:"silent",onValueChange:j=>d("domain_blocklist_behavior",j),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:l("Silent rejection — drop the opt-in without telling the user")}),r.jsx(z,{value:"block",children:l("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:l("Silent")})," ",l("is the typical choice for spam suppression — bots get a fake success, real users see nothing.")," ",r.jsx("strong",{children:l("Block")})," ",l("is appropriate if your blocklist also blocks legit-typo domains the user might want to correct.")]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"domain-message",children:l("Custom error message")}),r.jsx(Re,{id:"domain-message",className:"mt-1.5",placeholder:z3,value:(g=s.domain_blocklist_message)!=null?g:"",onChange:j=>d("domain_blocklist_message",j.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown when behaviour is set to")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("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:l("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:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?r.jsx(Pn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(so,{className:"h-4 w-4 mr-1.5"}),l("Save blocklist")]})})]})})]})}const Tp={all:{title:l("All forms (defaults apply everywhere)"),hint:l("Every form runs Unique Email with the default settings below. Use the conditions list to override single forms only.")},selected:{title:l("Only selected forms (opt-in list)"),hint:l("Unique Email runs ONLY for forms in the conditions list. Forms not listed are unaffected.")},all_except:{title:l("All forms EXCEPT selected (opt-out list)"),hint:l("Every form runs Unique Email EXCEPT those in the conditions list.")}};function V3(e,t,n){return t==="form"?e==="all"?{headline:l("Per-form check on every form"),detail:l("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:le(l("Per-form check on the %d listed form%s"),n,n===1?"":"s"),detail:l("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:le(l("Per-form check on every form EXCEPT the %d listed"),n),detail:l("Every form runs a per-form duplicate check on itself, except the excluded forms (which skip the check entirely).")}:e==="all"?{headline:l("Sitewide check on every form"),detail:l("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:l("Sitewide — but the list is empty"),detail:l("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:le(l("Sitewide pool over the %d listed form%s"),n,n===1?"":"s"),detail:le(l("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:l("Sitewide check on every form"),detail:l("No exclusions are configured, so this behaves like Mode = All. Pool is the entire opt-in database.")}:{headline:le(l("Sitewide pool over every form EXCEPT the %d excluded"),n),detail:le(l("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 H3={enabled:!0,mode:"all",defaults:{scope:"confirmed",behavior:"block",match_scope:"form",message:"",redirect_page:0},conditions:[]};function W3(){const e=Xe(),{data:t,isLoading:n}=Ce({queryKey:["addon-settings","unique-email"],queryFn:()=>Z("/addons/unique-email/settings")}),{data:s}=Ce({queryKey:["forms"],queryFn:()=>Z("/forms")}),[o,a]=f.useState(H3),[i,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var x,N,S,k,E,C,R,T,A,M,B,O;if(!t||i)return;const p=(x=t.data)!=null?x:t;a({enabled:p.enabled!==!1,mode:(N=p.mode)!=null?N:"all",defaults:{scope:(k=(S=p.defaults)==null?void 0:S.scope)!=null?k:"confirmed",behavior:(C=(E=p.defaults)==null?void 0:E.behavior)!=null?C:"block",match_scope:(T=(R=p.defaults)==null?void 0:R.match_scope)!=null?T:"form",message:(M=(A=p.defaults)==null?void 0:A.message)!=null?M:"",redirect_page:Number((O=(B=p.defaults)==null?void 0:B.redirect_page)!=null?O:0)},conditions:Array.isArray(p.conditions)?p.conditions:[]}),c(!0)},[t,i]);const h=f.useMemo(()=>{var N;const p=(N=s==null?void 0:s.data)!=null?N:{},x=[];for(const[S,k]of Object.entries(p))if(k)for(const E of k.forms){const C=Number(typeof E.id=="string"?E.id.split("_")[0]:E.id);C&&x.push({key:`${S}_${C}`,integration:S,integrationName:k.name,formId:C,title:E.title||`#${C}`})}return x},[s]),m=(p,x)=>{const N=h.find(S=>S.integration===p&&S.formId===x);return N?`${N.integrationName} / ${N.title}`:`${p} / #${x}`},v=Te({mutationFn:()=>Z("/addons/unique-email/settings",{method:"POST",body:JSON.stringify(o)}),onSuccess:()=>{q.success(l("Unique Email settings saved.")),e.invalidateQueries({queryKey:["addon-settings","unique-email"]})},onError:p=>{q.error(p.message||l("Failed to save Unique Email settings."))}});function g(p,x){a(N=>({...N,defaults:{...N.defaults,[p]:x}}))}function j(){if(!d)return;const p=h.find(x=>x.key===d);if(p){if(o.conditions.some(x=>x.integration===p.integration&&x.form_id===p.formId)){q.warning(l("This form is already in the list."));return}a(x=>({...x,conditions:[...x.conditions,{integration:p.integration,form_id:p.formId,scope:null,behavior:null,match_scope:null,message:null,redirect_page:null}]})),u("")}}function b(p){a(x=>({...x,conditions:x.conditions.filter((N,S)=>S!==p)}))}function w(p,x,N){a(S=>({...S,conditions:S.conditions.map((k,E)=>E===p?{...k,[x]:N}:k)}))}if(n)return r.jsx(oe,{className:"h-96 w-full"});const y=V3(o.mode,o.defaults.match_scope,o.conditions.length);return r.jsxs(r.Fragment,{children:[r.jsxs(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("How Unique Email applies")}),r.jsx(Pe,{children:l("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(Tp).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:()=>a(x=>({...x,mode:p})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:Tp[p].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:Tp[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:l("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:y.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:y.detail})]})]})]}),r.jsxs(ee,{className:"mt-6",children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Default settings")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"ue-scope",children:l("Scope")}),r.jsxs(je,{value:o.defaults.scope,onValueChange:p=>g("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:l("Confirmed opt-ins only")}),r.jsx(z,{value:"all",children:l("All opt-ins (incl. unconfirmed)")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("Confirmed")}),l(": users can re-submit until they confirm once.")," ",r.jsx("strong",{children:l("All")}),l(': stricter — any prior attempt blocks. Use "all" to suppress double-submit bots.')]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"ue-behavior",children:l("Behavior on duplicate")}),r.jsxs(je,{value:o.defaults.behavior,onValueChange:p=>g("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:l("Silent rejection")}),r.jsx(z,{value:"block",children:l("Show error message")}),r.jsx(z,{value:"redirect",children:l("Redirect to page")})]})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{children:l("Match scope")}),r.jsx("div",{className:"grid gap-2 sm:grid-cols-2 mt-1.5",children:[{value:"form",title:l("Per form"),hint:l("The same address may opt into Form A AND Form B.")},{value:"sitewide",title:l("Sitewide"),hint:l("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:()=>g("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(X,{htmlFor:"ue-message",children:l("Custom error message")}),r.jsx(Re,{id:"ue-message",className:"mt-1.5",placeholder:l("This email address has already been used for this form."),value:o.defaults.message,onChange:p=>g("message",p.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown for")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("Leave empty for the default text.")]})]})]})]}),r.jsxs(ee,{className:"mt-6",children:[r.jsxs(ce,{children:[r.jsx(ue,{children:o.mode==="selected"?l("Forms to apply Unique Email to"):o.mode==="all_except"?l("Forms to exclude from Unique Email"):l("Per-form overrides")}),r.jsxs(Pe,{children:[o.mode==="all"&&o.defaults.match_scope==="form"&&l("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"&&l("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"&&l("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"&&l("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"&&l("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"&&l("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:l("Select a form to add…")})}),r.jsx(ye,{children:h.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:l("No forms detected")}):h.map(p=>r.jsxs(z,{value:p.key,children:[p.integrationName," / ",p.title]},p.key))})]}),r.jsxs(H,{onClick:j,disabled:!d,children:[r.jsx(la,{className:"h-4 w-4 mr-1.5"}),l("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:[l("No forms in the list yet.")," ",o.mode==="selected"&&o.defaults.match_scope==="form"&&l("Unique Email is currently inactive on every form — add at least one above."),o.mode==="selected"&&o.defaults.match_scope==="sitewide"&&l("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"&&l("Unique Email is active on every form with the defaults above."),o.mode==="all"&&o.defaults.match_scope==="form"&&l("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"&&l("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,x)=>{var N,S,k,E;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(x),title:l("Remove from list"),children:r.jsx(gn,{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(X,{className:"text-xs",children:l("Override scope")}),r.jsxs(je,{value:(N=p.scope)!=null?N:"__inherit",onValueChange:C=>w(x,"scope",C==="__inherit"?null:C),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:le(l("Inherit (%s)"),o.defaults.scope)}),r.jsx(z,{value:"confirmed",children:l("Confirmed")}),r.jsx(z,{value:"all",children:l("All")})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override behavior")}),r.jsxs(je,{value:(S=p.behavior)!=null?S:"__inherit",onValueChange:C=>w(x,"behavior",C==="__inherit"?null:C),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:le(l("Inherit (%s)"),o.defaults.behavior)}),r.jsx(z,{value:"silent",children:l("Silent")}),r.jsx(z,{value:"block",children:l("Block")}),r.jsx(z,{value:"redirect",children:l("Redirect")})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override match scope")}),r.jsxs(je,{value:(k=p.match_scope)!=null?k:"__inherit",onValueChange:C=>w(x,"match_scope",C==="__inherit"?null:C),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:le(l("Inherit (%s)"),o.defaults.match_scope)}),r.jsx(z,{value:"form",children:l("Per form")}),r.jsx(z,{value:"sitewide",children:l("Sitewide")})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override message")}),r.jsx(Re,{className:"mt-1 h-9 text-xs",placeholder:l("(inherit)"),value:(E=p.message)!=null?E:"",onChange:C=>w(x,"message",C.target.value===""?null:C.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:()=>v.mutate(),disabled:v.isPending,children:[v.isPending?r.jsx(Pn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(so,{className:"h-4 w-4 mr-1.5"}),l("Save Unique Email settings")]})})]})]})]})}const MN={equals:l("Equals"),not_equals:l("Not equals"),contains:l("Contains"),not_empty:l("Not empty"),empty:l("Empty")},q3=new Set(["not_empty","empty"]),K3={enabled:!0,forms:[]};function Q3(){return`rule_${Math.random().toString(36).slice(2,10)}`}function DN(){return{id:Q3(),field:"",operator:"equals",value:"",template:"",priority:10}}function G3(){var C;const e=Xe(),{data:t,isLoading:n}=Ce({queryKey:["addon-settings","conditional"],queryFn:()=>Z("/addons/conditional/settings")}),{data:s}=Ce({queryKey:["forms"],queryFn:()=>Z("/forms")}),{data:o}=Ce({queryKey:["email-templates-list"],queryFn:()=>Z("/settings/email-templates-list")}),[a,i]=f.useState(K3),[c,d]=f.useState(!1),[u,h]=f.useState("");f.useEffect(()=>{var T;if(!t||c)return;const R=(T=t.data)!=null?T:t;i({enabled:R.enabled!==!1,forms:Array.isArray(R.forms)?R.forms:[]}),d(!0)},[t,c]);const m=f.useMemo(()=>{var A;const R=(A=s==null?void 0:s.data)!=null?A:{},T=[];for(const[M,B]of Object.entries(R))if(B)for(const O of B.forms){const re=typeof O.id=="string"?O.id:String(O.id),D=Number(re.split("_")[0]);D&&T.push({key:`${M}_${re}`,integration:M,integrationName:B.name,formId:D,restId:re,title:O.title||`#${D}`})}return T},[s]),v=(R,T)=>{const A=m.find(M=>M.integration===R&&M.formId===T);return A?A.restId:String(T)},g=(R,T)=>{const A=m.find(M=>M.integration===R&&M.formId===T);return A?`${A.integrationName} / ${A.title}`:`${R} / #${T}`},j=i2({queries:a.forms.map(R=>{const T=v(R.integration,R.form_id);return{queryKey:["form-fields",R.integration,T],queryFn:()=>Z(`/forms/${R.integration}/${T}/fields`),staleTime:5*60*1e3,retry:!1}})}),b=(R,T)=>{var B;const A=a.forms.findIndex(O=>O.integration===R&&O.form_id===T);if(A===-1)return[];const M=j[A];return M!=null&&M.data?(B=M.data.data)!=null?B:[]:[]},w=Te({mutationFn:()=>Z("/addons/conditional/settings",{method:"POST",body:JSON.stringify(a)}),onSuccess:()=>{q.success(l("Conditional Templates settings saved.")),e.invalidateQueries({queryKey:["addon-settings","conditional"]})},onError:R=>{q.error(R.message||l("Failed to save Conditional Templates settings."))}});function y(){if(!u)return;const R=m.find(T=>T.key===u);if(R){if(a.forms.some(T=>T.integration===R.integration&&T.form_id===R.formId)){q.warning(l("This form is already in the list."));return}i(T=>({...T,forms:[...T.forms,{integration:R.integration,form_id:R.formId,fallback_template:"blank",rules:[DN()]}]})),h("")}}function p(R){i(T=>({...T,forms:T.forms.filter((A,M)=>M!==R)}))}function x(R,T,A){i(M=>({...M,forms:M.forms.map((B,O)=>O===R?{...B,[T]:A}:B)}))}function N(R){i(T=>({...T,forms:T.forms.map((A,M)=>M===R?{...A,rules:[...A.rules,DN()]}:A)}))}function S(R,T){i(A=>({...A,forms:A.forms.map((M,B)=>B===R?{...M,rules:M.rules.filter((O,re)=>re!==T)}:M)}))}function k(R,T,A,M){i(B=>({...B,forms:B.forms.map((O,re)=>re===R?{...O,rules:O.rules.map((D,te)=>te===T?{...D,[A]:M}:D)}:O)}))}if(n)return r.jsx(oe,{className:"h-96 w-full"});const E=(C=o==null?void 0:o.data)!=null?C:[];return r.jsxs(r.Fragment,{children:[r.jsx(ee,{className:"mt-6",children:r.jsxs(ce,{children:[r.jsx(ue,{children:l("How Conditional Templates work")}),r.jsx(Pe,{children:l("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(ee,{className:"mt-6",children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Forms with conditional templates")}),r.jsx(Pe,{children:l("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:l("Select a form to add…")})}),r.jsx(ye,{children:m.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:l("No forms detected")}):m.map(R=>r.jsxs(z,{value:R.key,children:[R.integrationName," / ",R.title]},R.key))})]}),r.jsxs(H,{onClick:y,disabled:!u,children:[r.jsx(la,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),a.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:l("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:a.forms.map((R,T)=>{const A=b(R.integration,R.form_id),M=j[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:g(R.integration,R.form_id)}),r.jsx(H,{variant:"ghost",size:"sm",onClick:()=>p(T),title:l("Remove form from list"),children:r.jsx(gn,{className:"h-4 w-4"})})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Fallback template")}),r.jsxs(je,{value:R.fallback_template||"blank",onValueChange:B=>x(T,"fallback_template",B),children:[r.jsx(ve,{className:"mt-1 h-9 text-xs",children:r.jsx(we,{})}),r.jsx(ye,{children:E.length===0?r.jsx(z,{value:"blank",children:l("Default (blank)")}):E.map(B=>r.jsx(z,{value:B.id,children:B.title},B.id))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Used when no rule matches the submitted data.")})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Rules")}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5 mb-2",children:l("Lower priority runs first. First match wins.")}),M!=null&&M.isLoading?r.jsx(oe,{className:"h-20 w-full"}):R.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:l("No rules — only the fallback template applies.")})]}):r.jsx("div",{className:"space-y-2",children:R.rules.map((B,O)=>{const re=!q3.has(B.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(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Field")}),r.jsxs(je,{value:B.field||"__none",onValueChange:D=>k(T,O,"field",D==="__none"?"":D),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:l("Choose a field")}),A.length===0?r.jsx(z,{value:"__nofields",disabled:!0,children:l("(no fields detected)")}):A.map(D=>r.jsx(z,{value:D.name,children:D.label||D.name},D.name))]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Operator")}),r.jsxs(je,{value:B.operator,onValueChange:D=>k(T,O,"operator",D),children:[r.jsx(ve,{className:"mt-1 h-8 text-xs",children:r.jsx(we,{})}),r.jsx(ye,{children:Object.keys(MN).map(D=>r.jsx(z,{value:D,children:MN[D]},D))})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Value")}),r.jsx(Re,{className:"mt-1 h-8 text-xs",placeholder:l(re?"e.g. DE":"(not used)"),value:B.value,disabled:!re,onChange:D=>k(T,O,"value",D.target.value)})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Template")}),r.jsxs(je,{value:B.template||"__none",onValueChange:D=>k(T,O,"template",D==="__none"?"":D),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:l("Choose a template")}),E.map(D=>r.jsx(z,{value:D.id,children:D.title},D.id))]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Prio")}),r.jsx(Re,{type:"number",min:1,max:99,className:"mt-1 h-8 text-xs",value:B.priority,onChange:D=>k(T,O,"priority",Math.max(1,Number(D.target.value)||1))})]}),r.jsx(H,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>S(T,O),title:l("Remove rule"),children:r.jsx(gn,{className:"h-3.5 w-3.5"})})]},B.id)})}),r.jsxs(H,{variant:"outline",size:"sm",className:"mt-2",onClick:()=>N(T),children:[r.jsx(la,{className:"h-3.5 w-3.5 mr-1.5"}),l("Add rule")]})]})]},`${R.integration}_${R.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(H,{onClick:()=>w.mutate(),disabled:w.isPending,children:[w.isPending?r.jsx(Pn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(so,{className:"h-4 w-4 mr-1.5"}),l("Save Conditional Templates settings")]})})]})]})]})}const FN={",":l("Comma — , (RFC 4180 default)"),";":l("Semicolon — ; (German/French Excel)"),"\\t":l("Tab (TSV-style)"),"|":l("Pipe — |")},X3={all:l("Every record — confirmed, unconfirmed, and opted-out."),confirmed:l("Active subscribers only (confirmed AND not opted-out)."),unconfirmed:l("Users who never clicked the confirmation link."),opted_out:l("Records with a recorded opt-out (unsubscribed).")},or="__all";function LN(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 Y3(){var se,Ne,G,ge;const[e,t]=f.useState("csv"),[n,s]=f.useState(","),[o,a]=f.useState("all"),[i,c]=f.useState(""),[d,u]=f.useState(!1),[h,m]=f.useState("all"),[v,g]=f.useState(""),[j,b]=f.useState(""),[w,y]=f.useState(or),[p,x]=f.useState(or),[N,S]=f.useState(!1),k=Xe(),E=f.useRef(null),{data:C}=Ce({queryKey:["categories"],queryFn:()=>Z("/categories")}),{data:R}=Ce({queryKey:["forms"],queryFn:()=>Z("/forms")}),T=f.useMemo(()=>{var he;const L=(he=R==null?void 0:R.data)!=null?he:{},me=[];for(const[Ae,He]of Object.entries(L))if(He)for(const ut of He.forms){const _t=Number(typeof ut.id=="string"?ut.id.split("_")[0]:ut.id);_t&&me.push({id:_t,label:`${He.name} / ${ut.title||`#${_t}`}`})}const U=new Set;return me.filter(Ae=>U.has(Ae.id)?!1:(U.add(Ae.id),!0))},[R]),A=f.useMemo(()=>{var L;return((L=C==null?void 0:C.data)!=null?L:[]).filter(me=>Number(me.id)>0)},[C]),M=o,B=o==="email"?i.trim():"",O=h,re=w===or?"":w,D=p===or?"":p,te=Ce({queryKey:["consent-export-stream-info",M,B,O,re,D],queryFn:()=>{const L=new URLSearchParams({scope:M,email:B,status:O,form_id:re,category_id:D});return Z(`/consent-export/stream-info?${L.toString()}`)}}),I=(Ne=(se=te.data)==null?void 0:se.data)!=null?Ne:{exported_count:0,run_count:0,last_run_at:0},F=Ce({queryKey:["consent-export-history"],queryFn:()=>Z("/consent-export/history?limit=20")}),J=(ge=(G=F.data)==null?void 0:G.data)!=null?ge:[],xe=Te({mutationFn:()=>Z("/consent-export/history",{method:"DELETE"}),onSuccess:()=>{k.invalidateQueries({queryKey:["consent-export-history"]}),k.invalidateQueries({queryKey:["consent-export-stream-info"]}),q.success(l("Export history cleared."))},onError:L=>{q.error(L.message||l("Failed to clear history."))}}),P=Te({mutationFn:L=>Z(`/consent-export/history/${L}`,{method:"DELETE"}),onSuccess:()=>{k.invalidateQueries({queryKey:["consent-export-history"]}),k.invalidateQueries({queryKey:["consent-export-stream-info"]}),q.success(l("Run removed from history."))},onError:L=>{q.error(L.message||l("Failed to delete run."))}});function $(L){var me;if(a(L.scope==="email"?"email":"all"),c((me=L.email)!=null?me:""),m(["all","confirmed","unconfirmed","opted_out"].includes(L.status)?L.status:"all"),y(L.form_id>0?String(L.form_id):or),x(L.category_id>0?String(L.category_id):or),t(L.format==="json"?"json":"csv"),u(L.include_form_data===1),L.format==="csv"&&L.delimiter){const U=L.delimiter===" "?"\\t":L.delimiter;s(U)}q.info(l("Filters restored from this run."))}function W(){var Ae;if(o==="email"&&i.trim()===""){q.error(l("Enter an email address before exporting."));return}if(v!==""&&j!==""&&v>j){q.error(l("The 'from' date is after the 'to' date."));return}const L=$t(),me=new URLSearchParams({action:"doi_export_consent",_wpnonce:(Ae=L.consentExportNonce)!=null?Ae:"",format:e,scope:o});o==="email"&&me.set("email",i.trim()),d&&me.set("include_formdata","1"),e==="csv"&&n!==","&&me.set("delimiter",n),h!=="all"&&me.set("status",h),v!==""&&me.set("date_from",v),j!==""&&me.set("date_to",j),w!==or&&me.set("form_id",w),p!==or&&me.set("category_id",p),N&&me.set("since_last_export","1");const he=`${L.adminUrl.replace(/\/+$/,"")}/admin-ajax.php?${me.toString()}`;window.open(he,"_blank","noopener,noreferrer"),setTimeout(()=>{k.invalidateQueries({queryKey:["consent-export-history"]}),k.invalidateQueries({queryKey:["consent-export-stream-info"]})},1500),setTimeout(()=>{k.invalidateQueries({queryKey:["consent-export-history"]}),k.invalidateQueries({queryKey:["consent-export-stream-info"]})},6e3)}return r.jsxs(ee,{className:"mt-6",children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Export consent records (GDPR)")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"export-format",children:l("Format")}),r.jsxs(je,{value:e,onValueChange:L=>t(L),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(OE,{className:"h-4 w-4"}),l("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(AE,{className:"h-4 w-4"}),l("JSON (pretty-printed)")]})})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-scope",children:l("Scope")}),r.jsxs(je,{value:o,onValueChange:L=>a(L),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:l("All records")}),r.jsx(z,{value:"email",children:l("By email address")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("By email")}),l(": useful for GDPR subject-access requests — exports every record tied to one address.")]})]})]}),e==="csv"&&r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-delimiter",children:l("CSV separator")}),r.jsxs(je,{value:n,onValueChange:L=>s(L),children:[r.jsx(ve,{id:"export-delimiter",className:"mt-1.5",children:r.jsx(we,{})}),r.jsx(ye,{children:Object.keys(FN).map(L=>r.jsx(z,{value:L,children:FN[L]},L))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Excel honours the OS-locale default — German installs expect")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:";"})," ",l("because")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:","})," ",l("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(X,{htmlFor:"export-email",children:l("Email address")}),r.jsx(Re,{id:"export-email",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:i,onChange:L=>c(L.target.value)})]}),r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsx("div",{className:"text-sm font-medium",children:l("Filters")}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-status",children:l("Status")}),r.jsxs(je,{value:h,onValueChange:L=>m(L),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:l("All statuses")}),r.jsx(z,{value:"confirmed",children:l("Confirmed (active subscribers)")}),r.jsx(z,{value:"unconfirmed",children:l("Unconfirmed")}),r.jsx(z,{value:"opted_out",children:l("Opted out")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:X3[h]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-date-from",children:l("Signed up from")}),r.jsx(Re,{id:"export-date-from",type:"date",className:"mt-1.5",value:v,onChange:L=>g(L.target.value),max:j||void 0})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-date-to",children:l("Signed up until")}),r.jsx(Re,{id:"export-date-to",type:"date",className:"mt-1.5",value:j,onChange:L=>b(L.target.value),min:v||void 0})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground -mt-2",children:l("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(X,{htmlFor:"export-form",children:l("Form")}),r.jsxs(je,{value:w,onValueChange:y,children:[r.jsx(ve,{id:"export-form",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:or,children:l("All forms")}),T.length===0?r.jsx(z,{value:"__nofields",disabled:!0,children:l("(no forms detected)")}):T.map(L=>r.jsx(z,{value:String(L.id),children:L.label},L.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("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(X,{htmlFor:"export-category",children:l("Category")}),r.jsxs(je,{value:p,onValueChange:x,children:[r.jsx(ve,{id:"export-category",className:"mt-1.5",children:r.jsx(we,{})}),r.jsxs(ye,{children:[r.jsx(z,{value:or,children:l("All categories")}),A.length===0?r.jsx(z,{value:"__nocat",disabled:!0,children:l("(no categories defined)")}):A.map(L=>r.jsxs(z,{value:String(L.id),children:[L.name,typeof L.optin_count=="number"&&r.jsxs("span",{className:"text-muted-foreground",children:[" ","(",L.optin_count,")"]})]},L.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("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(cl,{id:"export-since-last",checked:N,onCheckedChange:L=>S(L===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1 flex-1",children:[r.jsx(X,{htmlFor:"export-since-last",className:"cursor-pointer text-sm font-medium",children:l("Only records not yet exported in this stream")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("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:te.isLoading?l("Loading stream info…"):I.run_count===0?r.jsxs("span",{children:[r.jsx("strong",{children:l("No prior exports")})," ",l("for this filter combination. Toggle is a no-op until you do your first export.")]}):r.jsxs("span",{children:[r.jsx("strong",{children:I.exported_count})," ",l("record(s) previously exported in this stream across")," ",r.jsx("strong",{children:I.run_count})," ",l("run(s). Last run:")," ",LN(I.last_run_at),"."]})})]})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-4",children:[r.jsx(cl,{id:"export-include-formdata",checked:d,onCheckedChange:L=>u(L===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(X,{htmlFor:"export-include-formdata",className:"cursor-pointer text-sm font-medium",children:l("Include form data (submitted field values)")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("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:W,children:[r.jsx(Bi,{className:"h-4 w-4 mr-1.5"}),l("Export")]}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("The download starts in a new tab. Sensitive data — store the file in line with your retention policy.")})]})]}),r.jsxs(ce,{className:"border-t",children:[r.jsxs(ue,{className:"flex items-center gap-2 text-base",children:[r.jsx(DE,{className:"h-4 w-4"}),l("Recent exports")]}),r.jsxs(Pe,{children:[l("Audit log of past exports. Each row records who ran it, when, from where, and which records went into the file.")," ",l("Click")," ",r.jsx(X0,{className:"inline h-3 w-3"})," ",l("to restore that run's filter combination, or")," ",r.jsx(gn,{className:"inline h-3 w-3"})," ",l("to remove a single accidental run from the audit history.")]})]}),r.jsxs(ne,{children:[F.isLoading?r.jsx(oe,{className:"h-32 w-full"}):J.length===0?r.jsx("p",{className:"text-sm text-muted-foreground italic",children:l("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:l("When")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("User")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("IP")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("Stream")}),r.jsx("th",{className:"text-right p-2 font-medium",children:l("Count")}),r.jsx("th",{className:"p-2"})]})}),r.jsx("tbody",{children:J.map(L=>{const me=[L.scope==="email"?`email:${L.email}`:L.scope,L.status,L.form_id>0?`form#${L.form_id}`:null,L.category_id>0?`cat#${L.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:LN(L.started_at)}),r.jsx("td",{className:"p-2",children:L.user_login||"—"}),r.jsx("td",{className:"p-2 font-mono text-[10px]",children:L.ip_address||"—"}),r.jsx("td",{className:"p-2",children:me}),r.jsx("td",{className:"p-2 text-right tabular-nums",children:L.count}),r.jsx("td",{className:"p-2",children:r.jsxs("div",{className:"flex gap-1 justify-end",children:[r.jsx("button",{type:"button",onClick:()=>$(L),title:l("Restore this run's filters"),className:"p-1 rounded hover:bg-accent",children:r.jsx(X0,{className:"h-3.5 w-3.5"})}),r.jsx("button",{type:"button",onClick:()=>{window.confirm(l("Delete this run from the audit history? The originally exported records remain in the database — this only removes the audit row."))&&P.mutate(L.id)},title:l("Remove this run from the audit history"),className:"p-1 rounded hover:bg-accent text-destructive",children:r.jsx(gn,{className:"h-3.5 w-3.5"})})]})})]},L.id)})})]})}),r.jsxs("div",{className:"flex items-center gap-2 pt-4",children:[r.jsxs(H,{variant:"outline",size:"sm",onClick:()=>k.invalidateQueries({queryKey:["consent-export-history"]}),children:[r.jsx(ud,{className:"h-3.5 w-3.5 mr-1.5"}),l("Refresh")]}),J.length>0&&r.jsxs(H,{variant:"outline",size:"sm",className:"text-destructive",onClick:()=>{var L;return(L=E.current)==null?void 0:L.showModal()},children:[r.jsx(gn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Clear all history")]})]})]}),r.jsxs("dialog",{ref:E,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:l("Clear export history?")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l('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 L;return(L=E.current)==null?void 0:L.close()},children:l("Cancel")}),r.jsx(H,{size:"sm",className:"text-destructive border-destructive",variant:"outline",onClick:()=>{var L;(L=E.current)==null||L.close(),xe.mutate()},children:l("Yes, clear everything")})]})]})]})}function Z3(){const{id:e}=Gc();return e?r.jsx(co,{addonId:e,featureName:e,children:r.jsx(J3,{id:e})}):null}function J3({id:e}){var h;const t=Xe(),{data:n}=Ce({queryKey:["addons-catalog"],queryFn:()=>Z("/addons/catalog")}),{data:s,isLoading:o}=Ce({queryKey:["addon-settings",e],queryFn:()=>Z(`/addons/${e}/settings`)}),[a,i]=f.useState(!0);f.useEffect(()=>{s&&i(s.enabled)},[s]);const c=Te({mutationFn:m=>Z(`/addons/${e}/settings`,{method:"POST",body:JSON.stringify(m)}),onSuccess:m=>{q.success(m.enabled?l("Feature enabled."):l("Feature disabled.")),t.invalidateQueries({queryKey:["addon-settings",e]})},onError:m=>{q.error(m.message||l("Failed to save settings."))}}),d=n==null?void 0:n.entries.find(m=>m.id===e),u=m=>{i(m),c.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(ee,{children:[r.jsxs(ce,{children:[r.jsx(ue,{children:l("Feature toggle")}),r.jsx(Pe,{children:l("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(X,{htmlFor:"addon-enabled",className:"text-base",children:l("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, the addon's hooks no-op but the plugin stays installed and can be re-enabled in one click.")})]}),r.jsx(tn,{id:"addon-enabled",checked:a,onCheckedChange:u,disabled:c.isPending})]})})]}),e==="reminder"&&r.jsx(F3,{}),e==="mx-validator"&&r.jsx($3,{}),e==="domain-blocklist"&&r.jsx(B3,{}),e==="unique-email"&&r.jsx(W3,{}),e==="conditional"&&r.jsx(G3,{}),e==="consent-export"&&r.jsx(Y3,{})]})}const $N="doi-email-editor-root",eI="email-editor";function zN(){var h;const{id:e}=Gc(),t=qn(),n=f.useRef(null),[s,o]=f.useState(null),[a,i]=f.useState(!0),{data:c,isLoading:d}=Ce({queryKey:["addons-manifest"],queryFn:()=>Z("/addons")}),u=!d&&((h=c==null?void 0:c.addons)!=null?h:[]).some(m=>m.id===eI&&m.available);return f.useEffect(()=>{if(d)return;if(!u){i(!1),o(l("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,v=null,g=null,j=null;const b=()=>{var N;if(m)return!0;const w=window.doiMountEmailEditor;if(typeof w!="function")return!1;const y=n.current;if(!y)return!1;y.id=$N;const p=e&&e!=="new"?Number(e):0,x=(N=window.doiEmailEditorBootstrap)!=null?N:{restUrl:$t().restUrl+"email-templates",nonce:$t().nonce};return v=w($N,{templateId:p,restUrl:x.restUrl,nonce:x.nonce}),v&&(i(!1),o(null)),!!v};return b()||(g=setInterval(()=>{b()&&g&&(clearInterval(g),g=null)},100),j=setTimeout(()=>{g&&(clearInterval(g),g=null),!v&&!m&&(i(!1),o(l("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,g&&clearInterval(g),j&&clearTimeout(j),v)try{v.unmount()}catch(w){}}},[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(ad,{className:"h-3.5 w-3.5"}),l("Back to email templates")]})}),a&&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(zt,{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:l("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:l("Open Addons")})})]})]})}),r.jsx("div",{ref:n,className:"doi-editor-host"})]})}const Yd={info:{label:l("Info"),color:"secondary",icon:yt},warning:{label:l("Warning"),color:"default",icon:zt},error:{label:l("Error"),color:"destructive",icon:ld},critical:{label:l("Critical"),color:"destructive",icon:Gm}},tI={settings:Zm,cron:Qn,activation:Vi,ratelimit:Jm,api_error:YE,db_error:Ui,email:Gn,auth:GE,follow_up:zE};function nI(){var S,k,E,C,R,T,A,M,B;const[e,t]=f.useState("30"),[n,s]=f.useState("all"),[o,a]=f.useState("all"),[i,c]=f.useState(1),[d,u]=f.useState(null),h=15,m=O=>{t(O),c(1)},v=O=>{s(O),c(1)},g=O=>{a(O),c(1)},{data:j,isLoading:b}=Ce({queryKey:["audit-events",e,n,o,i],queryFn:()=>Z(`/audit/events?period=${e}&type=${n}&severity=${o}&page=${i}&per_page=${h}`)}),{data:w,isLoading:y}=Ce({queryKey:["audit-summary",e],queryFn:()=>Z(`/audit/summary?period=${e}`)}),p=(k=(S=j==null?void 0:j.data)==null?void 0:S.events)!=null?k:[],x=(C=(E=j==null?void 0:j.data)==null?void 0:E.pages)!=null?C:1,N=(R=w==null?void 0:w.data)!=null?R:{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:l("Audit Log")}),r.jsx("p",{className:"text-muted-foreground",children:l("System events and change log")})]}),r.jsx(uN,{value:e,onValueChange:m,children:r.jsxs(pp,{children:[r.jsx(ys,{value:"7",className:"text-xs",children:l("7 Days")}),r.jsx(ys,{value:"30",className:"text-xs",children:l("30 Days")}),r.jsx(ys,{value:"90",className:"text-xs",children:l("90 Days")})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsx(ue,{className:"text-xs text-muted-foreground",children:l("Total Events")})}),r.jsx(ne,{children:y?r.jsx(oe,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold",children:N.total})})]}),r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(zt,{className:"h-3 w-3 text-warning"}),l("Warnings")]})}),r.jsx(ne,{children:y?r.jsx(oe,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:N.warning})})]}),r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(ld,{className:"h-3 w-3 text-destructive"}),l("Errors")]})}),r.jsx(ne,{children:y?r.jsx(oe,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-destructive",children:N.error})})]}),r.jsxs(ee,{children:[r.jsx(ce,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Gm,{className:"h-3 w-3"}),l("Critical")]})}),r.jsx(ne,{children:y?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:v,children:[r.jsx(ve,{className:"h-8 w-[160px] text-xs",children:r.jsx(we,{placeholder:l("Event Type")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:l("All Types")}),r.jsx(z,{value:"settings",children:l("Settings Change")}),r.jsx(z,{value:"cron",children:l("Cron")}),r.jsx(z,{value:"activation",children:l("Activation")}),r.jsx(z,{value:"ratelimit",children:l("Rate Limit")}),r.jsx(z,{value:"api_error",children:l("API Error")}),r.jsx(z,{value:"db_error",children:l("DB Error")}),r.jsx(z,{value:"email",children:l("Email")}),r.jsx(z,{value:"auth",children:l("Auth")}),r.jsx(z,{value:"follow_up",children:l("Follow-up actions")})]})]}),r.jsxs(je,{value:o,onValueChange:g,children:[r.jsx(ve,{className:"h-8 w-[140px] text-xs",children:r.jsx(we,{placeholder:l("Severity")})}),r.jsxs(ye,{children:[r.jsx(z,{value:"all",children:l("All")}),r.jsx(z,{value:"info",children:l("Info")}),r.jsx(z,{value:"warning",children:l("Warning")}),r.jsx(z,{value:"error",children:l("Error")}),r.jsx(z,{value:"critical",children:l("Critical")})]})]})]}),r.jsx(ee,{children:r.jsx(ne,{className:"p-0",children:b?r.jsx("div",{className:"p-6 space-y-3",children:Array.from({length:5}).map((O,re)=>r.jsx(oe,{className:"h-10 w-full"},re))}):p.length===0?r.jsxs("div",{className:"py-16 text-center",children:[r.jsx(fd,{className:"h-12 w-12 text-muted-foreground/30 mx-auto mb-3"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("No events found for the selected filters.")})]}):r.jsxs(r.Fragment,{children:[r.jsxs(Jt,{children:[r.jsx(vn,{children:r.jsxs(Ie,{children:[r.jsx(Ee,{className:"text-xs w-[160px]",children:l("Timestamp")}),r.jsx(Ee,{className:"text-xs w-[100px]",children:l("Type")}),r.jsx(Ee,{className:"text-xs w-[90px]",children:l("Severity")}),r.jsx(Ee,{className:"text-xs",children:l("Message")}),r.jsx(Ee,{className:"text-xs w-[70px]",children:l("User")})]})}),r.jsx(en,{children:p.map(O=>{var te;const re=tI[O.event_type]||fd,D=(te=Yd[O.severity])!=null?te:Yd.info;return r.jsxs(Ie,{className:"cursor-pointer hover:bg-accent",onClick:()=>u(O),children:[r.jsx(fe,{className:"text-xs text-muted-foreground",children:O.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:O.event_type.replace("_"," ")})]})}),r.jsx(fe,{children:r.jsx(Qe,{variant:D.color,className:"text-[10px]",children:D.label})}),r.jsx(fe,{className:"text-xs max-w-[300px] truncate",children:O.message}),r.jsx(fe,{children:r.jsx(Qe,{variant:"outline",className:"text-[10px]",children:O.user_display})})]},O.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:le(l("Page %1$s of %2$s"),i,x)}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(H,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:i===1,onClick:()=>c(O=>O-1),children:r.jsx(H0,{className:"h-3 w-3"})}),r.jsx(H,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:i>=x,onClick:()=>c(O=>O+1),children:r.jsx(Qm,{className:"h-3 w-3"})})]})]})]})})}),r.jsx(Er,{open:!!d,onOpenChange:()=>u(null),children:r.jsxs(tr,{children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Event Details")}),r.jsx(sr,{children:l("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:l("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:l("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:l("Severity:")}),r.jsx("p",{children:r.jsx(Qe,{variant:(A=(T=Yd[d.severity])==null?void 0:T.color)!=null?A:"secondary",className:"text-[10px]",children:(B=(M=Yd[d.severity])==null?void 0:M.label)!=null?B:d.severity})})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("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:l("Message:")}),r.jsx("p",{className:"text-xs mt-1 rounded-lg bg-accent p-3",children:d.message})]})]})]})})]})}function rI(){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:l("Page not found")}),r.jsx(hn,{to:"/",className:"text-primary hover:underline",children:l("Return to Dashboard")})]})}const sI=new n2({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),oI=()=>(f.useEffect(()=>{b_()},[]),r.jsx(r2,{client:sI,children:r.jsxs(rj,{children:[r.jsx(AP,{}),r.jsx(dT,{}),r.jsx(GR,{children:r.jsx(c_,{children:r.jsxs(t_,{children:[r.jsxs(tt,{element:r.jsx(qA,{}),children:[r.jsx(tt,{path:"/",element:r.jsx(JA,{})}),r.jsx(tt,{path:"/analytics",element:r.jsx(co,{addonId:"analytics",featureName:"Analytics",children:r.jsx(er,{id:"page.analytics"})})}),r.jsx(tt,{path:"/optins",element:r.jsx(Q5,{})}),r.jsx(tt,{path:"/optins/:id",element:r.jsx(pO,{})}),r.jsx(tt,{path:"/forms",element:r.jsx(SO,{})}),r.jsx(tt,{path:"/forms/:integration/:id/settings",element:r.jsx(XO,{})}),r.jsx(tt,{path:"/categories",element:r.jsx(fN,{})}),r.jsx(tt,{path:"/categories/:id",element:r.jsx(fN,{})}),r.jsx(tt,{path:"/settings",element:r.jsx(JO,{})}),r.jsx(tt,{path:"/email-templates",element:r.jsx(co,{addonId:"email-editor",featureName:"Email Templates",children:r.jsx(e3,{})})}),r.jsx(tt,{path:"/email-templates/new",element:r.jsx(co,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(zN,{})})}),r.jsx(tt,{path:"/email-templates/:id/edit",element:r.jsx(co,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(zN,{})})}),r.jsx(tt,{path:"/database",element:r.jsx(t3,{})}),r.jsx(tt,{path:"/opt-out",element:r.jsx(co,{addonId:"opt-out",featureName:"Opt-Out",children:r.jsx(g3,{})})}),r.jsx(tt,{path:"/user-creation",element:r.jsx(co,{addonId:"user-registration",featureName:"User Creation",children:r.jsx(w3,{})})}),r.jsx(tt,{path:"/api",element:r.jsx(S3,{})}),r.jsx(tt,{path:"/audit",element:r.jsx(nI,{})}),r.jsx(tt,{path:"/license",element:r.jsx(C3,{})}),r.jsx(tt,{path:"/addons",element:r.jsx(k3,{})}),r.jsx(tt,{path:"/addon-settings/:id",element:r.jsx(Z3,{})})]}),r.jsx(tt,{path:"*",element:r.jsx(rI,{})})]})})})]})})),UN=document.getElementById("doi-admin-root");UN&&my(UN).render(r.jsx(oI,{}))})(wp.i18n); | |
| 498 | +10minutemail.com`;function dM(){var h,m,y,v;const e=Ze(),{data:t,isLoading:n}=we({queryKey:["settings"],queryFn:()=>Q("/settings")}),[s,a]=f.useState({}),[i,o]=f.useState(!1);f.useEffect(()=>{var w,g,j;t!=null&&t.data&&!i&&(a({domain_blocklist:(w=t.data.domain_blocklist)!=null?w:"",domain_blocklist_behavior:(g=t.data.domain_blocklist_behavior)!=null?g:"silent",domain_blocklist_message:(j=t.data.domain_blocklist_message)!=null?j:""}),o(!0))},[t,i]);const c=Ee({mutationFn:()=>Q("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{G.success(l("Domain blocklist settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:w=>{G.error(w.message||l("Failed to save domain blocklist settings."))}});function d(w,g){a(j=>({...j,[w]:g}))}const u=((h=s.domain_blocklist)!=null?h:"").split(` | |
| 499 | +`).map(w=>w.trim()).filter(w=>w!=="").length;return r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Domain blocklist")}),r.jsx(Re,{children:l("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(ee,{className:"space-y-5",children:n?r.jsx(ie,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"domain-blocklist",children:re(l(u===1?"Blocked domains (%d entry)":"Blocked domains (%d entries)"),u)}),r.jsx(Mr,{id:"domain-blocklist",className:"mt-1.5 font-mono text-xs",rows:8,placeholder:cM,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:[l("One domain per line. No")," ",r.jsx("code",{children:"@"}),l(", no protocol, no wildcards. Submissions to")," ",r.jsx("code",{children:"user@<domain>"})," ",l("are rejected on exact match.")]})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"domain-behavior",children:l("Validation behaviour")}),r.jsxs(ye,{value:(y=s.domain_blocklist_behavior)!=null?y:"silent",onValueChange:w=>d("domain_blocklist_behavior",w),children:[r.jsx(xe,{id:"domain-behavior",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"silent",children:l("Silent rejection — drop the opt-in without telling the user")}),r.jsx(L,{value:"block",children:l("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:l("Silent")})," ",l("is the typical choice for spam suppression — bots get a fake success, real users see nothing.")," ",r.jsx("strong",{children:l("Block")})," ",l("is appropriate if your blocklist also blocks legit-typo domains the user might want to correct.")]})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"domain-message",children:l("Custom error message")}),r.jsx(Pe,{id:"domain-message",className:"mt-1.5",placeholder:lM,value:(v=s.domain_blocklist_message)!=null?v:"",onChange:w=>d("domain_blocklist_message",w.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown when behaviour is set to")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("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(kt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("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(U,{onClick:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?r.jsx(Ln,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(da,{className:"h-4 w-4 mr-1.5"}),l("Save blocklist")]})})]})})]})}const cx={all:{title:l("All forms (defaults apply everywhere)"),hint:l("Every form runs Unique Email with the default settings below. Use the conditions list to override single forms only.")},selected:{title:l("Only selected forms (opt-in list)"),hint:l("Unique Email runs ONLY for forms in the conditions list. Forms not listed are unaffected.")},all_except:{title:l("All forms EXCEPT selected (opt-out list)"),hint:l("Every form runs Unique Email EXCEPT those in the conditions list.")}};function uM(e,t,n){return t==="form"?e==="all"?{headline:l("Per-form check on every form"),detail:l("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:re(l("Per-form check on the %d listed form%s"),n,n===1?"":"s"),detail:l("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:re(l("Per-form check on every form EXCEPT the %d listed"),n),detail:l("Every form runs a per-form duplicate check on itself, except the excluded forms (which skip the check entirely).")}:e==="all"?{headline:l("Sitewide check on every form"),detail:l("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:l("Sitewide — but the list is empty"),detail:l("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:re(l("Sitewide pool over the %d listed form%s"),n,n===1?"":"s"),detail:re(l("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:l("Sitewide check on every form"),detail:l("No exclusions are configured, so this behaves like Mode = All. Pool is the entire opt-in database.")}:{headline:re(l("Sitewide pool over every form EXCEPT the %d excluded"),n),detail:re(l("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 fM={enabled:!0,mode:"all",defaults:{scope:"confirmed",behavior:"block",match_scope:"form",message:"",redirect_page:0},conditions:[]};function mM(){const e=Ze(),{data:t,isLoading:n}=we({queryKey:["addon-settings","unique-email"],queryFn:()=>Q("/addons/unique-email/settings")}),{data:s}=we({queryKey:["forms"],queryFn:()=>Q("/forms")}),[a,i]=f.useState(fM),[o,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var x,N,S,k,_,C,R,T,O,M,B,I;if(!t||o)return;const p=(x=t.data)!=null?x:t;i({enabled:p.enabled!==!1,mode:(N=p.mode)!=null?N:"all",defaults:{scope:(k=(S=p.defaults)==null?void 0:S.scope)!=null?k:"confirmed",behavior:(C=(_=p.defaults)==null?void 0:_.behavior)!=null?C:"block",match_scope:(T=(R=p.defaults)==null?void 0:R.match_scope)!=null?T:"form",message:(M=(O=p.defaults)==null?void 0:O.message)!=null?M:"",redirect_page:Number((I=(B=p.defaults)==null?void 0:B.redirect_page)!=null?I:0)},conditions:Array.isArray(p.conditions)?p.conditions:[]}),c(!0)},[t,o]);const h=f.useMemo(()=>{var N;const p=(N=s==null?void 0:s.data)!=null?N:{},x=[];for(const[S,k]of Object.entries(p))if(k)for(const _ of k.forms){const C=Number(typeof _.id=="string"?_.id.split("_")[0]:_.id);C&&x.push({key:`${S}_${C}`,integration:S,integrationName:k.name,formId:C,title:_.title||`#${C}`})}return x},[s]),m=(p,x)=>{const N=h.find(S=>S.integration===p&&S.formId===x);return N?`${N.integrationName} / ${N.title}`:`${p} / #${x}`},y=Ee({mutationFn:()=>Q("/addons/unique-email/settings",{method:"POST",body:JSON.stringify(a)}),onSuccess:()=>{G.success(l("Unique Email settings saved.")),e.invalidateQueries({queryKey:["addon-settings","unique-email"]})},onError:p=>{G.error(p.message||l("Failed to save Unique Email settings."))}});function v(p,x){i(N=>({...N,defaults:{...N.defaults,[p]:x}}))}function w(){if(!d)return;const p=h.find(x=>x.key===d);if(p){if(a.conditions.some(x=>x.integration===p.integration&&x.form_id===p.formId)){G.warning(l("This form is already in the list."));return}i(x=>({...x,conditions:[...x.conditions,{integration:p.integration,form_id:p.formId,scope:null,behavior:null,match_scope:null,message:null,redirect_page:null}]})),u("")}}function g(p){i(x=>({...x,conditions:x.conditions.filter((N,S)=>S!==p)}))}function j(p,x,N){i(S=>({...S,conditions:S.conditions.map((k,_)=>_===p?{...k,[x]:N}:k)}))}if(n)return r.jsx(ie,{className:"h-96 w-full"});const b=uM(a.mode,a.defaults.match_scope,a.conditions.length);return r.jsxs(r.Fragment,{children:[r.jsxs(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("How Unique Email applies")}),r.jsx(Re,{children:l("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(ee,{className:"space-y-3",children:[Object.keys(cx).map(p=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(a.mode===p?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"unique-email-mode",value:p,checked:a.mode===p,onChange:()=>i(x=>({...x,mode:p})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:cx[p].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:cx[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:l("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:b.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:b.detail})]})]})]}),r.jsxs(Z,{className:"mt-6",children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Default settings")}),r.jsx(Re,{children:l("Applied to every form in scope. Per-form entries below can override these individually — leave an override empty to inherit.")})]}),r.jsxs(ee,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"ue-scope",children:l("Scope")}),r.jsxs(ye,{value:a.defaults.scope,onValueChange:p=>v("scope",p),children:[r.jsx(xe,{id:"ue-scope",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"confirmed",children:l("Confirmed opt-ins only")}),r.jsx(L,{value:"all",children:l("All opt-ins (incl. unconfirmed)")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("Confirmed")}),l(": users can re-submit until they confirm once.")," ",r.jsx("strong",{children:l("All")}),l(': stricter — any prior attempt blocks. Use "all" to suppress double-submit bots.')]})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"ue-behavior",children:l("Behavior on duplicate")}),r.jsxs(ye,{value:a.defaults.behavior,onValueChange:p=>v("behavior",p),children:[r.jsx(xe,{id:"ue-behavior",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"silent",children:l("Silent rejection")}),r.jsx(L,{value:"block",children:l("Show error message")}),r.jsx(L,{value:"redirect",children:l("Redirect to page")})]})]})]})]}),r.jsxs("div",{children:[r.jsx(H,{children:l("Match scope")}),r.jsx("div",{className:"grid gap-2 sm:grid-cols-2 mt-1.5",children:[{value:"form",title:l("Per form"),hint:l("The same address may opt into Form A AND Form B.")},{value:"sitewide",title:l("Sitewide"),hint:l("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 "+(a.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:a.defaults.match_scope===p.value,onChange:()=>v("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(H,{htmlFor:"ue-message",children:l("Custom error message")}),r.jsx(Pe,{id:"ue-message",className:"mt-1.5",placeholder:l("This email address has already been used for this form."),value:a.defaults.message,onChange:p=>v("message",p.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown for")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("Leave empty for the default text.")]})]})]})]}),r.jsxs(Z,{className:"mt-6",children:[r.jsxs(le,{children:[r.jsx(fe,{children:a.mode==="selected"?l("Forms to apply Unique Email to"):a.mode==="all_except"?l("Forms to exclude from Unique Email"):l("Per-form overrides")}),r.jsxs(Re,{children:[a.mode==="all"&&a.defaults.match_scope==="form"&&l("All forms are in scope by default with a per-form check. Add entries here to override the defaults for specific forms."),a.mode==="all"&&a.defaults.match_scope==="sitewide"&&l("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."),a.mode==="selected"&&a.defaults.match_scope==="form"&&l("Only the forms in this list run Unique Email. Each listed form checks duplicates within itself — they do not affect each other."),a.mode==="selected"&&a.defaults.match_scope==="sitewide"&&l("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."),a.mode==="all_except"&&a.defaults.match_scope==="form"&&l("These forms are exempt from Unique Email checks. All other forms run a per-form duplicate check on themselves."),a.mode==="all_except"&&a.defaults.match_scope==="sitewide"&&l("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(ee,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:d,onValueChange:u,children:[r.jsx(xe,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ge,{children:h.length===0?r.jsx(L,{value:"__empty",disabled:!0,children:l("No forms detected")}):h.map(p=>r.jsxs(L,{value:p.key,children:[p.integrationName," / ",p.title]},p.key))})]}),r.jsxs(U,{onClick:w,disabled:!d,children:[r.jsx(ui,{className:"h-4 w-4 mr-1.5"}),l("Add")]})]}),a.conditions.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(kt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("No forms in the list yet.")," ",a.mode==="selected"&&a.defaults.match_scope==="form"&&l("Unique Email is currently inactive on every form — add at least one above."),a.mode==="selected"&&a.defaults.match_scope==="sitewide"&&l("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."),a.mode==="all_except"&&l("Unique Email is active on every form with the defaults above."),a.mode==="all"&&a.defaults.match_scope==="form"&&l("Unique Email is active on every form with a per-form check. Use this list to override settings per form."),a.mode==="all"&&a.defaults.match_scope==="sitewide"&&l("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:a.conditions.map((p,x)=>{var N,S,k,_;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(U,{variant:"ghost",size:"sm",onClick:()=>g(x),title:l("Remove from list"),children:r.jsx(kn,{className:"h-4 w-4"})})]}),a.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(H,{className:"text-xs",children:l("Override scope")}),r.jsxs(ye,{value:(N=p.scope)!=null?N:"__inherit",onValueChange:C=>j(x,"scope",C==="__inherit"?null:C),children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__inherit",children:re(l("Inherit (%s)"),a.defaults.scope)}),r.jsx(L,{value:"confirmed",children:l("Confirmed")}),r.jsx(L,{value:"all",children:l("All")})]})]})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Override behavior")}),r.jsxs(ye,{value:(S=p.behavior)!=null?S:"__inherit",onValueChange:C=>j(x,"behavior",C==="__inherit"?null:C),children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__inherit",children:re(l("Inherit (%s)"),a.defaults.behavior)}),r.jsx(L,{value:"silent",children:l("Silent")}),r.jsx(L,{value:"block",children:l("Block")}),r.jsx(L,{value:"redirect",children:l("Redirect")})]})]})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Override match scope")}),r.jsxs(ye,{value:(k=p.match_scope)!=null?k:"__inherit",onValueChange:C=>j(x,"match_scope",C==="__inherit"?null:C),children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__inherit",children:re(l("Inherit (%s)"),a.defaults.match_scope)}),r.jsx(L,{value:"form",children:l("Per form")}),r.jsx(L,{value:"sitewide",children:l("Sitewide")})]})]})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Override message")}),r.jsx(Pe,{className:"mt-1 h-9 text-xs",placeholder:l("(inherit)"),value:(_=p.message)!=null?_:"",onChange:C=>j(x,"message",C.target.value===""?null:C.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(U,{onClick:()=>y.mutate(),disabled:y.isPending,children:[y.isPending?r.jsx(Ln,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(da,{className:"h-4 w-4 mr-1.5"}),l("Save Unique Email settings")]})})]})]})]})}const SS={equals:l("Equals"),not_equals:l("Not equals"),contains:l("Contains"),not_empty:l("Not empty"),empty:l("Empty")},hM=new Set(["not_empty","empty"]),pM={enabled:!0,forms:[]};function xM(){return`rule_${Math.random().toString(36).slice(2,10)}`}function CS(){return{id:xM(),field:"",operator:"equals",value:"",template:"",priority:10}}function gM(){var C;const e=Ze(),{data:t,isLoading:n}=we({queryKey:["addon-settings","conditional"],queryFn:()=>Q("/addons/conditional/settings")}),{data:s}=we({queryKey:["forms"],queryFn:()=>Q("/forms")}),{data:a}=we({queryKey:["email-templates-list"],queryFn:()=>Q("/settings/email-templates-list")}),[i,o]=f.useState(pM),[c,d]=f.useState(!1),[u,h]=f.useState("");f.useEffect(()=>{var T;if(!t||c)return;const R=(T=t.data)!=null?T:t;o({enabled:R.enabled!==!1,forms:Array.isArray(R.forms)?R.forms:[]}),d(!0)},[t,c]);const m=f.useMemo(()=>{var O;const R=(O=s==null?void 0:s.data)!=null?O:{},T=[];for(const[M,B]of Object.entries(R))if(B)for(const I of B.forms){const ne=typeof I.id=="string"?I.id:String(I.id),F=Number(ne.split("_")[0]);F&&T.push({key:`${M}_${ne}`,integration:M,integrationName:B.name,formId:F,restId:ne,title:I.title||`#${F}`})}return T},[s]),y=(R,T)=>{const O=m.find(M=>M.integration===R&&M.formId===T);return O?O.restId:String(T)},v=(R,T)=>{const O=m.find(M=>M.integration===R&&M.formId===T);return O?`${O.integrationName} / ${O.title}`:`${R} / #${T}`},w=v_({queries:i.forms.map(R=>{const T=y(R.integration,R.form_id);return{queryKey:["form-fields",R.integration,T],queryFn:()=>Q(`/forms/${R.integration}/${T}/fields`),staleTime:5*60*1e3,retry:!1}})}),g=(R,T)=>{var B;const O=i.forms.findIndex(I=>I.integration===R&&I.form_id===T);if(O===-1)return[];const M=w[O];return M!=null&&M.data?(B=M.data.data)!=null?B:[]:[]},j=Ee({mutationFn:()=>Q("/addons/conditional/settings",{method:"POST",body:JSON.stringify(i)}),onSuccess:()=>{G.success(l("Conditional Templates settings saved.")),e.invalidateQueries({queryKey:["addon-settings","conditional"]})},onError:R=>{G.error(R.message||l("Failed to save Conditional Templates settings."))}});function b(){if(!u)return;const R=m.find(T=>T.key===u);if(R){if(i.forms.some(T=>T.integration===R.integration&&T.form_id===R.formId)){G.warning(l("This form is already in the list."));return}o(T=>({...T,forms:[...T.forms,{integration:R.integration,form_id:R.formId,fallback_template:"blank",rules:[CS()]}]})),h("")}}function p(R){o(T=>({...T,forms:T.forms.filter((O,M)=>M!==R)}))}function x(R,T,O){o(M=>({...M,forms:M.forms.map((B,I)=>I===R?{...B,[T]:O}:B)}))}function N(R){o(T=>({...T,forms:T.forms.map((O,M)=>M===R?{...O,rules:[...O.rules,CS()]}:O)}))}function S(R,T){o(O=>({...O,forms:O.forms.map((M,B)=>B===R?{...M,rules:M.rules.filter((I,ne)=>ne!==T)}:M)}))}function k(R,T,O,M){o(B=>({...B,forms:B.forms.map((I,ne)=>ne===R?{...I,rules:I.rules.map((F,te)=>te===T?{...F,[O]:M}:F)}:I)}))}if(n)return r.jsx(ie,{className:"h-96 w-full"});const _=(C=a==null?void 0:a.data)!=null?C:[];return r.jsxs(r.Fragment,{children:[r.jsx(Z,{className:"mt-6",children:r.jsxs(le,{children:[r.jsx(fe,{children:l("How Conditional Templates work")}),r.jsx(Re,{children:l("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(Z,{className:"mt-6",children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Forms with conditional templates")}),r.jsx(Re,{children:l("Add a form below to start configuring per-field template rules for it.")})]}),r.jsxs(ee,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:u,onValueChange:h,children:[r.jsx(xe,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ge,{children:m.length===0?r.jsx(L,{value:"__empty",disabled:!0,children:l("No forms detected")}):m.map(R=>r.jsxs(L,{value:R.key,children:[R.integrationName," / ",R.title]},R.key))})]}),r.jsxs(U,{onClick:b,disabled:!u,children:[r.jsx(ui,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),i.forms.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(kt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("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((R,T)=>{const O=g(R.integration,R.form_id),M=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:v(R.integration,R.form_id)}),r.jsx(U,{variant:"ghost",size:"sm",onClick:()=>p(T),title:l("Remove form from list"),children:r.jsx(kn,{className:"h-4 w-4"})})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Fallback template")}),r.jsxs(ye,{value:R.fallback_template||"blank",onValueChange:B=>x(T,"fallback_template",B),children:[r.jsx(xe,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsx(ge,{children:_.length===0?r.jsx(L,{value:"blank",children:l("Default (blank)")}):_.map(B=>r.jsx(L,{value:B.id,children:B.title},B.id))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Used when no rule matches the submitted data.")})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-xs",children:l("Rules")}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5 mb-2",children:l("Lower priority runs first. First match wins.")}),M!=null&&M.isLoading?r.jsx(ie,{className:"h-20 w-full"}):R.rules.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-md bg-accent p-2",children:[r.jsx(kt,{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:l("No rules — only the fallback template applies.")})]}):r.jsx("div",{className:"space-y-2",children:R.rules.map((B,I)=>{const ne=!hM.has(B.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(H,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Field")}),r.jsxs(ye,{value:B.field||"__none",onValueChange:F=>k(T,I,"field",F==="__none"?"":F),children:[r.jsx(xe,{className:"mt-1 h-8 text-xs",children:r.jsx(be,{placeholder:"—"})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__none",disabled:!0,children:l("Choose a field")}),O.length===0?r.jsx(L,{value:"__nofields",disabled:!0,children:l("(no fields detected)")}):O.map(F=>r.jsx(L,{value:F.name,children:F.label||F.name},F.name))]})]})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Operator")}),r.jsxs(ye,{value:B.operator,onValueChange:F=>k(T,I,"operator",F),children:[r.jsx(xe,{className:"mt-1 h-8 text-xs",children:r.jsx(be,{})}),r.jsx(ge,{children:Object.keys(SS).map(F=>r.jsx(L,{value:F,children:SS[F]},F))})]})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Value")}),r.jsx(Pe,{className:"mt-1 h-8 text-xs",placeholder:l(ne?"e.g. DE":"(not used)"),value:B.value,disabled:!ne,onChange:F=>k(T,I,"value",F.target.value)})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Template")}),r.jsxs(ye,{value:B.template||"__none",onValueChange:F=>k(T,I,"template",F==="__none"?"":F),children:[r.jsx(xe,{className:"mt-1 h-8 text-xs",children:r.jsx(be,{placeholder:"—"})}),r.jsxs(ge,{children:[r.jsx(L,{value:"__none",disabled:!0,children:l("Choose a template")}),_.map(F=>r.jsx(L,{value:F.id,children:F.title},F.id))]})]})]}),r.jsxs("div",{children:[r.jsx(H,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Prio")}),r.jsx(Pe,{type:"number",min:1,max:99,className:"mt-1 h-8 text-xs",value:B.priority,onChange:F=>k(T,I,"priority",Math.max(1,Number(F.target.value)||1))})]}),r.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>S(T,I),title:l("Remove rule"),children:r.jsx(kn,{className:"h-3.5 w-3.5"})})]},B.id)})}),r.jsxs(U,{variant:"outline",size:"sm",className:"mt-2",onClick:()=>N(T),children:[r.jsx(ui,{className:"h-3.5 w-3.5 mr-1.5"}),l("Add rule")]})]})]},`${R.integration}_${R.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(U,{onClick:()=>j.mutate(),disabled:j.isPending,children:[j.isPending?r.jsx(Ln,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(da,{className:"h-4 w-4 mr-1.5"}),l("Save Conditional Templates settings")]})})]})]})]})}const kS={",":l("Comma — , (RFC 4180 default)"),";":l("Semicolon — ; (German/French Excel)"),"\\t":l("Tab (TSV-style)"),"|":l("Pipe — |")},vM={all:l("Every record — confirmed, unconfirmed, and opted-out."),confirmed:l("Active subscribers only (confirmed AND not opted-out)."),unconfirmed:l("Users who never clicked the confirmation link."),opted_out:l("Records with a recorded opt-out (unsubscribed).")},Ut="__all";function _S(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 yM(){var z,Y,ae,_e,Fe;const[e,t]=f.useState("csv"),[n,s]=f.useState(","),[a,i]=f.useState("all"),[o,c]=f.useState(""),[d,u]=f.useState(!1),[h,m]=f.useState("all"),[y,v]=f.useState(""),[w,g]=f.useState(""),[j,b]=f.useState(Ut),[p,x]=f.useState(Ut),[N,S]=f.useState(Ut),{data:k}=we({queryKey:["subscription-groups"],queryFn:()=>Q("/subscription-groups")}),_=(z=k==null?void 0:k.data)!=null&&z.available?k.data.groups:[],[C,R]=f.useState(!1),T=Ze(),O=f.useRef(null),{data:M}=we({queryKey:["categories"],queryFn:()=>Q("/categories")}),{data:B}=we({queryKey:["forms"],queryFn:()=>Q("/forms")}),I=f.useMemo(()=>{var Vt;const $=(Vt=B==null?void 0:B.data)!=null?Vt:{},Ce=[];for(const[q,Ue]of Object.entries($))if(Ue)for(const We of Ue.forms){const xn=Number(typeof We.id=="string"?We.id.split("_")[0]:We.id);xn&&Ce.push({id:xn,label:`${Ue.name} / ${We.title||`#${xn}`}`})}const Je=new Set;return Ce.filter(q=>Je.has(q.id)?!1:(Je.add(q.id),!0))},[B]),ne=f.useMemo(()=>{var $;return(($=M==null?void 0:M.data)!=null?$:[]).filter(Ce=>Number(Ce.id)>0)},[M]),F=a,te=a==="email"?o.trim():"",A=h,D=j===Ut?"":j,W=p===Ut?"":p,he=N===Ut?"":N,me=we({queryKey:["consent-export-stream-info",F,te,A,D,W,he],queryFn:()=>{const $=new URLSearchParams({scope:F,email:te,status:A,form_id:D,category_id:W,group:he});return Q(`/consent-export/stream-info?${$.toString()}`)}}),je=(ae=(Y=me.data)==null?void 0:Y.data)!=null?ae:{exported_count:0,run_count:0,last_run_at:0},Ne=we({queryKey:["consent-export-history"],queryFn:()=>Q("/consent-export/history?limit=20")}),$e=(Fe=(_e=Ne.data)==null?void 0:_e.data)!=null?Fe:[],Be=Ee({mutationFn:()=>Q("/consent-export/history",{method:"DELETE"}),onSuccess:()=>{T.invalidateQueries({queryKey:["consent-export-history"]}),T.invalidateQueries({queryKey:["consent-export-stream-info"]}),G.success(l("Export history cleared."))},onError:$=>{G.error($.message||l("Failed to clear history."))}}),se=Ee({mutationFn:$=>Q(`/consent-export/history/${$}`,{method:"DELETE"}),onSuccess:()=>{T.invalidateQueries({queryKey:["consent-export-history"]}),T.invalidateQueries({queryKey:["consent-export-stream-info"]}),G.success(l("Run removed from history."))},onError:$=>{G.error($.message||l("Failed to delete run."))}});function De($){var Ce;if(i($.scope==="email"?"email":"all"),c((Ce=$.email)!=null?Ce:""),m(["all","confirmed","unconfirmed","opted_out"].includes($.status)?$.status:"all"),b($.form_id>0?String($.form_id):Ut),x($.category_id>0?String($.category_id):Ut),S(Ut),t($.format==="json"?"json":"csv"),u($.include_form_data===1),$.format==="csv"&&$.delimiter){const Je=$.delimiter===" "?"\\t":$.delimiter;s(Je)}G.info(l("Filters restored from this run."))}function P(){var q;if(a==="email"&&o.trim()===""){G.error(l("Enter an email address before exporting."));return}if(y!==""&&w!==""&&y>w){G.error(l("The 'from' date is after the 'to' date."));return}const $=ht(),Ce=new URLSearchParams({action:"doi_export_consent",_wpnonce:(q=$.consentExportNonce)!=null?q:"",format:e,scope:a});a==="email"&&Ce.set("email",o.trim()),d&&Ce.set("include_formdata","1"),e==="csv"&&n!==","&&Ce.set("delimiter",n),h!=="all"&&Ce.set("status",h),y!==""&&Ce.set("date_from",y),w!==""&&Ce.set("date_to",w),j!==Ut&&Ce.set("form_id",j),p!==Ut&&Ce.set("category_id",p),N!==Ut&&Ce.set("group",N),C&&Ce.set("since_last_export","1");const Vt=`${$.adminUrl.replace(/\/+$/,"")}/admin-ajax.php?${Ce.toString()}`;window.open(Vt,"_blank","noopener,noreferrer"),setTimeout(()=>{T.invalidateQueries({queryKey:["consent-export-history"]}),T.invalidateQueries({queryKey:["consent-export-stream-info"]})},1500),setTimeout(()=>{T.invalidateQueries({queryKey:["consent-export-history"]}),T.invalidateQueries({queryKey:["consent-export-stream-info"]})},6e3)}return r.jsxs(Z,{className:"mt-6",children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Export consent records (GDPR)")}),r.jsx(Re,{children:l("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(ee,{className:"space-y-5",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-format",children:l("Format")}),r.jsxs(ye,{value:e,onValueChange:$=>t($),children:[r.jsx(xe,{id:"export-format",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"csv",children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(qP,{className:"h-4 w-4"}),l("CSV (Excel-friendly, UTF-8 BOM)")]})}),r.jsx(L,{value:"json",children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(VP,{className:"h-4 w-4"}),l("JSON (pretty-printed)")]})})]})]})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-scope",children:l("Scope")}),r.jsxs(ye,{value:a,onValueChange:$=>i($),children:[r.jsx(xe,{id:"export-scope",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All records")}),r.jsx(L,{value:"email",children:l("By email address")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("By email")}),l(": useful for GDPR subject-access requests — exports every record tied to one address.")]})]})]}),e==="csv"&&r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-delimiter",children:l("CSV separator")}),r.jsxs(ye,{value:n,onValueChange:$=>s($),children:[r.jsx(xe,{id:"export-delimiter",className:"mt-1.5",children:r.jsx(be,{})}),r.jsx(ge,{children:Object.keys(kS).map($=>r.jsx(L,{value:$,children:kS[$]},$))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Excel honours the OS-locale default — German installs expect")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:";"})," ",l("because")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:","})," ",l("is their decimal mark. If you open the CSV and see every row crammed into one column, switch separator and re-export.")]})]}),a==="email"&&r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-email",children:l("Email address")}),r.jsx(Pe,{id:"export-email",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:o,onChange:$=>c($.target.value)})]}),r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsx("div",{className:"text-sm font-medium",children:l("Filters")}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-status",children:l("Status")}),r.jsxs(ye,{value:h,onValueChange:$=>m($),children:[r.jsx(xe,{id:"export-status",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All statuses")}),r.jsx(L,{value:"confirmed",children:l("Confirmed (active subscribers)")}),r.jsx(L,{value:"unconfirmed",children:l("Unconfirmed")}),r.jsx(L,{value:"opted_out",children:l("Opted out")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:vM[h]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-date-from",children:l("Signed up from")}),r.jsx(Pe,{id:"export-date-from",type:"date",className:"mt-1.5",value:y,onChange:$=>v($.target.value),max:w||void 0})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-date-to",children:l("Signed up until")}),r.jsx(Pe,{id:"export-date-to",type:"date",className:"mt-1.5",value:w,onChange:$=>g($.target.value),min:y||void 0})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground -mt-2",children:l("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(H,{htmlFor:"export-form",children:l("Form")}),r.jsxs(ye,{value:j,onValueChange:b,children:[r.jsx(xe,{id:"export-form",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:Ut,children:l("All forms")}),I.length===0?r.jsx(L,{value:"__nofields",disabled:!0,children:l("(no forms detected)")}):I.map($=>r.jsx(L,{value:String($.id),children:$.label},$.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Limit to records tied to one specific form (CF7, Avada, Elementor, WPForms, Gravity, …). Matches on the form's post id.")})]}),_.length>0&&r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-group",children:l("Subscription")}),r.jsxs(ye,{value:N,onValueChange:S,children:[r.jsx(xe,{id:"export-group",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:Ut,children:l("All subscriptions")}),_.map($=>r.jsx(L,{value:$.key,children:$.label},$.key))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Limit to the sign-ups of one subscription. The file still has one row per sign-up, with the subscription named in the last column.")})]}),r.jsxs("div",{children:[r.jsx(H,{htmlFor:"export-category",children:l("Category")}),r.jsxs(ye,{value:p,onValueChange:x,children:[r.jsx(xe,{id:"export-category",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ge,{children:[r.jsx(L,{value:Ut,children:l("All categories")}),ne.length===0?r.jsx(L,{value:"__nocat",disabled:!0,children:l("(no categories defined)")}):ne.map($=>r.jsxs(L,{value:String($.id),children:[$.name,typeof $.optin_count=="number"&&r.jsxs("span",{className:"text-muted-foreground",children:[" ","(",$.optin_count,")"]})]},$.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("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(Si,{id:"export-since-last",checked:C,onCheckedChange:$=>R($===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1 flex-1",children:[r.jsx(H,{htmlFor:"export-since-last",className:"cursor-pointer text-sm font-medium",children:l("Only records not yet exported in this stream")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("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:me.isLoading?l("Loading stream info…"):je.run_count===0?r.jsxs("span",{children:[r.jsx("strong",{children:l("No prior exports")})," ",l("for this filter combination. Toggle is a no-op until you do your first export.")]}):r.jsxs("span",{children:[r.jsx("strong",{children:je.exported_count})," ",l("record(s) previously exported in this stream across")," ",r.jsx("strong",{children:je.run_count})," ",l("run(s). Last run:")," ",_S(je.last_run_at),"."]})})]})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-4",children:[r.jsx(Si,{id:"export-include-formdata",checked:d,onCheckedChange:$=>u($===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(H,{htmlFor:"export-include-formdata",className:"cursor-pointer text-sm font-medium",children:l("Include form data (submitted field values)")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("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(U,{onClick:P,children:[r.jsx(Xo,{className:"h-4 w-4 mr-1.5"}),l("Export")]}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("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(fe,{className:"flex items-center gap-2 text-base",children:[r.jsx(KP,{className:"h-4 w-4"}),l("Recent exports")]}),r.jsxs(Re,{children:[l("Audit log of past exports. Each row records who ran it, when, from where, and which records went into the file.")," ",l("Click")," ",r.jsx($0,{className:"inline h-3 w-3"})," ",l("to restore that run's filter combination, or")," ",r.jsx(kn,{className:"inline h-3 w-3"})," ",l("to remove a single accidental run from the audit history.")]})]}),r.jsxs(ee,{children:[Ne.isLoading?r.jsx(ie,{className:"h-32 w-full"}):$e.length===0?r.jsx("p",{className:"text-sm text-muted-foreground italic",children:l("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:l("When")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("User")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("IP")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("Stream")}),r.jsx("th",{className:"text-right p-2 font-medium",children:l("Count")}),r.jsx("th",{className:"p-2"})]})}),r.jsx("tbody",{children:$e.map($=>{const Ce=[$.scope==="email"?`email:${$.email}`:$.scope,$.status,$.form_id>0?`form#${$.form_id}`:null,$.category_id>0?`cat#${$.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:_S($.started_at)}),r.jsx("td",{className:"p-2",children:$.user_login||"—"}),r.jsx("td",{className:"p-2 font-mono text-[10px]",children:$.ip_address||"—"}),r.jsx("td",{className:"p-2",children:Ce}),r.jsx("td",{className:"p-2 text-right tabular-nums",children:$.count}),r.jsx("td",{className:"p-2",children:r.jsxs("div",{className:"flex gap-1 justify-end",children:[r.jsx("button",{type:"button",onClick:()=>De($),title:l("Restore this run's filters"),className:"p-1 rounded hover:bg-accent",children:r.jsx($0,{className:"h-3.5 w-3.5"})}),r.jsx("button",{type:"button",onClick:()=>{window.confirm(l("Delete this run from the audit history? The originally exported records remain in the database — this only removes the audit row."))&&se.mutate($.id)},title:l("Remove this run from the audit history"),className:"p-1 rounded hover:bg-accent text-destructive",children:r.jsx(kn,{className:"h-3.5 w-3.5"})})]})})]},$.id)})})]})}),r.jsxs("div",{className:"flex items-center gap-2 pt-4",children:[r.jsxs(U,{variant:"outline",size:"sm",onClick:()=>T.invalidateQueries({queryKey:["consent-export-history"]}),children:[r.jsx(wd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Refresh")]}),$e.length>0&&r.jsxs(U,{variant:"outline",size:"sm",className:"text-destructive",onClick:()=>{var $;return($=O.current)==null?void 0:$.showModal()},children:[r.jsx(kn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Clear all history")]})]})]}),r.jsxs("dialog",{ref:O,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:l("Clear export history?")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l('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(U,{variant:"outline",size:"sm",onClick:()=>{var $;return($=O.current)==null?void 0:$.close()},children:l("Cancel")}),r.jsx(U,{size:"sm",className:"text-destructive border-destructive",variant:"outline",onClick:()=>{var $;($=O.current)==null||$.close(),Be.mutate()},children:l("Yes, clear everything")})]})]})]})}function bM(){const{id:e}=ai();return e?r.jsx(Ar,{addonId:e,featureName:e,children:r.jsx(jM,{id:e})}):null}function jM({id:e}){var h;const t=Ze(),{data:n}=we({queryKey:["addons-catalog"],queryFn:()=>Q("/addons/catalog")}),{data:s,isLoading:a}=we({queryKey:["addon-settings",e],queryFn:()=>Q(`/addons/${e}/settings`)}),[i,o]=f.useState(!0);f.useEffect(()=>{s&&o(s.enabled)},[s]);const c=Ee({mutationFn:m=>Q(`/addons/${e}/settings`,{method:"POST",body:JSON.stringify(m)}),onSuccess:m=>{G.success(m.enabled?l("Feature enabled."):l("Feature disabled.")),t.invalidateQueries({queryKey:["addon-settings",e]})},onError:m=>{G.error(m.message||l("Failed to save settings."))}}),d=n==null?void 0:n.entries.find(m=>m.id===e),u=m=>{o(m),c.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(Z,{children:[r.jsxs(le,{children:[r.jsx(fe,{children:l("Feature toggle")}),r.jsx(Re,{children:l("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(ee,{children:a?r.jsx(ie,{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(H,{htmlFor:"addon-enabled",className:"text-base",children:l("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, the addon's hooks no-op but the plugin stays installed and can be re-enabled in one click.")})]}),r.jsx(Et,{id:"addon-enabled",checked:i,onCheckedChange:u,disabled:c.isPending})]})})]}),e==="reminder"&&r.jsx(aM,{}),e==="mx-validator"&&r.jsx(oM,{}),e==="domain-blocklist"&&r.jsx(dM,{}),e==="unique-email"&&r.jsx(mM,{}),e==="conditional"&&r.jsx(gM,{}),e==="consent-export"&&r.jsx(yM,{})]})}const ES="doi-email-editor-root",wM="email-editor";function PS(){var h;const{id:e}=ai(),t=Sn(),n=f.useRef(null),[s,a]=f.useState(null),[i,o]=f.useState(!0),{data:c,isLoading:d}=we({queryKey:["addons-manifest"],queryFn:()=>Q("/addons")}),u=!d&&((h=c==null?void 0:c.addons)!=null?h:[]).some(m=>m.id===wM&&m.available);return f.useEffect(()=>{if(d)return;if(!u){o(!1),a(l("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,v=null,w=null;const g=()=>{var N;if(m)return!0;const j=window.doiMountEmailEditor;if(typeof j!="function")return!1;const b=n.current;if(!b)return!1;b.id=ES;const p=e&&e!=="new"?Number(e):0,x=(N=window.doiEmailEditorBootstrap)!=null?N:{restUrl:ht().restUrl+"email-templates",nonce:ht().nonce};return y=j(ES,{templateId:p,restUrl:x.restUrl,nonce:x.nonce}),y&&(o(!1),a(null)),!!y};return g()||(v=setInterval(()=>{g()&&v&&(clearInterval(v),v=null)},100),w=setTimeout(()=>{v&&(clearInterval(v),v=null),!y&&!m&&(o(!1),a(l("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,v&&clearInterval(v),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(vd,{className:"h-3.5 w-3.5"}),l("Back to email templates")]})}),i&&r.jsxs("div",{className:"space-y-3",children:[r.jsx(ie,{className:"h-8 w-64"}),r.jsx(ie,{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(_t,{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:l("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(U,{variant:"default",size:"sm",onClick:()=>t("/addons"),children:l("Open Addons")})})]})]})}),r.jsx("div",{ref:n,className:"doi-editor-host"})]})}const pu={info:{label:l("Info"),color:"secondary",icon:kt},warning:{label:l("Warning"),color:"default",icon:_t},error:{label:l("Error"),color:"destructive",icon:yd},critical:{label:l("Critical"),color:"destructive",icon:Ch}},NM={settings:Eh,cron:gs,activation:Zo,rate_limit:Ph,api_error:oT,db_error:Yo,email:$n,auth:aT,follow_up:XP,consent:FP};function TS(e){var n;return(n={settings:l("Settings Change"),cron:l("Cron"),activation:l("Activation"),rate_limit:l("Rate Limit"),api_error:l("API Error"),db_error:l("DB Error"),email:l("Email"),auth:l("Auth"),follow_up:l("Follow-up actions"),consent:l("Consent")}[e])!=null?n:e.replace(/_/g," ")}function SM(){var S,k,_,C,R,T,O,M,B;const[e,t]=f.useState("30"),[n,s]=f.useState("all"),[a,i]=f.useState("all"),[o,c]=f.useState(1),[d,u]=f.useState(null),h=15,m=I=>{t(I),c(1)},y=I=>{s(I),c(1)},v=I=>{i(I),c(1)},{data:w,isLoading:g}=we({queryKey:["audit-events",e,n,a,o],queryFn:()=>Q(`/audit/events?period=${e}&type=${n}&severity=${a}&page=${o}&per_page=${h}`)}),{data:j,isLoading:b}=we({queryKey:["audit-summary",e],queryFn:()=>Q(`/audit/summary?period=${e}`)}),p=(k=(S=w==null?void 0:w.data)==null?void 0:S.events)!=null?k:[],x=(C=(_=w==null?void 0:w.data)==null?void 0:_.pages)!=null?C:1,N=(R=j==null?void 0:j.data)!=null?R:{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:l("Audit Log")}),r.jsx("p",{className:"text-muted-foreground",children:l("System events and change log")})]}),r.jsx(eS,{value:e,onValueChange:m,children:r.jsxs(Qp,{children:[r.jsx(_s,{value:"7",className:"text-xs",children:l("7 Days")}),r.jsx(_s,{value:"30",className:"text-xs",children:l("30 Days")}),r.jsx(_s,{value:"90",className:"text-xs",children:l("90 Days")})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsx(fe,{className:"text-xs text-muted-foreground",children:l("Total Events")})}),r.jsx(ee,{children:b?r.jsx(ie,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold",children:N.total})})]}),r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(_t,{className:"h-3 w-3 text-warning"}),l("Warnings")]})}),r.jsx(ee,{children:b?r.jsx(ie,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:N.warning})})]}),r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(yd,{className:"h-3 w-3 text-destructive"}),l("Errors")]})}),r.jsx(ee,{children:b?r.jsx(ie,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-destructive",children:N.error})})]}),r.jsxs(Z,{children:[r.jsx(le,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Ch,{className:"h-3 w-3"}),l("Critical")]})}),r.jsx(ee,{children:b?r.jsx(ie,{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(ye,{value:n,onValueChange:y,children:[r.jsx(xe,{className:"h-8 w-[160px] text-xs",children:r.jsx(be,{placeholder:l("Event Type")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All Types")}),r.jsx(L,{value:"settings",children:l("Settings Change")}),r.jsx(L,{value:"cron",children:l("Cron")}),r.jsx(L,{value:"activation",children:l("Activation")}),r.jsx(L,{value:"rate_limit",children:l("Rate Limit")}),r.jsx(L,{value:"api_error",children:l("API Error")}),r.jsx(L,{value:"db_error",children:l("DB Error")}),r.jsx(L,{value:"email",children:l("Email")}),r.jsx(L,{value:"auth",children:l("Auth")}),r.jsx(L,{value:"follow_up",children:l("Follow-up actions")}),r.jsx(L,{value:"consent",children:l("Consent")})]})]}),r.jsxs(ye,{value:a,onValueChange:v,children:[r.jsx(xe,{className:"h-8 w-[140px] text-xs",children:r.jsx(be,{placeholder:l("Severity")})}),r.jsxs(ge,{children:[r.jsx(L,{value:"all",children:l("All")}),r.jsx(L,{value:"info",children:l("Info")}),r.jsx(L,{value:"warning",children:l("Warning")}),r.jsx(L,{value:"error",children:l("Error")}),r.jsx(L,{value:"critical",children:l("Critical")})]})]})]}),r.jsx(Z,{children:r.jsx(ee,{className:"p-0",children:g?r.jsx("div",{className:"p-6 space-y-3",children:Array.from({length:5}).map((I,ne)=>r.jsx(ie,{className:"h-10 w-full"},ne))}):p.length===0?r.jsxs("div",{className:"py-16 text-center",children:[r.jsx(Nd,{className:"h-12 w-12 text-muted-foreground/30 mx-auto mb-3"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("No events found for the selected filters.")})]}):r.jsxs(r.Fragment,{children:[r.jsxs(fn,{children:[r.jsx(_n,{children:r.jsxs(Me,{children:[r.jsx(Ae,{className:"text-xs w-[160px]",children:l("Timestamp")}),r.jsx(Ae,{className:"text-xs w-[100px]",children:l("Type")}),r.jsx(Ae,{className:"text-xs w-[90px]",children:l("Severity")}),r.jsx(Ae,{className:"text-xs",children:l("Message")}),r.jsx(Ae,{className:"text-xs w-[70px]",children:l("User")})]})}),r.jsx(mn,{children:p.map(I=>{var te;const ne=NM[I.event_type]||Nd,F=(te=pu[I.severity])!=null?te:pu.info;return r.jsxs(Me,{className:"cursor-pointer hover:bg-accent",onClick:()=>u(I),children:[r.jsx(ce,{className:"text-xs text-muted-foreground",children:I.created_at}),r.jsx(ce,{children:r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(ne,{className:"h-3 w-3 text-muted-foreground"}),r.jsx("span",{className:"text-xs",children:TS(I.event_type)})]})}),r.jsx(ce,{children:r.jsx(pt,{variant:F.color,className:"text-[10px]",children:F.label})}),r.jsx(ce,{className:"text-xs max-w-[300px] truncate",children:I.message}),r.jsx(ce,{children:r.jsx(pt,{variant:"outline",className:"text-[10px]",children:I.user_display})})]},I.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:re(l("Page %1$s of %2$s"),o,x)}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:o===1,onClick:()=>c(I=>I-1),children:r.jsx(R0,{className:"h-3 w-3"})}),r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:o>=x,onClick:()=>c(I=>I+1),children:r.jsx(Sh,{className:"h-3 w-3"})})]})]})]})})}),r.jsx(Or,{open:!!d,onOpenChange:()=>u(null),children:r.jsxs(or,{children:[r.jsxs(lr,{children:[r.jsx(cr,{children:l("Event Details")}),r.jsx(dr,{children:l("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:l("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:l("Type:")}),r.jsx("p",{className:"text-xs",children:TS(d.event_type)})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Severity:")}),r.jsx("p",{children:r.jsx(pt,{variant:(O=(T=pu[d.severity])==null?void 0:T.color)!=null?O:"secondary",className:"text-[10px]",children:(B=(M=pu[d.severity])==null?void 0:M.label)!=null?B:d.severity})})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("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:l("Message:")}),r.jsx("p",{className:"text-xs mt-1 rounded-lg bg-accent p-3",children:d.message})]})]})]})})]})}var dx="Radio",[CM,RS]=zt(dx),[kM,_M]=CM(dx),AS=f.forwardRef((e,t)=>{const{__scopeRadio:n,name:s,checked:a=!1,required:i,disabled:o,value:c="on",onCheck:d,form:u,...h}=e,[m,y]=f.useState(null),v=Ie(t,j=>y(j)),w=f.useRef(!1),g=m?u||!!m.closest("form"):!0;return r.jsxs(kM,{scope:n,checked:a,disabled:o,children:[r.jsx(ve.button,{type:"button",role:"radio","aria-checked":a,"data-state":DS(a),"data-disabled":o?"":void 0,disabled:o,value:c,...h,ref:v,onClick:pe(e.onClick,j=>{a||d==null||d(),g&&(w.current=j.isPropagationStopped(),w.current||j.stopPropagation())})}),g&&r.jsx(MS,{control:m,bubbles:!w.current,name:s,value:c,checked:a,required:i,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});AS.displayName=dx;var OS="RadioIndicator",IS=f.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:s,...a}=e,i=_M(OS,n);return r.jsx(Fn,{present:s||i.checked,children:r.jsx(ve.span,{"data-state":DS(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t})})});IS.displayName=OS;var EM="RadioBubbleInput",MS=f.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:s=!0,...a},i)=>{const o=f.useRef(null),c=Ie(o,i),d=nu(n),u=Dd(t);return f.useEffect(()=>{const h=o.current;if(!h)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&v){const w=new Event("click",{bubbles:s});v.call(h,n),h.dispatchEvent(w)}},[d,n,s]),r.jsx(ve.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});MS.displayName=EM;function DS(e){return e?"checked":"unchecked"}var PM=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xu="RadioGroup",[TM]=zt(xu,[du,RS]),FS=du(),LS=RS(),[RM,AM]=TM(xu),$S=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:s,defaultValue:a,value:i,required:o=!1,disabled:c=!1,orientation:d,dir:u,loop:h=!0,onValueChange:m,...y}=e,v=FS(n),w=xl(u),[g,j]=cn({prop:i,defaultProp:a!=null?a:null,onChange:m,caller:xu});return r.jsx(RM,{scope:n,name:s,required:o,disabled:c,value:g,onValueChange:j,children:r.jsx($N,{asChild:!0,...v,orientation:d,dir:w,loop:h,children:r.jsx(ve.div,{role:"radiogroup","aria-required":o,"aria-orientation":d,"data-disabled":c?"":void 0,dir:w,...y,ref:t})})})});$S.displayName=xu;var zS="RadioGroupItem",US=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:s,...a}=e,i=AM(zS,n),o=i.disabled||s,c=FS(n),d=LS(n),u=f.useRef(null),h=Ie(t,u),m=i.value===a.value,y=f.useRef(!1);return f.useEffect(()=>{const v=g=>{PM.includes(g.key)&&(y.current=!0)},w=()=>y.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",w)}},[]),r.jsx(zN,{asChild:!0,...c,focusable:!o,active:m,children:r.jsx(AS,{disabled:o,required:i.required,checked:m,...d,...a,name:i.name,ref:h,onCheck:()=>i.onValueChange(a.value),onKeyDown:pe(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:pe(a.onFocus,()=>{var v;y.current&&((v=u.current)==null||v.click())})})})});US.displayName=zS;var OM="RadioGroupIndicator",BS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...s}=e,a=LS(n);return r.jsx(IS,{...a,...s,ref:t})});BS.displayName=OM;var VS=$S,qS=US,IM=BS;const HS=f.forwardRef(({className:e,...t},n)=>r.jsx(VS,{className:V("grid gap-2",e),...t,ref:n}));HS.displayName=VS.displayName;const ux=f.forwardRef(({className:e,...t},n)=>r.jsx(qS,{ref:n,className:V("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus: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(IM,{className:"flex items-center justify-center",children:r.jsx(O0,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ux.displayName=qS.displayName;const Nl=["sender","forms","mail","page"],WS=8;function MM(e){var n,s;const t={};return e.forms.forEach(a=>{t[a.key]={selected:a.selected,field:a.field}}),{senderEmail:e.sender.email,senderName:e.sender.name,forms:t,subject:e.mail.subject,design:e.mail.design,pageMode:e.page.mode,pageId:e.page.pageId||((s=(n=e.page.pages[0])==null?void 0:n.id)!=null?s:0)}}function fx(e){if(e instanceof dd){const t=e.body;return t!=null&&t.errors&&Object.keys(t.errors).length?t.errors:{_:e.message}}return{_:l("Something went wrong. Please try again.")}}function DM(e){const t=e.lastIndexOf("@");return t===-1?"":e.slice(t+1).toLowerCase().replace(/^www\./,"")}function FM(){var ne,F,te;const e=Sn(),t=Ze(),{data:n,isLoading:s,isError:a}=we({queryKey:kp,queryFn:lO,staleTime:1/0}),[i,o]=f.useState(0),[c,d]=f.useState(null),[u,h]=f.useState({}),[m,y]=f.useState(null),[v,w]=f.useState(null);f.useEffect(()=>{n&&!c&&(d(MM(n)),o(n.status==="done"?0:Math.min(n.step,Nl.length-1)))},[n,c]);const g=(A,D=i)=>t.setQueryData(Cp,{status:A,step:D,steps:Nl.length}),j=Ee({mutationFn:({name:A,data:D})=>cO(A,D)}),b=Ee({mutationFn:dO}),p=Ee({mutationFn:uO}),x=Ee({mutationFn:fO,onSuccess:()=>{g("skipped"),e("/")}}),N=j.isPending||p.isPending||b.isPending;if(a)return r.jsx(gu,{children:r.jsx(Z,{children:r.jsxs(ee,{className:"p-6 space-y-3",children:[r.jsx("p",{children:l("The setup wizard could not be loaded.")}),r.jsx(U,{variant:"outline",onClick:()=>e("/"),children:l("Go to the dashboard")})]})})});if(s||!n||!c)return r.jsxs(gu,{children:[r.jsx(ie,{className:"h-8 w-1/2"}),r.jsx(ie,{className:"h-64 w-full"})]});const S=A=>{d({...c,...A}),h({})},k=A=>{switch(A){case"sender":return{email:c.senderEmail,name:c.senderName};case"forms":return{forms:Object.entries(c.forms).filter(([,D])=>D.selected).map(([D,W])=>({key:D,field:W.field}))};case"mail":return{subject:c.subject,design:c.design};case"page":return c.pageMode==="new"?{mode:"new"}:{mode:"existing",pageId:c.pageId}}},_=async()=>{try{return await j.mutateAsync({name:Nl[i],data:k(Nl[i])}),!0}catch(A){return h(fx(A)),!1}},C=async()=>{await _()&&(g("pending",i+1),o(i+1))},R=async()=>{var A,D;if(w(null),!!await _())try{const W=await b.mutateAsync();w((D=(A=W.data)==null?void 0:A.to)!=null?D:n.testMailTo)}catch(W){h(fx(W))}},T=async()=>{var A;if(await _())try{const D=await p.mutateAsync();y((A=D.data)!=null?A:{enabled:[],incomplete:[]}),g("done",Nl.length),t.invalidateQueries({queryKey:["forms"]}),t.invalidateQueries({queryKey:kp})}catch(D){h(fx(D))}};if(m)return r.jsx(gu,{children:r.jsx(qM,{overview:n,draft:c,result:m,testMailSent:v!==null})});const M=n.forms.filter(A=>!A.enabled).filter(A=>{var D;return(D=c.forms[A.key])==null?void 0:D.selected}),B=M.every(A=>c.forms[A.key].field!==""),I=/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(c.senderEmail);return r.jsxs(gu,{onSkip:()=>x.mutate(),skipDisabled:x.isPending,progress:r.jsx(LM,{current:i}),children:[i===0&&r.jsxs(vu,{title:l("Who sends the confirmation?"),lead:l("This is how the email appears in your visitors' inbox. It also applies to forms you switch on later."),error:u._,footer:r.jsx(yu,{step:i,onBack:()=>o(i-1),onNext:C,nextDisabled:!I||N}),children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsx(bu,{id:"setup-sender-name",label:l("Sender name"),prefilled:!0,error:u.name,children:r.jsx(Pe,{id:"setup-sender-name",value:c.senderName,onChange:A=>S({senderName:A.target.value}),"aria-describedby":u.name?"setup-sender-name-error":void 0})}),r.jsx(bu,{id:"setup-sender-email",label:l("Sender address"),prefilled:!0,hint:l("Ideally an address on your own domain."),error:u.email,children:r.jsx(Pe,{id:"setup-sender-email",type:"email",value:c.senderEmail,onChange:A=>S({senderEmail:A.target.value.trim()}),"aria-invalid":!I||!!u.email,"aria-describedby":u.email?"setup-sender-email-error":"setup-sender-email-hint"})})]}),I&&n.sender.domain!==""&&DM(c.senderEmail)!==n.sender.domain&&r.jsxs(Ei,{tone:"warn",children:[r.jsx("strong",{children:re(l("This address does not belong to the domain of this site (%s)."),n.sender.domain)})," ",re(l("Many inboxes treat such mails as spam. Use an address ending in @%s."),n.sender.domain)]})]}),i===1&&r.jsxs(vu,{title:l("Which forms should ask for confirmation?"),lead:l("The regular form email is only sent after the visitor has clicked the confirmation link."),error:(ne=u._)!=null?ne:u.forms,footer:r.jsx(yu,{step:i,onBack:()=>o(i-1),onNext:C,nextDisabled:!B||N,nextLabel:M.length===0?l("Skip"):void 0}),children:[r.jsx($M,{overview:n,draft:c,onChange:A=>S({forms:A})}),r.jsx(QS,{plugins:n.formPlugins})]}),i===2&&r.jsxs(vu,{title:l("This is what the confirmation email looks like"),lead:l("Text and design apply to all selected forms. You can change them per form later."),error:u._,footer:r.jsx(yu,{step:i,onBack:()=>o(i-1),onNext:C,nextDisabled:c.subject.trim()===""||N}),children:[r.jsx(bu,{id:"setup-subject",label:l("Subject"),prefilled:!0,error:u.subject,children:r.jsx(Pe,{id:"setup-subject",value:c.subject,onChange:A=>S({subject:A.target.value}),"aria-describedby":u.subject?"setup-subject-error":void 0})}),r.jsx(BM,{value:c.design,designs:n.mail.designs,onChange:A=>S({design:A})}),r.jsx(VM,{subject:c.subject,design:c.design}),!oa("email-editor")&&n.editorUrl!==""&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Your own designs with images, columns and logo?")," ",r.jsx("a",{className:"text-amber-700 dark:text-amber-400 underline",href:n.editorUrl,target:"_blank",rel:"noopener noreferrer",children:l("See the email editor (Pro)")})]})]}),i===3&&r.jsxs(vu,{title:l("What does the visitor see after clicking?"),lead:l("This page appears as soon as someone has confirmed their address."),error:(te=(F=u._)!=null?F:u.page)!=null?te:u.testMail,footer:r.jsx(yu,{step:i,onBack:()=>o(i-1),onNext:T,nextDisabled:N||c.pageMode==="existing"&&!c.pageId,nextLabel:l("Finish setup")}),children:[r.jsxs(HS,{value:c.pageMode,onValueChange:A=>S({pageMode:A}),"aria-label":l("Confirmation page"),children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ux,{id:"setup-page-new",value:"new"}),r.jsx(H,{htmlFor:"setup-page-new",className:"font-normal",children:l("Create and publish the page “Email address confirmed”")}),r.jsx(KS,{label:l("recommended")})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ux,{id:"setup-page-existing",value:"existing",disabled:n.page.pages.length===0}),r.jsx(H,{htmlFor:"setup-page-existing",className:"font-normal",children:l("Use an existing page")})]})]}),c.pageMode==="existing"&&r.jsx(bu,{id:"setup-page-select",label:l("Page"),error:u.pageId,children:r.jsx("select",{id:"setup-page-select",className:"flex h-10 w-full rounded-md border border-input bg-background px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",value:c.pageId,onChange:A=>S({pageId:Number(A.target.value)}),"aria-describedby":u.pageId?"setup-page-select-error":void 0,children:n.page.pages.map(A=>r.jsx("option",{value:A.id,children:A.title||`#${A.id}`},A.id))})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-sm font-medium",children:l("Test")}),r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsxs(U,{type:"button",variant:"outline",onClick:R,disabled:N,children:[r.jsx($n,{className:"mr-2 h-4 w-4"}),l("Send me a test email")]}),n.testMailTo!==""&&r.jsx("span",{className:"text-xs text-muted-foreground",children:re(l("goes to %s"),n.testMailTo)})]}),v&&r.jsxs(Ei,{tone:"ok",children:[r.jsx("strong",{children:re(l("Test email sent to %s."),v)})," ",l("The link in it leads to the confirmation page and confirms nothing.")]})]})]})]})}function gu({children:e,onSkip:t,skipDisabled:n,progress:s}){return r.jsx("div",{className:"min-h-[70vh] bg-background px-4 py-8",children:r.jsxs("div",{className:"mx-auto grid w-full max-w-2xl gap-5",children:[r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsxs("span",{className:"flex items-center gap-2 text-sm font-semibold",children:[r.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-primary text-primary-foreground",children:r.jsx(xs,{className:"h-4 w-4","aria-hidden":"true"})}),l("Set up Double Opt-In")]}),t&&r.jsx("button",{type:"button",onClick:t,disabled:n,className:"text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",children:l("Set up later")})]}),s,e]})})}function LM({current:e}){const t=[l("Sender"),l("Forms"),l("Confirmation email"),l("After the click")];return r.jsx("ol",{className:"grid grid-cols-4 gap-2","aria-label":l("Progress"),children:t.map((n,s)=>r.jsxs("li",{"aria-current":s===e?"step":void 0,className:V("grid gap-1.5 text-xs",s===e?"font-semibold text-foreground":"text-muted-foreground"),children:[r.jsx("span",{className:V("h-1 rounded-full",s<=e?"bg-primary":"bg-border")}),r.jsxs("span",{className:"truncate",children:[s+1," ",n]})]},n))})}function vu({title:e,lead:t,error:n,footer:s,children:a}){return r.jsx(Z,{children:r.jsxs(ee,{className:"grid gap-5 p-6",children:[r.jsxs("div",{className:"grid gap-1",children:[r.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:e}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t})]}),a,n&&r.jsx(Ei,{tone:"warn",role:"alert",children:n}),s]})})}function yu({step:e,onBack:t,onNext:n,nextDisabled:s,nextLabel:a}){return r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e>0?r.jsx(U,{type:"button",variant:"outline",onClick:t,children:l("Back")}):r.jsx("span",{className:"text-xs text-muted-foreground",children:l("Takes about 3 minutes")}),r.jsxs(U,{type:"button",onClick:n,disabled:s,children:[a!=null?a:l("Next"),r.jsx(Qo,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})]})}function bu({id:e,label:t,hint:n,error:s,prefilled:a,children:i}){return r.jsxs("div",{className:"grid gap-1.5",children:[r.jsxs(H,{htmlFor:e,className:"flex items-center gap-2",children:[t,a&&r.jsx(KS,{label:l("prefilled")})]}),i,n&&!s&&r.jsx("span",{id:`${e}-hint`,className:"text-xs text-muted-foreground",children:n}),s&&r.jsx("span",{id:`${e}-error`,className:"text-xs text-destructive",children:s})]})}function KS({label:e}){return r.jsx("span",{className:"rounded bg-primary/10 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wide text-primary",children:e})}function Ei({tone:e,role:t,children:n}){return r.jsxs("div",{role:t,className:V("flex gap-2 rounded-md px-3 py-2.5 text-sm",e==="warn"?"bg-orange-50 text-orange-900 dark:bg-orange-950/40 dark:text-orange-200":"bg-emerald-50 text-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-200"),children:[e==="warn"?r.jsx(_t,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}):r.jsx(xs,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),r.jsx("div",{children:n})]})}function $M({overview:e,draft:t,onChange:n}){var h;const[s,a]=f.useState(!1),i=e.forms,o=Object.keys((h=e.integrations)!=null?h:{}),c=new Set(i.map(m=>m.integration)).size>1;if(!e.cf7.installed&&o.length===0)return r.jsxs(Ei,{tone:"warn",children:[r.jsx("strong",{children:l("Contact Form 7 is not installed.")})," ",l("The free plugin protects Contact Form 7 forms. Install it, create a form and come back here.")," ",r.jsx("a",{className:"underline",href:e.cf7.installUrl,children:l("Install Contact Form 7")})]});if(i.length===0){const m=o.length===0||o.length===1&&o[0]==="cf7";return r.jsxs(Ei,{tone:"warn",children:[r.jsx("strong",{children:l(m?"There is no Contact Form 7 form yet.":"There is no form yet.")})," ",l("Create one and come back here. You can also skip this step.")," ",e.cf7.installed&&r.jsx("a",{className:"underline",href:e.cf7.newFormUrl,children:l("Create a form")})]})}const d=s?i:i.slice(0,WS),u=(m,y)=>n({...t.forms,[m.key]:{...t.forms[m.key],...y}});return r.jsxs("div",{className:"grid gap-2",children:[d.map(m=>{const y=t.forms[m.key],v=y.selected&&y.field==="",w=m.key.replace(/[^a-zA-Z0-9_-]/g,"-"),g=`setup-form-${w}`,j=`setup-form-field-${w}`;return r.jsxs("div",{className:V("grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-2 rounded-md border p-3 sm:grid-cols-[auto_1fr_12rem]",v&&"border-orange-400"),children:[r.jsx(Si,{id:g,checked:m.enabled||y.selected,disabled:m.enabled,onCheckedChange:b=>u(m,{selected:b===!0})}),r.jsxs(H,{htmlFor:g,className:"grid cursor-pointer gap-0.5 font-normal",children:[r.jsxs("span",{className:"font-medium",children:[m.title,c&&r.jsx("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:m.integrationName})]}),r.jsx("span",{className:"text-xs text-muted-foreground",children:m.enabled?l("Double Opt-In is already active — this form stays as it is."):m.detectedField?l("Email field detected automatically"):l("No email field detected, please choose one")})]}),!m.enabled&&r.jsxs("select",{id:j,"aria-label":re(l("Email field for %s"),m.title),className:"col-span-2 flex h-9 w-full rounded-md border border-input bg-background px-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:col-span-1",value:y.field,onChange:b=>u(m,{field:b.target.value,selected:b.target.value!==""||y.selected}),children:[r.jsx("option",{value:"",children:l("Choose email field …")}),m.fields.map(b=>r.jsx("option",{value:b.key,children:b.label===b.key?b.key:`${b.label} (${b.key})`},b.key))]})]},m.key)}),!s&&i.length>WS&&r.jsx(U,{type:"button",variant:"ghost",className:"justify-self-start",onClick:()=>a(!0),children:re(l("Show all %d forms"),i.length)})]})}function QS({plugins:e}){return e.length===0?null:r.jsx("div",{className:"grid gap-2",children:e.map(t=>r.jsxs("div",{className:"grid gap-1 rounded-md border border-dashed border-amber-500 bg-amber-50 p-3 text-sm dark:bg-amber-950/30",children:[r.jsxs("span",{children:[r.jsx("strong",{className:"text-amber-800 dark:text-amber-300",children:re(l("%s detected."),t.name)})," ",re(l("Forms built with %s do not have Double Opt-In yet. There is an addon for that."),t.name)]}),t.productUrl!==""&&r.jsxs("a",{href:t.productUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-semibold text-amber-800 underline dark:text-amber-300",children:[re(l("See the %s addon"),t.name),r.jsx(di,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]},t.id))})}const zM={light:()=>l("Light"),dark:()=>l("Dark"),accent:()=>l("Accent"),plain:()=>l("Text only")},UM={light:{page:"#f3f4f6",card:"#ffffff",button:"#2271b1"},dark:{page:"#0f1216",card:"#1c2128",button:"#3b82f6"},accent:{page:"#fdf6dd",card:"#ffffff",button:"#f5c518"},plain:{page:"#ffffff",card:"#ffffff"}};function BM({value:e,designs:t,onChange:n}){return r.jsxs("div",{className:"grid gap-1.5",children:[r.jsx("span",{className:"text-sm font-medium",id:"setup-design-label",children:l("Design")}),r.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",role:"group","aria-labelledby":"setup-design-label",children:t.map(s=>{const a=UM[s];return r.jsxs("button",{type:"button","aria-pressed":e===s,onClick:()=>n(s),className:V("grid gap-1.5 rounded-md border-2 p-2 text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e===s?"border-primary":"border-border"),children:[r.jsx("span",{className:"grid aspect-[4/3] content-center justify-items-center gap-1 rounded p-2",style:{background:a.page},"aria-hidden":"true",children:r.jsxs("span",{className:"grid w-full gap-1 rounded-sm p-1.5",style:{background:a.card},children:[r.jsx("span",{className:"h-1 w-3/4 rounded bg-slate-300"}),r.jsx("span",{className:"h-1 w-full rounded bg-slate-200"}),a.button?r.jsx("span",{className:"mx-auto h-1.5 w-1/2 rounded",style:{background:a.button}}):r.jsx("span",{className:"h-1 w-1/2 rounded bg-sky-400"})]})}),zM[s]()]},s)})})]})}function VM({subject:e,design:t}){return r.jsxs("div",{className:"grid gap-2 rounded-md border bg-muted/40 p-3 text-sm","aria-label":l("Preview of the email text"),children:[r.jsx("strong",{children:e}),r.jsx("span",{children:l("Hello, this email address was just entered on our site. To make sure it was really you, please confirm it with one click.")}),r.jsx("span",{className:"font-mono text-xs text-primary",children:t==="plain"?"[doubleoptinlink]":`[ ${l("Confirm email address")} ]`}),r.jsx("span",{className:"text-muted-foreground",children:l("If you did not request this, simply ignore this email. Nothing happens without your confirmation.")})]})}function qM({overview:e,draft:t,result:n,testMailSent:s}){const a=f.useMemo(()=>{const i=new Map(e.forms.map(o=>[o.key,o.title]));return{enabled:n.enabled.map(o=>{var c;return(c=i.get(o))!=null?c:`#${o}`}),incomplete:n.incomplete.map(o=>{var c;return(c=i.get(o.id))!=null?c:`#${o.id}`})}},[e,n]);return r.jsx(Z,{children:r.jsxs(ee,{className:"grid gap-5 p-6",children:[r.jsx("span",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300",children:r.jsx(xs,{className:"h-6 w-6","aria-hidden":"true"})}),r.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:l("Double Opt-In is set up")}),r.jsxs("ul",{className:"grid gap-2 text-sm",children:[r.jsx(ju,{children:re(l("Sender: %1$s <%2$s>"),t.senderName,t.senderEmail)}),r.jsx(ju,{children:a.enabled.length>0?re(l("Double Opt-In active for: %s"),a.enabled.join(", ")):l("No form switched on yet — you can do that under Forms.")}),r.jsx(ju,{children:t.pageMode==="new"?l("Confirmation page “Email address confirmed” created and published"):l("Confirmation page: existing page")}),s&&r.jsx(ju,{children:l("Test email sent")})]}),a.incomplete.length>0&&r.jsx(Ei,{tone:"warn",children:re(l("Not switched on because settings are missing: %s"),a.incomplete.join(", "))}),r.jsx(QS,{plugins:e.formPlugins}),r.jsxs("div",{className:"flex flex-wrap justify-between gap-3",children:[r.jsx(U,{asChild:!0,variant:"outline",children:r.jsx(vt,{to:"/forms",children:l("Forms")})}),r.jsx(U,{asChild:!0,children:r.jsx(vt,{to:"/",children:l("Go to the dashboard")})})]})]})})}function ju({children:e}){return r.jsxs("li",{className:"flex gap-2",children:[r.jsx(xs,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-600","aria-hidden":"true"}),r.jsx("span",{children:e})]})}function HM(e){switch(e){case"core":return l("Getting started");case"integrations":return l("Form integrations");default:return l("Pro modules")}}const WM=["core","modules","integrations"];function GS(){var h,m;const{id:e}=ai(),t=Sn(),{data:n,isLoading:s}=we({queryKey:["help-list"],queryFn:()=>Q("/help")}),a=(m=(h=n==null?void 0:n.data)==null?void 0:h.articles)!=null?m:[];f.useEffect(()=>{!e&&a.length>0&&t(`/help/${a[0].id}`,{replace:!0})},[e,a,t]);const{data:i,isLoading:o,isError:c}=we({queryKey:["help-article",e],queryFn:()=>Q(`/help/${e}`),enabled:!!e}),d=i==null?void 0:i.data;f.useEffect(()=>{window.scrollTo({top:0})},[e]);const u=ht().supportUrl;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Help")}),r.jsx("p",{className:"text-muted-foreground",children:l("Guides for setting up Double Opt-In and every module, with screenshots.")})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[16rem_minmax(0,1fr)] gap-6 items-start",children:[r.jsx("nav",{"aria-label":l("Help articles"),className:"space-y-5",children:s?r.jsx("div",{className:"space-y-2",children:Array.from({length:6}).map((y,v)=>r.jsx(ie,{className:"h-5 w-full"},v))}):a.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:l("No help articles found.")}):WM.map(y=>{const v=a.filter(w=>w.group===y);return v.length===0?null:r.jsxs("div",{children:[r.jsx("h2",{className:"mb-1.5 px-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:HM(y)}),r.jsx("ul",{className:"space-y-0.5",children:v.map(w=>r.jsx("li",{children:r.jsx(Ub,{to:`/help/${w.id}`,className:({isActive:g})=>V("block rounded-md px-2 py-1.5 text-sm leading-snug focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",g?"bg-primary/10 font-medium text-primary":"text-foreground hover:bg-muted"),children:w.group==="core"?w.title:w.source})},w.id))})]},y)})}),r.jsx(Z,{children:r.jsx(ee,{className:"p-6 lg:p-8",children:o||!e&&s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(ie,{className:"h-8 w-2/3"}),r.jsx(ie,{className:"h-4 w-full"}),r.jsx(ie,{className:"h-4 w-5/6"}),r.jsx(ie,{className:"h-48 w-full"})]}):c||e&&!d?r.jsx("p",{className:"text-sm text-muted-foreground",children:l("This article could not be loaded.")}):d?r.jsxs(r.Fragment,{children:[r.jsx("article",{className:"doi-help",dangerouslySetInnerHTML:{__html:d.html}}),u&&r.jsxs("p",{className:"mt-8 flex items-center gap-2 border-t pt-4 text-sm text-muted-foreground",children:[r.jsx(T0,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),r.jsxs("span",{children:[l("Still stuck?")," ",r.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-2",children:l("Contact support")})]})]})]}):null})})]})]})}function KM(){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:l("Page not found")}),r.jsx(vt,{to:"/",className:"text-primary hover:underline",children:l("Return to Dashboard")})]})}function QM(){const{id:e=""}=ai(),t=/^[a-z0-9-]{1,40}$/.test(e)?e:"";return t===""?null:r.jsx(Ar,{addonId:t,featureName:t,children:r.jsx(Hn,{id:`page.${t}`})})}const GM=new m_({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),YM=()=>(f.useEffect(()=>{TE()},[]),r.jsx(h_,{client:GM,children:r.jsxs(Wj,{children:[r.jsx(BT,{}),r.jsx(bR,{}),r.jsx(aA,{children:r.jsx(bE,{children:r.jsxs(fE,{children:[r.jsxs(Ge,{element:r.jsx(nO,{}),children:[r.jsx(Ge,{path:"/",element:r.jsx(bO,{})}),r.jsx(Ge,{path:"/analytics",element:r.jsx(Ar,{addonId:"analytics",featureName:"Analytics",children:r.jsx(Hn,{id:"page.analytics"})})}),r.jsx(Ge,{path:"/optins",element:r.jsx(p3,{})}),r.jsx(Ge,{path:"/optins/:id",element:r.jsx(D3,{})}),r.jsx(Ge,{path:"/forms",element:r.jsx(H3,{})}),r.jsx(Ge,{path:"/forms/:integration/:id/settings",element:r.jsx(pI,{})}),r.jsx(Ge,{path:"/categories",element:r.jsx(tS,{})}),r.jsx(Ge,{path:"/categories/:id",element:r.jsx(tS,{})}),r.jsx(Ge,{path:"/settings",element:r.jsx(vI,{})}),r.jsx(Ge,{path:"/email-templates",element:r.jsx(Ar,{addonId:"email-editor",featureName:"Email Templates",children:r.jsx(yI,{})})}),r.jsx(Ge,{path:"/email-templates/new",element:r.jsx(Ar,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(PS,{})})}),r.jsx(Ge,{path:"/email-templates/:id/edit",element:r.jsx(Ar,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(PS,{})})}),r.jsx(Ge,{path:"/database",element:r.jsx(bI,{})}),r.jsx(Ge,{path:"/opt-out",element:r.jsx(Ar,{addonId:"opt-out",featureName:"Opt-Out",children:r.jsx($I,{})})}),r.jsx(Ge,{path:"/user-creation",element:r.jsx(Ar,{addonId:"user-registration",featureName:"User Creation",children:r.jsx(qI,{})})}),r.jsx(Ge,{path:"/api",element:r.jsx(Ar,{addonId:"cleverreach",featureName:"CleverReach",children:r.jsx(WI,{})})}),r.jsx(Ge,{path:"/audit",element:r.jsx(SM,{})}),r.jsx(Ge,{path:"/help",element:r.jsx(GS,{})}),r.jsx(Ge,{path:"/help/:id",element:r.jsx(GS,{})}),r.jsx(Ge,{path:"/license",element:r.jsx(KI,{})}),r.jsx(Ge,{path:"/addons",element:r.jsx(QI,{})}),r.jsx(Ge,{path:"/addon-settings/:id",element:r.jsx(bM,{})}),r.jsx(Ge,{path:"/addon/:id",element:r.jsx(QM,{})})]}),r.jsx(Ge,{path:"/setup",element:r.jsx(FM,{})}),r.jsx(Ge,{path:"*",element:r.jsx(KM,{})})]})})})]})})),YS=document.getElementById("doi-admin-root");YS&&Qy(YS).render(r.jsx(YM,{}))})(wp.i18n); | |
| 500 | + | |
| 501 | +})(); | |