133 lines
346 KiB
JavaScript
133 lines
346 KiB
JavaScript
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){#comfyui-align-overlay *,#comfyui-align-overlay :before,#comfyui-align-overlay :after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}@layer theme{#comfyui-align-overlay{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-medium:500;--radius-md:.375rem;--radius-lg:.5rem;--radius-4xl:2rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{#comfyui-align-overlay *,#comfyui-align-overlay :after,#comfyui-align-overlay :before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}#comfyui-align-overlay ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}#comfyui-align-overlay{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}#comfyui-align-overlay hr{height:0;color:inherit;border-top-width:1px}#comfyui-align-overlay abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#comfyui-align-overlay h1,#comfyui-align-overlay h2,#comfyui-align-overlay h3,#comfyui-align-overlay h4,#comfyui-align-overlay h5,#comfyui-align-overlay h6{font-size:inherit;font-weight:inherit}#comfyui-align-overlay a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}#comfyui-align-overlay b,#comfyui-align-overlay strong{font-weight:bolder}#comfyui-align-overlay code,#comfyui-align-overlay kbd,#comfyui-align-overlay samp,#comfyui-align-overlay pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}#comfyui-align-overlay small{font-size:80%}#comfyui-align-overlay sub,#comfyui-align-overlay sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}#comfyui-align-overlay sub{bottom:-.25em}#comfyui-align-overlay sup{top:-.5em}#comfyui-align-overlay table{text-indent:0;border-color:inherit;border-collapse:collapse}#comfyui-align-overlay :-moz-focusring{outline:auto}#comfyui-align-overlay progress{vertical-align:baseline}#comfyui-align-overlay summary{display:list-item}#comfyui-align-overlay ol,#comfyui-align-overlay ul,#comfyui-align-overlay menu{list-style:none}#comfyui-align-overlay img,#comfyui-align-overlay svg,#comfyui-align-overlay video,#comfyui-align-overlay canvas,#comfyui-align-overlay audio,#comfyui-align-overlay iframe,#comfyui-align-overlay embed,#comfyui-align-overlay object{vertical-align:middle;display:block}#comfyui-align-overlay img,#comfyui-align-overlay video{max-width:100%;height:auto}#comfyui-align-overlay button,#comfyui-align-overlay input,#comfyui-align-overlay select,#comfyui-align-overlay optgroup,#comfyui-align-overlay textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}#comfyui-align-overlay ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}#comfyui-align-overlay :where(select:is([multiple],[size])) optgroup{font-weight:bolder}#comfyui-align-overlay :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}#comfyui-align-overlay ::file-selector-button{margin-inline-end:4px}#comfyui-align-overlay ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){#comfyui-align-overlay ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}#comfyui-align-overlay textarea{resize:vertical}#comfyui-align-overlay ::-webkit-search-decoration{-webkit-appearance:none}#comfyui-align-overlay ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}#comfyui-align-overlay ::-webkit-datetime-edit{display:inline-flex}#comfyui-align-overlay ::-webkit-datetime-edit-fields-wrapper{padding:0}#comfyui-align-overlay ::-webkit-datetime-edit{padding-block:0}#comfyui-align-overlay ::-webkit-datetime-edit-year-field{padding-block:0}#comfyui-align-overlay ::-webkit-datetime-edit-month-field{padding-block:0}#comfyui-align-overlay ::-webkit-datetime-edit-day-field{padding-block:0}#comfyui-align-overlay ::-webkit-datetime-edit-hour-field{padding-block:0}#comfyui-align-overlay ::-webkit-datetime-edit-minute-field{padding-block:0}#comfyui-align-overlay ::-webkit-datetime-edit-second-field{padding-block:0}#comfyui-align-overlay ::-webkit-datetime-edit-millisecond-field{padding-block:0}#comfyui-align-overlay ::-webkit-datetime-edit-meridiem-field{padding-block:0}#comfyui-align-overlay ::-webkit-calendar-picker-indicator{line-height:1}#comfyui-align-overlay :-moz-ui-invalid{box-shadow:none}#comfyui-align-overlay button,#comfyui-align-overlay input:where([type=button],[type=reset],[type=submit]){appearance:button}#comfyui-align-overlay ::file-selector-button{appearance:button}#comfyui-align-overlay ::-webkit-inner-spin-button{height:auto}#comfyui-align-overlay ::-webkit-outer-spin-button{height:auto}#comfyui-align-overlay [hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{#comfyui-align-overlay .pointer-events-auto{pointer-events:auto}#comfyui-align-overlay .pointer-events-none{pointer-events:none}#comfyui-align-overlay .collapse{visibility:collapse}#comfyui-align-overlay .invisible{visibility:hidden}#comfyui-align-overlay .visible{visibility:visible}#comfyui-align-overlay .sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}#comfyui-align-overlay .not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}#comfyui-align-overlay .absolute{position:absolute}#comfyui-align-overlay .fixed{position:fixed}#comfyui-align-overlay .relative{position:relative}#comfyui-align-overlay .static{position:static}#comfyui-align-overlay .sticky{position:sticky}#comfyui-align-overlay .inset-0{inset:calc(var(--spacing)*0)}#comfyui-align-overlay .-top-1{top:calc(var(--spacing)*-1)}#comfyui-align-overlay .top-0{top:calc(var(--spacing)*0)}#comfyui-align-overlay .-right-1{right:calc(var(--spacing)*-1)}#comfyui-align-overlay .right-0{right:calc(var(--spacing)*0)}#comfyui-align-overlay .right-\\[calc\\(100\\%\\+8px\\)\\]{right:calc(100% + 8px)}#comfyui-align-overlay .bottom-0{bottom:calc(var(--spacing)*0)}#comfyui-align-overlay .left-0{left:calc(var(--spacing)*0)}#comfyui-align-overlay .left-1{left:calc(var(--spacing)*1)}#comfyui-align-overlay .left-1\\/2{left:50%}#comfyui-align-overlay .isolate{isolation:isolate}#comfyui-align-overlay .isolation-auto{isolation:auto}#comfyui-align-overlay .container{width:100%}@media(min-width:40rem){#comfyui-align-overlay .container{max-width:40rem}}@media(min-width:48rem){#comfyui-align-overlay .container{max-width:48rem}}@media(min-width:64rem){#comfyui-align-overlay .container{max-width:64rem}}@media(min-width:80rem){#comfyui-align-overlay .container{max-width:80rem}}@media(min-width:96rem){#comfyui-align-overlay .container{max-width:96rem}}#comfyui-align-overlay .mt-2{margin-top:calc(var(--spacing)*2)}#comfyui-align-overlay .mt-2\\.5{margin-top:calc(var(--spacing)*2.5)}#comfyui-align-overlay .mt-4{margin-top:calc(var(--spacing)*4)}#comfyui-align-overlay .mr-1{margin-right:calc(var(--spacing)*1)}#comfyui-align-overlay .ml-2{margin-left:calc(var(--spacing)*2)}#comfyui-align-overlay .block{display:block}#comfyui-align-overlay .contents{display:contents}#comfyui-align-overlay .flex{display:flex}#comfyui-align-overlay .flow-root{display:flow-root}#comfyui-align-overlay .grid{display:grid}#comfyui-align-overlay .hidden{display:none}#comfyui-align-overlay .inline{display:inline}#comfyui-align-overlay .inline-block{display:inline-block}#comfyui-align-overlay .inline-flex{display:inline-flex}#comfyui-align-overlay .inline-grid{display:inline-grid}#comfyui-align-overlay .inline-table{display:inline-table}#comfyui-align-overlay .list-item{display:list-item}#comfyui-align-overlay .table{display:table}#comfyui-align-overlay .table-caption{display:table-caption}#comfyui-align-overlay .table-cell{display:table-cell}#comfyui-align-overlay .table-column{display:table-column}#comfyui-align-overlay .table-column-group{display:table-column-group}#comfyui-align-overlay .table-footer-group{display:table-footer-group}#comfyui-align-overlay .table-header-group{display:table-header-group}#comfyui-align-overlay .table-row{display:table-row}#comfyui-align-overlay .table-row-group{display:table-row-group}#comfyui-align-overlay .h-2{height:calc(var(--spacing)*2)}#comfyui-align-overlay .h-3{height:calc(var(--spacing)*3)}#comfyui-align-overlay .h-3\\.5{height:calc(var(--spacing)*3.5)}#comfyui-align-overlay .h-4{height:calc(var(--spacing)*4)}#comfyui-align-overlay .h-5{height:calc(var(--spacing)*5)}#comfyui-align-overlay .h-6{height:calc(var(--spacing)*6)}#comfyui-align-overlay .h-8{height:calc(var(--spacing)*8)}#comfyui-align-overlay .h-10{height:calc(var(--spacing)*10)}#comfyui-align-overlay .h-\\[30px\\]{height:30px}#comfyui-align-overlay .h-\\[300px\\]{height:300px}#comfyui-align-overlay .h-\\[526px\\]{height:526px}#comfyui-align-overlay .h-full{height:100%}#comfyui-align-overlay .h-screen{height:100vh}#comfyui-align-overlay .w-2{width:calc(var(--spacing)*2)}#comfyui-align-overlay .w-2\\.5{width:calc(var(--spacing)*2.5)}#comfyui-align-overlay .w-3{width:calc(var(--spacing)*3)}#comfyui-align-overlay .w-3\\.5{width:calc(var(--spacing)*3.5)}#comfyui-align-overlay .w-4{width:calc(var(--spacing)*4)}#comfyui-align-overlay .w-5{width:calc(var(--spacing)*5)}#comfyui-align-overlay .w-6{width:calc(var(--spacing)*6)}#comfyui-align-overlay .w-8{width:calc(var(--spacing)*8)}#comfyui-align-overlay .w-10{width:calc(var(--spacing)*10)}#comfyui-align-overlay .w-\\[30px\\]{width:30px}#comfyui-align-overlay .w-\\[50px\\]{width:50px}#comfyui-align-overlay .w-\\[58px\\]{width:58px}#comfyui-align-overlay .w-\\[78px\\]{width:78px}#comfyui-align-overlay .w-\\[280px\\]{width:280px}#comfyui-align-overlay .w-\\[300px\\]{width:300px}#comfyui-align-overlay .w-\\[330px\\]{width:330px}#comfyui-align-overlay .w-\\[346px\\]{width:346px}#comfyui-align-overlay .w-full{width:100%}#comfyui-align-overlay .flex-1{flex:1}#comfyui-align-overlay .shrink{flex-shrink:1}#comfyui-align-overlay .shrink-0{flex-shrink:0}#comfyui-align-overlay .grow{flex-grow:1}#comfyui-align-overlay .border-collapse{border-collapse:collapse}#comfyui-align-overlay .-translate-x-1{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}#comfyui-align-overlay .-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}#comfyui-align-overlay .translate-none{translate:none}#comfyui-align-overlay .scale-3d{scale:var(--tw-scale-x)var(--tw-scale-y)var(--tw-scale-z)}#comfyui-align-overlay .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}#comfyui-align-overlay .animate-pulse{animation:var(--animate-pulse)}#comfyui-align-overlay .cursor-crosshair{cursor:crosshair}#comfyui-align-overlay .cursor-move{cursor:move}#comfyui-align-overlay .cursor-not-allowed{cursor:not-allowed}#comfyui-align-overlay .cursor-pointer{cursor:pointer}#comfyui-align-overlay .cursor-text{cursor:text}#comfyui-align-overlay .touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}#comfyui-align-overlay .resize{resize:both}#comfyui-align-overlay .grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}#comfyui-align-overlay .flex-col{flex-direction:column}#comfyui-align-overlay .flex-wrap{flex-wrap:wrap}#comfyui-align-overlay .items-center{align-items:center}#comfyui-align-overlay .items-end{align-items:flex-end}#comfyui-align-overlay .justify-between{justify-content:space-between}#comfyui-align-overlay .justify-center{justify-content:center}#comfyui-align-overlay .gap-1{gap:calc(var(--spacing)*1)}#comfyui-align-overlay .gap-2{gap:calc(var(--spacing)*2)}#comfyui-align-overlay .gap-2\\.5{gap:calc(var(--spacing)*2.5)}#comfyui-align-overlay :where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}#comfyui-align-overlay :where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}#comfyui-align-overlay :where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}#comfyui-align-overlay :where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}#comfyui-align-overlay :where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}#comfyui-align-overlay .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#comfyui-align-overlay .overflow-auto{overflow:auto}#comfyui-align-overlay .overflow-hidden{overflow:hidden}#comfyui-align-overlay .overflow-visible{overflow:visible}#comfyui-align-overlay .rounded{border-radius:.25rem}#comfyui-align-overlay .rounded-4xl{border-radius:var(--radius-4xl)}#comfyui-align-overlay .rounded-full{border-radius:3.40282e38px}#comfyui-align-overlay .rounded-lg{border-radius:var(--radius-lg)}#comfyui-align-overlay .rounded-md{border-radius:var(--radius-md)}#comfyui-align-overlay .rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}#comfyui-align-overlay .rounded-ss{border-start-start-radius:.25rem}#comfyui-align-overlay .rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}#comfyui-align-overlay .rounded-se{border-start-end-radius:.25rem}#comfyui-align-overlay .rounded-ee{border-end-end-radius:.25rem}#comfyui-align-overlay .rounded-es{border-end-start-radius:.25rem}#comfyui-align-overlay .rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}#comfyui-align-overlay .rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}#comfyui-align-overlay .rounded-tl{border-top-left-radius:.25rem}#comfyui-align-overlay .rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}#comfyui-align-overlay .rounded-tr{border-top-right-radius:.25rem}#comfyui-align-overlay .rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}#comfyui-align-overlay .rounded-br{border-bottom-right-radius:.25rem}#comfyui-align-overlay .rounded-bl{border-bottom-left-radius:.25rem}#comfyui-align-overlay .border{border-style:var(--tw-border-style);border-width:1px}#comfyui-align-overlay .border-2{border-style:var(--tw-border-style);border-width:2px}#comfyui-align-overlay .border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}#comfyui-align-overlay .border-y{border-block-style:var(--tw-border-style);border-block-width:1px}#comfyui-align-overlay .border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}#comfyui-align-overlay .border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}#comfyui-align-overlay .border-t{border-top-style:var(--tw-border-style);border-top-width:1px}#comfyui-align-overlay .border-r{border-right-style:var(--tw-border-style);border-right-width:1px}#comfyui-align-overlay .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}#comfyui-align-overlay .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}#comfyui-align-overlay .border-\\[\\#04DE71\\]{border-color:#04de71}#comfyui-align-overlay .border-blue-400{border-color:var(--color-blue-400)}#comfyui-align-overlay .border-blue-400\\/40{border-color:#54a2ff66}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .border-blue-400\\/40{border-color:color-mix(in oklab,var(--color-blue-400)40%,transparent)}}#comfyui-align-overlay .border-blue-400\\/60{border-color:#54a2ff99}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .border-blue-400\\/60{border-color:color-mix(in oklab,var(--color-blue-400)60%,transparent)}}#comfyui-align-overlay .border-gray-400{border-color:var(--color-gray-400)}#comfyui-align-overlay .border-gray-400\\/15{border-color:#99a1af26}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .border-gray-400\\/15{border-color:color-mix(in oklab,var(--color-gray-400)15%,transparent)}}#comfyui-align-overlay .border-gray-600{border-color:var(--color-gray-600)}#comfyui-align-overlay .border-gray-600\\/10{border-color:#4a55651a}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .border-gray-600\\/10{border-color:color-mix(in oklab,var(--color-gray-600)10%,transparent)}}#comfyui-align-overlay .border-gray-600\\/20{border-color:#4a556533}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .border-gray-600\\/20{border-color:color-mix(in oklab,var(--color-gray-600)20%,transparent)}}#comfyui-align-overlay .bg-\\[\\#0c0c0c\\]{background-color:#0c0c0c}#comfyui-align-overlay .bg-\\[\\#1a1a1a\\]{background-color:#1a1a1a}#comfyui-align-overlay .bg-blue-400{background-color:var(--color-blue-400)}#comfyui-align-overlay .bg-blue-500{background-color:var(--color-blue-500)}#comfyui-align-overlay .bg-blue-500\\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .bg-blue-500\\/20{background-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}#comfyui-align-overlay .bg-gray-800{background-color:var(--color-gray-800)}#comfyui-align-overlay .bg-gray-800\\/50{background-color:#1e293980}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .bg-gray-800\\/50{background-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}#comfyui-align-overlay .bg-transparent{background-color:#0000}#comfyui-align-overlay .bg-repeat{background-repeat:repeat}#comfyui-align-overlay .mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}#comfyui-align-overlay .mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}#comfyui-align-overlay .p-2{padding:calc(var(--spacing)*2)}#comfyui-align-overlay .p-8{padding:calc(var(--spacing)*8)}#comfyui-align-overlay .px-0{padding-inline:calc(var(--spacing)*0)}#comfyui-align-overlay .px-2{padding-inline:calc(var(--spacing)*2)}#comfyui-align-overlay .px-3{padding-inline:calc(var(--spacing)*3)}#comfyui-align-overlay .py-1{padding-block:calc(var(--spacing)*1)}#comfyui-align-overlay .py-2{padding-block:calc(var(--spacing)*2)}#comfyui-align-overlay .pt-2{padding-top:calc(var(--spacing)*2)}#comfyui-align-overlay .pt-2\\.5{padding-top:calc(var(--spacing)*2.5)}#comfyui-align-overlay .text-center{text-align:center}#comfyui-align-overlay .text-left{text-align:left}#comfyui-align-overlay .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#comfyui-align-overlay .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}#comfyui-align-overlay .text-\\[12px\\]{font-size:12px}#comfyui-align-overlay .text-\\[14px\\]{font-size:14px}#comfyui-align-overlay .leading-3{--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}#comfyui-align-overlay .leading-\\[17px\\]{--tw-leading:17px;line-height:17px}#comfyui-align-overlay .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#comfyui-align-overlay .text-wrap{text-wrap:wrap}#comfyui-align-overlay .text-clip{text-overflow:clip}#comfyui-align-overlay .text-ellipsis{text-overflow:ellipsis}#comfyui-align-overlay .text-\\[\\#00A1D6\\]{color:#00a1d6}#comfyui-align-overlay .text-\\[\\#D92525\\]{color:#d92525}#comfyui-align-overlay .text-\\[\\#FFB900\\]{color:#ffb900}#comfyui-align-overlay .text-\\[\\#FFFFFF\\]{color:#fff}#comfyui-align-overlay .text-blue-400{color:var(--color-blue-400)}#comfyui-align-overlay .text-gray-200{color:var(--color-gray-200)}#comfyui-align-overlay .text-gray-300{color:var(--color-gray-300)}#comfyui-align-overlay .text-gray-400{color:var(--color-gray-400)}#comfyui-align-overlay .text-gray-400\\/88{color:#99a1afe0}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .text-gray-400\\/88{color:color-mix(in oklab,var(--color-gray-400)88%,transparent)}}#comfyui-align-overlay .text-white{color:var(--color-white)}#comfyui-align-overlay .capitalize{text-transform:capitalize}#comfyui-align-overlay .lowercase{text-transform:lowercase}#comfyui-align-overlay .normal-case{text-transform:none}#comfyui-align-overlay .uppercase{text-transform:uppercase}#comfyui-align-overlay .italic{font-style:italic}#comfyui-align-overlay .not-italic{font-style:normal}#comfyui-align-overlay .diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#comfyui-align-overlay .lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#comfyui-align-overlay .oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#comfyui-align-overlay .ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#comfyui-align-overlay .proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#comfyui-align-overlay .slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#comfyui-align-overlay .stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#comfyui-align-overlay .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,)}#comfyui-align-overlay .normal-nums{font-variant-numeric:normal}#comfyui-align-overlay .line-through{text-decoration-line:line-through}#comfyui-align-overlay .no-underline{text-decoration-line:none}#comfyui-align-overlay .overline{text-decoration-line:overline}#comfyui-align-overlay .underline{text-decoration-line:underline}#comfyui-align-overlay .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#comfyui-align-overlay .subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}#comfyui-align-overlay .placeholder-gray-500::placeholder{color:var(--color-gray-500)}#comfyui-align-overlay .opacity-50{opacity:.5}#comfyui-align-overlay .shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#comfyui-align-overlay .shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#comfyui-align-overlay .shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#comfyui-align-overlay .shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#comfyui-align-overlay .inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#comfyui-align-overlay .blur{--tw-blur:blur(8px);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,)}#comfyui-align-overlay .drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);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,)}#comfyui-align-overlay .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,)}#comfyui-align-overlay .backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}#comfyui-align-overlay .backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}#comfyui-align-overlay .backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}#comfyui-align-overlay .backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}#comfyui-align-overlay .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}#comfyui-align-overlay .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#comfyui-align-overlay .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#comfyui-align-overlay .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#comfyui-align-overlay .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#comfyui-align-overlay .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#comfyui-align-overlay .duration-200{--tw-duration:.2s;transition-duration:.2s}#comfyui-align-overlay .outline-none{--tw-outline-style:none;outline-style:none}#comfyui-align-overlay .select-none{-webkit-user-select:none;user-select:none}#comfyui-align-overlay :where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}#comfyui-align-overlay .ring-inset{--tw-ring-inset:inset}@media(hover:hover){#comfyui-align-overlay .hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}#comfyui-align-overlay .hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}#comfyui-align-overlay .hover\\:rounded-md:hover{border-radius:var(--radius-md)}#comfyui-align-overlay .hover\\:border-gray-400\\/25:hover{border-color:#99a1af40}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .hover\\:border-gray-400\\/25:hover{border-color:color-mix(in oklab,var(--color-gray-400)25%,transparent)}}#comfyui-align-overlay .hover\\:bg-\\[\\#2a2a2a\\]:hover{background-color:#2a2a2a}#comfyui-align-overlay .hover\\:bg-gray-400\\/10:hover{background-color:#99a1af1a}@supports (color:color-mix(in lab,red,red)){#comfyui-align-overlay .hover\\:bg-gray-400\\/10:hover{background-color:color-mix(in oklab,var(--color-gray-400)10%,transparent)}}#comfyui-align-overlay .hover\\:text-gray-300:hover{color:var(--color-gray-300)}#comfyui-align-overlay .hover\\:opacity-80:hover{opacity:.8}}#comfyui-align-overlay .focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}#comfyui-align-overlay .active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}#comfyui-align-overlay .disabled\\:pointer-events-none:disabled{pointer-events:none}#comfyui-align-overlay .disabled\\:opacity-50:disabled{opacity:.5}#comfyui-align-overlay .\\[\\&\\>path\\]\\:fill-\\[\\#c0c0c0\\]>path{fill:silver}@media(hover:hover){#comfyui-align-overlay .group-hover\\:\\[\\&\\>path\\]\\:fill-\\[\\#E5E5E5\\]:is(:where(.group):hover *)>path{fill:#e5e5e5}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}')),document.head.appendChild(a)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
import{app as Iu}from"/scripts/app.js";const Kg="modulepreload",Jg=function(a){return"/"+a},r0={},Bs=function(o,s,c){let d=Promise.resolve();if(s&&s.length>0){let p=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(C=>({status:"fulfilled",value:C}),C=>({status:"rejected",reason:C}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),y=f?.nonce||f?.getAttribute("nonce");d=p(s.map(m=>{if(m=Jg(m),m in r0)return;r0[m]=!0;const v=m.endsWith(".css"),C=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${C}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Kg,v||(_.as="script"),_.crossOrigin="",_.href=m,y&&_.setAttribute("nonce",y),document.head.appendChild(_),v)return new Promise((D,q)=>{_.addEventListener("load",D),_.addEventListener("error",()=>q(new Error(`Unable to preload CSS for ${m}`)))})}))}function h(f){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=f,window.dispatchEvent(y),!y.defaultPrevented)throw f}return d.then(f=>{for(const y of f||[])y.status==="rejected"&&h(y.reason);return o().catch(h)})};function Y0(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ts={exports:{}},bi={};/**
|
|
* @license React
|
|
* react-jsx-runtime.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var f0;function Fg(){if(f0)return bi;f0=1;var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(c,d,h){var f=null;if(h!==void 0&&(f=""+h),d.key!==void 0&&(f=""+d.key),"key"in d){h={};for(var y in d)y!=="key"&&(h[y]=d[y])}else h=d;return d=h.ref,{$$typeof:a,type:c,key:f,ref:d!==void 0?d:null,props:h}}return bi.Fragment=o,bi.jsx=s,bi.jsxs=s,bi}var d0;function Wg(){return d0||(d0=1,Ts.exports=Fg()),Ts.exports}var G=Wg(),ws={exports:{}},ft={};/**
|
|
* @license React
|
|
* react.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var h0;function $g(){if(h0)return ft;h0=1;var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),_=Symbol.iterator;function D(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,F={};function U(S,B,Y){this.props=S,this.context=B,this.refs=F,this.updater=Y||q}U.prototype.isReactComponent={},U.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,B,"setState")},U.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function W(){}W.prototype=U.prototype;function at(S,B,Y){this.props=S,this.context=B,this.refs=F,this.updater=Y||q}var st=at.prototype=new W;st.constructor=at,V(st,U.prototype),st.isPureReactComponent=!0;var J=Array.isArray;function lt(){}var X={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function gt(S,B,Y){var Q=Y.ref;return{$$typeof:a,type:S,key:B,ref:Q!==void 0?Q:null,props:Y}}function Jt(S,B){return gt(S.type,B,S.props)}function Ot(S){return typeof S=="object"&&S!==null&&S.$$typeof===a}function Dt(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return B[Y]})}var Ut=/\/+/g;function Xt(S,B){return typeof S=="object"&&S!==null&&S.key!=null?Dt(""+S.key):B.toString(36)}function Z(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(lt,lt):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function A(S,B,Y,Q,it){var rt=typeof S;(rt==="undefined"||rt==="boolean")&&(S=null);var ot=!1;if(S===null)ot=!0;else switch(rt){case"bigint":case"string":case"number":ot=!0;break;case"object":switch(S.$$typeof){case a:case o:ot=!0;break;case v:return ot=S._init,A(ot(S._payload),B,Y,Q,it)}}if(ot)return it=it(S),ot=Q===""?"."+Xt(S,0):Q,J(it)?(Y="",ot!=null&&(Y=ot.replace(Ut,"$&/")+"/"),A(it,B,Y,"",function(Ie){return Ie})):it!=null&&(Ot(it)&&(it=Jt(it,Y+(it.key==null||S&&S.key===it.key?"":(""+it.key).replace(Ut,"$&/")+"/")+ot)),B.push(it)),1;ot=0;var le=Q===""?".":Q+":";if(J(S))for(var Bt=0;Bt<S.length;Bt++)Q=S[Bt],rt=le+Xt(Q,Bt),ot+=A(Q,B,Y,rt,it);else if(Bt=D(S),typeof Bt=="function")for(S=Bt.call(S),Bt=0;!(Q=S.next()).done;)Q=Q.value,rt=le+Xt(Q,Bt++),ot+=A(Q,B,Y,rt,it);else if(rt==="object"){if(typeof S.then=="function")return A(Z(S),B,Y,Q,it);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ot}function O(S,B,Y){if(S==null)return S;var Q=[],it=0;return A(S,Q,"","",function(rt){return B.call(Y,rt,it++)}),Q}function H(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var k=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ht={map:O,forEach:function(S,B,Y){O(S,function(){B.apply(this,arguments)},Y)},count:function(S){var B=0;return O(S,function(){B++}),B},toArray:function(S){return O(S,function(B){return B})||[]},only:function(S){if(!Ot(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ft.Activity=C,ft.Children=ht,ft.Component=U,ft.Fragment=s,ft.Profiler=d,ft.PureComponent=at,ft.StrictMode=c,ft.Suspense=p,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ft.__COMPILER_RUNTIME={__proto__:null,c:function(S){return X.H.useMemoCache(S)}},ft.cache=function(S){return function(){return S.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(S,B,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Q=V({},S.props),it=S.key;if(B!=null)for(rt in B.key!==void 0&&(it=""+B.key),B)!K.call(B,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&B.ref===void 0||(Q[rt]=B[rt]);var rt=arguments.length-2;if(rt===1)Q.children=Y;else if(1<rt){for(var ot=Array(rt),le=0;le<rt;le++)ot[le]=arguments[le+2];Q.children=ot}return gt(S.type,it,Q)},ft.createContext=function(S){return S={$$typeof:f,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},ft.createElement=function(S,B,Y){var Q,it={},rt=null;if(B!=null)for(Q in B.key!==void 0&&(rt=""+B.key),B)K.call(B,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(it[Q]=B[Q]);var ot=arguments.length-2;if(ot===1)it.children=Y;else if(1<ot){for(var le=Array(ot),Bt=0;Bt<ot;Bt++)le[Bt]=arguments[Bt+2];it.children=le}if(S&&S.defaultProps)for(Q in ot=S.defaultProps,ot)it[Q]===void 0&&(it[Q]=ot[Q]);return gt(S,rt,it)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(S){return{$$typeof:y,render:S}},ft.isValidElement=Ot,ft.lazy=function(S){return{$$typeof:v,_payload:{_status:-1,_result:S},_init:H}},ft.memo=function(S,B){return{$$typeof:m,type:S,compare:B===void 0?null:B}},ft.startTransition=function(S){var B=X.T,Y={};X.T=Y;try{var Q=S(),it=X.S;it!==null&&it(Y,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(lt,k)}catch(rt){k(rt)}finally{B!==null&&Y.types!==null&&(B.types=Y.types),X.T=B}},ft.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ft.use=function(S){return X.H.use(S)},ft.useActionState=function(S,B,Y){return X.H.useActionState(S,B,Y)},ft.useCallback=function(S,B){return X.H.useCallback(S,B)},ft.useContext=function(S){return X.H.useContext(S)},ft.useDebugValue=function(){},ft.useDeferredValue=function(S,B){return X.H.useDeferredValue(S,B)},ft.useEffect=function(S,B){return X.H.useEffect(S,B)},ft.useEffectEvent=function(S){return X.H.useEffectEvent(S)},ft.useId=function(){return X.H.useId()},ft.useImperativeHandle=function(S,B,Y){return X.H.useImperativeHandle(S,B,Y)},ft.useInsertionEffect=function(S,B){return X.H.useInsertionEffect(S,B)},ft.useLayoutEffect=function(S,B){return X.H.useLayoutEffect(S,B)},ft.useMemo=function(S,B){return X.H.useMemo(S,B)},ft.useOptimistic=function(S,B){return X.H.useOptimistic(S,B)},ft.useReducer=function(S,B,Y){return X.H.useReducer(S,B,Y)},ft.useRef=function(S){return X.H.useRef(S)},ft.useState=function(S){return X.H.useState(S)},ft.useSyncExternalStore=function(S,B,Y){return X.H.useSyncExternalStore(S,B,Y)},ft.useTransition=function(){return X.H.useTransition()},ft.version="19.2.0",ft}var m0;function ks(){return m0||(m0=1,ws.exports=$g()),ws.exports}var T=ks();const $e=Y0(T);var _s={exports:{}},Si={},Hs={exports:{}},Ns={};/**
|
|
* @license React
|
|
* scheduler.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var g0;function Ig(){return g0||(g0=1,(function(a){function o(A,O){var H=A.length;A.push(O);t:for(;0<H;){var k=H-1>>>1,ht=A[k];if(0<d(ht,O))A[k]=O,A[H]=ht,H=k;else break t}}function s(A){return A.length===0?null:A[0]}function c(A){if(A.length===0)return null;var O=A[0],H=A.pop();if(H!==O){A[0]=H;t:for(var k=0,ht=A.length,S=ht>>>1;k<S;){var B=2*(k+1)-1,Y=A[B],Q=B+1,it=A[Q];if(0>d(Y,H))Q<ht&&0>d(it,Y)?(A[k]=it,A[Q]=H,k=Q):(A[k]=Y,A[B]=H,k=B);else if(Q<ht&&0>d(it,H))A[k]=it,A[Q]=H,k=Q;else break t}}return O}function d(A,O){var H=A.sortIndex-O.sortIndex;return H!==0?H:A.id-O.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var f=Date,y=f.now();a.unstable_now=function(){return f.now()-y}}var p=[],m=[],v=1,C=null,_=3,D=!1,q=!1,V=!1,F=!1,U=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,at=typeof setImmediate<"u"?setImmediate:null;function st(A){for(var O=s(m);O!==null;){if(O.callback===null)c(m);else if(O.startTime<=A)c(m),O.sortIndex=O.expirationTime,o(p,O);else break;O=s(m)}}function J(A){if(V=!1,st(A),!q)if(s(p)!==null)q=!0,lt||(lt=!0,Dt());else{var O=s(m);O!==null&&Z(J,O.startTime-A)}}var lt=!1,X=-1,K=5,gt=-1;function Jt(){return F?!0:!(a.unstable_now()-gt<K)}function Ot(){if(F=!1,lt){var A=a.unstable_now();gt=A;var O=!0;try{t:{q=!1,V&&(V=!1,W(X),X=-1),D=!0;var H=_;try{e:{for(st(A),C=s(p);C!==null&&!(C.expirationTime>A&&Jt());){var k=C.callback;if(typeof k=="function"){C.callback=null,_=C.priorityLevel;var ht=k(C.expirationTime<=A);if(A=a.unstable_now(),typeof ht=="function"){C.callback=ht,st(A),O=!0;break e}C===s(p)&&c(p),st(A)}else c(p);C=s(p)}if(C!==null)O=!0;else{var S=s(m);S!==null&&Z(J,S.startTime-A),O=!1}}break t}finally{C=null,_=H,D=!1}O=void 0}}finally{O?Dt():lt=!1}}}var Dt;if(typeof at=="function")Dt=function(){at(Ot)};else if(typeof MessageChannel<"u"){var Ut=new MessageChannel,Xt=Ut.port2;Ut.port1.onmessage=Ot,Dt=function(){Xt.postMessage(null)}}else Dt=function(){U(Ot,0)};function Z(A,O){X=U(function(){A(a.unstable_now())},O)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(A){A.callback=null},a.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"):K=0<A?Math.floor(1e3/A):5},a.unstable_getCurrentPriorityLevel=function(){return _},a.unstable_next=function(A){switch(_){case 1:case 2:case 3:var O=3;break;default:O=_}var H=_;_=O;try{return A()}finally{_=H}},a.unstable_requestPaint=function(){F=!0},a.unstable_runWithPriority=function(A,O){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var H=_;_=A;try{return O()}finally{_=H}},a.unstable_scheduleCallback=function(A,O,H){var k=a.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?k+H:k):H=k,A){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=H+ht,A={id:v++,callback:O,priorityLevel:A,startTime:H,expirationTime:ht,sortIndex:-1},H>k?(A.sortIndex=H,o(m,A),s(p)===null&&A===s(m)&&(V?(W(X),X=-1):V=!0,Z(J,H-k))):(A.sortIndex=ht,o(p,A),q||D||(q=!0,lt||(lt=!0,Dt()))),A},a.unstable_shouldYield=Jt,a.unstable_wrapCallback=function(A){var O=_;return function(){var H=_;_=O;try{return A.apply(this,arguments)}finally{_=H}}}})(Ns)),Ns}var y0;function Pg(){return y0||(y0=1,Hs.exports=Ig()),Hs.exports}var Os={exports:{}},re={};/**
|
|
* @license React
|
|
* react-dom.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var p0;function ty(){if(p0)return re;p0=1;var a=ks();function o(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(o(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(p,m,v){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:C==null?null:""+C,children:p,containerInfo:m,implementation:v}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,re.createPortal=function(p,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return h(p,m,null,v)},re.flushSync=function(p){var m=f.T,v=c.p;try{if(f.T=null,c.p=2,p)return p()}finally{f.T=m,c.p=v,c.d.f()}},re.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,c.d.C(p,m))},re.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},re.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var v=m.as,C=y(v,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,D=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?c.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:C,integrity:_,fetchPriority:D}):v==="script"&&c.d.X(p,{crossOrigin:C,integrity:_,fetchPriority:D,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},re.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=y(m.as,m.crossOrigin);c.d.M(p,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&c.d.M(p)},re.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,C=y(v,m.crossOrigin);c.d.L(p,v,{crossOrigin:C,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},re.preloadModule=function(p,m){if(typeof p=="string")if(m){var v=y(m.as,m.crossOrigin);c.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else c.d.m(p)},re.requestFormReset=function(p){c.d.r(p)},re.unstable_batchedUpdates=function(p,m){return p(m)},re.useFormState=function(p,m,v){return f.H.useFormState(p,m,v)},re.useFormStatus=function(){return f.H.useHostTransitionStatus()},re.version="19.2.0",re}var v0;function ey(){if(v0)return Os.exports;v0=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}return a(),Os.exports=ty(),Os.exports}/**
|
|
* @license React
|
|
* react-dom-client.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var b0;function ly(){if(b0)return Si;b0=1;var a=Pg(),o=ks(),s=ey();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(h(t)!==t)throw Error(c(188))}function m(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(c(188));return e!==t?null:t}for(var l=t,n=e;;){var i=l.return;if(i===null)break;var u=i.alternate;if(u===null){if(n=i.return,n!==null){l=n;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===l)return p(i),t;if(u===n)return p(i),e;u=u.sibling}throw Error(c(188))}if(l.return!==n.return)l=i,n=u;else{for(var r=!1,g=i.child;g;){if(g===l){r=!0,l=i,n=u;break}if(g===n){r=!0,n=i,l=u;break}g=g.sibling}if(!r){for(g=u.child;g;){if(g===l){r=!0,l=u,n=i;break}if(g===n){r=!0,n=u,l=i;break}g=g.sibling}if(!r)throw Error(c(189))}}if(l.alternate!==n)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var C=Object.assign,_=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),at=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),gt=Symbol.for("react.activity"),Jt=Symbol.for("react.memo_cache_sentinel"),Ot=Symbol.iterator;function Dt(t){return t===null||typeof t!="object"?null:(t=Ot&&t[Ot]||t["@@iterator"],typeof t=="function"?t:null)}var Ut=Symbol.for("react.client.reference");function Xt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ut?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case V:return"Fragment";case U:return"Profiler";case F:return"StrictMode";case J:return"Suspense";case lt:return"SuspenseList";case gt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case q:return"Portal";case at:return t.displayName||"Context";case W:return(t._context.displayName||"Context")+".Consumer";case st:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case X:return e=t.displayName||null,e!==null?e:Xt(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return Xt(t(e))}catch{}}return null}var Z=Array.isArray,A=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},k=[],ht=-1;function S(t){return{current:t}}function B(t){0>ht||(t.current=k[ht],k[ht]=null,ht--)}function Y(t,e){ht++,k[ht]=t.current,t.current=e}var Q=S(null),it=S(null),rt=S(null),ot=S(null);function le(t,e){switch(Y(rt,e),Y(it,t),Y(Q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Rh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Rh(e),t=Dh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(Q),Y(Q,t)}function Bt(){B(Q),B(it),B(rt)}function Ie(t){t.memoizedState!==null&&Y(ot,t);var e=Q.current,l=Dh(e,t.type);e!==l&&(Y(it,t),Y(Q,l))}function Ml(t){it.current===t&&(B(Q),B(it)),ot.current===t&&(B(ot),gi._currentValue=H)}var zl,or;function dn(t){if(zl===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);zl=e&&e[1]||"",or=-1<l.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+zl+t+or}var sc=!1;function rc(t,e){if(!t||sc)return"";sc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(N){var w=N}Reflect.construct(t,[],j)}else{try{j.call()}catch(N){w=N}t.call(j.prototype)}}else{try{throw Error()}catch(N){w=N}(j=t())&&typeof j.catch=="function"&&j.catch(function(){})}}catch(N){if(N&&w&&typeof N.stack=="string")return[N.stack,w.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),r=u[0],g=u[1];if(r&&g){var b=r.split(`
|
|
`),z=g.split(`
|
|
`);for(i=n=0;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;for(;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;if(n===b.length||i===z.length)for(n=b.length-1,i=z.length-1;1<=n&&0<=i&&b[n]!==z[i];)i--;for(;1<=n&&0<=i;n--,i--)if(b[n]!==z[i]){if(n!==1||i!==1)do if(n--,i--,0>i||b[n]!==z[i]){var R=`
|
|
`+b[n].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=n&&0<=i);break}}}finally{sc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?dn(l):""}function Em(t,e){switch(t.tag){case 26:case 27:case 5:return dn(t.type);case 16:return dn("Lazy");case 13:return t.child!==e&&e!==null?dn("Suspense Fallback"):dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return rc(t.type,!1);case 11:return rc(t.type.render,!1);case 1:return rc(t.type,!0);case 31:return dn("Activity");default:return""}}function sr(t){try{var e="",l=null;do e+=Em(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
|
|
Error generating stack: `+n.message+`
|
|
`+n.stack}}var fc=Object.prototype.hasOwnProperty,dc=a.unstable_scheduleCallback,hc=a.unstable_cancelCallback,Mm=a.unstable_shouldYield,zm=a.unstable_requestPaint,Ae=a.unstable_now,Tm=a.unstable_getCurrentPriorityLevel,rr=a.unstable_ImmediatePriority,fr=a.unstable_UserBlockingPriority,wi=a.unstable_NormalPriority,wm=a.unstable_LowPriority,dr=a.unstable_IdlePriority,_m=a.log,Hm=a.unstable_setDisableYieldValue,Ta=null,Ee=null;function Tl(t){if(typeof _m=="function"&&Hm(t),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(Ta,t)}catch{}}var Me=Math.clz32?Math.clz32:Rm,Nm=Math.log,Om=Math.LN2;function Rm(t){return t>>>=0,t===0?32:31-(Nm(t)/Om|0)|0}var _i=256,Hi=262144,Ni=4194304;function hn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Oi(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var i=0,u=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var g=n&134217727;return g!==0?(n=g&~u,n!==0?i=hn(n):(r&=g,r!==0?i=hn(r):l||(l=g&~t,l!==0&&(i=hn(l))))):(g=n&~u,g!==0?i=hn(g):r!==0?i=hn(r):l||(l=n&~t,l!==0&&(i=hn(l)))),i===0?0:e!==0&&e!==i&&(e&u)===0&&(u=i&-i,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:i}function wa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Dm(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hr(){var t=Ni;return Ni<<=1,(Ni&62914560)===0&&(Ni=4194304),t}function mc(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function _a(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Um(t,e,l,n,i,u){var r=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var g=t.entanglements,b=t.expirationTimes,z=t.hiddenUpdates;for(l=r&~l;0<l;){var R=31-Me(l),j=1<<R;g[R]=0,b[R]=-1;var w=z[R];if(w!==null)for(z[R]=null,R=0;R<w.length;R++){var N=w[R];N!==null&&(N.lane&=-536870913)}l&=~j}n!==0&&mr(t,n,0),u!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=u&~(r&~e))}function mr(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Me(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function gr(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-Me(l),i=1<<n;i&e|t[n]&e&&(t[n]|=e),l&=~i}}function yr(t,e){var l=e&-e;return l=(l&42)!==0?1:gc(l),(l&(t.suspendedLanes|e))!==0?0:l}function gc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function yc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function pr(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:n0(t.type))}function vr(t,e){var l=O.p;try{return O.p=t,e()}finally{O.p=l}}var wl=Math.random().toString(36).slice(2),ie="__reactFiber$"+wl,he="__reactProps$"+wl,Rn="__reactContainer$"+wl,pc="__reactEvents$"+wl,Bm="__reactListeners$"+wl,Lm="__reactHandles$"+wl,br="__reactResources$"+wl,Ha="__reactMarker$"+wl;function vc(t){delete t[ie],delete t[he],delete t[pc],delete t[Bm],delete t[Lm]}function Dn(t){var e=t[ie];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Rn]||l[ie]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Yh(t);t!==null;){if(l=t[ie])return l;t=Yh(t)}return e}t=l,l=t.parentNode}return null}function Un(t){if(t=t[ie]||t[Rn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Na(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Bn(t){var e=t[br];return e||(e=t[br]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ne(t){t[Ha]=!0}var Sr=new Set,xr={};function mn(t,e){Ln(t,e),Ln(t+"Capture",e)}function Ln(t,e){for(xr[t]=e,t=0;t<e.length;t++)Sr.add(e[t])}var jm=RegExp("^[: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]*$"),Cr={},Ar={};function Gm(t){return fc.call(Ar,t)?!0:fc.call(Cr,t)?!1:jm.test(t)?Ar[t]=!0:(Cr[t]=!0,!1)}function Ri(t,e,l){if(Gm(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Di(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function nl(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Er(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Vm(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(r){l=""+r,u.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function bc(t){if(!t._valueTracker){var e=Er(t)?"checked":"value";t._valueTracker=Vm(t,e,""+t[e])}}function Mr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=Er(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function Ui(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ym=/[\n"\\]/g;function Be(t){return t.replace(Ym,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Sc(t,e,l,n,i,u,r,g){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),e!=null?r==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?xc(t,r,Ue(e)):l!=null?xc(t,r,Ue(l)):n!=null&&t.removeAttribute("value"),i==null&&u!=null&&(t.defaultChecked=!!u),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Ue(g):t.removeAttribute("name")}function zr(t,e,l,n,i,u,r,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){bc(t);return}l=l!=null?""+Ue(l):"",e=e!=null?""+Ue(e):l,g||e===t.value||(t.value=e),t.defaultValue=e}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=g?t.checked:!!n,t.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r),bc(t)}function xc(t,e,l){e==="number"&&Ui(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function jn(t,e,l,n){if(t=t.options,e){e={};for(var i=0;i<l.length;i++)e["$"+l[i]]=!0;for(l=0;l<t.length;l++)i=e.hasOwnProperty("$"+t[l].value),t[l].selected!==i&&(t[l].selected=i),i&&n&&(t[l].defaultSelected=!0)}else{for(l=""+Ue(l),e=null,i=0;i<t.length;i++){if(t[i].value===l){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Tr(t,e,l){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ue(l):""}function wr(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(c(92));if(Z(n)){if(1<n.length)throw Error(c(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=Ue(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),bc(t)}function Gn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Xm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _r(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Xm.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Hr(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var i in e)n=e[i],e.hasOwnProperty(i)&&l[i]!==n&&_r(t,i,n)}else for(var u in e)e.hasOwnProperty(u)&&_r(t,u,e[u])}function Cc(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Zm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Bi(t){return Zm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function al(){}var Ac=null;function Ec(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Vn=null,Yn=null;function Nr(t){var e=Un(t);if(e&&(t=e.stateNode)){var l=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Sc(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Be(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var i=n[he]||null;if(!i)throw Error(c(90));Sc(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&Mr(n)}break t;case"textarea":Tr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&jn(t,!!l.multiple,e,!1)}}}var Mc=!1;function Or(t,e,l){if(Mc)return t(e,l);Mc=!0;try{var n=t(e);return n}finally{if(Mc=!1,(Vn!==null||Yn!==null)&&(Au(),Vn&&(e=Vn,t=Yn,Yn=Vn=null,Nr(e),t)))for(e=0;e<t.length;e++)Nr(t[e])}}function Oa(t,e){var l=t.stateNode;if(l===null)return null;var n=l[he]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(c(231,e,typeof l));return l}var il=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zc=!1;if(il)try{var Ra={};Object.defineProperty(Ra,"passive",{get:function(){zc=!0}}),window.addEventListener("test",Ra,Ra),window.removeEventListener("test",Ra,Ra)}catch{zc=!1}var _l=null,Tc=null,Li=null;function Rr(){if(Li)return Li;var t,e=Tc,l=e.length,n,i="value"in _l?_l.value:_l.textContent,u=i.length;for(t=0;t<l&&e[t]===i[t];t++);var r=l-t;for(n=1;n<=r&&e[l-n]===i[u-n];n++);return Li=i.slice(t,1<n?1-n:void 0)}function ji(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Gi(){return!0}function Dr(){return!1}function me(t){function e(l,n,i,u,r){this._reactName=l,this._targetInst=i,this.type=n,this.nativeEvent=u,this.target=r,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(l=t[g],this[g]=l?l(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Gi:Dr,this.isPropagationStopped=Dr,this}return C(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),e}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vi=me(gn),Da=C({},gn,{view:0,detail:0}),km=me(Da),wc,_c,Ua,Yi=C({},Da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ua&&(Ua&&t.type==="mousemove"?(wc=t.screenX-Ua.screenX,_c=t.screenY-Ua.screenY):_c=wc=0,Ua=t),wc)},movementY:function(t){return"movementY"in t?t.movementY:_c}}),Ur=me(Yi),Qm=C({},Yi,{dataTransfer:0}),Km=me(Qm),Jm=C({},Da,{relatedTarget:0}),Hc=me(Jm),Fm=C({},gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Wm=me(Fm),$m=C({},gn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Im=me($m),Pm=C({},gn,{data:0}),Br=me(Pm),t1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e1={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"},l1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=l1[t])?!!e[t]:!1}function Nc(){return n1}var a1=C({},Da,{key:function(t){if(t.key){var e=t1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ji(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?e1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nc,charCode:function(t){return t.type==="keypress"?ji(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ji(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),i1=me(a1),u1=C({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lr=me(u1),c1=C({},Da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nc}),o1=me(c1),s1=C({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),r1=me(s1),f1=C({},Yi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),d1=me(f1),h1=C({},gn,{newState:0,oldState:0}),m1=me(h1),g1=[9,13,27,32],Oc=il&&"CompositionEvent"in window,Ba=null;il&&"documentMode"in document&&(Ba=document.documentMode);var y1=il&&"TextEvent"in window&&!Ba,jr=il&&(!Oc||Ba&&8<Ba&&11>=Ba),Gr=" ",Vr=!1;function Yr(t,e){switch(t){case"keyup":return g1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xn=!1;function p1(t,e){switch(t){case"compositionend":return Xr(e);case"keypress":return e.which!==32?null:(Vr=!0,Gr);case"textInput":return t=e.data,t===Gr&&Vr?null:t;default:return null}}function v1(t,e){if(Xn)return t==="compositionend"||!Oc&&Yr(t,e)?(t=Rr(),Li=Tc=_l=null,Xn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return jr&&e.locale!=="ko"?null:e.data;default:return null}}var b1={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 qr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!b1[t.type]:e==="textarea"}function Zr(t,e,l,n){Vn?Yn?Yn.push(n):Yn=[n]:Vn=n,e=Hu(e,"onChange"),0<e.length&&(l=new Vi("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var La=null,ja=null;function S1(t){Th(t,0)}function Xi(t){var e=Na(t);if(Mr(e))return t}function kr(t,e){if(t==="change")return e}var Qr=!1;if(il){var Rc;if(il){var Dc="oninput"in document;if(!Dc){var Kr=document.createElement("div");Kr.setAttribute("oninput","return;"),Dc=typeof Kr.oninput=="function"}Rc=Dc}else Rc=!1;Qr=Rc&&(!document.documentMode||9<document.documentMode)}function Jr(){La&&(La.detachEvent("onpropertychange",Fr),ja=La=null)}function Fr(t){if(t.propertyName==="value"&&Xi(ja)){var e=[];Zr(e,ja,t,Ec(t)),Or(S1,e)}}function x1(t,e,l){t==="focusin"?(Jr(),La=e,ja=l,La.attachEvent("onpropertychange",Fr)):t==="focusout"&&Jr()}function C1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xi(ja)}function A1(t,e){if(t==="click")return Xi(e)}function E1(t,e){if(t==="input"||t==="change")return Xi(e)}function M1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:M1;function Ga(t,e){if(ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var i=l[n];if(!fc.call(e,i)||!ze(t[i],e[i]))return!1}return!0}function Wr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function $r(t,e){var l=Wr(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Wr(l)}}function Ir(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ir(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Pr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ui(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Ui(t.document)}return e}function Uc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var z1=il&&"documentMode"in document&&11>=document.documentMode,qn=null,Bc=null,Va=null,Lc=!1;function tf(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lc||qn==null||qn!==Ui(n)||(n=qn,"selectionStart"in n&&Uc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Va&&Ga(Va,n)||(Va=n,n=Hu(Bc,"onSelect"),0<n.length&&(e=new Vi("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=qn)))}function yn(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Zn={animationend:yn("Animation","AnimationEnd"),animationiteration:yn("Animation","AnimationIteration"),animationstart:yn("Animation","AnimationStart"),transitionrun:yn("Transition","TransitionRun"),transitionstart:yn("Transition","TransitionStart"),transitioncancel:yn("Transition","TransitionCancel"),transitionend:yn("Transition","TransitionEnd")},jc={},ef={};il&&(ef=document.createElement("div").style,"AnimationEvent"in window||(delete Zn.animationend.animation,delete Zn.animationiteration.animation,delete Zn.animationstart.animation),"TransitionEvent"in window||delete Zn.transitionend.transition);function pn(t){if(jc[t])return jc[t];if(!Zn[t])return t;var e=Zn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in ef)return jc[t]=e[l];return t}var lf=pn("animationend"),nf=pn("animationiteration"),af=pn("animationstart"),T1=pn("transitionrun"),w1=pn("transitionstart"),_1=pn("transitioncancel"),uf=pn("transitionend"),cf=new Map,Gc="abort auxClick beforeToggle 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(" ");Gc.push("scrollEnd");function Je(t,e){cf.set(t,e),mn(e,[t])}var qi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Le=[],kn=0,Vc=0;function Zi(){for(var t=kn,e=Vc=kn=0;e<t;){var l=Le[e];Le[e++]=null;var n=Le[e];Le[e++]=null;var i=Le[e];Le[e++]=null;var u=Le[e];if(Le[e++]=null,n!==null&&i!==null){var r=n.pending;r===null?i.next=i:(i.next=r.next,r.next=i),n.pending=i}u!==0&&of(l,i,u)}}function ki(t,e,l,n){Le[kn++]=t,Le[kn++]=e,Le[kn++]=l,Le[kn++]=n,Vc|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function Yc(t,e,l,n){return ki(t,e,l,n),Qi(t)}function vn(t,e){return ki(t,null,null,e),Qi(t)}function of(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var i=!1,u=t.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(i=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,i&&e!==null&&(i=31-Me(l),t=u.hiddenUpdates,n=t[i],n===null?t[i]=[e]:n.push(e),e.lane=l|536870912),u):null}function Qi(t){if(50<oi)throw oi=0,$o=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Qn={};function H1(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(t,e,l,n){return new H1(t,e,l,n)}function Xc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ul(t,e){var l=t.alternate;return l===null?(l=Te(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function sf(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ki(t,e,l,n,i,u){var r=0;if(n=t,typeof t=="function")Xc(t)&&(r=1);else if(typeof t=="string")r=Ug(t,l,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case gt:return t=Te(31,l,e,i),t.elementType=gt,t.lanes=u,t;case V:return bn(l.children,i,u,e);case F:r=8,i|=24;break;case U:return t=Te(12,l,e,i|2),t.elementType=U,t.lanes=u,t;case J:return t=Te(13,l,e,i),t.elementType=J,t.lanes=u,t;case lt:return t=Te(19,l,e,i),t.elementType=lt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case at:r=10;break t;case W:r=9;break t;case st:r=11;break t;case X:r=14;break t;case K:r=16,n=null;break t}r=29,l=Error(c(130,t===null?"null":typeof t,"")),n=null}return e=Te(r,l,e,i),e.elementType=t,e.type=n,e.lanes=u,e}function bn(t,e,l,n){return t=Te(7,t,n,e),t.lanes=l,t}function qc(t,e,l){return t=Te(6,t,null,e),t.lanes=l,t}function rf(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function Zc(t,e,l){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ff=new WeakMap;function je(t,e){if(typeof t=="object"&&t!==null){var l=ff.get(t);return l!==void 0?l:(e={value:t,source:e,stack:sr(e)},ff.set(t,e),e)}return{value:t,source:e,stack:sr(e)}}var Kn=[],Jn=0,Ji=null,Ya=0,Ge=[],Ve=0,Hl=null,Pe=1,tl="";function cl(t,e){Kn[Jn++]=Ya,Kn[Jn++]=Ji,Ji=t,Ya=e}function df(t,e,l){Ge[Ve++]=Pe,Ge[Ve++]=tl,Ge[Ve++]=Hl,Hl=t;var n=Pe;t=tl;var i=32-Me(n)-1;n&=~(1<<i),l+=1;var u=32-Me(e)+i;if(30<u){var r=i-i%5;u=(n&(1<<r)-1).toString(32),n>>=r,i-=r,Pe=1<<32-Me(e)+i|l<<i|n,tl=u+t}else Pe=1<<u|l<<i|n,tl=t}function kc(t){t.return!==null&&(cl(t,1),df(t,1,0))}function Qc(t){for(;t===Ji;)Ji=Kn[--Jn],Kn[Jn]=null,Ya=Kn[--Jn],Kn[Jn]=null;for(;t===Hl;)Hl=Ge[--Ve],Ge[Ve]=null,tl=Ge[--Ve],Ge[Ve]=null,Pe=Ge[--Ve],Ge[Ve]=null}function hf(t,e){Ge[Ve++]=Pe,Ge[Ve++]=tl,Ge[Ve++]=Hl,Pe=e.id,tl=e.overflow,Hl=t}var ue=null,Lt=null,xt=!1,Nl=null,Ye=!1,Kc=Error(c(519));function Ol(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xa(je(e,t)),Kc}function mf(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[ie]=t,e[he]=n,l){case"dialog":vt("cancel",e),vt("close",e);break;case"iframe":case"object":case"embed":vt("load",e);break;case"video":case"audio":for(l=0;l<ri.length;l++)vt(ri[l],e);break;case"source":vt("error",e);break;case"img":case"image":case"link":vt("error",e),vt("load",e);break;case"details":vt("toggle",e);break;case"input":vt("invalid",e),zr(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":vt("invalid",e);break;case"textarea":vt("invalid",e),wr(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||Nh(e.textContent,l)?(n.popover!=null&&(vt("beforetoggle",e),vt("toggle",e)),n.onScroll!=null&&vt("scroll",e),n.onScrollEnd!=null&&vt("scrollend",e),n.onClick!=null&&(e.onclick=al),e=!0):e=!1,e||Ol(t,!0)}function gf(t){for(ue=t.return;ue;)switch(ue.tag){case 5:case 31:case 13:Ye=!1;return;case 27:case 3:Ye=!0;return;default:ue=ue.return}}function Fn(t){if(t!==ue)return!1;if(!xt)return gf(t),xt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||ds(t.type,t.memoizedProps)),l=!l),l&&Lt&&Ol(t),gf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Lt=Vh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Lt=Vh(t)}else e===27?(e=Lt,Ql(t.type)?(t=ps,ps=null,Lt=t):Lt=e):Lt=ue?qe(t.stateNode.nextSibling):null;return!0}function Sn(){Lt=ue=null,xt=!1}function Jc(){var t=Nl;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),Nl=null),t}function Xa(t){Nl===null?Nl=[t]:Nl.push(t)}var Fc=S(null),xn=null,ol=null;function Rl(t,e,l){Y(Fc,e._currentValue),e._currentValue=l}function sl(t){t._currentValue=Fc.current,B(Fc)}function Wc(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function $c(t,e,l,n){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){var r=i.child;u=u.firstContext;t:for(;u!==null;){var g=u;u=i;for(var b=0;b<e.length;b++)if(g.context===e[b]){u.lanes|=l,g=u.alternate,g!==null&&(g.lanes|=l),Wc(u.return,l,t),n||(r=null);break t}u=g.next}}else if(i.tag===18){if(r=i.return,r===null)throw Error(c(341));r.lanes|=l,u=r.alternate,u!==null&&(u.lanes|=l),Wc(r,l,t),r=null}else r=i.child;if(r!==null)r.return=i;else for(r=i;r!==null;){if(r===t){r=null;break}if(i=r.sibling,i!==null){i.return=r.return,r=i;break}r=r.return}i=r}}function Wn(t,e,l,n){t=null;for(var i=e,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var r=i.alternate;if(r===null)throw Error(c(387));if(r=r.memoizedProps,r!==null){var g=i.type;ze(i.pendingProps.value,r.value)||(t!==null?t.push(g):t=[g])}}else if(i===ot.current){if(r=i.alternate,r===null)throw Error(c(387));r.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(gi):t=[gi])}i=i.return}t!==null&&$c(e,t,l,n),e.flags|=262144}function Fi(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Cn(t){xn=t,ol=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ce(t){return yf(xn,t)}function Wi(t,e){return xn===null&&Cn(t),yf(t,e)}function yf(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ol===null){if(t===null)throw Error(c(308));ol=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ol=ol.next=e;return l}var N1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},O1=a.unstable_scheduleCallback,R1=a.unstable_NormalPriority,Ft={$$typeof:at,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ic(){return{controller:new N1,data:new Map,refCount:0}}function qa(t){t.refCount--,t.refCount===0&&O1(R1,function(){t.controller.abort()})}var Za=null,Pc=0,$n=0,In=null;function D1(t,e){if(Za===null){var l=Za=[];Pc=0,$n=ns(),In={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Pc++,e.then(pf,pf),e}function pf(){if(--Pc===0&&Za!==null){In!==null&&(In.status="fulfilled");var t=Za;Za=null,$n=0,In=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function U1(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var i=0;i<l.length;i++)(0,l[i])(e)},function(i){for(n.status="rejected",n.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),n}var vf=A.S;A.S=function(t,e){eh=Ae(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&D1(t,e),vf!==null&&vf(t,e)};var An=S(null);function to(){var t=An.current;return t!==null?t:Rt.pooledCache}function $i(t,e){e===null?Y(An,An.current):Y(An,e.pool)}function bf(){var t=to();return t===null?null:{parent:Ft._currentValue,pool:t}}var Pn=Error(c(460)),eo=Error(c(474)),Ii=Error(c(542)),Pi={then:function(){}};function Sf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function xf(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(al,al),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Af(t),t;default:if(typeof e.status=="string")e.then(al,al);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=n}},function(n){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Af(t),t}throw Mn=e,Pn}}function En(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Mn=l,Pn):l}}var Mn=null;function Cf(){if(Mn===null)throw Error(c(459));var t=Mn;return Mn=null,t}function Af(t){if(t===Pn||t===Ii)throw Error(c(483))}var ta=null,ka=0;function tu(t){var e=ka;return ka+=1,ta===null&&(ta=[]),xf(ta,t,e)}function Qa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function eu(t,e){throw e.$$typeof===_?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Ef(t){function e(E,x){if(t){var M=E.deletions;M===null?(E.deletions=[x],E.flags|=16):M.push(x)}}function l(E,x){if(!t)return null;for(;x!==null;)e(E,x),x=x.sibling;return null}function n(E){for(var x=new Map;E!==null;)E.key!==null?x.set(E.key,E):x.set(E.index,E),E=E.sibling;return x}function i(E,x){return E=ul(E,x),E.index=0,E.sibling=null,E}function u(E,x,M){return E.index=M,t?(M=E.alternate,M!==null?(M=M.index,M<x?(E.flags|=67108866,x):M):(E.flags|=67108866,x)):(E.flags|=1048576,x)}function r(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function g(E,x,M,L){return x===null||x.tag!==6?(x=qc(M,E.mode,L),x.return=E,x):(x=i(x,M),x.return=E,x)}function b(E,x,M,L){var ut=M.type;return ut===V?R(E,x,M.props.children,L,M.key):x!==null&&(x.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===K&&En(ut)===x.type)?(x=i(x,M.props),Qa(x,M),x.return=E,x):(x=Ki(M.type,M.key,M.props,null,E.mode,L),Qa(x,M),x.return=E,x)}function z(E,x,M,L){return x===null||x.tag!==4||x.stateNode.containerInfo!==M.containerInfo||x.stateNode.implementation!==M.implementation?(x=Zc(M,E.mode,L),x.return=E,x):(x=i(x,M.children||[]),x.return=E,x)}function R(E,x,M,L,ut){return x===null||x.tag!==7?(x=bn(M,E.mode,L,ut),x.return=E,x):(x=i(x,M),x.return=E,x)}function j(E,x,M){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=qc(""+x,E.mode,M),x.return=E,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case D:return M=Ki(x.type,x.key,x.props,null,E.mode,M),Qa(M,x),M.return=E,M;case q:return x=Zc(x,E.mode,M),x.return=E,x;case K:return x=En(x),j(E,x,M)}if(Z(x)||Dt(x))return x=bn(x,E.mode,M,null),x.return=E,x;if(typeof x.then=="function")return j(E,tu(x),M);if(x.$$typeof===at)return j(E,Wi(E,x),M);eu(E,x)}return null}function w(E,x,M,L){var ut=x!==null?x.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ut!==null?null:g(E,x,""+M,L);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case D:return M.key===ut?b(E,x,M,L):null;case q:return M.key===ut?z(E,x,M,L):null;case K:return M=En(M),w(E,x,M,L)}if(Z(M)||Dt(M))return ut!==null?null:R(E,x,M,L,null);if(typeof M.then=="function")return w(E,x,tu(M),L);if(M.$$typeof===at)return w(E,x,Wi(E,M),L);eu(E,M)}return null}function N(E,x,M,L,ut){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return E=E.get(M)||null,g(x,E,""+L,ut);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case D:return E=E.get(L.key===null?M:L.key)||null,b(x,E,L,ut);case q:return E=E.get(L.key===null?M:L.key)||null,z(x,E,L,ut);case K:return L=En(L),N(E,x,M,L,ut)}if(Z(L)||Dt(L))return E=E.get(M)||null,R(x,E,L,ut,null);if(typeof L.then=="function")return N(E,x,M,tu(L),ut);if(L.$$typeof===at)return N(E,x,M,Wi(x,L),ut);eu(x,L)}return null}function I(E,x,M,L){for(var ut=null,At=null,nt=x,mt=x=0,St=null;nt!==null&&mt<M.length;mt++){nt.index>mt?(St=nt,nt=null):St=nt.sibling;var Et=w(E,nt,M[mt],L);if(Et===null){nt===null&&(nt=St);break}t&&nt&&Et.alternate===null&&e(E,nt),x=u(Et,x,mt),At===null?ut=Et:At.sibling=Et,At=Et,nt=St}if(mt===M.length)return l(E,nt),xt&&cl(E,mt),ut;if(nt===null){for(;mt<M.length;mt++)nt=j(E,M[mt],L),nt!==null&&(x=u(nt,x,mt),At===null?ut=nt:At.sibling=nt,At=nt);return xt&&cl(E,mt),ut}for(nt=n(nt);mt<M.length;mt++)St=N(nt,E,mt,M[mt],L),St!==null&&(t&&St.alternate!==null&&nt.delete(St.key===null?mt:St.key),x=u(St,x,mt),At===null?ut=St:At.sibling=St,At=St);return t&&nt.forEach(function($l){return e(E,$l)}),xt&&cl(E,mt),ut}function ct(E,x,M,L){if(M==null)throw Error(c(151));for(var ut=null,At=null,nt=x,mt=x=0,St=null,Et=M.next();nt!==null&&!Et.done;mt++,Et=M.next()){nt.index>mt?(St=nt,nt=null):St=nt.sibling;var $l=w(E,nt,Et.value,L);if($l===null){nt===null&&(nt=St);break}t&&nt&&$l.alternate===null&&e(E,nt),x=u($l,x,mt),At===null?ut=$l:At.sibling=$l,At=$l,nt=St}if(Et.done)return l(E,nt),xt&&cl(E,mt),ut;if(nt===null){for(;!Et.done;mt++,Et=M.next())Et=j(E,Et.value,L),Et!==null&&(x=u(Et,x,mt),At===null?ut=Et:At.sibling=Et,At=Et);return xt&&cl(E,mt),ut}for(nt=n(nt);!Et.done;mt++,Et=M.next())Et=N(nt,E,mt,Et.value,L),Et!==null&&(t&&Et.alternate!==null&&nt.delete(Et.key===null?mt:Et.key),x=u(Et,x,mt),At===null?ut=Et:At.sibling=Et,At=Et);return t&&nt.forEach(function(Qg){return e(E,Qg)}),xt&&cl(E,mt),ut}function Nt(E,x,M,L){if(typeof M=="object"&&M!==null&&M.type===V&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case D:t:{for(var ut=M.key;x!==null;){if(x.key===ut){if(ut=M.type,ut===V){if(x.tag===7){l(E,x.sibling),L=i(x,M.props.children),L.return=E,E=L;break t}}else if(x.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===K&&En(ut)===x.type){l(E,x.sibling),L=i(x,M.props),Qa(L,M),L.return=E,E=L;break t}l(E,x);break}else e(E,x);x=x.sibling}M.type===V?(L=bn(M.props.children,E.mode,L,M.key),L.return=E,E=L):(L=Ki(M.type,M.key,M.props,null,E.mode,L),Qa(L,M),L.return=E,E=L)}return r(E);case q:t:{for(ut=M.key;x!==null;){if(x.key===ut)if(x.tag===4&&x.stateNode.containerInfo===M.containerInfo&&x.stateNode.implementation===M.implementation){l(E,x.sibling),L=i(x,M.children||[]),L.return=E,E=L;break t}else{l(E,x);break}else e(E,x);x=x.sibling}L=Zc(M,E.mode,L),L.return=E,E=L}return r(E);case K:return M=En(M),Nt(E,x,M,L)}if(Z(M))return I(E,x,M,L);if(Dt(M)){if(ut=Dt(M),typeof ut!="function")throw Error(c(150));return M=ut.call(M),ct(E,x,M,L)}if(typeof M.then=="function")return Nt(E,x,tu(M),L);if(M.$$typeof===at)return Nt(E,x,Wi(E,M),L);eu(E,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,x!==null&&x.tag===6?(l(E,x.sibling),L=i(x,M),L.return=E,E=L):(l(E,x),L=qc(M,E.mode,L),L.return=E,E=L),r(E)):l(E,x)}return function(E,x,M,L){try{ka=0;var ut=Nt(E,x,M,L);return ta=null,ut}catch(nt){if(nt===Pn||nt===Ii)throw nt;var At=Te(29,nt,null,E.mode);return At.lanes=L,At.return=E,At}finally{}}}var zn=Ef(!0),Mf=Ef(!1),Dl=!1;function lo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function no(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ul(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Bl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Mt&2)!==0){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,e=Qi(t),of(t,null,l),e}return ki(t,n,e,l),Qi(t)}function Ka(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,gr(t,l)}}function ao(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var i=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?i=u=r:u=u.next=r,l=l.next}while(l!==null);u===null?i=u=e:u=u.next=e}else i=u=e;l={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var io=!1;function Ja(){if(io){var t=In;if(t!==null)throw t}}function Fa(t,e,l,n){io=!1;var i=t.updateQueue;Dl=!1;var u=i.firstBaseUpdate,r=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var b=g,z=b.next;b.next=null,r===null?u=z:r.next=z,r=b;var R=t.alternate;R!==null&&(R=R.updateQueue,g=R.lastBaseUpdate,g!==r&&(g===null?R.firstBaseUpdate=z:g.next=z,R.lastBaseUpdate=b))}if(u!==null){var j=i.baseState;r=0,R=z=b=null,g=u;do{var w=g.lane&-536870913,N=w!==g.lane;if(N?(bt&w)===w:(n&w)===w){w!==0&&w===$n&&(io=!0),R!==null&&(R=R.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var I=t,ct=g;w=e;var Nt=l;switch(ct.tag){case 1:if(I=ct.payload,typeof I=="function"){j=I.call(Nt,j,w);break t}j=I;break t;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ct.payload,w=typeof I=="function"?I.call(Nt,j,w):I,w==null)break t;j=C({},j,w);break t;case 2:Dl=!0}}w=g.callback,w!==null&&(t.flags|=64,N&&(t.flags|=8192),N=i.callbacks,N===null?i.callbacks=[w]:N.push(w))}else N={lane:w,tag:g.tag,payload:g.payload,callback:g.callback,next:null},R===null?(z=R=N,b=j):R=R.next=N,r|=w;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;N=g,g=N.next,N.next=null,i.lastBaseUpdate=N,i.shared.pending=null}}while(!0);R===null&&(b=j),i.baseState=b,i.firstBaseUpdate=z,i.lastBaseUpdate=R,u===null&&(i.shared.lanes=0),Yl|=r,t.lanes=r,t.memoizedState=j}}function zf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function Tf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)zf(l[t],e)}var ea=S(null),lu=S(0);function wf(t,e){t=vl,Y(lu,t),Y(ea,e),vl=t|e.baseLanes}function uo(){Y(lu,vl),Y(ea,ea.current)}function co(){vl=lu.current,B(ea),B(lu)}var we=S(null),Xe=null;function Ll(t){var e=t.alternate;Y(Qt,Qt.current&1),Y(we,t),Xe===null&&(e===null||ea.current!==null||e.memoizedState!==null)&&(Xe=t)}function oo(t){Y(Qt,Qt.current),Y(we,t),Xe===null&&(Xe=t)}function _f(t){t.tag===22?(Y(Qt,Qt.current),Y(we,t),Xe===null&&(Xe=t)):jl()}function jl(){Y(Qt,Qt.current),Y(we,we.current)}function _e(t){B(we),Xe===t&&(Xe=null),B(Qt)}var Qt=S(0);function nu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||gs(l)||ys(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var rl=0,dt=null,_t=null,Wt=null,au=!1,la=!1,Tn=!1,iu=0,Wa=0,na=null,B1=0;function qt(){throw Error(c(321))}function so(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ze(t[l],e[l]))return!1;return!0}function ro(t,e,l,n,i,u){return rl=u,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?dd:zo,Tn=!1,u=l(n,i),Tn=!1,la&&(u=Nf(e,l,n,i)),Hf(t),u}function Hf(t){A.H=Pa;var e=_t!==null&&_t.next!==null;if(rl=0,Wt=_t=dt=null,au=!1,Wa=0,na=null,e)throw Error(c(300));t===null||$t||(t=t.dependencies,t!==null&&Fi(t)&&($t=!0))}function Nf(t,e,l,n){dt=t;var i=0;do{if(la&&(na=null),Wa=0,la=!1,25<=i)throw Error(c(301));if(i+=1,Wt=_t=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=hd,u=e(l,n)}while(la);return u}function L1(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?$a(e):e,t=t.useState()[0],(_t!==null?_t.memoizedState:null)!==t&&(dt.flags|=1024),e}function fo(){var t=iu!==0;return iu=0,t}function ho(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function mo(t){if(au){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}au=!1}rl=0,Wt=_t=dt=null,la=!1,Wa=iu=0,na=null}function de(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?dt.memoizedState=Wt=t:Wt=Wt.next=t,Wt}function Kt(){if(_t===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=_t.next;var e=Wt===null?dt.memoizedState:Wt.next;if(e!==null)Wt=e,_t=t;else{if(t===null)throw dt.alternate===null?Error(c(467)):Error(c(310));_t=t,t={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},Wt===null?dt.memoizedState=Wt=t:Wt=Wt.next=t}return Wt}function uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $a(t){var e=Wa;return Wa+=1,na===null&&(na=[]),t=xf(na,t,e),e=dt,(Wt===null?e.memoizedState:Wt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?dd:zo),t}function cu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return $a(t);if(t.$$typeof===at)return ce(t)}throw Error(c(438,String(t)))}function go(t){var e=null,l=dt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=dt.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=uu(),dt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=Jt;return e.index++,l}function fl(t,e){return typeof e=="function"?e(t):e}function ou(t){var e=Kt();return yo(e,_t,t)}function yo(t,e,l){var n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=l;var i=t.baseQueue,u=n.pending;if(u!==null){if(i!==null){var r=i.next;i.next=u.next,u.next=r}e.baseQueue=i=u,n.pending=null}if(u=t.baseState,i===null)t.memoizedState=u;else{e=i.next;var g=r=null,b=null,z=e,R=!1;do{var j=z.lane&-536870913;if(j!==z.lane?(bt&j)===j:(rl&j)===j){var w=z.revertLane;if(w===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),j===$n&&(R=!0);else if((rl&w)===w){z=z.next,w===$n&&(R=!0);continue}else j={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(g=b=j,r=u):b=b.next=j,dt.lanes|=w,Yl|=w;j=z.action,Tn&&l(u,j),u=z.hasEagerState?z.eagerState:l(u,j)}else w={lane:j,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(g=b=w,r=u):b=b.next=w,dt.lanes|=j,Yl|=j;z=z.next}while(z!==null&&z!==e);if(b===null?r=u:b.next=g,!ze(u,t.memoizedState)&&($t=!0,R&&(l=In,l!==null)))throw l;t.memoizedState=u,t.baseState=r,t.baseQueue=b,n.lastRenderedState=u}return i===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function po(t){var e=Kt(),l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=t;var n=l.dispatch,i=l.pending,u=e.memoizedState;if(i!==null){l.pending=null;var r=i=i.next;do u=t(u,r.action),r=r.next;while(r!==i);ze(u,e.memoizedState)||($t=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function Of(t,e,l){var n=dt,i=Kt(),u=xt;if(u){if(l===void 0)throw Error(c(407));l=l()}else l=e();var r=!ze((_t||i).memoizedState,l);if(r&&(i.memoizedState=l,$t=!0),i=i.queue,So(Uf.bind(null,n,i,t),[t]),i.getSnapshot!==e||r||Wt!==null&&Wt.memoizedState.tag&1){if(n.flags|=2048,aa(9,{destroy:void 0},Df.bind(null,n,i,l,e),null),Rt===null)throw Error(c(349));u||(rl&127)!==0||Rf(n,e,l)}return l}function Rf(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=dt.updateQueue,e===null?(e=uu(),dt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Df(t,e,l,n){e.value=l,e.getSnapshot=n,Bf(e)&&Lf(t)}function Uf(t,e,l){return l(function(){Bf(e)&&Lf(t)})}function Bf(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ze(t,l)}catch{return!0}}function Lf(t){var e=vn(t,2);e!==null&&be(e,t,2)}function vo(t){var e=de();if(typeof t=="function"){var l=t;if(t=l(),Tn){Tl(!0);try{l()}finally{Tl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:t},e}function jf(t,e,l,n){return t.baseState=l,yo(t,_t,typeof n=="function"?n:fl)}function j1(t,e,l,n,i){if(fu(t))throw Error(c(485));if(t=e.action,t!==null){var u={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){u.listeners.push(r)}};A.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,Gf(e,u)):(u.next=l.next,e.pending=l.next=u)}}function Gf(t,e){var l=e.action,n=e.payload,i=t.state;if(e.isTransition){var u=A.T,r={};A.T=r;try{var g=l(i,n),b=A.S;b!==null&&b(r,g),Vf(t,e,g)}catch(z){bo(t,e,z)}finally{u!==null&&r.types!==null&&(u.types=r.types),A.T=u}}else try{u=l(i,n),Vf(t,e,u)}catch(z){bo(t,e,z)}}function Vf(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Yf(t,e,n)},function(n){return bo(t,e,n)}):Yf(t,e,l)}function Yf(t,e,l){e.status="fulfilled",e.value=l,Xf(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Gf(t,l)))}function bo(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,Xf(e),e=e.next;while(e!==n)}t.action=null}function Xf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function qf(t,e){return e}function Zf(t,e){if(xt){var l=Rt.formState;if(l!==null){t:{var n=dt;if(xt){if(Lt){e:{for(var i=Lt,u=Ye;i.nodeType!==8;){if(!u){i=null;break e}if(i=qe(i.nextSibling),i===null){i=null;break e}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Lt=qe(i.nextSibling),n=i.data==="F!";break t}}Ol(n)}n=!1}n&&(e=l[0])}}return l=de(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qf,lastRenderedState:e},l.queue=n,l=sd.bind(null,dt,n),n.dispatch=l,n=vo(!1),u=Mo.bind(null,dt,!1,n.queue),n=de(),i={state:e,dispatch:null,action:t,pending:null},n.queue=i,l=j1.bind(null,dt,i,u,l),i.dispatch=l,n.memoizedState=t,[e,l,!1]}function kf(t){var e=Kt();return Qf(e,_t,t)}function Qf(t,e,l){if(e=yo(t,e,qf)[0],t=ou(fl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=$a(e)}catch(r){throw r===Pn?Ii:r}else n=e;e=Kt();var i=e.queue,u=i.dispatch;return l!==e.memoizedState&&(dt.flags|=2048,aa(9,{destroy:void 0},G1.bind(null,i,l),null)),[n,u,t]}function G1(t,e){t.action=e}function Kf(t){var e=Kt(),l=_t;if(l!==null)return Qf(e,l,t);Kt(),e=e.memoizedState,l=Kt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function aa(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=dt.updateQueue,e===null&&(e=uu(),dt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function Jf(){return Kt().memoizedState}function su(t,e,l,n){var i=de();dt.flags|=t,i.memoizedState=aa(1|e,{destroy:void 0},l,n===void 0?null:n)}function ru(t,e,l,n){var i=Kt();n=n===void 0?null:n;var u=i.memoizedState.inst;_t!==null&&n!==null&&so(n,_t.memoizedState.deps)?i.memoizedState=aa(e,u,l,n):(dt.flags|=t,i.memoizedState=aa(1|e,u,l,n))}function Ff(t,e){su(8390656,8,t,e)}function So(t,e){ru(2048,8,t,e)}function V1(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=uu(),dt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Wf(t){var e=Kt().memoizedState;return V1({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function $f(t,e){return ru(4,2,t,e)}function If(t,e){return ru(4,4,t,e)}function Pf(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function td(t,e,l){l=l!=null?l.concat([t]):null,ru(4,4,Pf.bind(null,e,t),l)}function xo(){}function ed(t,e){var l=Kt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&so(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function ld(t,e){var l=Kt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&so(e,n[1]))return n[0];if(n=t(),Tn){Tl(!0);try{t()}finally{Tl(!1)}}return l.memoizedState=[n,e],n}function Co(t,e,l){return l===void 0||(rl&1073741824)!==0&&(bt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=nh(),dt.lanes|=t,Yl|=t,l)}function nd(t,e,l,n){return ze(l,e)?l:ea.current!==null?(t=Co(t,l,n),ze(t,e)||($t=!0),t):(rl&42)===0||(rl&1073741824)!==0&&(bt&261930)===0?($t=!0,t.memoizedState=l):(t=nh(),dt.lanes|=t,Yl|=t,e)}function ad(t,e,l,n,i){var u=O.p;O.p=u!==0&&8>u?u:8;var r=A.T,g={};A.T=g,Mo(t,!1,e,l);try{var b=i(),z=A.S;if(z!==null&&z(g,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=U1(b,n);Ia(t,e,R,Oe(t))}else Ia(t,e,n,Oe(t))}catch(j){Ia(t,e,{then:function(){},status:"rejected",reason:j},Oe())}finally{O.p=u,r!==null&&g.types!==null&&(r.types=g.types),A.T=r}}function Y1(){}function Ao(t,e,l,n){if(t.tag!==5)throw Error(c(476));var i=id(t).queue;ad(t,i,e,H,l===null?Y1:function(){return ud(t),l(n)})}function id(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:H},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ud(t){var e=id(t);e.next===null&&(e=t.alternate.memoizedState),Ia(t,e.next.queue,{},Oe())}function Eo(){return ce(gi)}function cd(){return Kt().memoizedState}function od(){return Kt().memoizedState}function X1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Oe();t=Ul(l);var n=Bl(e,t,l);n!==null&&(be(n,e,l),Ka(n,e,l)),e={cache:Ic()},t.payload=e;return}e=e.return}}function q1(t,e,l){var n=Oe();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fu(t)?rd(e,l):(l=Yc(t,e,l,n),l!==null&&(be(l,t,n),fd(l,e,n)))}function sd(t,e,l){var n=Oe();Ia(t,e,l,n)}function Ia(t,e,l,n){var i={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(fu(t))rd(e,i);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var r=e.lastRenderedState,g=u(r,l);if(i.hasEagerState=!0,i.eagerState=g,ze(g,r))return ki(t,e,i,0),Rt===null&&Zi(),!1}catch{}finally{}if(l=Yc(t,e,i,n),l!==null)return be(l,t,n),fd(l,e,n),!0}return!1}function Mo(t,e,l,n){if(n={lane:2,revertLane:ns(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fu(t)){if(e)throw Error(c(479))}else e=Yc(t,l,n,2),e!==null&&be(e,t,2)}function fu(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function rd(t,e){la=au=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function fd(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,gr(t,l)}}var Pa={readContext:ce,use:cu,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Pa.useEffectEvent=qt;var dd={readContext:ce,use:cu,useCallback:function(t,e){return de().memoizedState=[t,e===void 0?null:e],t},useContext:ce,useEffect:Ff,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,su(4194308,4,Pf.bind(null,e,t),l)},useLayoutEffect:function(t,e){return su(4194308,4,t,e)},useInsertionEffect:function(t,e){su(4,2,t,e)},useMemo:function(t,e){var l=de();e=e===void 0?null:e;var n=t();if(Tn){Tl(!0);try{t()}finally{Tl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=de();if(l!==void 0){var i=l(e);if(Tn){Tl(!0);try{l(e)}finally{Tl(!1)}}}else i=e;return n.memoizedState=n.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},n.queue=t,t=t.dispatch=q1.bind(null,dt,t),[n.memoizedState,t]},useRef:function(t){var e=de();return t={current:t},e.memoizedState=t},useState:function(t){t=vo(t);var e=t.queue,l=sd.bind(null,dt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:xo,useDeferredValue:function(t,e){var l=de();return Co(l,t,e)},useTransition:function(){var t=vo(!1);return t=ad.bind(null,dt,t.queue,!0,!1),de().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=dt,i=de();if(xt){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),Rt===null)throw Error(c(349));(bt&127)!==0||Rf(n,e,l)}i.memoizedState=l;var u={value:l,getSnapshot:e};return i.queue=u,Ff(Uf.bind(null,n,u,t),[t]),n.flags|=2048,aa(9,{destroy:void 0},Df.bind(null,n,u,l,e),null),l},useId:function(){var t=de(),e=Rt.identifierPrefix;if(xt){var l=tl,n=Pe;l=(n&~(1<<32-Me(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=iu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=B1++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Eo,useFormState:Zf,useActionState:Zf,useOptimistic:function(t){var e=de();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Mo.bind(null,dt,!0,l),l.dispatch=e,[t,e]},useMemoCache:go,useCacheRefresh:function(){return de().memoizedState=X1.bind(null,dt)},useEffectEvent:function(t){var e=de(),l={impl:t};return e.memoizedState=l,function(){if((Mt&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},zo={readContext:ce,use:cu,useCallback:ed,useContext:ce,useEffect:So,useImperativeHandle:td,useInsertionEffect:$f,useLayoutEffect:If,useMemo:ld,useReducer:ou,useRef:Jf,useState:function(){return ou(fl)},useDebugValue:xo,useDeferredValue:function(t,e){var l=Kt();return nd(l,_t.memoizedState,t,e)},useTransition:function(){var t=ou(fl)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:$a(t),e]},useSyncExternalStore:Of,useId:cd,useHostTransitionStatus:Eo,useFormState:kf,useActionState:kf,useOptimistic:function(t,e){var l=Kt();return jf(l,_t,t,e)},useMemoCache:go,useCacheRefresh:od};zo.useEffectEvent=Wf;var hd={readContext:ce,use:cu,useCallback:ed,useContext:ce,useEffect:So,useImperativeHandle:td,useInsertionEffect:$f,useLayoutEffect:If,useMemo:ld,useReducer:po,useRef:Jf,useState:function(){return po(fl)},useDebugValue:xo,useDeferredValue:function(t,e){var l=Kt();return _t===null?Co(l,t,e):nd(l,_t.memoizedState,t,e)},useTransition:function(){var t=po(fl)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:$a(t),e]},useSyncExternalStore:Of,useId:cd,useHostTransitionStatus:Eo,useFormState:Kf,useActionState:Kf,useOptimistic:function(t,e){var l=Kt();return _t!==null?jf(l,_t,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:go,useCacheRefresh:od};hd.useEffectEvent=Wf;function To(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:C({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var wo={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=Oe(),i=Ul(n);i.payload=e,l!=null&&(i.callback=l),e=Bl(t,i,n),e!==null&&(be(e,t,n),Ka(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=Oe(),i=Ul(n);i.tag=1,i.payload=e,l!=null&&(i.callback=l),e=Bl(t,i,n),e!==null&&(be(e,t,n),Ka(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Oe(),n=Ul(l);n.tag=2,e!=null&&(n.callback=e),e=Bl(t,n,l),e!==null&&(be(e,t,l),Ka(e,t,l))}};function md(t,e,l,n,i,u,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,r):e.prototype&&e.prototype.isPureReactComponent?!Ga(l,n)||!Ga(i,u):!0}function gd(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&wo.enqueueReplaceState(e,e.state,null)}function wn(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=C({},l));for(var i in t)l[i]===void 0&&(l[i]=t[i])}return l}function yd(t){qi(t)}function pd(t){console.error(t)}function vd(t){qi(t)}function du(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function bd(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function _o(t,e,l){return l=Ul(l),l.tag=3,l.payload={element:null},l.callback=function(){du(t,e)},l}function Sd(t){return t=Ul(t),t.tag=3,t}function xd(t,e,l,n){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var u=n.value;t.payload=function(){return i(u)},t.callback=function(){bd(e,l,n)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){bd(e,l,n),typeof i!="function"&&(Xl===null?Xl=new Set([this]):Xl.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})})}function Z1(t,e,l,n,i){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&Wn(e,l,i,!0),l=we.current,l!==null){switch(l.tag){case 31:case 13:return Xe===null?Eu():l.alternate===null&&Zt===0&&(Zt=3),l.flags&=-257,l.flags|=65536,l.lanes=i,n===Pi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),ts(t,n,i)),!1;case 22:return l.flags|=65536,n===Pi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),ts(t,n,i)),!1}throw Error(c(435,l.tag))}return ts(t,n,i),Eu(),!1}if(xt)return e=we.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,n!==Kc&&(t=Error(c(422),{cause:n}),Xa(je(t,l)))):(n!==Kc&&(e=Error(c(423),{cause:n}),Xa(je(e,l))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,n=je(n,l),i=_o(t.stateNode,n,i),ao(t,i),Zt!==4&&(Zt=2)),!1;var u=Error(c(520),{cause:n});if(u=je(u,l),ci===null?ci=[u]:ci.push(u),Zt!==4&&(Zt=2),e===null)return!0;n=je(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=i&-i,l.lanes|=t,t=_o(l.stateNode,n,t),ao(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Xl===null||!Xl.has(u))))return l.flags|=65536,i&=-i,l.lanes|=i,i=Sd(i),xd(i,t,l,n),ao(l,i),!1}l=l.return}while(l!==null);return!1}var Ho=Error(c(461)),$t=!1;function oe(t,e,l,n){e.child=t===null?Mf(e,null,l,n):zn(e,t.child,l,n)}function Cd(t,e,l,n,i){l=l.render;var u=e.ref;if("ref"in n){var r={};for(var g in n)g!=="ref"&&(r[g]=n[g])}else r=n;return Cn(e),n=ro(t,e,l,r,u,i),g=fo(),t!==null&&!$t?(ho(t,e,i),dl(t,e,i)):(xt&&g&&kc(e),e.flags|=1,oe(t,e,n,i),e.child)}function Ad(t,e,l,n,i){if(t===null){var u=l.type;return typeof u=="function"&&!Xc(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Ed(t,e,u,n,i)):(t=Ki(l.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!jo(t,i)){var r=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ga,l(r,n)&&t.ref===e.ref)return dl(t,e,i)}return e.flags|=1,t=ul(u,n),t.ref=e.ref,t.return=e,e.child=t}function Ed(t,e,l,n,i){if(t!==null){var u=t.memoizedProps;if(Ga(u,n)&&t.ref===e.ref)if($t=!1,e.pendingProps=n=u,jo(t,i))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,dl(t,e,i)}return No(t,e,l,n,i)}function Md(t,e,l,n){var i=n.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(n=e.child=t.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~u}else n=0,e.child=null;return zd(t,e,u,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&$i(e,u!==null?u.cachePool:null),u!==null?wf(e,u):uo(),_f(e);else return n=e.lanes=536870912,zd(t,e,u!==null?u.baseLanes|l:l,l,n)}else u!==null?($i(e,u.cachePool),wf(e,u),jl(),e.memoizedState=null):(t!==null&&$i(e,null),uo(),jl());return oe(t,e,i,l),e.child}function ti(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function zd(t,e,l,n,i){var u=to();return u=u===null?null:{parent:Ft._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&$i(e,null),uo(),_f(e),t!==null&&Wn(t,e,n,!0),e.childLanes=i,null}function hu(t,e){return e=gu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Td(t,e,l){return zn(e,t.child,null,l),t=hu(e,e.pendingProps),t.flags|=2,_e(e),e.memoizedState=null,t}function k1(t,e,l){var n=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(n.mode==="hidden")return t=hu(e,n),e.lanes=536870912,ti(null,t);if(oo(e),(t=Lt)?(t=Gh(t,Ye),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Hl!==null?{id:Pe,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=rf(t),l.return=e,e.child=l,ue=e,Lt=null)):t=null,t===null)throw Ol(e);return e.lanes=536870912,null}return hu(e,n)}var u=t.memoizedState;if(u!==null){var r=u.dehydrated;if(oo(e),i)if(e.flags&256)e.flags&=-257,e=Td(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if($t||Wn(t,e,l,!1),i=(l&t.childLanes)!==0,$t||i){if(n=Rt,n!==null&&(r=yr(n,l),r!==0&&r!==u.retryLane))throw u.retryLane=r,vn(t,r),be(n,t,r),Ho;Eu(),e=Td(t,e,l)}else t=u.treeContext,Lt=qe(r.nextSibling),ue=e,xt=!0,Nl=null,Ye=!1,t!==null&&hf(e,t),e=hu(e,n),e.flags|=4096;return e}return t=ul(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function mu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function No(t,e,l,n,i){return Cn(e),l=ro(t,e,l,n,void 0,i),n=fo(),t!==null&&!$t?(ho(t,e,i),dl(t,e,i)):(xt&&n&&kc(e),e.flags|=1,oe(t,e,l,i),e.child)}function wd(t,e,l,n,i,u){return Cn(e),e.updateQueue=null,l=Nf(e,n,l,i),Hf(t),n=fo(),t!==null&&!$t?(ho(t,e,u),dl(t,e,u)):(xt&&n&&kc(e),e.flags|=1,oe(t,e,l,u),e.child)}function _d(t,e,l,n,i){if(Cn(e),e.stateNode===null){var u=Qn,r=l.contextType;typeof r=="object"&&r!==null&&(u=ce(r)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=wo,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},lo(e),r=l.contextType,u.context=typeof r=="object"&&r!==null?ce(r):Qn,u.state=e.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(To(e,l,r,n),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&wo.enqueueReplaceState(u,u.state,null),Fa(e,n,u,i),Ja(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var g=e.memoizedProps,b=wn(l,g);u.props=b;var z=u.context,R=l.contextType;r=Qn,typeof R=="object"&&R!==null&&(r=ce(R));var j=l.getDerivedStateFromProps;R=typeof j=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||z!==r)&&gd(e,u,n,r),Dl=!1;var w=e.memoizedState;u.state=w,Fa(e,n,u,i),Ja(),z=e.memoizedState,g||w!==z||Dl?(typeof j=="function"&&(To(e,l,j,n),z=e.memoizedState),(b=Dl||md(e,l,b,n,w,z,r))?(R||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=z),u.props=n,u.state=z,u.context=r,n=b):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,no(t,e),r=e.memoizedProps,R=wn(l,r),u.props=R,j=e.pendingProps,w=u.context,z=l.contextType,b=Qn,typeof z=="object"&&z!==null&&(b=ce(z)),g=l.getDerivedStateFromProps,(z=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==j||w!==b)&&gd(e,u,n,b),Dl=!1,w=e.memoizedState,u.state=w,Fa(e,n,u,i),Ja();var N=e.memoizedState;r!==j||w!==N||Dl||t!==null&&t.dependencies!==null&&Fi(t.dependencies)?(typeof g=="function"&&(To(e,l,g,n),N=e.memoizedState),(R=Dl||md(e,l,R,n,w,N,b)||t!==null&&t.dependencies!==null&&Fi(t.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,N,b),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,N,b)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||r===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=N),u.props=n,u.state=N,u.context=b,n=R):(typeof u.componentDidUpdate!="function"||r===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,mu(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=zn(e,t.child,null,i),e.child=zn(e,null,l,i)):oe(t,e,l,i),e.memoizedState=u.state,t=e.child):t=dl(t,e,i),t}function Hd(t,e,l,n){return Sn(),e.flags|=256,oe(t,e,l,n),e.child}var Oo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ro(t){return{baseLanes:t,cachePool:bf()}}function Do(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ne),t}function Nd(t,e,l){var n=e.pendingProps,i=!1,u=(e.flags&128)!==0,r;if((r=u)||(r=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),r&&(i=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(i?Ll(e):jl(),(t=Lt)?(t=Gh(t,Ye),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Hl!==null?{id:Pe,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=rf(t),l.return=e,e.child=l,ue=e,Lt=null)):t=null,t===null)throw Ol(e);return ys(t)?e.lanes=32:e.lanes=536870912,null}var g=n.children;return n=n.fallback,i?(jl(),i=e.mode,g=gu({mode:"hidden",children:g},i),n=bn(n,i,l,null),g.return=e,n.return=e,g.sibling=n,e.child=g,n=e.child,n.memoizedState=Ro(l),n.childLanes=Do(t,r,l),e.memoizedState=Oo,ti(null,n)):(Ll(e),Uo(e,g))}var b=t.memoizedState;if(b!==null&&(g=b.dehydrated,g!==null)){if(u)e.flags&256?(Ll(e),e.flags&=-257,e=Bo(t,e,l)):e.memoizedState!==null?(jl(),e.child=t.child,e.flags|=128,e=null):(jl(),g=n.fallback,i=e.mode,n=gu({mode:"visible",children:n.children},i),g=bn(g,i,l,null),g.flags|=2,n.return=e,g.return=e,n.sibling=g,e.child=n,zn(e,t.child,null,l),n=e.child,n.memoizedState=Ro(l),n.childLanes=Do(t,r,l),e.memoizedState=Oo,e=ti(null,n));else if(Ll(e),ys(g)){if(r=g.nextSibling&&g.nextSibling.dataset,r)var z=r.dgst;r=z,n=Error(c(419)),n.stack="",n.digest=r,Xa({value:n,source:null,stack:null}),e=Bo(t,e,l)}else if($t||Wn(t,e,l,!1),r=(l&t.childLanes)!==0,$t||r){if(r=Rt,r!==null&&(n=yr(r,l),n!==0&&n!==b.retryLane))throw b.retryLane=n,vn(t,n),be(r,t,n),Ho;gs(g)||Eu(),e=Bo(t,e,l)}else gs(g)?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,Lt=qe(g.nextSibling),ue=e,xt=!0,Nl=null,Ye=!1,t!==null&&hf(e,t),e=Uo(e,n.children),e.flags|=4096);return e}return i?(jl(),g=n.fallback,i=e.mode,b=t.child,z=b.sibling,n=ul(b,{mode:"hidden",children:n.children}),n.subtreeFlags=b.subtreeFlags&65011712,z!==null?g=ul(z,g):(g=bn(g,i,l,null),g.flags|=2),g.return=e,n.return=e,n.sibling=g,e.child=n,ti(null,n),n=e.child,g=t.child.memoizedState,g===null?g=Ro(l):(i=g.cachePool,i!==null?(b=Ft._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=bf(),g={baseLanes:g.baseLanes|l,cachePool:i}),n.memoizedState=g,n.childLanes=Do(t,r,l),e.memoizedState=Oo,ti(t.child,n)):(Ll(e),l=t.child,t=l.sibling,l=ul(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=l,e.memoizedState=null,l)}function Uo(t,e){return e=gu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function gu(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function Bo(t,e,l){return zn(e,t.child,null,l),t=Uo(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Od(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Wc(t.return,e,l)}function Lo(t,e,l,n,i,u){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:i,treeForkCount:u}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=n,r.tail=l,r.tailMode=i,r.treeForkCount=u)}function Rd(t,e,l){var n=e.pendingProps,i=n.revealOrder,u=n.tail;n=n.children;var r=Qt.current,g=(r&2)!==0;if(g?(r=r&1|2,e.flags|=128):r&=1,Y(Qt,r),oe(t,e,n,l),n=xt?Ya:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Od(t,l,e);else if(t.tag===19)Od(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case"forwards":for(l=e.child,i=null;l!==null;)t=l.alternate,t!==null&&nu(t)===null&&(i=l),l=l.sibling;l=i,l===null?(i=e.child,e.child=null):(i=l.sibling,l.sibling=null),Lo(e,!1,i,l,u,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&nu(t)===null){e.child=i;break}t=i.sibling,i.sibling=l,l=i,i=t}Lo(e,!0,l,null,u,n);break;case"together":Lo(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function dl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Yl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Wn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=ul(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ul(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function jo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Fi(t)))}function Q1(t,e,l){switch(e.tag){case 3:le(e,e.stateNode.containerInfo),Rl(e,Ft,t.memoizedState.cache),Sn();break;case 27:case 5:Ie(e);break;case 4:le(e,e.stateNode.containerInfo);break;case 10:Rl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,oo(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Ll(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Nd(t,e,l):(Ll(e),t=dl(t,e,l),t!==null?t.sibling:null);Ll(e);break;case 19:var i=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(Wn(t,e,l,!1),n=(l&e.childLanes)!==0),i){if(n)return Rd(t,e,l);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Qt,Qt.current),n)break;return null;case 22:return e.lanes=0,Md(t,e,l,e.pendingProps);case 24:Rl(e,Ft,t.memoizedState.cache)}return dl(t,e,l)}function Dd(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!jo(t,l)&&(e.flags&128)===0)return $t=!1,Q1(t,e,l);$t=(t.flags&131072)!==0}else $t=!1,xt&&(e.flags&1048576)!==0&&df(e,Ya,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=En(e.elementType),e.type=t,typeof t=="function")Xc(t)?(n=wn(t,n),e.tag=1,e=_d(null,e,t,n,l)):(e.tag=0,e=No(null,e,t,n,l));else{if(t!=null){var i=t.$$typeof;if(i===st){e.tag=11,e=Cd(null,e,t,n,l);break t}else if(i===X){e.tag=14,e=Ad(null,e,t,n,l);break t}}throw e=Xt(t)||t,Error(c(306,e,""))}}return e;case 0:return No(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,i=wn(n,e.pendingProps),_d(t,e,n,i,l);case 3:t:{if(le(e,e.stateNode.containerInfo),t===null)throw Error(c(387));n=e.pendingProps;var u=e.memoizedState;i=u.element,no(t,e),Fa(e,n,null,l);var r=e.memoizedState;if(n=r.cache,Rl(e,Ft,n),n!==u.cache&&$c(e,[Ft],l,!0),Ja(),n=r.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Hd(t,e,n,l);break t}else if(n!==i){i=je(Error(c(424)),e),Xa(i),e=Hd(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Lt=qe(t.firstChild),ue=e,xt=!0,Nl=null,Ye=!0,l=Mf(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Sn(),n===i){e=dl(t,e,l);break t}oe(t,e,n,l)}e=e.child}return e;case 26:return mu(t,e),t===null?(l=kh(e.type,null,e.pendingProps,null))?e.memoizedState=l:xt||(l=e.type,t=e.pendingProps,n=Nu(rt.current).createElement(l),n[ie]=e,n[he]=t,se(n,l,t),ne(n),e.stateNode=n):e.memoizedState=kh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ie(e),t===null&&xt&&(n=e.stateNode=Xh(e.type,e.pendingProps,rt.current),ue=e,Ye=!0,i=Lt,Ql(e.type)?(ps=i,Lt=qe(n.firstChild)):Lt=i),oe(t,e,e.pendingProps.children,l),mu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((i=n=Lt)&&(n=Cg(n,e.type,e.pendingProps,Ye),n!==null?(e.stateNode=n,ue=e,Lt=qe(n.firstChild),Ye=!1,i=!0):i=!1),i||Ol(e)),Ie(e),i=e.type,u=e.pendingProps,r=t!==null?t.memoizedProps:null,n=u.children,ds(i,u)?n=null:r!==null&&ds(i,r)&&(e.flags|=32),e.memoizedState!==null&&(i=ro(t,e,L1,null,null,l),gi._currentValue=i),mu(t,e),oe(t,e,n,l),e.child;case 6:return t===null&&xt&&((t=l=Lt)&&(l=Ag(l,e.pendingProps,Ye),l!==null?(e.stateNode=l,ue=e,Lt=null,t=!0):t=!1),t||Ol(e)),null;case 13:return Nd(t,e,l);case 4:return le(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=zn(e,null,n,l):oe(t,e,n,l),e.child;case 11:return Cd(t,e,e.type,e.pendingProps,l);case 7:return oe(t,e,e.pendingProps,l),e.child;case 8:return oe(t,e,e.pendingProps.children,l),e.child;case 12:return oe(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,Rl(e,e.type,n.value),oe(t,e,n.children,l),e.child;case 9:return i=e.type._context,n=e.pendingProps.children,Cn(e),i=ce(i),n=n(i),e.flags|=1,oe(t,e,n,l),e.child;case 14:return Ad(t,e,e.type,e.pendingProps,l);case 15:return Ed(t,e,e.type,e.pendingProps,l);case 19:return Rd(t,e,l);case 31:return k1(t,e,l);case 22:return Md(t,e,l,e.pendingProps);case 24:return Cn(e),n=ce(Ft),t===null?(i=to(),i===null&&(i=Rt,u=Ic(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=l),i=u),e.memoizedState={parent:n,cache:i},lo(e),Rl(e,Ft,i)):((t.lanes&l)!==0&&(no(t,e),Fa(e,null,null,l),Ja()),i=t.memoizedState,u=e.memoizedState,i.parent!==n?(i={parent:n,cache:n},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),Rl(e,Ft,n)):(n=u.cache,Rl(e,Ft,n),n!==i.cache&&$c(e,[Ft],l,!0))),oe(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function hl(t){t.flags|=4}function Go(t,e,l,n,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(ch())t.flags|=8192;else throw Mn=Pi,eo}else t.flags&=-16777217}function Ud(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Wh(e))if(ch())t.flags|=8192;else throw Mn=Pi,eo}function yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?hr():536870912,t.lanes|=e,oa|=e)}function ei(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function jt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var i=t.child;i!==null;)l|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)l|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function K1(t,e,l){var n=e.pendingProps;switch(Qc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(e),null;case 1:return jt(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),sl(Ft),Bt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Fn(e)?hl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Jc())),jt(e),null;case 26:var i=e.type,u=e.memoizedState;return t===null?(hl(e),u!==null?(jt(e),Ud(e,u)):(jt(e),Go(e,i,null,n,l))):u?u!==t.memoizedState?(hl(e),jt(e),Ud(e,u)):(jt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&hl(e),jt(e),Go(e,i,t,n,l)),null;case 27:if(Ml(e),l=rt.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&hl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return jt(e),null}t=Q.current,Fn(e)?mf(e):(t=Xh(i,n,l),e.stateNode=t,hl(e))}return jt(e),null;case 5:if(Ml(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&hl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return jt(e),null}if(u=Q.current,Fn(e))mf(e);else{var r=Nu(rt.current);switch(u){case 1:u=r.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=r.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=r.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?r.createElement("select",{is:n.is}):r.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?r.createElement(i,{is:n.is}):r.createElement(i)}}u[ie]=e,u[he]=n;t:for(r=e.child;r!==null;){if(r.tag===5||r.tag===6)u.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break t;for(;r.sibling===null;){if(r.return===null||r.return===e)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}e.stateNode=u;t:switch(se(u,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&hl(e)}}return jt(e),Go(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&hl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(c(166));if(t=rt.current,Fn(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,i=ue,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}t[ie]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||Nh(t.nodeValue,l)),t||Ol(e,!0)}else t=Nu(t).createTextNode(n),t[ie]=e,e.stateNode=t}return jt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=Fn(e),l!==null){if(t===null){if(!n)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[ie]=e}else Sn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),t=!1}else l=Jc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(_e(e),e):(_e(e),null);if((e.flags&128)!==0)throw Error(c(558))}return jt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Fn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(c(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[ie]=e}else Sn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),i=!1}else i=Jc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(_e(e),e):(_e(e),null)}return _e(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),yu(e,e.updateQueue),jt(e),null);case 4:return Bt(),t===null&&cs(e.stateNode.containerInfo),jt(e),null;case 10:return sl(e.type),jt(e),null;case 19:if(B(Qt),n=e.memoizedState,n===null)return jt(e),null;if(i=(e.flags&128)!==0,u=n.rendering,u===null)if(i)ei(n,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=nu(t),u!==null){for(e.flags|=128,ei(n,!1),t=u.updateQueue,e.updateQueue=t,yu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)sf(l,t),l=l.sibling;return Y(Qt,Qt.current&1|2),xt&&cl(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Ae()>xu&&(e.flags|=128,i=!0,ei(n,!1),e.lanes=4194304)}else{if(!i)if(t=nu(u),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,yu(e,t),ei(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!xt)return jt(e),null}else 2*Ae()-n.renderingStartTime>xu&&l!==536870912&&(e.flags|=128,i=!0,ei(n,!1),e.lanes=4194304);n.isBackwards?(u.sibling=e.child,e.child=u):(t=n.last,t!==null?t.sibling=u:e.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Ae(),t.sibling=null,l=Qt.current,Y(Qt,i?l&1|2:l&1),xt&&cl(e,n.treeForkCount),t):(jt(e),null);case 22:case 23:return _e(e),co(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(jt(e),e.subtreeFlags&6&&(e.flags|=8192)):jt(e),l=e.updateQueue,l!==null&&yu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&B(An),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),sl(Ft),jt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function J1(t,e){switch(Qc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return sl(Ft),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ml(e),null;case 31:if(e.memoizedState!==null){if(_e(e),e.alternate===null)throw Error(c(340));Sn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(_e(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Sn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(Qt),null;case 4:return Bt(),null;case 10:return sl(e.type),null;case 22:case 23:return _e(e),co(),t!==null&&B(An),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return sl(Ft),null;case 25:return null;default:return null}}function Bd(t,e){switch(Qc(e),e.tag){case 3:sl(Ft),Bt();break;case 26:case 27:case 5:Ml(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&_e(e);break;case 13:_e(e);break;case 19:B(Qt);break;case 10:sl(e.type);break;case 22:case 23:_e(e),co(),t!==null&&B(An);break;case 24:sl(Ft)}}function li(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&t)===t){n=void 0;var u=l.create,r=l.inst;n=u(),r.destroy=n}l=l.next}while(l!==i)}}catch(g){wt(e,e.return,g)}}function Gl(t,e,l){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&t)===t){var r=n.inst,g=r.destroy;if(g!==void 0){r.destroy=void 0,i=e;var b=l,z=g;try{z()}catch(R){wt(i,b,R)}}}n=n.next}while(n!==u)}}catch(R){wt(e,e.return,R)}}function Ld(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Tf(e,l)}catch(n){wt(t,t.return,n)}}}function jd(t,e,l){l.props=wn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){wt(t,e,n)}}function ni(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(i){wt(t,e,i)}}function el(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(i){wt(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){wt(t,e,i)}else l.current=null}function Gd(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(i){wt(t,t.return,i)}}function Vo(t,e,l){try{var n=t.stateNode;yg(n,t.type,l,e),n[he]=e}catch(i){wt(t,t.return,i)}}function Vd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ql(t.type)||t.tag===4}function Yo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Vd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ql(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Xo(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=al));else if(n!==4&&(n===27&&Ql(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Xo(t,e,l),t=t.sibling;t!==null;)Xo(t,e,l),t=t.sibling}function pu(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Ql(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(pu(t,e,l),t=t.sibling;t!==null;)pu(t,e,l),t=t.sibling}function Yd(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);se(e,n,l),e[ie]=t,e[he]=l}catch(u){wt(t,t.return,u)}}var ml=!1,It=!1,qo=!1,Xd=typeof WeakSet=="function"?WeakSet:Set,ae=null;function F1(t,e){if(t=t.containerInfo,rs=ju,t=Pr(t),Uc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var i=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var r=0,g=-1,b=-1,z=0,R=0,j=t,w=null;e:for(;;){for(var N;j!==l||i!==0&&j.nodeType!==3||(g=r+i),j!==u||n!==0&&j.nodeType!==3||(b=r+n),j.nodeType===3&&(r+=j.nodeValue.length),(N=j.firstChild)!==null;)w=j,j=N;for(;;){if(j===t)break e;if(w===l&&++z===i&&(g=r),w===u&&++R===n&&(b=r),(N=j.nextSibling)!==null)break;j=w,w=j.parentNode}j=N}l=g===-1||b===-1?null:{start:g,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(fs={focusedElem:t,selectionRange:l},ju=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)i=t[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,i=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var I=wn(l.type,i);t=n.getSnapshotBeforeUpdate(I,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(ct){wt(l,l.return,ct)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)ms(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ms(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function qd(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:yl(t,l),n&4&&li(5,l);break;case 1:if(yl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(r){wt(l,l.return,r)}else{var i=wn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){wt(l,l.return,r)}}n&64&&Ld(l),n&512&&ni(l,l.return);break;case 3:if(yl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Tf(t,e)}catch(r){wt(l,l.return,r)}}break;case 27:e===null&&n&4&&Yd(l);case 26:case 5:yl(t,l),e===null&&n&4&&Gd(l),n&512&&ni(l,l.return);break;case 12:yl(t,l);break;case 31:yl(t,l),n&4&&Qd(t,l);break;case 13:yl(t,l),n&4&&Kd(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=ag.bind(null,l),Eg(t,l))));break;case 22:if(n=l.memoizedState!==null||ml,!n){e=e!==null&&e.memoizedState!==null||It,i=ml;var u=It;ml=n,(It=e)&&!u?pl(t,l,(l.subtreeFlags&8772)!==0):yl(t,l),ml=i,It=u}break;case 30:break;default:yl(t,l)}}function Zd(t){var e=t.alternate;e!==null&&(t.alternate=null,Zd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&vc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Vt=null,ge=!1;function gl(t,e,l){for(l=l.child;l!==null;)kd(t,e,l),l=l.sibling}function kd(t,e,l){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(Ta,l)}catch{}switch(l.tag){case 26:It||el(l,e),gl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:It||el(l,e);var n=Vt,i=ge;Ql(l.type)&&(Vt=l.stateNode,ge=!1),gl(t,e,l),di(l.stateNode),Vt=n,ge=i;break;case 5:It||el(l,e);case 6:if(n=Vt,i=ge,Vt=null,gl(t,e,l),Vt=n,ge=i,Vt!==null)if(ge)try{(Vt.nodeType===9?Vt.body:Vt.nodeName==="HTML"?Vt.ownerDocument.body:Vt).removeChild(l.stateNode)}catch(u){wt(l,e,u)}else try{Vt.removeChild(l.stateNode)}catch(u){wt(l,e,u)}break;case 18:Vt!==null&&(ge?(t=Vt,Lh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ya(t)):Lh(Vt,l.stateNode));break;case 4:n=Vt,i=ge,Vt=l.stateNode.containerInfo,ge=!0,gl(t,e,l),Vt=n,ge=i;break;case 0:case 11:case 14:case 15:Gl(2,l,e),It||Gl(4,l,e),gl(t,e,l);break;case 1:It||(el(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&jd(l,e,n)),gl(t,e,l);break;case 21:gl(t,e,l);break;case 22:It=(n=It)||l.memoizedState!==null,gl(t,e,l),It=n;break;default:gl(t,e,l)}}function Qd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ya(t)}catch(l){wt(e,e.return,l)}}}function Kd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ya(t)}catch(l){wt(e,e.return,l)}}function W1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Xd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Xd),e;default:throw Error(c(435,t.tag))}}function vu(t,e){var l=W1(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var i=ig.bind(null,t,n);n.then(i,i)}})}function ye(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var i=l[n],u=t,r=e,g=r;t:for(;g!==null;){switch(g.tag){case 27:if(Ql(g.type)){Vt=g.stateNode,ge=!1;break t}break;case 5:Vt=g.stateNode,ge=!1;break t;case 3:case 4:Vt=g.stateNode.containerInfo,ge=!0;break t}g=g.return}if(Vt===null)throw Error(c(160));kd(u,r,i),Vt=null,ge=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Jd(e,t),e=e.sibling}var Fe=null;function Jd(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),pe(t),n&4&&(Gl(3,t,t.return),li(3,t),Gl(5,t,t.return));break;case 1:ye(e,t),pe(t),n&512&&(It||l===null||el(l,l.return)),n&64&&ml&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var i=Fe;if(ye(e,t),pe(t),n&512&&(It||l===null||el(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,i=i.ownerDocument||i;e:switch(n){case"title":u=i.getElementsByTagName("title")[0],(!u||u[Ha]||u[ie]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(n),i.head.insertBefore(u,i.querySelector("head > title"))),se(u,n,l),u[ie]=t,ne(u),n=u;break t;case"link":var r=Jh("link","href",i).get(n+(l.href||""));if(r){for(var g=0;g<r.length;g++)if(u=r[g],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){r.splice(g,1);break e}}u=i.createElement(n),se(u,n,l),i.head.appendChild(u);break;case"meta":if(r=Jh("meta","content",i).get(n+(l.content||""))){for(g=0;g<r.length;g++)if(u=r[g],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){r.splice(g,1);break e}}u=i.createElement(n),se(u,n,l),i.head.appendChild(u);break;default:throw Error(c(468,n))}u[ie]=t,ne(u),n=u}t.stateNode=n}else Fh(i,t.type,t.stateNode);else t.stateNode=Kh(i,n,t.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?Fh(i,t.type,t.stateNode):Kh(i,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Vo(t,t.memoizedProps,l.memoizedProps)}break;case 27:ye(e,t),pe(t),n&512&&(It||l===null||el(l,l.return)),l!==null&&n&4&&Vo(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ye(e,t),pe(t),n&512&&(It||l===null||el(l,l.return)),t.flags&32){i=t.stateNode;try{Gn(i,"")}catch(I){wt(t,t.return,I)}}n&4&&t.stateNode!=null&&(i=t.memoizedProps,Vo(t,i,l!==null?l.memoizedProps:i)),n&1024&&(qo=!0);break;case 6:if(ye(e,t),pe(t),n&4){if(t.stateNode===null)throw Error(c(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(I){wt(t,t.return,I)}}break;case 3:if(Du=null,i=Fe,Fe=Ou(e.containerInfo),ye(e,t),Fe=i,pe(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{ya(e.containerInfo)}catch(I){wt(t,t.return,I)}qo&&(qo=!1,Fd(t));break;case 4:n=Fe,Fe=Ou(t.stateNode.containerInfo),ye(e,t),pe(t),Fe=n;break;case 12:ye(e,t),pe(t);break;case 31:ye(e,t),pe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,vu(t,n)));break;case 13:ye(e,t),pe(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Su=Ae()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,vu(t,n)));break;case 22:i=t.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,z=ml,R=It;if(ml=z||i,It=R||b,ye(e,t),It=R,ml=z,pe(t),n&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(l===null||b||ml||It||_n(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){b=l=e;try{if(u=b.stateNode,i)r=u.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{g=b.stateNode;var j=b.memoizedProps.style,w=j!=null&&j.hasOwnProperty("display")?j.display:null;g.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(I){wt(b,b.return,I)}}}else if(e.tag===6){if(l===null){b=e;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(I){wt(b,b.return,I)}}}else if(e.tag===18){if(l===null){b=e;try{var N=b.stateNode;i?jh(N,!0):jh(b.stateNode,!1)}catch(I){wt(b,b.return,I)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,vu(t,l))));break;case 19:ye(e,t),pe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,vu(t,n)));break;case 30:break;case 21:break;default:ye(e,t),pe(t)}}function pe(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Vd(n)){l=n;break}n=n.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var i=l.stateNode,u=Yo(t);pu(t,u,i);break;case 5:var r=l.stateNode;l.flags&32&&(Gn(r,""),l.flags&=-33);var g=Yo(t);pu(t,g,r);break;case 3:case 4:var b=l.stateNode.containerInfo,z=Yo(t);Xo(t,z,b);break;default:throw Error(c(161))}}catch(R){wt(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Fd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Fd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function yl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)qd(t,e.alternate,e),e=e.sibling}function _n(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Gl(4,e,e.return),_n(e);break;case 1:el(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&jd(e,e.return,l),_n(e);break;case 27:di(e.stateNode);case 26:case 5:el(e,e.return),_n(e);break;case 22:e.memoizedState===null&&_n(e);break;case 30:_n(e);break;default:_n(e)}t=t.sibling}}function pl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,i=t,u=e,r=u.flags;switch(u.tag){case 0:case 11:case 15:pl(i,u,l),li(4,u);break;case 1:if(pl(i,u,l),n=u,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(z){wt(n,n.return,z)}if(n=u,i=n.updateQueue,i!==null){var g=n.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)zf(b[i],g)}catch(z){wt(n,n.return,z)}}l&&r&64&&Ld(u),ni(u,u.return);break;case 27:Yd(u);case 26:case 5:pl(i,u,l),l&&n===null&&r&4&&Gd(u),ni(u,u.return);break;case 12:pl(i,u,l);break;case 31:pl(i,u,l),l&&r&4&&Qd(i,u);break;case 13:pl(i,u,l),l&&r&4&&Kd(i,u);break;case 22:u.memoizedState===null&&pl(i,u,l),ni(u,u.return);break;case 30:break;default:pl(i,u,l)}e=e.sibling}}function Zo(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&qa(l))}function ko(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qa(t))}function We(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wd(t,e,l,n),e=e.sibling}function Wd(t,e,l,n){var i=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,l,n),i&2048&&li(9,e);break;case 1:We(t,e,l,n);break;case 3:We(t,e,l,n),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qa(t)));break;case 12:if(i&2048){We(t,e,l,n),t=e.stateNode;try{var u=e.memoizedProps,r=u.id,g=u.onPostCommit;typeof g=="function"&&g(r,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(b){wt(e,e.return,b)}}else We(t,e,l,n);break;case 31:We(t,e,l,n);break;case 13:We(t,e,l,n);break;case 23:break;case 22:u=e.stateNode,r=e.alternate,e.memoizedState!==null?u._visibility&2?We(t,e,l,n):ai(t,e):u._visibility&2?We(t,e,l,n):(u._visibility|=2,ia(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),i&2048&&Zo(r,e);break;case 24:We(t,e,l,n),i&2048&&ko(e.alternate,e);break;default:We(t,e,l,n)}}function ia(t,e,l,n,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,r=e,g=l,b=n,z=r.flags;switch(r.tag){case 0:case 11:case 15:ia(u,r,g,b,i),li(8,r);break;case 23:break;case 22:var R=r.stateNode;r.memoizedState!==null?R._visibility&2?ia(u,r,g,b,i):ai(u,r):(R._visibility|=2,ia(u,r,g,b,i)),i&&z&2048&&Zo(r.alternate,r);break;case 24:ia(u,r,g,b,i),i&&z&2048&&ko(r.alternate,r);break;default:ia(u,r,g,b,i)}e=e.sibling}}function ai(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,i=n.flags;switch(n.tag){case 22:ai(l,n),i&2048&&Zo(n.alternate,n);break;case 24:ai(l,n),i&2048&&ko(n.alternate,n);break;default:ai(l,n)}e=e.sibling}}var ii=8192;function ua(t,e,l){if(t.subtreeFlags&ii)for(t=t.child;t!==null;)$d(t,e,l),t=t.sibling}function $d(t,e,l){switch(t.tag){case 26:ua(t,e,l),t.flags&ii&&t.memoizedState!==null&&Bg(l,Fe,t.memoizedState,t.memoizedProps);break;case 5:ua(t,e,l);break;case 3:case 4:var n=Fe;Fe=Ou(t.stateNode.containerInfo),ua(t,e,l),Fe=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=ii,ii=16777216,ua(t,e,l),ii=n):ua(t,e,l));break;default:ua(t,e,l)}}function Id(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ui(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];ae=n,th(n,t)}Id(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Pd(t),t=t.sibling}function Pd(t){switch(t.tag){case 0:case 11:case 15:ui(t),t.flags&2048&&Gl(9,t,t.return);break;case 3:ui(t);break;case 12:ui(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,bu(t)):ui(t);break;default:ui(t)}}function bu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];ae=n,th(n,t)}Id(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Gl(8,e,e.return),bu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,bu(e));break;default:bu(e)}t=t.sibling}}function th(t,e){for(;ae!==null;){var l=ae;switch(l.tag){case 0:case 11:case 15:Gl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:qa(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,ae=n;else t:for(l=t;ae!==null;){n=ae;var i=n.sibling,u=n.return;if(Zd(n),n===l){ae=null;break t}if(i!==null){i.return=u,ae=i;break t}ae=u}}}var $1={getCacheForType:function(t){var e=ce(Ft),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return ce(Ft).controller.signal}},I1=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Rt=null,pt=null,bt=0,Tt=0,He=null,Vl=!1,ca=!1,Qo=!1,vl=0,Zt=0,Yl=0,Hn=0,Ko=0,Ne=0,oa=0,ci=null,ve=null,Jo=!1,Su=0,eh=0,xu=1/0,Cu=null,Xl=null,te=0,ql=null,sa=null,bl=0,Fo=0,Wo=null,lh=null,oi=0,$o=null;function Oe(){return(Mt&2)!==0&&bt!==0?bt&-bt:A.T!==null?ns():pr()}function nh(){if(Ne===0)if((bt&536870912)===0||xt){var t=Hi;Hi<<=1,(Hi&3932160)===0&&(Hi=262144),Ne=t}else Ne=536870912;return t=we.current,t!==null&&(t.flags|=32),Ne}function be(t,e,l){(t===Rt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(ra(t,0),Zl(t,bt,Ne,!1)),_a(t,l),((Mt&2)===0||t!==Rt)&&(t===Rt&&((Mt&2)===0&&(Hn|=l),Zt===4&&Zl(t,bt,Ne,!1)),ll(t))}function ah(t,e,l){if((Mt&6)!==0)throw Error(c(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||wa(t,e),i=n?eg(t,e):Po(t,e,!0),u=n;do{if(i===0){ca&&!n&&Zl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!P1(l)){i=Po(t,e,!1),u=!1;continue}if(i===2){if(u=e,t.errorRecoveryDisabledLanes&u)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var g=t;i=ci;var b=g.current.memoizedState.isDehydrated;if(b&&(ra(g,r).flags|=256),r=Po(g,r,!1),r!==2){if(Qo&&!b){g.errorRecoveryDisabledLanes|=u,Hn|=u,i=4;break t}u=ve,ve=i,u!==null&&(ve===null?ve=u:ve.push.apply(ve,u))}i=r}if(u=!1,i!==2)continue}}if(i===1){ra(t,0),Zl(t,e,0,!0);break}t:{switch(n=t,u=i,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Zl(n,e,Ne,!Vl);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(i=Su+300-Ae(),10<i)){if(Zl(n,e,Ne,!Vl),Oi(n,0,!0)!==0)break t;bl=e,n.timeoutHandle=Uh(ih.bind(null,n,l,ve,Cu,Jo,e,Ne,Hn,oa,Vl,u,"Throttled",-0,0),i);break t}ih(n,l,ve,Cu,Jo,e,Ne,Hn,oa,Vl,u,null,-0,0)}}break}while(!0);ll(t)}function ih(t,e,l,n,i,u,r,g,b,z,R,j,w,N){if(t.timeoutHandle=-1,j=e.subtreeFlags,j&8192||(j&16785408)===16785408){j={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:al},$d(e,u,j);var I=(u&62914560)===u?Su-Ae():(u&4194048)===u?eh-Ae():0;if(I=Lg(j,I),I!==null){bl=u,t.cancelPendingCommit=I(hh.bind(null,t,e,u,l,n,i,r,g,b,R,j,null,w,N)),Zl(t,u,r,!z);return}}hh(t,e,u,l,n,i,r,g,b)}function P1(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var i=l[n],u=i.getSnapshot;i=i.value;try{if(!ze(u(),i))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Zl(t,e,l,n){e&=~Ko,e&=~Hn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var i=e;0<i;){var u=31-Me(i),r=1<<u;n[u]=-1,i&=~r}l!==0&&mr(t,l,e)}function Au(){return(Mt&6)===0?(si(0),!1):!0}function Io(){if(pt!==null){if(Tt===0)var t=pt.return;else t=pt,ol=xn=null,mo(t),ta=null,ka=0,t=pt;for(;t!==null;)Bd(t.alternate,t),t=t.return;pt=null}}function ra(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,bg(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),bl=0,Io(),Rt=t,pt=l=ul(t.current,null),bt=e,Tt=0,He=null,Vl=!1,ca=wa(t,e),Qo=!1,oa=Ne=Ko=Hn=Yl=Zt=0,ve=ci=null,Jo=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var i=31-Me(n),u=1<<i;e|=t[i],n&=~u}return vl=e,Zi(),l}function uh(t,e){dt=null,A.H=Pa,e===Pn||e===Ii?(e=Cf(),Tt=3):e===eo?(e=Cf(),Tt=4):Tt=e===Ho?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,He=e,pt===null&&(Zt=1,du(t,je(e,t.current)))}function ch(){var t=we.current;return t===null?!0:(bt&4194048)===bt?Xe===null:(bt&62914560)===bt||(bt&536870912)!==0?t===Xe:!1}function oh(){var t=A.H;return A.H=Pa,t===null?Pa:t}function sh(){var t=A.A;return A.A=$1,t}function Eu(){Zt=4,Vl||(bt&4194048)!==bt&&we.current!==null||(ca=!0),(Yl&134217727)===0&&(Hn&134217727)===0||Rt===null||Zl(Rt,bt,Ne,!1)}function Po(t,e,l){var n=Mt;Mt|=2;var i=oh(),u=sh();(Rt!==t||bt!==e)&&(Cu=null,ra(t,e)),e=!1;var r=Zt;t:do try{if(Tt!==0&&pt!==null){var g=pt,b=He;switch(Tt){case 8:Io(),r=6;break t;case 3:case 2:case 9:case 6:we.current===null&&(e=!0);var z=Tt;if(Tt=0,He=null,fa(t,g,b,z),l&&ca){r=0;break t}break;default:z=Tt,Tt=0,He=null,fa(t,g,b,z)}}tg(),r=Zt;break}catch(R){uh(t,R)}while(!0);return e&&t.shellSuspendCounter++,ol=xn=null,Mt=n,A.H=i,A.A=u,pt===null&&(Rt=null,bt=0,Zi()),r}function tg(){for(;pt!==null;)rh(pt)}function eg(t,e){var l=Mt;Mt|=2;var n=oh(),i=sh();Rt!==t||bt!==e?(Cu=null,xu=Ae()+500,ra(t,e)):ca=wa(t,e);t:do try{if(Tt!==0&&pt!==null){e=pt;var u=He;e:switch(Tt){case 1:Tt=0,He=null,fa(t,e,u,1);break;case 2:case 9:if(Sf(u)){Tt=0,He=null,fh(e);break}e=function(){Tt!==2&&Tt!==9||Rt!==t||(Tt=7),ll(t)},u.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:Sf(u)?(Tt=0,He=null,fh(e)):(Tt=0,He=null,fa(t,e,u,7));break;case 5:var r=null;switch(pt.tag){case 26:r=pt.memoizedState;case 5:case 27:var g=pt;if(r?Wh(r):g.stateNode.complete){Tt=0,He=null;var b=g.sibling;if(b!==null)pt=b;else{var z=g.return;z!==null?(pt=z,Mu(z)):pt=null}break e}}Tt=0,He=null,fa(t,e,u,5);break;case 6:Tt=0,He=null,fa(t,e,u,6);break;case 8:Io(),Zt=6;break t;default:throw Error(c(462))}}lg();break}catch(R){uh(t,R)}while(!0);return ol=xn=null,A.H=n,A.A=i,Mt=l,pt!==null?0:(Rt=null,bt=0,Zi(),Zt)}function lg(){for(;pt!==null&&!Mm();)rh(pt)}function rh(t){var e=Dd(t.alternate,t,vl);t.memoizedProps=t.pendingProps,e===null?Mu(t):pt=e}function fh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=wd(l,e,e.pendingProps,e.type,void 0,bt);break;case 11:e=wd(l,e,e.pendingProps,e.type.render,e.ref,bt);break;case 5:mo(e);default:Bd(l,e),e=pt=sf(e,vl),e=Dd(l,e,vl)}t.memoizedProps=t.pendingProps,e===null?Mu(t):pt=e}function fa(t,e,l,n){ol=xn=null,mo(e),ta=null,ka=0;var i=e.return;try{if(Z1(t,i,e,l,bt)){Zt=1,du(t,je(l,t.current)),pt=null;return}}catch(u){if(i!==null)throw pt=i,u;Zt=1,du(t,je(l,t.current)),pt=null;return}e.flags&32768?(xt||n===1?t=!0:ca||(bt&536870912)!==0?t=!1:(Vl=t=!0,(n===2||n===9||n===3||n===6)&&(n=we.current,n!==null&&n.tag===13&&(n.flags|=16384))),dh(e,t)):Mu(e)}function Mu(t){var e=t;do{if((e.flags&32768)!==0){dh(e,Vl);return}t=e.return;var l=K1(e.alternate,e,vl);if(l!==null){pt=l;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);Zt===0&&(Zt=5)}function dh(t,e){do{var l=J1(t.alternate,t);if(l!==null){l.flags&=32767,pt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=l}while(t!==null);Zt=6,pt=null}function hh(t,e,l,n,i,u,r,g,b){t.cancelPendingCommit=null;do zu();while(te!==0);if((Mt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(u=e.lanes|e.childLanes,u|=Vc,Um(t,l,u,r,g,b),t===Rt&&(pt=Rt=null,bt=0),sa=e,ql=t,bl=l,Fo=u,Wo=i,lh=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ug(wi,function(){return vh(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=A.T,A.T=null,i=O.p,O.p=2,r=Mt,Mt|=4;try{F1(t,e,l)}finally{Mt=r,O.p=i,A.T=n}}te=1,mh(),gh(),yh()}}function mh(){if(te===1){te=0;var t=ql,e=sa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var n=O.p;O.p=2;var i=Mt;Mt|=4;try{Jd(e,t);var u=fs,r=Pr(t.containerInfo),g=u.focusedElem,b=u.selectionRange;if(r!==g&&g&&g.ownerDocument&&Ir(g.ownerDocument.documentElement,g)){if(b!==null&&Uc(g)){var z=b.start,R=b.end;if(R===void 0&&(R=z),"selectionStart"in g)g.selectionStart=z,g.selectionEnd=Math.min(R,g.value.length);else{var j=g.ownerDocument||document,w=j&&j.defaultView||window;if(w.getSelection){var N=w.getSelection(),I=g.textContent.length,ct=Math.min(b.start,I),Nt=b.end===void 0?ct:Math.min(b.end,I);!N.extend&&ct>Nt&&(r=Nt,Nt=ct,ct=r);var E=$r(g,ct),x=$r(g,Nt);if(E&&x&&(N.rangeCount!==1||N.anchorNode!==E.node||N.anchorOffset!==E.offset||N.focusNode!==x.node||N.focusOffset!==x.offset)){var M=j.createRange();M.setStart(E.node,E.offset),N.removeAllRanges(),ct>Nt?(N.addRange(M),N.extend(x.node,x.offset)):(M.setEnd(x.node,x.offset),N.addRange(M))}}}}for(j=[],N=g;N=N.parentNode;)N.nodeType===1&&j.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<j.length;g++){var L=j[g];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}ju=!!rs,fs=rs=null}finally{Mt=i,O.p=n,A.T=l}}t.current=e,te=2}}function gh(){if(te===2){te=0;var t=ql,e=sa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var n=O.p;O.p=2;var i=Mt;Mt|=4;try{qd(t,e.alternate,e)}finally{Mt=i,O.p=n,A.T=l}}te=3}}function yh(){if(te===4||te===3){te=0,zm();var t=ql,e=sa,l=bl,n=lh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?te=5:(te=0,sa=ql=null,ph(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(Xl=null),yc(l),e=e.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(Ta,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=A.T,i=O.p,O.p=2,A.T=null;try{for(var u=t.onRecoverableError,r=0;r<n.length;r++){var g=n[r];u(g.value,{componentStack:g.stack})}}finally{A.T=e,O.p=i}}(bl&3)!==0&&zu(),ll(t),i=t.pendingLanes,(l&261930)!==0&&(i&42)!==0?t===$o?oi++:(oi=0,$o=t):oi=0,si(0)}}function ph(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,qa(e)))}function zu(){return mh(),gh(),yh(),vh()}function vh(){if(te!==5)return!1;var t=ql,e=Fo;Fo=0;var l=yc(bl),n=A.T,i=O.p;try{O.p=32>l?32:l,A.T=null,l=Wo,Wo=null;var u=ql,r=bl;if(te=0,sa=ql=null,bl=0,(Mt&6)!==0)throw Error(c(331));var g=Mt;if(Mt|=4,Pd(u.current),Wd(u,u.current,r,l),Mt=g,si(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(Ta,u)}catch{}return!0}finally{O.p=i,A.T=n,ph(t,e)}}function bh(t,e,l){e=je(l,e),e=_o(t.stateNode,e,2),t=Bl(t,e,2),t!==null&&(_a(t,2),ll(t))}function wt(t,e,l){if(t.tag===3)bh(t,t,l);else for(;e!==null;){if(e.tag===3){bh(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Xl===null||!Xl.has(n))){t=je(l,t),l=Sd(2),n=Bl(e,l,2),n!==null&&(xd(l,n,e,t),_a(n,2),ll(n));break}}e=e.return}}function ts(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new I1;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(l)||(Qo=!0,i.add(l),t=ng.bind(null,t,e,l),e.then(t,t))}function ng(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Rt===t&&(bt&l)===l&&(Zt===4||Zt===3&&(bt&62914560)===bt&&300>Ae()-Su?(Mt&2)===0&&ra(t,0):Ko|=l,oa===bt&&(oa=0)),ll(t)}function Sh(t,e){e===0&&(e=hr()),t=vn(t,e),t!==null&&(_a(t,e),ll(t))}function ag(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Sh(t,l)}function ig(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(l=i.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(e),Sh(t,l)}function ug(t,e){return dc(t,e)}var Tu=null,da=null,es=!1,wu=!1,ls=!1,kl=0;function ll(t){t!==da&&t.next===null&&(da===null?Tu=da=t:da=da.next=t),wu=!0,es||(es=!0,og())}function si(t,e){if(!ls&&wu){ls=!0;do for(var l=!1,n=Tu;n!==null;){if(t!==0){var i=n.pendingLanes;if(i===0)var u=0;else{var r=n.suspendedLanes,g=n.pingedLanes;u=(1<<31-Me(42|t)+1)-1,u&=i&~(r&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Eh(n,u))}else u=bt,u=Oi(n,n===Rt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||wa(n,u)||(l=!0,Eh(n,u));n=n.next}while(l);ls=!1}}function cg(){xh()}function xh(){wu=es=!1;var t=0;kl!==0&&vg()&&(t=kl);for(var e=Ae(),l=null,n=Tu;n!==null;){var i=n.next,u=Ch(n,e);u===0?(n.next=null,l===null?Tu=i:l.next=i,i===null&&(da=l)):(l=n,(t!==0||(u&3)!==0)&&(wu=!0)),n=i}te!==0&&te!==5||si(t),kl!==0&&(kl=0)}function Ch(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,i=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var r=31-Me(u),g=1<<r,b=i[r];b===-1?((g&l)===0||(g&n)!==0)&&(i[r]=Dm(g,e)):b<=e&&(t.expiredLanes|=g),u&=~g}if(e=Rt,l=bt,l=Oi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&hc(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||wa(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&hc(n),yc(l)){case 2:case 8:l=fr;break;case 32:l=wi;break;case 268435456:l=dr;break;default:l=wi}return n=Ah.bind(null,t),l=dc(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&hc(n),t.callbackPriority=2,t.callbackNode=null,2}function Ah(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(zu()&&t.callbackNode!==l)return null;var n=bt;return n=Oi(t,t===Rt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(ah(t,n,e),Ch(t,Ae()),t.callbackNode!=null&&t.callbackNode===l?Ah.bind(null,t):null)}function Eh(t,e){if(zu())return null;ah(t,e,!0)}function og(){Sg(function(){(Mt&6)!==0?dc(rr,cg):xh()})}function ns(){if(kl===0){var t=$n;t===0&&(t=_i,_i<<=1,(_i&261888)===0&&(_i=256)),kl=t}return kl}function Mh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Bi(""+t)}function zh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function sg(t,e,l,n,i){if(e==="submit"&&l&&l.stateNode===i){var u=Mh((i[he]||null).action),r=n.submitter;r&&(e=(e=r[he]||null)?Mh(e.formAction):r.getAttribute("formAction"),e!==null&&(u=e,r=null));var g=new Vi("action","action",null,n,i);t.push({event:g,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(kl!==0){var b=r?zh(i,r):new FormData(i);Ao(l,{pending:!0,data:b,method:i.method,action:u},null,b)}}else typeof u=="function"&&(g.preventDefault(),b=r?zh(i,r):new FormData(i),Ao(l,{pending:!0,data:b,method:i.method,action:u},u,b))},currentTarget:i}]})}}for(var as=0;as<Gc.length;as++){var is=Gc[as],rg=is.toLowerCase(),fg=is[0].toUpperCase()+is.slice(1);Je(rg,"on"+fg)}Je(lf,"onAnimationEnd"),Je(nf,"onAnimationIteration"),Je(af,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(T1,"onTransitionRun"),Je(w1,"onTransitionStart"),Je(_1,"onTransitionCancel"),Je(uf,"onTransitionEnd"),Ln("onMouseEnter",["mouseout","mouseover"]),Ln("onMouseLeave",["mouseout","mouseover"]),Ln("onPointerEnter",["pointerout","pointerover"]),Ln("onPointerLeave",["pointerout","pointerover"]),mn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mn("onBeforeInput",["compositionend","keypress","textInput","paste"]),mn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ri="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(" "),dg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ri));function Th(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],i=n.event;n=n.listeners;t:{var u=void 0;if(e)for(var r=n.length-1;0<=r;r--){var g=n[r],b=g.instance,z=g.currentTarget;if(g=g.listener,b!==u&&i.isPropagationStopped())break t;u=g,i.currentTarget=z;try{u(i)}catch(R){qi(R)}i.currentTarget=null,u=b}else for(r=0;r<n.length;r++){if(g=n[r],b=g.instance,z=g.currentTarget,g=g.listener,b!==u&&i.isPropagationStopped())break t;u=g,i.currentTarget=z;try{u(i)}catch(R){qi(R)}i.currentTarget=null,u=b}}}}function vt(t,e){var l=e[pc];l===void 0&&(l=e[pc]=new Set);var n=t+"__bubble";l.has(n)||(wh(e,t,2,!1),l.add(n))}function us(t,e,l){var n=0;e&&(n|=4),wh(l,t,n,e)}var _u="_reactListening"+Math.random().toString(36).slice(2);function cs(t){if(!t[_u]){t[_u]=!0,Sr.forEach(function(l){l!=="selectionchange"&&(dg.has(l)||us(l,!1,t),us(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[_u]||(e[_u]=!0,us("selectionchange",!1,e))}}function wh(t,e,l,n){switch(n0(e)){case 2:var i=Vg;break;case 8:i=Yg;break;default:i=Cs}l=i.bind(null,e,l,t),i=void 0,!zc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),n?i!==void 0?t.addEventListener(e,l,{capture:!0,passive:i}):t.addEventListener(e,l,!0):i!==void 0?t.addEventListener(e,l,{passive:i}):t.addEventListener(e,l,!1)}function os(t,e,l,n,i){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var r=n.tag;if(r===3||r===4){var g=n.stateNode.containerInfo;if(g===i)break;if(r===4)for(r=n.return;r!==null;){var b=r.tag;if((b===3||b===4)&&r.stateNode.containerInfo===i)return;r=r.return}for(;g!==null;){if(r=Dn(g),r===null)return;if(b=r.tag,b===5||b===6||b===26||b===27){n=u=r;continue t}g=g.parentNode}}n=n.return}Or(function(){var z=u,R=Ec(l),j=[];t:{var w=cf.get(t);if(w!==void 0){var N=Vi,I=t;switch(t){case"keypress":if(ji(l)===0)break t;case"keydown":case"keyup":N=i1;break;case"focusin":I="focus",N=Hc;break;case"focusout":I="blur",N=Hc;break;case"beforeblur":case"afterblur":N=Hc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Ur;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=o1;break;case lf:case nf:case af:N=Wm;break;case uf:N=r1;break;case"scroll":case"scrollend":N=km;break;case"wheel":N=d1;break;case"copy":case"cut":case"paste":N=Im;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Lr;break;case"toggle":case"beforetoggle":N=m1}var ct=(e&4)!==0,Nt=!ct&&(t==="scroll"||t==="scrollend"),E=ct?w!==null?w+"Capture":null:w;ct=[];for(var x=z,M;x!==null;){var L=x;if(M=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||M===null||E===null||(L=Oa(x,E),L!=null&&ct.push(fi(x,L,M))),Nt)break;x=x.return}0<ct.length&&(w=new N(w,I,null,l,R),j.push({event:w,listeners:ct}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",w&&l!==Ac&&(I=l.relatedTarget||l.fromElement)&&(Dn(I)||I[Rn]))break t;if((N||w)&&(w=R.window===R?R:(w=R.ownerDocument)?w.defaultView||w.parentWindow:window,N?(I=l.relatedTarget||l.toElement,N=z,I=I?Dn(I):null,I!==null&&(Nt=h(I),ct=I.tag,I!==Nt||ct!==5&&ct!==27&&ct!==6)&&(I=null)):(N=null,I=z),N!==I)){if(ct=Ur,L="onMouseLeave",E="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(ct=Lr,L="onPointerLeave",E="onPointerEnter",x="pointer"),Nt=N==null?w:Na(N),M=I==null?w:Na(I),w=new ct(L,x+"leave",N,l,R),w.target=Nt,w.relatedTarget=M,L=null,Dn(R)===z&&(ct=new ct(E,x+"enter",I,l,R),ct.target=M,ct.relatedTarget=Nt,L=ct),Nt=L,N&&I)e:{for(ct=hg,E=N,x=I,M=0,L=E;L;L=ct(L))M++;L=0;for(var ut=x;ut;ut=ct(ut))L++;for(;0<M-L;)E=ct(E),M--;for(;0<L-M;)x=ct(x),L--;for(;M--;){if(E===x||x!==null&&E===x.alternate){ct=E;break e}E=ct(E),x=ct(x)}ct=null}else ct=null;N!==null&&_h(j,w,N,ct,!1),I!==null&&Nt!==null&&_h(j,Nt,I,ct,!0)}}t:{if(w=z?Na(z):window,N=w.nodeName&&w.nodeName.toLowerCase(),N==="select"||N==="input"&&w.type==="file")var At=kr;else if(qr(w))if(Qr)At=E1;else{At=C1;var nt=x1}else N=w.nodeName,!N||N.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?z&&Cc(z.elementType)&&(At=kr):At=A1;if(At&&(At=At(t,z))){Zr(j,At,l,R);break t}nt&&nt(t,w,z),t==="focusout"&&z&&w.type==="number"&&z.memoizedProps.value!=null&&xc(w,"number",w.value)}switch(nt=z?Na(z):window,t){case"focusin":(qr(nt)||nt.contentEditable==="true")&&(qn=nt,Bc=z,Va=null);break;case"focusout":Va=Bc=qn=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,tf(j,l,R);break;case"selectionchange":if(z1)break;case"keydown":case"keyup":tf(j,l,R)}var mt;if(Oc)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else Xn?Yr(t,l)&&(St="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(St="onCompositionStart");St&&(jr&&l.locale!=="ko"&&(Xn||St!=="onCompositionStart"?St==="onCompositionEnd"&&Xn&&(mt=Rr()):(_l=R,Tc="value"in _l?_l.value:_l.textContent,Xn=!0)),nt=Hu(z,St),0<nt.length&&(St=new Br(St,t,null,l,R),j.push({event:St,listeners:nt}),mt?St.data=mt:(mt=Xr(l),mt!==null&&(St.data=mt)))),(mt=y1?p1(t,l):v1(t,l))&&(St=Hu(z,"onBeforeInput"),0<St.length&&(nt=new Br("onBeforeInput","beforeinput",null,l,R),j.push({event:nt,listeners:St}),nt.data=mt)),sg(j,t,z,l,R)}Th(j,e)})}function fi(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Hu(t,e){for(var l=e+"Capture",n=[];t!==null;){var i=t,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Oa(t,l),i!=null&&n.unshift(fi(t,i,u)),i=Oa(t,e),i!=null&&n.push(fi(t,i,u))),t.tag===3)return n;t=t.return}return[]}function hg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function _h(t,e,l,n,i){for(var u=e._reactName,r=[];l!==null&&l!==n;){var g=l,b=g.alternate,z=g.stateNode;if(g=g.tag,b!==null&&b===n)break;g!==5&&g!==26&&g!==27||z===null||(b=z,i?(z=Oa(l,u),z!=null&&r.unshift(fi(l,z,b))):i||(z=Oa(l,u),z!=null&&r.push(fi(l,z,b)))),l=l.return}r.length!==0&&t.push({event:e,listeners:r})}var mg=/\r\n?/g,gg=/\u0000|\uFFFD/g;function Hh(t){return(typeof t=="string"?t:""+t).replace(mg,`
|
|
`).replace(gg,"")}function Nh(t,e){return e=Hh(e),Hh(t)===e}function Ht(t,e,l,n,i,u){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Gn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Gn(t,""+n);break;case"className":Di(t,"class",n);break;case"tabIndex":Di(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Di(t,l,n);break;case"style":Hr(t,n,u);break;case"data":if(e!=="object"){Di(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Bi(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&Ht(t,e,"name",i.name,i,null),Ht(t,e,"formEncType",i.formEncType,i,null),Ht(t,e,"formMethod",i.formMethod,i,null),Ht(t,e,"formTarget",i.formTarget,i,null)):(Ht(t,e,"encType",i.encType,i,null),Ht(t,e,"method",i.method,i,null),Ht(t,e,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Bi(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=al);break;case"onScroll":n!=null&&vt("scroll",t);break;case"onScrollEnd":n!=null&&vt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(i.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=Bi(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":vt("beforetoggle",t),vt("toggle",t),Ri(t,"popover",n);break;case"xlinkActuate":nl(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":nl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":nl(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":nl(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":nl(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":nl(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":nl(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":nl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":nl(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ri(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=qm.get(l)||l,Ri(t,l,n))}}function ss(t,e,l,n,i,u){switch(l){case"style":Hr(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(i.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof n=="string"?Gn(t,n):(typeof n=="number"||typeof n=="bigint")&&Gn(t,""+n);break;case"onScroll":n!=null&&vt("scroll",t);break;case"onScrollEnd":n!=null&&vt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=al);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xr.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),e=l.slice(2,i?l.length-7:void 0),u=t[he]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,i),typeof n=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,i);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):Ri(t,l,n)}}}function se(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",t),vt("load",t);var n=!1,i=!1,u;for(u in l)if(l.hasOwnProperty(u)){var r=l[u];if(r!=null)switch(u){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ht(t,e,u,r,l,null)}}i&&Ht(t,e,"srcSet",l.srcSet,l,null),n&&Ht(t,e,"src",l.src,l,null);return;case"input":vt("invalid",t);var g=u=r=i=null,b=null,z=null;for(n in l)if(l.hasOwnProperty(n)){var R=l[n];if(R!=null)switch(n){case"name":i=R;break;case"type":r=R;break;case"checked":b=R;break;case"defaultChecked":z=R;break;case"value":u=R;break;case"defaultValue":g=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:Ht(t,e,n,R,l,null)}}zr(t,u,g,b,z,r,i,!1);return;case"select":vt("invalid",t),n=r=u=null;for(i in l)if(l.hasOwnProperty(i)&&(g=l[i],g!=null))switch(i){case"value":u=g;break;case"defaultValue":r=g;break;case"multiple":n=g;default:Ht(t,e,i,g,l,null)}e=u,l=r,t.multiple=!!n,e!=null?jn(t,!!n,e,!1):l!=null&&jn(t,!!n,l,!0);return;case"textarea":vt("invalid",t),u=i=n=null;for(r in l)if(l.hasOwnProperty(r)&&(g=l[r],g!=null))switch(r){case"value":n=g;break;case"defaultValue":i=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:Ht(t,e,r,g,l,null)}wr(t,n,i,u);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(n=l[b],n!=null))switch(b){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Ht(t,e,b,n,l,null)}return;case"dialog":vt("beforetoggle",t),vt("toggle",t),vt("cancel",t),vt("close",t);break;case"iframe":case"object":vt("load",t);break;case"video":case"audio":for(n=0;n<ri.length;n++)vt(ri[n],t);break;case"image":vt("error",t),vt("load",t);break;case"details":vt("toggle",t);break;case"embed":case"source":case"link":vt("error",t),vt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in l)if(l.hasOwnProperty(z)&&(n=l[z],n!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ht(t,e,z,n,l,null)}return;default:if(Cc(e)){for(R in l)l.hasOwnProperty(R)&&(n=l[R],n!==void 0&&ss(t,e,R,n,l,void 0));return}}for(g in l)l.hasOwnProperty(g)&&(n=l[g],n!=null&&Ht(t,e,g,n,l,null))}function yg(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,r=null,g=null,b=null,z=null,R=null;for(N in l){var j=l[N];if(l.hasOwnProperty(N)&&j!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":b=j;default:n.hasOwnProperty(N)||Ht(t,e,N,null,n,j)}}for(var w in n){var N=n[w];if(j=l[w],n.hasOwnProperty(w)&&(N!=null||j!=null))switch(w){case"type":u=N;break;case"name":i=N;break;case"checked":z=N;break;case"defaultChecked":R=N;break;case"value":r=N;break;case"defaultValue":g=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,e));break;default:N!==j&&Ht(t,e,w,N,n,j)}}Sc(t,r,g,b,z,R,u,i);return;case"select":N=r=g=w=null;for(u in l)if(b=l[u],l.hasOwnProperty(u)&&b!=null)switch(u){case"value":break;case"multiple":N=b;default:n.hasOwnProperty(u)||Ht(t,e,u,null,n,b)}for(i in n)if(u=n[i],b=l[i],n.hasOwnProperty(i)&&(u!=null||b!=null))switch(i){case"value":w=u;break;case"defaultValue":g=u;break;case"multiple":r=u;default:u!==b&&Ht(t,e,i,u,n,b)}e=g,l=r,n=N,w!=null?jn(t,!!l,w,!1):!!n!=!!l&&(e!=null?jn(t,!!l,e,!0):jn(t,!!l,l?[]:"",!1));return;case"textarea":N=w=null;for(g in l)if(i=l[g],l.hasOwnProperty(g)&&i!=null&&!n.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ht(t,e,g,null,n,i)}for(r in n)if(i=n[r],u=l[r],n.hasOwnProperty(r)&&(i!=null||u!=null))switch(r){case"value":w=i;break;case"defaultValue":N=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==u&&Ht(t,e,r,i,n,u)}Tr(t,w,N);return;case"option":for(var I in l)if(w=l[I],l.hasOwnProperty(I)&&w!=null&&!n.hasOwnProperty(I))switch(I){case"selected":t.selected=!1;break;default:Ht(t,e,I,null,n,w)}for(b in n)if(w=n[b],N=l[b],n.hasOwnProperty(b)&&w!==N&&(w!=null||N!=null))switch(b){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ht(t,e,b,w,n,N)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ct in l)w=l[ct],l.hasOwnProperty(ct)&&w!=null&&!n.hasOwnProperty(ct)&&Ht(t,e,ct,null,n,w);for(z in n)if(w=n[z],N=l[z],n.hasOwnProperty(z)&&w!==N&&(w!=null||N!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,e));break;default:Ht(t,e,z,w,n,N)}return;default:if(Cc(e)){for(var Nt in l)w=l[Nt],l.hasOwnProperty(Nt)&&w!==void 0&&!n.hasOwnProperty(Nt)&&ss(t,e,Nt,void 0,n,w);for(R in n)w=n[R],N=l[R],!n.hasOwnProperty(R)||w===N||w===void 0&&N===void 0||ss(t,e,R,w,n,N);return}}for(var E in l)w=l[E],l.hasOwnProperty(E)&&w!=null&&!n.hasOwnProperty(E)&&Ht(t,e,E,null,n,w);for(j in n)w=n[j],N=l[j],!n.hasOwnProperty(j)||w===N||w==null&&N==null||Ht(t,e,j,w,n,N)}function Oh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var i=l[n],u=i.transferSize,r=i.initiatorType,g=i.duration;if(u&&g&&Oh(r)){for(r=0,g=i.responseEnd,n+=1;n<l.length;n++){var b=l[n],z=b.startTime;if(z>g)break;var R=b.transferSize,j=b.initiatorType;R&&Oh(j)&&(b=b.responseEnd,r+=R*(b<g?1:(g-z)/(b-z)))}if(--n,e+=8*(u+r)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var rs=null,fs=null;function Nu(t){return t.nodeType===9?t:t.ownerDocument}function Rh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Dh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ds(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var hs=null;function vg(){var t=window.event;return t&&t.type==="popstate"?t===hs?!1:(hs=t,!0):(hs=null,!1)}var Uh=typeof setTimeout=="function"?setTimeout:void 0,bg=typeof clearTimeout=="function"?clearTimeout:void 0,Bh=typeof Promise=="function"?Promise:void 0,Sg=typeof queueMicrotask=="function"?queueMicrotask:typeof Bh<"u"?function(t){return Bh.resolve(null).then(t).catch(xg)}:Uh;function xg(t){setTimeout(function(){throw t})}function Ql(t){return t==="head"}function Lh(t,e){var l=e,n=0;do{var i=l.nextSibling;if(t.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(i),ya(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")di(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,di(l);for(var u=l.firstChild;u;){var r=u.nextSibling,g=u.nodeName;u[Ha]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=r}}else l==="body"&&di(t.ownerDocument.body);l=i}while(l);ya(e)}function jh(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function ms(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ms(l),vc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Cg(t,e,l,n){for(;t.nodeType===1;){var i=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Ha])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=qe(t.nextSibling),t===null)break}return null}function Ag(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=qe(t.nextSibling),t===null))return null;return t}function Gh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=qe(t.nextSibling),t===null))return null;return t}function gs(t){return t.data==="$?"||t.data==="$~"}function ys(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Eg(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function qe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ps=null;function Vh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return qe(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Yh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Xh(t,e,l){switch(e=Nu(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function di(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);vc(t)}var Ze=new Map,qh=new Set;function Ou(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sl=O.d;O.d={f:Mg,r:zg,D:Tg,C:wg,L:_g,m:Hg,X:Og,S:Ng,M:Rg};function Mg(){var t=Sl.f(),e=Au();return t||e}function zg(t){var e=Un(t);e!==null&&e.tag===5&&e.type==="form"?ud(e):Sl.r(t)}var ha=typeof document>"u"?null:document;function Zh(t,e,l){var n=ha;if(n&&typeof e=="string"&&e){var i=Be(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),qh.has(i)||(qh.add(i),t={rel:t,crossOrigin:l,href:e},n.querySelector(i)===null&&(e=n.createElement("link"),se(e,"link",t),ne(e),n.head.appendChild(e)))}}function Tg(t){Sl.D(t),Zh("dns-prefetch",t,null)}function wg(t,e){Sl.C(t,e),Zh("preconnect",t,e)}function _g(t,e,l){Sl.L(t,e,l);var n=ha;if(n&&t&&e){var i='link[rel="preload"][as="'+Be(e)+'"]';e==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+Be(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+Be(l.imageSizes)+'"]')):i+='[href="'+Be(t)+'"]';var u=i;switch(e){case"style":u=ma(t);break;case"script":u=ga(t)}Ze.has(u)||(t=C({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ze.set(u,t),n.querySelector(i)!==null||e==="style"&&n.querySelector(hi(u))||e==="script"&&n.querySelector(mi(u))||(e=n.createElement("link"),se(e,"link",t),ne(e),n.head.appendChild(e)))}}function Hg(t,e){Sl.m(t,e);var l=ha;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Be(n)+'"][href="'+Be(t)+'"]',u=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ga(t)}if(!Ze.has(u)&&(t=C({rel:"modulepreload",href:t},e),Ze.set(u,t),l.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(mi(u)))return}n=l.createElement("link"),se(n,"link",t),ne(n),l.head.appendChild(n)}}}function Ng(t,e,l){Sl.S(t,e,l);var n=ha;if(n&&t){var i=Bn(n).hoistableStyles,u=ma(t);e=e||"default";var r=i.get(u);if(!r){var g={loading:0,preload:null};if(r=n.querySelector(hi(u)))g.loading=5;else{t=C({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ze.get(u))&&vs(t,l);var b=r=n.createElement("link");ne(b),se(b,"link",t),b._p=new Promise(function(z,R){b.onload=z,b.onerror=R}),b.addEventListener("load",function(){g.loading|=1}),b.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Ru(r,e,n)}r={type:"stylesheet",instance:r,count:1,state:g},i.set(u,r)}}}function Og(t,e){Sl.X(t,e);var l=ha;if(l&&t){var n=Bn(l).hoistableScripts,i=ga(t),u=n.get(i);u||(u=l.querySelector(mi(i)),u||(t=C({src:t,async:!0},e),(e=Ze.get(i))&&bs(t,e),u=l.createElement("script"),ne(u),se(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(i,u))}}function Rg(t,e){Sl.M(t,e);var l=ha;if(l&&t){var n=Bn(l).hoistableScripts,i=ga(t),u=n.get(i);u||(u=l.querySelector(mi(i)),u||(t=C({src:t,async:!0,type:"module"},e),(e=Ze.get(i))&&bs(t,e),u=l.createElement("script"),ne(u),se(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(i,u))}}function kh(t,e,l,n){var i=(i=rt.current)?Ou(i):null;if(!i)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=ma(l.href),l=Bn(i).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ma(l.href);var u=Bn(i).hoistableStyles,r=u.get(t);if(r||(i=i.ownerDocument||i,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,r),(u=i.querySelector(hi(t)))&&!u._p&&(r.instance=u,r.state.loading=5),Ze.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ze.set(t,l),u||Dg(i,t,l,r.state))),e&&n===null)throw Error(c(528,""));return r}if(e&&n!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ga(l),l=Bn(i).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function ma(t){return'href="'+Be(t)+'"'}function hi(t){return'link[rel="stylesheet"]['+t+"]"}function Qh(t){return C({},t,{"data-precedence":t.precedence,precedence:null})}function Dg(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),se(e,"link",l),ne(e),t.head.appendChild(e))}function ga(t){return'[src="'+Be(t)+'"]'}function mi(t){return"script[async]"+t}function Kh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Be(l.href)+'"]');if(n)return e.instance=n,ne(n),n;var i=C({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),ne(n),se(n,"style",i),Ru(n,l.precedence,t),e.instance=n;case"stylesheet":i=ma(l.href);var u=t.querySelector(hi(i));if(u)return e.state.loading|=4,e.instance=u,ne(u),u;n=Qh(l),(i=Ze.get(i))&&vs(n,i),u=(t.ownerDocument||t).createElement("link"),ne(u);var r=u;return r._p=new Promise(function(g,b){r.onload=g,r.onerror=b}),se(u,"link",n),e.state.loading|=4,Ru(u,l.precedence,t),e.instance=u;case"script":return u=ga(l.src),(i=t.querySelector(mi(u)))?(e.instance=i,ne(i),i):(n=l,(i=Ze.get(u))&&(n=C({},l),bs(n,i)),t=t.ownerDocument||t,i=t.createElement("script"),ne(i),se(i,"link",n),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Ru(n,l.precedence,t));return e.instance}function Ru(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,u=i,r=0;r<n.length;r++){var g=n[r];if(g.dataset.precedence===e)u=g;else if(u!==i)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function vs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function bs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Du=null;function Jh(t,e,l){if(Du===null){var n=new Map,i=Du=new Map;i.set(l,n)}else i=Du,n=i.get(l),n||(n=new Map,i.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),i=0;i<l.length;i++){var u=l[i];if(!(u[Ha]||u[ie]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var r=u.getAttribute(e)||"";r=t+r;var g=n.get(r);g?g.push(u):n.set(r,[u])}}return n}function Fh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Ug(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Wh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Bg(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=ma(n.href),u=e.querySelector(hi(i));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Uu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,ne(u);return}u=e.ownerDocument||e,n=Qh(n),(i=Ze.get(i))&&vs(n,i),u=u.createElement("link"),ne(u);var r=u;r._p=new Promise(function(g,b){r.onload=g,r.onerror=b}),se(u,"link",n),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Uu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Ss=0;function Lg(t,e){return t.stylesheets&&t.count===0&&Lu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&Lu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Ss===0&&(Ss=62500*pg());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Lu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Ss?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function Uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Bu=null;function Lu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Bu=new Map,e.forEach(jg,t),Bu=null,Uu.call(t))}function jg(t,e){if(!(e.state.loading&4)){var l=Bu.get(t);if(l)var n=l.get(null);else{l=new Map,Bu.set(t,l);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var r=i[u];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),n=r)}n&&l.set(null,n)}i=e.instance,r=i.getAttribute("data-precedence"),u=l.get(r)||n,u===n&&l.set(null,i),l.set(r,i),this.count++,n=Uu.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),u?u.parentNode.insertBefore(i,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var gi={$$typeof:at,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function Gg(t,e,l,n,i,u,r,g,b){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mc(0),this.hiddenUpdates=mc(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function $h(t,e,l,n,i,u,r,g,b,z,R,j){return t=new Gg(t,e,l,r,b,z,R,j,g),e=1,u===!0&&(e|=24),u=Te(3,null,null,e),t.current=u,u.stateNode=t,e=Ic(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},lo(u),t}function Ih(t){return t?(t=Qn,t):Qn}function Ph(t,e,l,n,i,u){i=Ih(i),n.context===null?n.context=i:n.pendingContext=i,n=Ul(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=Bl(t,n,e),l!==null&&(be(l,t,e),Ka(l,t,e))}function t0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function xs(t,e){t0(t,e),(t=t.alternate)&&t0(t,e)}function e0(t){if(t.tag===13||t.tag===31){var e=vn(t,67108864);e!==null&&be(e,t,67108864),xs(t,67108864)}}function l0(t){if(t.tag===13||t.tag===31){var e=Oe();e=gc(e);var l=vn(t,e);l!==null&&be(l,t,e),xs(t,e)}}var ju=!0;function Vg(t,e,l,n){var i=A.T;A.T=null;var u=O.p;try{O.p=2,Cs(t,e,l,n)}finally{O.p=u,A.T=i}}function Yg(t,e,l,n){var i=A.T;A.T=null;var u=O.p;try{O.p=8,Cs(t,e,l,n)}finally{O.p=u,A.T=i}}function Cs(t,e,l,n){if(ju){var i=As(n);if(i===null)os(t,e,n,Gu,l),a0(t,n);else if(qg(i,t,e,l,n))n.stopPropagation();else if(a0(t,n),e&4&&-1<Xg.indexOf(t)){for(;i!==null;){var u=Un(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=hn(u.pendingLanes);if(r!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;r;){var b=1<<31-Me(r);g.entanglements[1]|=b,r&=~b}ll(u),(Mt&6)===0&&(xu=Ae()+500,si(0))}}break;case 31:case 13:g=vn(u,2),g!==null&&be(g,u,2),Au(),xs(u,2)}if(u=As(n),u===null&&os(t,e,n,Gu,l),u===i)break;i=u}i!==null&&n.stopPropagation()}else os(t,e,n,null,l)}}function As(t){return t=Ec(t),Es(t)}var Gu=null;function Es(t){if(Gu=null,t=Dn(t),t!==null){var e=h(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=f(e),t!==null)return t;t=null}else if(l===31){if(t=y(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Gu=t,null}function n0(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Tm()){case rr:return 2;case fr:return 8;case wi:case wm:return 32;case dr:return 268435456;default:return 32}default:return 32}}var Ms=!1,Kl=null,Jl=null,Fl=null,yi=new Map,pi=new Map,Wl=[],Xg="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".split(" ");function a0(t,e){switch(t){case"focusin":case"focusout":Kl=null;break;case"dragenter":case"dragleave":Jl=null;break;case"mouseover":case"mouseout":Fl=null;break;case"pointerover":case"pointerout":yi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":pi.delete(e.pointerId)}}function vi(t,e,l,n,i,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[i]},e!==null&&(e=Un(e),e!==null&&e0(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function qg(t,e,l,n,i){switch(e){case"focusin":return Kl=vi(Kl,t,e,l,n,i),!0;case"dragenter":return Jl=vi(Jl,t,e,l,n,i),!0;case"mouseover":return Fl=vi(Fl,t,e,l,n,i),!0;case"pointerover":var u=i.pointerId;return yi.set(u,vi(yi.get(u)||null,t,e,l,n,i)),!0;case"gotpointercapture":return u=i.pointerId,pi.set(u,vi(pi.get(u)||null,t,e,l,n,i)),!0}return!1}function i0(t){var e=Dn(t.target);if(e!==null){var l=h(e);if(l!==null){if(e=l.tag,e===13){if(e=f(l),e!==null){t.blockedOn=e,vr(t.priority,function(){l0(l)});return}}else if(e===31){if(e=y(l),e!==null){t.blockedOn=e,vr(t.priority,function(){l0(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Vu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=As(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);Ac=n,l.target.dispatchEvent(n),Ac=null}else return e=Un(l),e!==null&&e0(e),t.blockedOn=l,!1;e.shift()}return!0}function u0(t,e,l){Vu(t)&&l.delete(e)}function Zg(){Ms=!1,Kl!==null&&Vu(Kl)&&(Kl=null),Jl!==null&&Vu(Jl)&&(Jl=null),Fl!==null&&Vu(Fl)&&(Fl=null),yi.forEach(u0),pi.forEach(u0)}function Yu(t,e){t.blockedOn===e&&(t.blockedOn=null,Ms||(Ms=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Zg)))}var Xu=null;function c0(t){Xu!==t&&(Xu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Xu===t&&(Xu=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],i=t[e+2];if(typeof n!="function"){if(Es(n||l)===null)continue;break}var u=Un(l);u!==null&&(t.splice(e,3),e-=3,Ao(u,{pending:!0,data:i,method:l.method,action:n},n,i))}}))}function ya(t){function e(b){return Yu(b,t)}Kl!==null&&Yu(Kl,t),Jl!==null&&Yu(Jl,t),Fl!==null&&Yu(Fl,t),yi.forEach(e),pi.forEach(e);for(var l=0;l<Wl.length;l++){var n=Wl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Wl.length&&(l=Wl[0],l.blockedOn===null);)i0(l),l.blockedOn===null&&Wl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var i=l[n],u=l[n+1],r=i[he]||null;if(typeof u=="function")r||c0(l);else if(r){var g=null;if(u&&u.hasAttribute("formAction")){if(i=u,r=u[he]||null)g=r.formAction;else if(Es(i)!==null)continue}else g=r.action;typeof g=="function"?l[n+1]=g:(l.splice(n,3),n-=3),c0(l)}}}function o0(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(r){return i=r})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function zs(t){this._internalRoot=t}qu.prototype.render=zs.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,n=Oe();Ph(l,n,t,e,null,null)},qu.prototype.unmount=zs.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ph(t.current,2,null,t,null,null),Au(),e[Rn]=null}};function qu(t){this._internalRoot=t}qu.prototype.unstable_scheduleHydration=function(t){if(t){var e=pr();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Wl.length&&e!==0&&e<Wl[l].priority;l++);Wl.splice(l,0,t),l===0&&i0(t)}};var s0=o.version;if(s0!=="19.2.0")throw Error(c(527,s0,"19.2.0"));O.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var kg={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{Ta=Zu.inject(kg),Ee=Zu}catch{}}return Si.createRoot=function(t,e){if(!d(t))throw Error(c(299));var l=!1,n="",i=yd,u=pd,r=vd;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=$h(t,1,!1,null,null,l,n,null,i,u,r,o0),t[Rn]=e.current,cs(t),new zs(e)},Si.hydrateRoot=function(t,e,l){if(!d(t))throw Error(c(299));var n=!1,i="",u=yd,r=pd,g=vd,b=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(g=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),e=$h(t,1,!0,e,l??null,n,i,b,u,r,g,o0),e.context=Ih(null),l=e.current,n=Oe(),n=gc(n),i=Ul(n),i.callback=null,Bl(l,i,n),l=n,e.current.lanes=l,_a(e,l),ll(e),t[Rn]=e.current,cs(t),new qu(e)},Si.version="19.2.0",Si}var S0;function ny(){if(S0)return _s.exports;S0=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}return a(),_s.exports=ly(),_s.exports}var ay=ny();const iy=Y0(ay);function uy(){return window.LiteGraph??null}function Qs(){return uy()?.LGraphCanvas?.active_canvas??null}function cy(){const a=Qs();if(a?.graph)return{canvas:a,graph:a.graph};const s=document.querySelector(".litegraph.litegraph-canvas")?.lgraphcanvas;return s?.graph?{canvas:s,graph:s.graph}:null}function Ce(){const a=Qs();if(a?.graph)return{canvas:a,graph:a.graph};const o=Iu;if(o?.canvas&&o?.graph)return o;const c=window.app;return c?.canvas&&c?.graph?c:cy()}function on(a){try{a?.graph?.setDirtyCanvas?.(!0,!0)}catch(o){console.warn("Failed to set dirty canvas",o)}}function X0(a,o){const s=a?.canvas??Qs(),d=s?.repositionNodesVueMode;if(typeof d!="function")return;const h=(o||[]).filter(f=>!!f).filter(f=>{const y=f.pos;return f.id!=null&&(Array.isArray(y)||ArrayBuffer.isView(y))&&y.length>=2}).map(f=>{const y=f.pos;return{node:f,newPos:{x:y[0]??0,y:y[1]??0}}});h.length&&d.call(s,h)}function oy(){return window.app??null}function sy(){return Iu??null}function ry(a){return!!a&&typeof a=="object"&&"then"in a&&typeof a.then=="function"}function De(a){const o=[sy(),oy(),Ce()];for(const s of o){if(!s)continue;const c=s.ui?.settings?.getSettingValue?.(a);if(typeof c<"u")return c;const d=s.ui?.settings?.settingsValues;if(d&&a in d)return d[a];const h=s.extensionManager?.setting?.get?.(a);if(typeof h<"u"&&!ry(h))return h}}const Ks=50,Js=20,q0={horizontal:"comfyuiAlign.nodeHorizontalSpacing",vertical:"comfyuiAlign.nodeVerticalSpacing"};function Pu(a,o){if(typeof a=="number"&&!Number.isNaN(a))return a;if(typeof a=="string"){const s=Number(a);if(!Number.isNaN(s))return s}return o}let Ls=Ks,js=Js;function Z0(a){Ls=Pu(a,Ks)}function k0(a){js=Pu(a,Js)}function fy(){try{const a=De(q0.horizontal);typeof a<"u"&&(Ls=Pu(a,Ks))}catch{}return Ls}function dy(){try{const a=De(q0.vertical);typeof a<"u"&&(js=Pu(a,Js))}catch{}return js}const Fs=10,Ws=10,x0=8,C0=8,tc={horizontal:"comfyuiAlign.groupHorizontalSpacing",vertical:"comfyuiAlign.groupVerticalSpacing",safetyHorizontal:"comfyuiAlign.groupSafetyMarginHorizontal",safetyVertical:"comfyuiAlign.groupSafetyMarginVertical"};function xa(a,o){if(typeof a=="number"&&!Number.isNaN(a))return a;if(typeof a=="string"){const s=Number(a);if(!Number.isNaN(s))return s}return o}let Gs=Fs,Vs=Ws;function Q0(a){Gs=xa(a,Fs)}function K0(a){Vs=xa(a,Ws)}function hy(){try{const a=De(tc.horizontal);typeof a<"u"&&(Gs=xa(a,Fs))}catch{}return Gs}function my(){try{const a=De(tc.vertical);typeof a<"u"&&(Vs=xa(a,Ws))}catch{}return Vs}function ec(){try{const a=De(tc.safetyHorizontal);return xa(a,x0)}catch{return x0}}function lc(){try{const a=De(tc.safetyVertical);return xa(a,C0)}catch{return C0}}const A0=a=>{let o;const s=new Set,c=(m,v)=>{const C=typeof m=="function"?m(o):m;if(!Object.is(C,o)){const _=o;o=v??(typeof C!="object"||C===null)?C:Object.assign({},o,C),s.forEach(D=>D(o,_))}},d=()=>o,y={setState:c,getState:d,getInitialState:()=>p,subscribe:m=>(s.add(m),()=>s.delete(m))},p=o=a(c,d,y);return y},gy=(a=>a?A0(a):A0),yy=a=>a;function py(a,o=yy){const s=$e.useSyncExternalStore(a.subscribe,$e.useCallback(()=>o(a.getState()),[a,o]),$e.useCallback(()=>o(a.getInitialState()),[a,o]));return $e.useDebugValue(s),s}const E0=a=>{const o=gy(a),s=c=>py(o,c);return Object.assign(s,o),s},J0=(a=>a?E0(a):E0),F0=300,W0=32,vy=F0+W0*2,$0=F0+W0*2,by=40,Sy=8,xy=vy,Cy=$0+Sy+by,an=J0((a,o)=>({isOpen:!1,position:{x:0,y:0},mouse:{x:0,y:0},panelWidth:xy,panelHeight:Cy,shortcutKeyHeld:!1,positionLocked:!1,hoveredIcon:null,hoveredColorBarIndex:null,setMouse:(s,c)=>a({mouse:{x:s,y:c}}),openAtMouse:()=>{const{mouse:s,panelWidth:c,panelHeight:d}=o(),h=window.innerWidth||document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight,y={x:s.x-c/2,y:s.y-$0/2},p={x:Math.max(0,Math.min(y.x,h-c)),y:Math.max(0,Math.min(y.y,f-d))};a({isOpen:!0,position:p})},close:()=>a({isOpen:!1}),toggleAtMouse:()=>{const{isOpen:s}=o();if(s){a({isOpen:!1});return}o().openAtMouse()},setPosition:s=>a({position:s}),setShortcutKeyHeld:s=>a({shortcutKeyHeld:s}),setPositionLocked:s=>a({positionLocked:s}),setHoveredIcon:s=>a({hoveredIcon:s}),setHoveredColorBarIndex:s=>a({hoveredColorBarIndex:s})})),Ay=$e.lazy(()=>Bs(()=>Promise.resolve().then(()=>_v),void 0)),M0="comfyui-align-overlay",Ey=1e4,My=50,ke={nodeHorizontalSpacing:"comfyuiAlign.nodeHorizontalSpacing",nodeVerticalSpacing:"comfyuiAlign.nodeVerticalSpacing",groupHorizontalSpacing:"comfyuiAlign.groupHorizontalSpacing",groupVerticalSpacing:"comfyuiAlign.groupVerticalSpacing",applyColorHeaderOnly:"comfyuiAlign.applyColorHeaderOnly",shortcutHoldMode:"comfyuiAlign.shortcutHoldMode"};let z0=!1;function zy(){return G.jsx(Ay,{})}function Ty(){return document.readyState!=="loading"?Promise.resolve():new Promise(a=>{document.addEventListener("DOMContentLoaded",()=>a(),{once:!0})})}function T0(a){const o=a?.ui?.settings;return o?typeof o.getSettingValue=="function"||typeof o.settingsValues=="object":!1}function w0(){return window.app??Iu}function wy(){return T0(w0())?Promise.resolve(!0):new Promise(a=>{const o=Date.now(),s=window.setInterval(()=>{if(T0(w0())){window.clearInterval(s),a(!0);return}Date.now()-o>=Ey&&(window.clearInterval(s),console.warn("ComfyUI Align settings API was not ready before timeout; continuing with fallback values."),a(!1))},My)})}function _y(){Z0(De(ke.nodeHorizontalSpacing)),k0(De(ke.nodeVerticalSpacing)),Q0(De(ke.groupHorizontalSpacing)),K0(De(ke.groupVerticalSpacing))}function Hy(){if(document.getElementById(M0))return;const o=document.createElement("div");o.id=M0,o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.right="0",o.style.bottom="0",o.style.zIndex="9999",o.style.pointerEvents="none",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",document.body.appendChild(o),iy.createRoot(o).render(G.jsx($e.StrictMode,{children:G.jsx(T.Suspense,{fallback:G.jsx("div",{children:"Loading..."}),children:G.jsx(zy,{})})}))}function Ny(){if(z0)return;const a=o=>{if(!!!De(ke.shortcutHoldMode))return;const c=an.getState();if(!c.shortcutKeyHeld)return;o.preventDefault(),o.stopPropagation();const{hoveredIcon:d,hoveredColorBarIndex:h}=c,f=()=>{c.close(),c.setShortcutKeyHeld(!1),c.setHoveredIcon(null),c.setHoveredColorBarIndex(null),c.setPositionLocked(!1)};if(d){Bs(async()=>{const{executeIconAction:y}=await Promise.resolve().then(()=>G2);return{executeIconAction:y}},void 0).then(({executeIconAction:y})=>{y(d),f()}).catch(y=>{console.error("Error executing hovered icon action:",y),f()});return}if(h!=null){Bs(async()=>{const{executeColorBarAction:y}=await Promise.resolve().then(()=>Nv);return{executeColorBarAction:y}},void 0).then(({executeColorBarAction:y})=>{y(h),f()}).catch(y=>{console.error("Error executing hovered ColorBar action:",y),f()});return}f()};window.addEventListener("keyup",a,!0),z0=!0}Iu.registerExtension({name:"Comfy.Align",settings:[{id:ke.nodeHorizontalSpacing,name:"Node horizontal spacing",type:"number",defaultValue:50,category:["Align","Spacing","Node horizontal spacing"],attrs:{showButtons:!0,min:0},onChange:(a,o)=>{Z0(a),console.log("Align setting changed: horizontal",{newVal:a,oldVal:o})}},{id:ke.nodeVerticalSpacing,name:"Node vertical spacing",type:"number",defaultValue:20,category:["Align","Spacing","Node vertical spacing"],attrs:{showButtons:!0,min:0},onChange:(a,o)=>{k0(a),console.log("Align setting changed: vertical",{newVal:a,oldVal:o})}},{id:ke.groupHorizontalSpacing,name:"Group horizontal spacing",type:"number",defaultValue:10,category:["Align","Spacing","Group horizontal spacing"],attrs:{showButtons:!0,min:0},onChange:(a,o)=>{Q0(a),console.log("Align setting changed: group horizontal",{newVal:a,oldVal:o})}},{id:ke.groupVerticalSpacing,name:"Group vertical spacing",type:"number",defaultValue:10,category:["Align","Spacing","Group vertical spacing"],attrs:{showButtons:!0,min:0},onChange:(a,o)=>{K0(a),console.log("Align setting changed: group vertical",{newVal:a,oldVal:o})}},{id:ke.applyColorHeaderOnly,name:"Apply Color to Header Only",type:"boolean",defaultValue:!0,category:["Align","Color","Apply Color to Header Only"],onChange:(a,o)=>{console.log("Align setting changed: Apply Color to Header Only",{newVal:a,oldVal:o})}},{id:ke.shortcutHoldMode,name:"Hold Mode",type:"boolean",defaultValue:!1,category:["Align","Shortcut","Hold Mode"],tooltip:"ON: Hold the shortcut key to display the Align panel, and hover the mouse over a button before releasing the shortcut key. Alternatively, you can hold the shortcut key and click a button multiple times to perform multiple operations.",onChange:(a,o)=>{console.log("Align setting changed: Hold Mode",{newVal:a,oldVal:o})}}],commands:[{id:"comfyuiAlign.toggleAlignPanel",label:"Align Panel",function:()=>{const a=!!De(ke.shortcutHoldMode),o=an.getState();if(a){if(o.shortcutKeyHeld){o.setPositionLocked(!0);return}o.openAtMouse(),o.setShortcutKeyHeld(!0),o.setPositionLocked(!0);return}o.toggleAtMouse()}}],keybindings:[{combo:{key:"`"},commandId:"comfyuiAlign.toggleAlignPanel"}],async setup(){await Ty(),Hy(),Ny(),await wy(),_y(),console.log("ComfyUI Align Extension setup complete")}});function I0(a){var o,s,c="";if(typeof a=="string"||typeof a=="number")c+=a;else if(typeof a=="object")if(Array.isArray(a)){var d=a.length;for(o=0;o<d;o++)a[o]&&(s=I0(a[o]))&&(c&&(c+=" "),c+=s)}else for(s in a)a[s]&&(c&&(c+=" "),c+=s);return c}function Oy(){for(var a,o,s=0,c="",d=arguments.length;s<d;s++)(a=arguments[s])&&(o=I0(a))&&(c&&(c+=" "),c+=o);return c}const $s="-",Ry=a=>{const o=Uy(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=a;return{getClassGroupId:f=>{const y=f.split($s);return y[0]===""&&y.length!==1&&y.shift(),P0(y,o)||Dy(f)},getConflictingClassGroupIds:(f,y)=>{const p=s[f]||[];return y&&c[f]?[...p,...c[f]]:p}}},P0=(a,o)=>{if(a.length===0)return o.classGroupId;const s=a[0],c=o.nextPart.get(s),d=c?P0(a.slice(1),c):void 0;if(d)return d;if(o.validators.length===0)return;const h=a.join($s);return o.validators.find(({validator:f})=>f(h))?.classGroupId},_0=/^\[(.+)\]$/,Dy=a=>{if(_0.test(a)){const o=_0.exec(a)[1],s=o?.substring(0,o.indexOf(":"));if(s)return"arbitrary.."+s}},Uy=a=>{const{theme:o,classGroups:s}=a,c={nextPart:new Map,validators:[]};for(const d in s)Ys(s[d],c,d,o);return c},Ys=(a,o,s,c)=>{a.forEach(d=>{if(typeof d=="string"){const h=d===""?o:H0(o,d);h.classGroupId=s;return}if(typeof d=="function"){if(By(d)){Ys(d(c),o,s,c);return}o.validators.push({validator:d,classGroupId:s});return}Object.entries(d).forEach(([h,f])=>{Ys(f,H0(o,h),s,c)})})},H0=(a,o)=>{let s=a;return o.split($s).forEach(c=>{s.nextPart.has(c)||s.nextPart.set(c,{nextPart:new Map,validators:[]}),s=s.nextPart.get(c)}),s},By=a=>a.isThemeGetter,Ly=a=>{if(a<1)return{get:()=>{},set:()=>{}};let o=0,s=new Map,c=new Map;const d=(h,f)=>{s.set(h,f),o++,o>a&&(o=0,c=s,s=new Map)};return{get(h){let f=s.get(h);if(f!==void 0)return f;if((f=c.get(h))!==void 0)return d(h,f),f},set(h,f){s.has(h)?s.set(h,f):d(h,f)}}},Xs="!",qs=":",jy=qs.length,Gy=a=>{const{prefix:o,experimentalParseClassName:s}=a;let c=d=>{const h=[];let f=0,y=0,p=0,m;for(let q=0;q<d.length;q++){let V=d[q];if(f===0&&y===0){if(V===qs){h.push(d.slice(p,q)),p=q+jy;continue}if(V==="/"){m=q;continue}}V==="["?f++:V==="]"?f--:V==="("?y++:V===")"&&y--}const v=h.length===0?d:d.substring(p),C=Vy(v),_=C!==v,D=m&&m>p?m-p:void 0;return{modifiers:h,hasImportantModifier:_,baseClassName:C,maybePostfixModifierPosition:D}};if(o){const d=o+qs,h=c;c=f=>f.startsWith(d)?h(f.substring(d.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(s){const d=c;c=h=>s({className:h,parseClassName:d})}return c},Vy=a=>a.endsWith(Xs)?a.substring(0,a.length-1):a.startsWith(Xs)?a.substring(1):a,Yy=a=>{const o=Object.fromEntries(a.orderSensitiveModifiers.map(c=>[c,!0]));return c=>{if(c.length<=1)return c;const d=[];let h=[];return c.forEach(f=>{f[0]==="["||o[f]?(d.push(...h.sort(),f),h=[]):h.push(f)}),d.push(...h.sort()),d}},Xy=a=>({cache:Ly(a.cacheSize),parseClassName:Gy(a),sortModifiers:Yy(a),...Ry(a)}),qy=/\s+/,Zy=(a,o)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:d,sortModifiers:h}=o,f=[],y=a.trim().split(qy);let p="";for(let m=y.length-1;m>=0;m-=1){const v=y[m],{isExternal:C,modifiers:_,hasImportantModifier:D,baseClassName:q,maybePostfixModifierPosition:V}=s(v);if(C){p=v+(p.length>0?" "+p:p);continue}let F=!!V,U=c(F?q.substring(0,V):q);if(!U){if(!F){p=v+(p.length>0?" "+p:p);continue}if(U=c(q),!U){p=v+(p.length>0?" "+p:p);continue}F=!1}const W=h(_).join(":"),at=D?W+Xs:W,st=at+U;if(f.includes(st))continue;f.push(st);const J=d(U,F);for(let lt=0;lt<J.length;++lt){const X=J[lt];f.push(at+X)}p=v+(p.length>0?" "+p:p)}return p};function ky(){let a=0,o,s,c="";for(;a<arguments.length;)(o=arguments[a++])&&(s=tm(o))&&(c&&(c+=" "),c+=s);return c}const tm=a=>{if(typeof a=="string")return a;let o,s="";for(let c=0;c<a.length;c++)a[c]&&(o=tm(a[c]))&&(s&&(s+=" "),s+=o);return s};function Qy(a,...o){let s,c,d,h=f;function f(p){const m=o.reduce((v,C)=>C(v),a());return s=Xy(m),c=s.cache.get,d=s.cache.set,h=y,y(p)}function y(p){const m=c(p);if(m)return m;const v=Zy(p,s);return d(p,v),v}return function(){return h(ky.apply(null,arguments))}}const ee=a=>{const o=s=>s[a]||[];return o.isThemeGetter=!0,o},em=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ky=/^\d+\/\d+$/,Jy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fy=/\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$/,Wy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$y=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pa=a=>Ky.test(a),yt=a=>!!a&&!Number.isNaN(Number(a)),Il=a=>!!a&&Number.isInteger(Number(a)),Rs=a=>a.endsWith("%")&&yt(a.slice(0,-1)),xl=a=>Jy.test(a),Py=()=>!0,tp=a=>Fy.test(a)&&!Wy.test(a),nm=()=>!1,ep=a=>$y.test(a),lp=a=>Iy.test(a),np=a=>!P(a)&&!tt(a),ap=a=>Ca(a,um,nm),P=a=>em.test(a),Nn=a=>Ca(a,cm,tp),Ds=a=>Ca(a,sp,yt),N0=a=>Ca(a,am,nm),ip=a=>Ca(a,im,lp),ku=a=>Ca(a,om,ep),tt=a=>lm.test(a),xi=a=>Aa(a,cm),up=a=>Aa(a,rp),O0=a=>Aa(a,am),cp=a=>Aa(a,um),op=a=>Aa(a,im),Qu=a=>Aa(a,om,!0),Ca=(a,o,s)=>{const c=em.exec(a);return c?c[1]?o(c[1]):s(c[2]):!1},Aa=(a,o,s=!1)=>{const c=lm.exec(a);return c?c[1]?o(c[1]):s:!1},am=a=>a==="position"||a==="percentage",im=a=>a==="image"||a==="url",um=a=>a==="length"||a==="size"||a==="bg-size",cm=a=>a==="length",sp=a=>a==="number",rp=a=>a==="family-name",om=a=>a==="shadow",fp=()=>{const a=ee("color"),o=ee("font"),s=ee("text"),c=ee("font-weight"),d=ee("tracking"),h=ee("leading"),f=ee("breakpoint"),y=ee("container"),p=ee("spacing"),m=ee("radius"),v=ee("shadow"),C=ee("inset-shadow"),_=ee("text-shadow"),D=ee("drop-shadow"),q=ee("blur"),V=ee("perspective"),F=ee("aspect"),U=ee("ease"),W=ee("animate"),at=()=>["auto","avoid","all","avoid-page","page","left","right","column"],st=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],J=()=>[...st(),tt,P],lt=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],K=()=>[tt,P,p],gt=()=>[pa,"full","auto",...K()],Jt=()=>[Il,"none","subgrid",tt,P],Ot=()=>["auto",{span:["full",Il,tt,P]},Il,tt,P],Dt=()=>[Il,"auto",tt,P],Ut=()=>["auto","min","max","fr",tt,P],Xt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...K()],O=()=>[pa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],H=()=>[a,tt,P],k=()=>[...st(),O0,N0,{position:[tt,P]}],ht=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",cp,ap,{size:[tt,P]}],B=()=>[Rs,xi,Nn],Y=()=>["","none","full",m,tt,P],Q=()=>["",yt,xi,Nn],it=()=>["solid","dashed","dotted","double"],rt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ot=()=>[yt,Rs,O0,N0],le=()=>["","none",q,tt,P],Bt=()=>["none",yt,tt,P],Ie=()=>["none",yt,tt,P],Ml=()=>[yt,tt,P],zl=()=>[pa,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xl],breakpoint:[xl],color:[Py],container:[xl],"drop-shadow":[xl],ease:["in","out","in-out"],font:[np],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xl],shadow:[xl],spacing:["px",yt],text:[xl],"text-shadow":[xl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pa,P,tt,F]}],container:["container"],columns:[{columns:[yt,P,tt,y]}],"break-after":[{"break-after":at()}],"break-before":[{"break-before":at()}],"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"],sr:["sr-only","not-sr-only"],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:J()}],overflow:[{overflow:lt()}],"overflow-x":[{"overflow-x":lt()}],"overflow-y":[{"overflow-y":lt()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:gt()}],"inset-x":[{"inset-x":gt()}],"inset-y":[{"inset-y":gt()}],start:[{start:gt()}],end:[{end:gt()}],top:[{top:gt()}],right:[{right:gt()}],bottom:[{bottom:gt()}],left:[{left:gt()}],visibility:["visible","invisible","collapse"],z:[{z:[Il,"auto",tt,P]}],basis:[{basis:[pa,"full","auto",y,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[yt,pa,"auto","initial","none",P]}],grow:[{grow:["",yt,tt,P]}],shrink:[{shrink:["",yt,tt,P]}],order:[{order:[Il,"first","last","none",tt,P]}],"grid-cols":[{"grid-cols":Jt()}],"col-start-end":[{col:Ot()}],"col-start":[{"col-start":Dt()}],"col-end":[{"col-end":Dt()}],"grid-rows":[{"grid-rows":Jt()}],"row-start-end":[{row:Ot()}],"row-start":[{"row-start":Dt()}],"row-end":[{"row-end":Dt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ut()}],"auto-rows":[{"auto-rows":Ut()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...Xt(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...Xt()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":Xt()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[y,"screen",...O()]}],"min-w":[{"min-w":[y,"screen","none",...O()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[f]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",s,xi,Nn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,tt,Ds]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rs,P]}],"font-family":[{font:[up,P,o]}],"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:[d,tt,P]}],"line-clamp":[{"line-clamp":[yt,"none",tt,Ds]}],leading:[{leading:[h,...K()]}],"list-image":[{"list-image":["none",tt,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tt,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:[yt,"from-font","auto",tt,Nn]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[yt,"auto",tt,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tt,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tt,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:ht()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Il,tt,P],radial:["",tt,P],conic:[Il,tt,P]},op,ip]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...it(),"hidden","none"]}],"divide-style":[{divide:[...it(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...it(),"none","hidden"]}],"outline-offset":[{"outline-offset":[yt,tt,P]}],"outline-w":[{outline:["",yt,xi,Nn]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",v,Qu,ku]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",C,Qu,ku]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[yt,Nn]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",_,Qu,ku]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[yt,tt,P]}],"mix-blend":[{"mix-blend":[...rt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":rt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[yt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ot()}],"mask-image-linear-to-pos":[{"mask-linear-to":ot()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":ot()}],"mask-image-t-to-pos":[{"mask-t-to":ot()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":ot()}],"mask-image-r-to-pos":[{"mask-r-to":ot()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":ot()}],"mask-image-b-to-pos":[{"mask-b-to":ot()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":ot()}],"mask-image-l-to-pos":[{"mask-l-to":ot()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":ot()}],"mask-image-x-to-pos":[{"mask-x-to":ot()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":ot()}],"mask-image-y-to-pos":[{"mask-y-to":ot()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[tt,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":ot()}],"mask-image-radial-to-pos":[{"mask-radial-to":ot()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":st()}],"mask-image-conic-pos":[{"mask-conic":[yt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ot()}],"mask-image-conic-to-pos":[{"mask-conic-to":ot()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:ht()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tt,P]}],filter:[{filter:["","none",tt,P]}],blur:[{blur:le()}],brightness:[{brightness:[yt,tt,P]}],contrast:[{contrast:[yt,tt,P]}],"drop-shadow":[{"drop-shadow":["","none",D,Qu,ku]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",yt,tt,P]}],"hue-rotate":[{"hue-rotate":[yt,tt,P]}],invert:[{invert:["",yt,tt,P]}],saturate:[{saturate:[yt,tt,P]}],sepia:[{sepia:["",yt,tt,P]}],"backdrop-filter":[{"backdrop-filter":["","none",tt,P]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[yt,tt,P]}],"backdrop-contrast":[{"backdrop-contrast":[yt,tt,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",yt,tt,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[yt,tt,P]}],"backdrop-invert":[{"backdrop-invert":["",yt,tt,P]}],"backdrop-opacity":[{"backdrop-opacity":[yt,tt,P]}],"backdrop-saturate":[{"backdrop-saturate":[yt,tt,P]}],"backdrop-sepia":[{"backdrop-sepia":["",yt,tt,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tt,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[yt,"initial",tt,P]}],ease:[{ease:["linear","initial",U,tt,P]}],delay:[{delay:[yt,tt,P]}],animate:[{animate:["none",W,tt,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[V,tt,P]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:Bt()}],"rotate-x":[{"rotate-x":Bt()}],"rotate-y":[{"rotate-y":Bt()}],"rotate-z":[{"rotate-z":Bt()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:Ml()}],"skew-x":[{"skew-x":Ml()}],"skew-y":[{"skew-y":Ml()}],transform:[{transform:[tt,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:zl()}],"translate-x":[{"translate-x":zl()}],"translate-y":[{"translate-y":zl()}],"translate-z":[{"translate-z":zl()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",tt,P]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"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",tt,P]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[yt,xi,Nn,Ds]}],stroke:[{stroke:["none",...H()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},dp=Qy(fp);function hp(...a){return dp(Oy(a))}const mp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M0 1C0 0.447716 0.447715 0 1 0C1.55228 0 2 0.447715 2 1V23C2 23.5523 1.55228 24 1 24C0.447715 24 0 23.5523 0 23V1Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M5 6C5 5.44772 5.44772 5 6 5H9C9.55228 5 10 5.44772 10 6V18C10 18.5523 9.55228 19 9 19H6C5.44771 19 5 18.5523 5 18L5 6Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M13 6C13 5.44772 13.4477 5 14 5H17C17.5523 5 18 5.44772 18 6V18C18 18.5523 17.5523 19 17 19H14C13.4477 19 13 18.5523 13 18L13 6Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M22 1C22 0.447716 22.4477 0 23 0C23.5523 0 24 0.447715 24 1V23C24 23.5523 23.5523 24 23 24C22.4477 24 22 23.5523 22 23V1Z",fill:"#CCCCCC"})),gp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M1 22C0.447716 22 -2.41411e-08 22.4477 0 23C2.41411e-08 23.5523 0.447715 24 1 24H23C23.5523 24 24 23.5523 24 23C24 22.4477 23.5523 22 23 22H1Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M15 1.95415e-07C14.4477 2.22397e-07 14 0.447716 14 1L14 18C14 18.5523 14.4477 19 15 19H19C19.5523 19 20 18.5523 20 18L20 1C20 0.447715 19.5523 -2.69813e-08 19 0L15 1.95415e-07Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M5 6C4.44772 6 4 6.44772 4 7L4 18C4 18.5523 4.44772 19 5 19H9C9.55228 19 10 18.5523 10 18L10 7C10 6.44772 9.55228 6 9 6H5Z",fill:"#CCCCCC"})),yp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M2 23C2 23.5523 1.55228 24 1 24C0.447715 24 -2.41411e-08 23.5523 0 23L9.61651e-07 1C9.85792e-07 0.447716 0.447716 -2.41411e-08 1 0C1.55229 2.41411e-08 2 0.447715 2 1L2 23Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M24 9C24 9.55228 23.5523 10 23 10L6 10C5.44771 10 5 9.55228 5 9V5C5 4.44772 5.44772 4 6 4L23 4C23.5523 4 24 4.44772 24 5V9Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M18 19C18 19.5523 17.5523 20 17 20H6C5.44772 20 5 19.5523 5 19V15C5 14.4477 5.44772 14 6 14L17 14C17.5523 14 18 14.4477 18 15V19Z",fill:"#CCCCCC"})),pp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M22 1C22 0.447716 22.4477 -2.41411e-08 23 0C23.5523 2.41411e-08 24 0.447715 24 1V23C24 23.5523 23.5523 24 23 24C22.4477 24 22 23.5523 22 23V1Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M1.95416e-07 15C2.22397e-07 14.4477 0.447716 14 1 14L18 14C18.5523 14 19 14.4477 19 15V19C19 19.5523 18.5523 20 18 20L1 20C0.447715 20 -2.69813e-08 19.5523 0 19L1.95416e-07 15Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M6 5C6 4.44772 6.44772 4 7 4L18 4C18.5523 4 19 4.44772 19 5V9C19 9.55228 18.5523 10 18 10L7 10C6.44772 10 6 9.55228 6 9V5Z",fill:"#CCCCCC"})),vp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M23 2C23.5523 2 24 1.55228 24 1C24 0.447715 23.5523 -2.41411e-08 23 0L1 9.61651e-07C0.447716 9.85792e-07 -2.41411e-08 0.447716 0 1C2.41411e-08 1.55229 0.447715 2 1 2L23 2Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M9 24C9.55228 24 10 23.5523 10 23L10 6C10 5.44771 9.55228 5 9 5H5C4.44772 5 4 5.44772 4 6L4 23C4 23.5523 4.44772 24 5 24H9Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M19 18C19.5523 18 20 17.5523 20 17V6C20 5.44772 19.5523 5 19 5H15C14.4477 5 14 5.44772 14 6L14 17C14 17.5523 14.4477 18 15 18H19Z",fill:"#CCCCCC"})),bp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M23 9.61651e-07C23.5523 9.85792e-07 24 0.447716 24 1C24 1.55229 23.5523 2 23 2L1 2C0.447716 2 -2.41411e-08 1.55228 0 1C2.41411e-08 0.447715 0.447715 -2.41411e-08 1 0L23 9.61651e-07Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M18 5C18.5523 5 19 5.44772 19 6V9C19 9.55229 18.5523 10 18 10L6 10C5.44772 10 5 9.55229 5 9L5 6C5 5.44772 5.44772 5 6 5L18 5Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M18 13C18.5523 13 19 13.4477 19 14V17C19 17.5523 18.5523 18 18 18H6C5.44772 18 5 17.5523 5 17L5 14C5 13.4477 5.44772 13 6 13L18 13Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M23 22C23.5523 22 24 22.4477 24 23C24 23.5523 23.5523 24 23 24L1 24C0.447716 24 -2.41411e-08 23.5523 0 23C2.41411e-08 22.4477 0.447715 22 1 22L23 22Z",fill:"#CCCCCC"})),Sp=a=>T.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M15.5 2.5L17.5 4.5L15.5 6.5L13.5 4.5L15.5 2.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),T.createElement("path",{d:"M13.5 4.5L11.5 6.5L5.5 12.5L2.5 17.5L7.5 14.5L13.5 8.5L15.5 6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),T.createElement("path",{d:"M9.5 10.5L11.5 12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Is=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M11.5407 24C6.32045 24 2.15237 21.3734 0.162476 16.9541C-0.0830305 16.4232 -0.0393446 15.964 0.219699 15.7198C0.450438 15.5048 0.854695 15.4761 1.30141 15.634C2.46987 16.0932 3.83954 16.3228 5.41164 16.3228C11.9585 16.3228 16.1407 12.247 16.1407 5.88987C16.1407 4.08185 15.7949 2.34609 15.3476 1.45586C15.1027 0.953801 15.1027 0.523382 15.3193 0.250924C15.5783 -0.0368392 16.0398 -0.0796976 16.6022 0.135819C21.0293 1.87158 24 6.5505 24 11.8019C24 18.7903 18.8228 23.9994 11.5401 23.9994L11.5407 24Z",fill:"currentColor"})),xp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M24 23C24 23.5523 23.5523 24 23 24C22.4477 24 22 23.5523 22 23L22 1C22 0.447716 22.4477 -2.41411e-08 23 0C23.5523 2.41411e-08 24 0.447715 24 1L24 23Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M2 23C2 23.5523 1.55228 24 1 24C0.447715 24 -2.41411e-08 23.5523 0 23L9.61651e-07 1C9.85792e-07 0.447716 0.447716 -2.41411e-08 1 0C1.55229 2.41411e-08 2 0.447715 2 1L2 23Z",fill:"#CCCCCC"}),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7998 5C16.9199 5 17.4804 4.99979 17.9082 5.21777C18.2845 5.40951 18.5905 5.71554 18.7822 6.0918C19.0002 6.51962 19 7.08009 19 8.2002V15.7998C19 16.9199 19.0002 17.4804 18.7822 17.9082C18.5905 18.2845 18.2845 18.5905 17.9082 18.7822C17.4804 19.0002 16.9199 19 15.7998 19H8.2002C7.08009 19 6.51962 19.0002 6.0918 18.7822C5.71554 18.5905 5.40951 18.2845 5.21777 17.9082C4.99979 17.4804 5 16.9199 5 15.7998V8.2002C5 7.08009 4.99979 6.51962 5.21777 6.0918C5.40951 5.71554 5.71554 5.40951 6.0918 5.21777C6.51962 4.99979 7.08009 5 8.2002 5H15.7998ZM8.59961 7C8.03982 7 7.75976 7.00041 7.5459 7.10938C7.35793 7.20522 7.20522 7.35793 7.10938 7.5459C7.00041 7.75976 7 8.03982 7 8.59961V15.4004C7 15.9602 7.00041 16.2402 7.10938 16.4541C7.20522 16.6421 7.35793 16.7948 7.5459 16.8906C7.75976 16.9996 8.03982 17 8.59961 17H15.4004C15.9602 17 16.2402 16.9996 16.4541 16.8906C16.6421 16.7948 16.7948 16.6421 16.8906 16.4541C16.9996 16.2402 17 15.9602 17 15.4004V8.59961C17 8.03982 16.9996 7.75976 16.8906 7.5459C16.7948 7.35793 16.6421 7.20522 16.4541 7.10938C16.2402 7.00041 15.9602 7 15.4004 7H8.59961Z",fill:"#CCCCCC"})),Cp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("rect",{y:22,width:24,height:2,rx:1,fill:"#ABABAB"}),T.createElement("rect",{x:4,y:1,width:16,height:17,rx:2,stroke:"#ABABAB",strokeWidth:2})),Ap=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("rect",{width:2,height:24,rx:1,fill:"#ABABAB"}),T.createElement("rect",{x:6,y:4,width:17,height:16,rx:2,stroke:"#ABABAB",strokeWidth:2,strokeLinejoin:"round"})),Ep=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("rect",{x:1,y:4,width:17,height:16,rx:2,stroke:"#ABABAB",strokeWidth:2,strokeLinejoin:"round"}),T.createElement("rect",{x:22,width:2,height:24,rx:1,fill:"#ABABAB"})),Mp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("rect",{width:24,height:2,rx:1,fill:"#ABABAB"}),T.createElement("rect",{x:4,y:6,width:16,height:17,rx:2,stroke:"#ABABAB",strokeWidth:2})),zp=a=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a},T.createElement("path",{d:"M23 9.61651e-07C23.5523 9.85792e-07 24 0.447716 24 1C24 1.55229 23.5523 2 23 2L1 2C0.447716 2 -2.41411e-08 1.55228 0 1C2.41411e-08 0.447715 0.447715 -2.41411e-08 1 0L23 9.61651e-07Z",fill:"#CCCCCC"}),T.createElement("path",{d:"M23 22C23.5523 22 24 22.4477 24 23C24 23.5523 23.5523 24 23 24L1 24C0.447716 24 -2.41411e-08 23.5523 0 23C2.41411e-08 22.4477 0.447715 22 1 22L23 22Z",fill:"#CCCCCC"}),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7998 5C16.9199 5 17.4804 4.99979 17.9082 5.21777C18.2845 5.40951 18.5905 5.71554 18.7822 6.0918C19.0002 6.51962 19 7.08009 19 8.2002V15.7998C19 16.9199 19.0002 17.4804 18.7822 17.9082C18.5905 18.2845 18.2845 18.5905 17.9082 18.7822C17.4804 19.0002 16.9199 19 15.7998 19H8.2002C7.08009 19 6.51962 19.0002 6.0918 18.7822C5.71554 18.5905 5.40951 18.2845 5.21777 17.9082C4.99979 17.4804 5 16.9199 5 15.7998V8.2002C5 7.08009 4.99979 6.51962 5.21777 6.0918C5.40951 5.71554 5.71554 5.40951 6.0918 5.21777C6.51962 4.99979 7.08009 5 8.2002 5H15.7998ZM8.59961 7C8.03982 7 7.75976 7.00041 7.5459 7.10938C7.35793 7.20522 7.20522 7.35793 7.10938 7.5459C7.00041 7.75976 7 8.03982 7 8.59961V15.4004C7 15.9602 7.00041 16.2402 7.10938 16.4541C7.20522 16.6421 7.35793 16.7948 7.5459 16.8906C7.75976 16.9996 8.03982 17 8.59961 17H15.4004C15.9602 17 16.2402 16.9996 16.4541 16.8906C16.6421 16.7948 16.7948 16.6421 16.8906 16.4541C16.9996 16.2402 17 15.9602 17 15.4004V8.59961C17 8.03982 16.9996 7.75976 16.8906 7.5459C16.7948 7.35793 16.6421 7.20522 16.4541 7.10938C16.2402 7.00041 15.9602 7 15.4004 7H8.59961Z",fill:"#CCCCCC"})),R0={"align-horizontally":mp,"align-to-bottom":gp,"align-to-left":yp,"align-to-right":pp,"align-to-top":vp,"align-vertically":bp,"moon-icon":Is,"stretch-horizontally":xp,"stretch-to-bottom":Cp,"stretch-to-left":Ap,"stretch-to-right":Ep,"stretch-to-top":Mp,"stretch-vertically":zp,"color-dropper":Sp},Ps=$e.memo(({name:a,className:o})=>{const s=R0[a]||R0["align-to-top"];return G.jsx(s,{className:o})});Ps.displayName="SvgIcon";const sm=$e.forwardRef(({className:a,iconName:o="align-to-top",icon:s,children:c,...d},h)=>{const f="h-6 w-6 [&>path]:fill-[#c0c0c0] group-hover:[&>path]:fill-[#E5E5E5] transition-colors duration-200",y=m=>{const v=an.getState();v.shortcutKeyHeld&&v.setHoveredIcon(o),d.onMouseEnter?.(m)},p=m=>{const v=an.getState();v.shortcutKeyHeld&&v.setHoveredIcon(null),d.onMouseLeave?.(m)};return G.jsx("button",{className:hp("inline-flex items-center justify-center h-10 w-10 p-2 rounded-md","bg-[#0c0c0c] text-white","font-medium transition-transform duration-200","hover:scale-105 active:scale-95","focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","group",a),ref:h,onMouseEnter:y,onMouseLeave:p,...d,children:c||s||G.jsx(Ps,{name:o,className:f})})});sm.displayName="Button";function sn(a){if(!a)return[];const o=a?.canvas?.selected_nodes;if(Array.isArray(o)&&o.length)return o;if(o&&typeof o=="object"){const c=Object.values(o);if(c.length)return c}const s=a?.graph?._nodes;return Array.isArray(s)?s.filter(c=>!!c&&typeof c=="object"&&(!!c.is_selected||!!c.selected)):[]}function Tp(a){return a.filter(o=>!o.flags?.pinned)}const en=a=>Number.isFinite(a)?Number(a):0;function rm(a,o,s,c){const d=Math.max(0,s),h=Math.max(0,c);return{x:a,y:o,width:d,height:h,right:a+d,bottom:o+h,centerX:a+d/2,centerY:o+h/2}}function tr(a){const o=en(a.pos?.[0]),s=en(a.pos?.[1]),c=en(a.size?.[0]),d=en(a.size?.[1]);return rm(o,s,c,d)}function Ti(a){const o=a.getBounding;if(typeof o=="function")try{const[s,c,d,h]=o.call(a);return rm(en(s),en(c),en(d),en(h))}catch{}return tr(a)}function $(a){const o=tr(a),s=Ti(a);return{logical:o,visual:s,logicalOffsetX:o.x-s.x,logicalOffsetY:o.y-s.y,logicalExtraWidth:o.width-s.width,logicalExtraHeight:o.height-s.height}}function er(a,o,s){const c=[o,s];if(typeof a.setPos=="function"){a.setPos(c[0],c[1]);return}try{a.pos=c;return}catch{a.pos[0]=c[0],a.pos[1]=c[1]}}function wp(a,o,s){const c=[Math.max(0,o),Math.max(0,s)];if(typeof a.setSize=="function"){a.setSize(c);return}try{a.size=c,typeof a.onResize=="function"&&a.onResize(c);return}catch{a.size[0]=c[0],a.size[1]=c[1],typeof a.onResize=="function"&&a.onResize(c)}}function _p(a,o,s){const c=tr(a);er(a,c.x+o,c.y+s)}function un(a,o,s,c=$(a)){er(a,o+c.logicalOffsetX,s+c.logicalOffsetY)}function xe(a,o,s=$(a)){er(a,o.x+s.logicalOffsetX,o.y+s.logicalOffsetY),wp(a,o.width+s.logicalExtraWidth,o.height+s.logicalExtraHeight)}function fm(a){try{if(a.pos||a.size||typeof a.getBounding=="function"){const h=Ti(a);return h.width<=0||h.height<=0?null:{node:a,x:h.x,y:h.y,width:h.width,height:h.height,right:h.right,bottom:h.bottom}}const o=a.x??a.pos?.[0]??0,s=a.y??a.pos?.[1]??0,c=a.width??a.size?.[0]??0,d=a.height??a.size?.[1]??0;return c<=0||d<=0?null:{node:a,x:o,y:s,width:c,height:d,right:o+c,bottom:s+d}}catch{return null}}function D0(a,o){return`${a},${o}`}class U0{cellSize;grid;count;constructor(o,s){this.cellSize=Math.max(64,Math.min(s||256,1024)),this.grid=new Map,this.count=o?.length||0,this.build(o)}build(o){if(!Array.isArray(o)||o.length===0)return;const s=this.cellSize;for(const c of o){const d=fm(c);if(!d)continue;const h=Math.floor(d.x/s),f=Math.floor(d.y/s),y=Math.floor(d.right/s),p=Math.floor(d.bottom/s);for(let m=h;m<=y;m++)for(let v=f;v<=p;v++){const C=D0(m,v);let _=this.grid.get(C);_||(_=[],this.grid.set(C,_)),_.push(d)}}}queryRect(o,s,c,d){const h=this.cellSize,f=Math.floor(o/h),y=Math.floor(s/h),p=Math.floor(c/h),m=Math.floor(d/h),v=new Set,C=[];for(let _=f;_<=p;_++)for(let D=y;D<=m;D++){const q=this.grid.get(D0(_,D));if(q)for(const V of q)v.has(V.node)||V.x>=o&&V.y>=s&&V.right<=c&&V.bottom<=d&&(v.add(V.node),C.push(V.node))}return C}size(){return this.count}}function nc(a){if(!Array.isArray(a)||a.length<200)return null;try{const o=[];for(const d of a){const h=fm(d);h&&h.width>0&&o.push(h.width)}o.sort((d,h)=>d-h);const s=o.length?o[Math.floor(o.length/2)]:256,c=Math.max(128,Math.min(Math.floor(s*3),768));return new U0(a,c)}catch{return new U0(a,256)}}function Ku(a,o,s,c){const d=Math.max(0,s),h=Math.max(0,c);return{x:a,y:o,width:d,height:h,right:a+d,bottom:o+h,centerX:a+d/2,centerY:o+h/2}}function ac(a){if(Array.isArray(a.bounding)&&a.bounding.length>=4)return Ku(a.bounding[0]??0,a.bounding[1]??0,a.bounding[2]??0,a.bounding[3]??0);if(a.pos&&a.size)return Ku(a.pos[0]??0,a.pos[1]??0,a.size[0]??0,a.size[1]??0);if(typeof a.x<"u"&&typeof a.y<"u"&&typeof a.width<"u"&&typeof a.height<"u")return Ku(a.x||0,a.y||0,a.width||0,a.height||0);const o=a;return Ku(o.pos_x??o.x??0,o.pos_y??o.y??0,o.size_x??o.width??o.size?.[0]??100,o.size_y??o.height??o.size?.[1]??100)}function rn(a){if(!a)return[];const o=a?.canvas?.selected_groups;if(Array.isArray(o)&&o.length)return o;if(o&&typeof o=="object"){const c=Object.values(o);if(c.length)return c}const s=a?.graph?.groups;return Array.isArray(s)?s.filter(c=>c?.selected):[]}function Ct(a){const o=ac(a);return[o.x,o.y,o.width,o.height]}function Hp(a,o){if(!a||!o)return[];const s=a?.graph?._nodes||[],c=ac(o),d=nc(s);return d?d.queryRect(c.x,c.y,c.right,c.bottom):s.filter(h=>{if(!h||typeof h!="object")return!1;const f=Ti(h);return f.x>=c.x&&f.y>=c.y&&f.right<=c.right&&f.bottom<=c.bottom})}function cn(a,o,s,c=!0){const d=Ce(),h=ac(a),f=o-h.x,y=s-h.y;if(f===0&&y===0)return;const p=c?Hp(d,a):[];if(Array.isArray(a.bounding)&&a.bounding.length>=4?(a.bounding[0]=o,a.bounding[1]=s,a.bounding[2]=h.width,a.bounding[3]=h.height):a.pos&&a.size?(a.pos[0]=o,a.pos[1]=s,a.size[0]=h.width,a.size[1]=h.height):typeof a.x<"u"&&typeof a.y<"u"&&typeof a.width<"u"&&typeof a.height<"u"?(a.x=o,a.y=s,a.width=h.width,a.height=h.height):(a.x=o,a.y=s,a.width=h.width,a.height=h.height,a.pos&&(a.pos[0]=o,a.pos[1]=s),a.size&&(a.size[0]=h.width,a.size[1]=h.height)),c&&p.length)for(const m of p)_p(m,f,y)}function kt(a,o,s,c,d){const h=ac(a),f=Math.round(o),y=Math.round(s),p=Math.max(0,Math.round(c)),m=Math.max(0,Math.round(d));f===Math.round(h.x)&&y===Math.round(h.y)&&p===Math.round(h.width)&&m===Math.round(h.height)||(Array.isArray(a.bounding)&&a.bounding.length>=4?(a.bounding[0]=f,a.bounding[1]=y,a.bounding[2]=p,a.bounding[3]=m):a.pos&&a.size?(a.pos[0]=f,a.pos[1]=y,a.size[0]=p,a.size[1]=m):typeof a.x<"u"&&typeof a.y<"u"&&typeof a.width<"u"&&typeof a.height<"u"?(a.x=f,a.y=y,a.width=p,a.height=m):(a.x=f,a.y=y,a.width=p,a.height=m,a.pos&&(a.pos[0]=f,a.pos[1]=y),a.size&&(a.size[0]=p,a.size[1]=m)))}function dm(a){const o=new Map;for(const s of a)o.set(s,{x:s?.pos?.[0]??0,y:s?.pos?.[1]??0,w:s?.size?.[0]??0,h:s?.size?.[1]??0});return o}function hm(a,o){const s=[],c=[];for(const d of a){const h=o.get(d);if(!h)continue;const f=d?.pos?.[0]??0,y=d?.pos?.[1]??0,p=d?.size?.[0]??0,m=d?.size?.[1]??0;(f!==h.x||y!==h.y)&&s.push(d),(p!==h.w||m!==h.h)&&c.push(d)}return{moved:s,resized:c}}function Qe(a){try{const o=Ce();if(!o)return{success:!1,message:"ComfyUI app not available"};const s=sn(o),c=Tp(s),d=s.length-c.length;if(c.length<2){let y="At least two nodes must be selected";return d>0&&(y="Cannot align: some selected nodes are pinned"),{success:!1,message:y}}const h=dm(c);a(c,o);const{moved:f}=hm(c,h);return f.length&&X0(o,f),on(o),{success:!0,count:c.length,skippedPinned:d}}catch(o){return console.error("Alignment operation failed:",o),{success:!1,message:o&&typeof o=="object"&&"message"in o?String(o.message??"Unknown error"):"Unknown error"}}}function Ke(a){try{const o=Ce();if(!o)return{success:!1,message:"ComfyUI app not available"};const s=rn(o);if(!Array.isArray(s)||s.length<2)return{success:!1,message:"At least two groups must be selected"};const c=o?.graph?._nodes,d=Array.isArray(c)?c:[],h=dm(d);a(s,o);const{moved:f}=hm(d,h);return f.length&&X0(o,f),on(o),{success:!0,count:s.length}}catch(o){return console.error("Group alignment operation failed:",o),{success:!1,message:o&&typeof o=="object"&&"message"in o?String(o.message??"Unknown error"):"Unknown error"}}}let B0=!1,Sa=!1;function Np(){if(B0)return;B0=!0;const a=c=>{c.altKey&&(Sa=!0,c.key==="Alt"&&!c.ctrlKey&&!c.shiftKey&&!c.metaKey&&(c.preventDefault(),c.stopPropagation()))},o=c=>{c.key==="Alt"?(Sa=!1,c.preventDefault(),c.stopPropagation()):c.altKey||(Sa=!1)},s=()=>{Sa=!1};window.addEventListener("keydown",a,{capture:!0}),window.addEventListener("keyup",o,{capture:!0}),window.addEventListener("blur",s),document.addEventListener("visibilitychange",()=>{document.visibilityState!=="visible"&&(Sa=!1)})}function Gt(){return typeof window<"u"&&Np(),Sa}const mm=12;function Op(a,o){if(a.length===0)return;const s=o??Gt(),c=a.map(f=>({node:f,frame:$(f)})),d=c.map(({frame:f})=>f.visual.x),h=s?Math.max(...d):Math.min(...d);c.forEach(({node:f,frame:y})=>{un(f,h,y.visual.y,y)})}function Rp(a,o){if(a.length===0)return;const s=o??Gt(),c=a.map(f=>({node:f,frame:$(f)})),d=c.map(({frame:f})=>f.visual.right),h=s?Math.min(...d):Math.max(...d);c.forEach(({node:f,frame:y})=>{un(f,h-y.visual.width,y.visual.y,y)})}function Dp(a,o){if(a.length===0)return;const s=o??Gt(),c=a.map(f=>({node:f,frame:$(f)})),d=c.map(({frame:f})=>f.visual.y),h=s?Math.max(...d):Math.min(...d);c.forEach(({node:f,frame:y})=>{un(f,y.visual.x,h,y)})}function Up(a,o){if(a.length===0)return;const s=o??Gt(),c=a.map(f=>({node:f,frame:$(f)})),d=c.map(({frame:f})=>f.visual.bottom),h=s?Math.min(...d):Math.max(...d);c.forEach(({node:f,frame:y})=>{un(f,y.visual.x,h-y.visual.height,y)})}function Bp(a,o){const s=mm+fy(),c=a.map(h=>({node:h,frame:$(h)})).sort((h,f)=>h.frame.visual.x-f.frame.visual.x);if(c.length===0)return;if(o??Gt()){const h=c[c.length-1],f=h.frame.visual.y;let y=h.frame.visual.x;for(let p=c.length-2;p>=0;p--){const{node:m,frame:v}=c[p];y-=v.visual.width+s,un(m,y,f,v)}}else{const h=c[0];let f=h.frame.visual.x;const y=h.frame.visual.y;c.forEach(({node:p,frame:m})=>{un(p,f,y,m),f+=m.visual.width+s})}}function Lp(a,o){const s=mm+dy(),c=a.map(h=>({node:h,frame:$(h)})).sort((h,f)=>h.frame.visual.y-f.frame.visual.y);if(c.length===0)return;if(o??Gt()){const h=c[c.length-1],f=h.frame.visual.centerX;let y=h.frame.visual.y;for(let p=c.length-2;p>=0;p--){const{node:m,frame:v}=c[p];y-=v.visual.height+s,un(m,f-v.visual.width/2,y,v)}}else{const h=c[0],f=h.frame.visual.centerX;let y=h.frame.visual.y;c.forEach(({node:p,frame:m})=>{un(p,f-m.visual.width/2,y,m),y+=m.visual.height+s})}}function jp(a){return Qe(o=>Op(o,a))}function Gp(a){return Qe(o=>Rp(o,a))}function Vp(a){return Qe(o=>Dp(o,a))}function Yp(a){return Qe(o=>Up(o,a))}function Xp(a){return Qe(o=>Bp(o,a))}function qp(a){return Qe(o=>Lp(o,a))}const Zp=.5,ic=(a,o,s=Zp)=>Math.abs(a-o)<=s;function kp(a){if(a.length<=1)return!0;const o=$(a[0]).visual.x;return a.every(s=>ic($(s).visual.x,o))}function Qp(a){if(a.length<=1)return!0;const o=$(a[0]).visual.right;return a.every(s=>ic($(s).visual.right,o))}function Kp(a){if(a.length<=1)return!0;const o=$(a[0]).visual.y;return a.every(s=>ic($(s).visual.y,o))}function Jp(a){if(a.length<=1)return!0;const o=$(a[0]).visual.bottom;return a.every(s=>ic($(s).visual.bottom,o))}function Fp(a){return a.reduce((o,s)=>$(s).visual.x<$(o).visual.x?s:o,a[0])}function Wp(a){return a.reduce((o,s)=>{const c=$(s).visual.right,d=$(o).visual.right;return c>d?s:o},a[0])}function $p(a){return a.reduce((o,s)=>$(s).visual.y<$(o).visual.y?s:o,a[0])}function Ip(a){return a.reduce((o,s)=>{const c=$(s).visual.bottom,d=$(o).visual.bottom;return c>d?s:o},a[0])}function lr(a){return a.reduce((o,s)=>$(s).visual.width<$(o).visual.width?s:o,a[0])}function Pp(a){return a.reduce((o,s)=>$(s).visual.width>$(o).visual.width?s:o,a[0])}function nr(a){return a.reduce((o,s)=>$(s).visual.height<$(o).visual.height?s:o,a[0])}function t2(a){return a.reduce((o,s)=>$(s).visual.height>$(o).visual.height?s:o,a[0])}function e2(a,o){if(a.length<2)return;if(o??Gt()){const c=a.reduce((h,f)=>$(f).visual.x>$(h).visual.x?f:h,a[0]),d=$(c).visual.x;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:d,y:f.visual.y,width:Math.max(0,f.visual.right-d),height:f.visual.height},f)});return}if(kp(a)){const c=lr(a),d=$(c).visual.right;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.x,y:f.visual.y,width:Math.max(0,d-f.visual.x),height:f.visual.height},f)})}else{const c=Fp(a),d=$(c).visual.x;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:d,y:f.visual.y,width:Math.max(0,f.visual.right-d),height:f.visual.height},f)})}}function l2(a,o){if(a.length<2)return;if(o??Gt()){const c=a.map(f=>$(f).visual.right),d=Math.min(...c),h=a.reduce((f,y)=>$(y).visual.right<$(f).visual.right?y:f,a[0]);a.forEach(f=>{if(f===h)return;const y=$(f);xe(f,{x:y.visual.x,y:y.visual.y,width:Math.max(0,d-y.visual.x),height:y.visual.height},y)});return}if(Qp(a)){const c=lr(a),d=$(c).visual.x;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:d,y:f.visual.y,width:Math.max(0,f.visual.right-d),height:f.visual.height},f)})}else{const c=Wp(a),d=$(c).visual.right;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.x,y:f.visual.y,width:Math.max(0,d-f.visual.x),height:f.visual.height},f)})}}function n2(a,o){if(a.length<2)return;if(o??Gt()){const c=a.reduce((h,f)=>$(f).visual.y>$(h).visual.y?f:h,a[0]),d=$(c).visual.y;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.x,y:d,width:f.visual.width,height:Math.max(0,f.visual.bottom-d)},f)});return}if(Kp(a)){const c=nr(a),d=$(c).visual.bottom;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.x,y:f.visual.y,width:f.visual.width,height:Math.max(0,d-f.visual.y)},f)})}else{const c=$p(a),d=$(c).visual.y;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.x,y:d,width:f.visual.width,height:Math.max(0,f.visual.bottom-d)},f)})}}function a2(a,o){if(a.length<2)return;if(o??Gt()){const c=a.map(f=>$(f).visual.bottom),d=Math.min(...c),h=a.reduce((f,y)=>$(y).visual.bottom<$(f).visual.bottom?y:f,a[0]);a.forEach(f=>{if(f===h)return;const y=$(f);xe(f,{x:y.visual.x,y:y.visual.y,width:y.visual.width,height:Math.max(0,d-y.visual.y)},y)});return}if(Jp(a)){const c=nr(a),d=$(c).visual.y;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.x,y:d,width:f.visual.width,height:Math.max(0,f.visual.bottom-d)},f)})}else{const c=Ip(a),d=$(c).visual.bottom;a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.x,y:f.visual.y,width:f.visual.width,height:Math.max(0,d-f.visual.y)},f)})}}function i2(a){return Qe(o=>e2(o,a))}function u2(a){return Qe(o=>l2(o,a))}function c2(a){return Qe(o=>n2(o,a))}function o2(a){return Qe(o=>a2(o,a))}function s2(a,o){if(a.length<2)return;const c=o??Gt()?lr(a):Pp(a),d=Math.max(0,$(c).visual.width);a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.centerX-d/2,y:f.visual.y,width:d,height:f.visual.height},f)})}function r2(a,o){if(a.length<2)return;const c=o??Gt()?nr(a):t2(a),d=Math.max(0,$(c).visual.height);a.forEach(h=>{if(h===c)return;const f=$(h);xe(h,{x:f.visual.x,y:f.visual.centerY-d/2,width:f.visual.width,height:d},f)})}function f2(a){return Qe(o=>s2(o,a))}function d2(a){return Qe(o=>r2(o,a))}const h2=1,Ei=50,Mi=50;function et(a){return Math.round(a)}function uc(a,o){for(const s of a)if(Math.abs(s-o)>h2)return!1;return!0}function m2(a){return Ke(o=>{const s=o.map(f=>({g:f,b:Ct(f)})),c=s.map(({b:f})=>f[0]),d=a?Math.max(...c):Math.min(...c);if(uc(c,d)){const f=Math.min(...s.map(({b:y})=>y[2]));for(const{g:y,b:p}of s){const[m,v,C,_]=p,D=Math.max(f,Ei);C>D&&kt(y,et(m),et(v),et(D),et(_))}return}for(const{g:f,b:y}of s){const[p,m,v,C]=y;if(!(a?p<d:p>d))continue;const D=p+v,q=Math.max(D-d,Ei);kt(f,et(d),et(m),et(q),et(C))}})}function g2(a){return Ke(o=>{const s=o.map(f=>({g:f,b:Ct(f)})),c=s.map(({b:f})=>f[0]+f[2]),d=a?Math.min(...c):Math.max(...c);if(uc(c,d)){const f=Math.min(...s.map(({b:y})=>y[2]));for(const{g:y,b:p}of s){const[m,v,C,_]=p,D=Math.max(f,Ei);if(C>D){const q=m+C;kt(y,et(q-D),et(v),et(D),et(_))}}return}for(const{g:f,b:y}of s){const[p,m,,v]=y,C=Math.max(d-p,Ei);kt(f,et(p),et(m),et(C),et(v))}})}function y2(a){return Ke(o=>{const s=o.map(f=>({g:f,b:Ct(f)})),c=s.map(({b:f})=>f[1]),d=a?Math.max(...c):Math.min(...c);if(uc(c,d)){const f=Math.min(...s.map(({b:y})=>y[3]));for(const{g:y,b:p}of s){const[m,v,C,_]=p,D=Math.max(f,Mi);_>D&&kt(y,et(m),et(v),et(C),et(D))}return}for(const{g:f,b:y}of s){const[p,m,v,C]=y;if(!(a?m<d:m>d))continue;const D=m+C,q=Math.max(D-d,Mi);kt(f,et(p),et(d),et(v),et(q))}})}function p2(a){return Ke(o=>{const s=o.map(f=>({g:f,b:Ct(f)})),c=s.map(({b:f})=>f[1]+f[3]),d=a?Math.min(...c):Math.max(...c);if(uc(c,d)){const f=Math.min(...s.map(({b:y})=>y[3]));for(const{g:y,b:p}of s){const[m,v,C,_]=p,D=Math.max(f,Mi);if(_>D){const q=v+_;kt(y,et(m),et(q-D),et(C),et(D))}}return}for(const{g:f,b:y}of s){const[p,m,v]=y,C=Math.max(d-m,Mi);kt(f,et(p),et(m),et(v),et(C))}})}function v2(a){return Ke((o,s)=>{const c=o.map(m=>({g:m,b:Ct(m)})),d=c.map(({b:m})=>m[2]),h=Math.max(a?Math.min(...d):Math.max(...d),Ei),f=ec(),y=s?.graph?._nodes||[],p=nc(y);for(const{g:m,b:v}of c){const[C,_,D,q]=v;if(!a||!p){const X=C+D/2-h/2;kt(m,et(X),et(_),et(h),et(q));continue}const V=p.queryRect(C,_,C+D,_+q);if(!V.length){const X=C+D/2-h/2;kt(m,et(X),et(_),et(h),et(q));continue}let F=1/0,U=-1/0;for(const lt of V){const X=Ti(lt);F=Math.min(F,X.x),U=Math.max(U,X.right)}if(!Number.isFinite(F)||!Number.isFinite(U)){const X=C+D/2-h/2;kt(m,et(X),et(_),et(h),et(q));continue}const W=F-f,st=U+f-W,J=Math.max(h,st);kt(m,et(W),et(_),et(J),et(q))}})}function b2(a){return Ke((o,s)=>{const c=o.map(m=>({g:m,b:Ct(m)})),d=c.map(({b:m})=>m[3]),h=Math.max(a?Math.min(...d):Math.max(...d),Mi),f=lc(),y=s?.graph?._nodes||[],p=nc(y);for(const{g:m,b:v}of c){const[C,_,D,q]=v;if(!a||!p){const X=_+q/2-h/2;kt(m,et(C),et(X),et(D),et(h));continue}const V=p.queryRect(C,_,C+D,_+q);if(!V.length){const X=_+q/2-h/2;kt(m,et(C),et(X),et(D),et(h));continue}let F=1/0,U=-1/0;for(const lt of V){const X=Ti(lt);F=Math.min(F,X.y),U=Math.max(U,X.bottom)}if(!Number.isFinite(F)||!Number.isFinite(U)){const X=_+q/2-h/2;kt(m,et(C),et(X),et(D),et(h));continue}const W=F-f,st=U+f-W,J=Math.max(h,st);kt(m,et(C),et(W),et(D),et(J))}})}const gm=64,ar=50,ir=50;function Yt(a){return Math.round(a)}function S2(a,o){const s=a?.graph?._nodes||[],[c,d,h,f]=Ct(o),y=nc(s);return y?y.queryRect(c,d,c+h,d+f):s.filter(p=>{const m=p?.pos?.[0],v=p?.pos?.[1],C=p?.size?.[0],_=p?.size?.[1];return m==null||v==null||C==null||_==null?!1:m>=c&&v>=d&&m+C<=c+h&&v+_<=d+f})}function Ea(a){if(!Array.isArray(a)||a.length===0)return null;let o=1/0,s=1/0,c=-1/0,d=-1/0;for(const h of a){const f=h?.pos?.[0],y=h?.pos?.[1],p=h?.size?.[0],m=h?.size?.[1];f==null||y==null||p==null||m==null||(o=Math.min(o,f),s=Math.min(s,y),c=Math.max(c,f+p),d=Math.max(d,y+m))}return!Number.isFinite(o)||!Number.isFinite(s)||!Number.isFinite(c)||!Number.isFinite(d)?null:{minX:o,maxX:c,minY:s,maxY:d}}function Ma(a){try{const o=Ce();if(!o)return{success:!1,message:"ComfyUI app not available"};const s=rn(o);if(!Array.isArray(s)||s.length!==1)return{success:!1,message:"Select exactly one group"};const c=s[0],d=S2(o,c);return d.length?(a(c,d,o),on(o),{success:!0,count:1}):{success:!1,message:"No nodes inside the selected group"}}catch(o){return console.error("Single group operation failed:",o),{success:!1,message:o?.message??"Unknown error"}}}function x2(a){const o=a??Gt(),s=ec();return Ma((c,d)=>{const h=Ea(d);if(!h)return;const{minX:f}=h,y=f-s-(o?1:0),[p,m,v,C]=Ct(c),_=p+v,D=Math.max(_-y,ar);kt(c,Yt(y),Yt(m),Yt(D),Yt(C))})}function C2(a){const o=a??Gt(),s=ec();return Ma((c,d)=>{const h=Ea(d);if(!h)return;const{maxX:f}=h,y=f+s+(o?1:0),[p,m,,v]=Ct(c),C=Math.max(y-p,ar);kt(c,Yt(p),Yt(m),Yt(C),Yt(v))})}function A2(a){const o=a??Gt(),s=lc();return Ma((c,d)=>{const h=Ea(d);if(!h)return;const{minY:f}=h,y=f-(s+gm)-(o?1:0),[p,m,v,C]=Ct(c),_=m+C,D=Math.max(_-y,ir);kt(c,Yt(p),Yt(y),Yt(v),Yt(D))})}function E2(a){const o=a??Gt(),s=lc();return Ma((c,d)=>{const h=Ea(d);if(!h)return;const{maxY:f}=h,y=f+s+(o?1:0),[p,m,v]=Ct(c),C=Math.max(y-m,ir);kt(c,Yt(p),Yt(m),Yt(v),Yt(C))})}function M2(a){const o=a??Gt(),s=ec();return Ma((c,d)=>{const h=Ea(d);if(!h)return;const{minX:f,maxX:y}=h,p=f-s-(o?1:0),m=y+s,[,v,,C]=Ct(c),_=Math.max(m-p,ar);kt(c,Yt(p),Yt(v),Yt(_),Yt(C))})}function z2(a){const o=a??Gt(),s=lc();return Ma((c,d)=>{const h=Ea(d);if(!h)return;const{minY:f,maxY:y}=h,p=f-(s+gm)-(o?1:0),m=y+s,[v,,C]=Ct(c),_=Math.max(m-p,ir);kt(c,Yt(v),Yt(p),Yt(C),Yt(_))})}const ym=8;function ur(a){return[...a].sort((o,s)=>Ct(o)[0]-Ct(s)[0])}function cr(a){return[...a].sort((o,s)=>Ct(o)[1]-Ct(s)[1])}function T2(a,o){if(a.length===0)return;const s=o??Gt(),c=ur(a),d=s?c[c.length-1]:c[0],[h]=Ct(d);c.forEach(f=>{const[,y]=Ct(f);cn(f,h,y,!0)})}function w2(a,o){if(a.length===0)return;const s=o??Gt(),c=ur(a),d=s?c[0]:c[c.length-1],[h,,f]=Ct(d),y=h+f;c.forEach(p=>{const[,m,v]=Ct(p);cn(p,y-v,m,!0)})}function _2(a,o){if(a.length===0)return;const s=o??Gt(),c=cr(a),d=s?c[c.length-1]:c[0],[,h]=Ct(d);c.forEach(f=>{const[y]=Ct(f);cn(f,y,h,!0)})}function H2(a,o){if(a.length===0)return;const s=o??Gt(),c=cr(a),d=s?c[0]:c[c.length-1],[,h,,f]=Ct(d),y=h+f;c.forEach(p=>{const[m,,,v]=Ct(p);cn(p,m,y-v,!0)})}function N2(a,o){const s=ym+hy(),c=ur(a);if(c.length===0)return;if(o??Gt()){const h=c[c.length-1],[f,y]=Ct(h);let p=f;const m=y;for(let v=c.length-2;v>=0;v--){const C=c[v],[,,_]=Ct(C);p-=_+s,cn(C,p,m,!0)}}else{const h=c[0],[f,y]=Ct(h);let p=f;const m=y;c.forEach(v=>{const[,,C]=Ct(v);cn(v,p,m,!0),p+=C+s})}}function O2(a,o){const s=ym+my(),c=cr(a);if(c.length===0)return;if(o??Gt()){const h=c[c.length-1],[f,y,p]=Ct(h),m=f+p/2;let v=y;for(let C=c.length-2;C>=0;C--){const _=c[C],[,,D,q]=Ct(_);v-=q+s;const V=m-D/2;cn(_,V,v,!0)}}else{const h=c[0],[f,y,p]=Ct(h),m=f+p/2;let v=y;c.forEach(C=>{const[,,_,D]=Ct(C),q=m-_/2;cn(C,q,v,!0),v+=D+s})}}function R2(a){return Ke(o=>T2(o,a))}function D2(a){return Ke(o=>w2(o,a))}function U2(a){return Ke(o=>_2(o,a))}function B2(a){return Ke(o=>H2(o,a))}function L2(a){return Ke(o=>N2(o,a))}function j2(a){return Ke(o=>O2(o,a))}function zt(a,o){o.success||console.warn(`ComfyUI Align action failed for "${a}"`,{icon:a,message:o.message??"Unknown error",result:o})}function Re(a){const o=Gt(),s=Ce(),c=rn(s),d=Array.isArray(c)&&c.length>=2,h=Array.isArray(c)&&c.length===1;switch(a){case"align-to-left":d?zt(a,R2(o)):zt(a,jp(o));break;case"align-to-right":d?zt(a,D2(o)):zt(a,Gp(o));break;case"align-to-top":d?zt(a,U2(o)):zt(a,Vp(o));break;case"align-to-bottom":d?zt(a,B2(o)):zt(a,Yp(o));break;case"align-horizontally":d?zt(a,L2(o)):zt(a,Xp(o));break;case"align-vertically":d?zt(a,j2(o)):zt(a,qp(o));break;case"stretch-to-left":d?zt(a,m2(o)):h?zt(a,x2(o)):zt(a,i2(o));break;case"stretch-to-right":d?zt(a,g2(o)):h?zt(a,C2(o)):zt(a,u2(o));break;case"stretch-to-top":d?zt(a,y2(o)):h?zt(a,A2(o)):zt(a,c2(o));break;case"stretch-to-bottom":d?zt(a,p2(o)):h?zt(a,E2(o)):zt(a,o2(o));break;case"stretch-horizontally":d?zt(a,v2(o)):h?zt(a,M2(o)):zt(a,f2(o));break;case"stretch-vertically":d?zt(a,b2(o)):h?zt(a,z2(o)):zt(a,d2(o));break}}const G2=Object.freeze(Object.defineProperty({__proto__:null,executeIconAction:Re},Symbol.toStringTag,{value:"Module"}));function V2(){const a=T.useMemo(()=>({"align-to-left":()=>Re("align-to-left"),"align-to-right":()=>Re("align-to-right"),"align-to-top":()=>Re("align-to-top"),"align-to-bottom":()=>Re("align-to-bottom"),"align-vertically":()=>Re("align-vertically"),"align-horizontally":()=>Re("align-horizontally"),"stretch-to-left":()=>Re("stretch-to-left"),"stretch-to-right":()=>Re("stretch-to-right"),"stretch-to-top":()=>Re("stretch-to-top"),"stretch-to-bottom":()=>Re("stretch-to-bottom"),"stretch-horizontally":()=>Re("stretch-horizontally"),"stretch-vertically":()=>Re("stretch-vertically")}),[]);return{getHandler:s=>a[s]}}const Y2=[{id:"top-group",position:"top",direction:"horizontal",buttons:["align-to-top","align-vertically","stretch-to-top"],containerClass:"absolute top-0 left-0 w-full flex justify-center pointer-events-auto",groupClass:"flex gap-2 pointer-events-auto"},{id:"right-group",position:"right",direction:"vertical",buttons:["align-to-right","stretch-horizontally","stretch-to-right"],containerClass:"absolute top-0 right-0 h-full flex items-center pointer-events-auto",groupClass:"flex flex-col gap-2 pointer-events-auto"},{id:"bottom-group",position:"bottom",direction:"horizontal",buttons:["align-to-bottom","stretch-vertically","stretch-to-bottom"],containerClass:"absolute bottom-0 left-0 w-full flex justify-center pointer-events-auto",groupClass:"flex gap-2 pointer-events-auto"},{id:"left-group",position:"left",direction:"vertical",buttons:["align-to-left","align-horizontally","stretch-to-left"],containerClass:"absolute top-0 left-0 h-full flex items-center pointer-events-auto",groupClass:"flex flex-col gap-2 pointer-events-auto"}],pm=$e.memo(({config:a})=>{const{containerClass:o,groupClass:s,buttons:c}=a,{getHandler:d}=V2();return G.jsx("div",{className:o,children:G.jsx("div",{className:s,children:c.map((h,f)=>G.jsx(sm,{iconName:h,onClick:d(h)},`${a.id}-${h}-${f}`))})})});pm.displayName="ButtonGroup";function X2(){const a=T.useMemo(()=>Y2,[]);return G.jsx("div",{className:"flex items-center justify-center p-8 pointer-events-none",children:G.jsx("div",{className:"relative w-[300px] h-[300px]",children:a.map(o=>G.jsx(pm,{config:o},o.id))})})}const vm=$e.memo(X2);vm.displayName="CrossPanel";const L0={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},zi=new Map,Ju=a=>{const o=zi.get(a);return o?Object.fromEntries(Object.entries(o.stores).map(([s,c])=>[s,c.getState()])):{}},q2=(a,o,s)=>{if(a===void 0)return{type:"untracked",connection:o.connect(s)};const c=zi.get(s.name);if(c)return{type:"tracked",store:a,...c};const d={connection:o.connect(s),stores:{}};return zi.set(s.name,d),{type:"tracked",store:a,...d}},Z2=(a,o)=>{if(o===void 0)return;const s=zi.get(a);s&&(delete s.stores[o],Object.keys(s.stores).length===0&&zi.delete(a))},k2=a=>{var o,s;if(!a)return;const c=a.split(`
|
|
`),d=c.findIndex(f=>f.includes("api.setState"));if(d<0)return;const h=((o=c[d+1])==null?void 0:o.trim())||"";return(s=/.+ (.+) .+/.exec(h))==null?void 0:s[1]},Q2=(a,o={})=>(s,c,d)=>{const{enabled:h,anonymousActionType:f,store:y,...p}=o;let m;try{m=(h??(L0?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!m)return a(s,c,d);const{connection:v,...C}=q2(y,m,p);let _=!0;d.setState=((V,F,U)=>{const W=s(V,F);if(!_)return W;const at=U===void 0?{type:f||k2(new Error().stack)||"anonymous"}:typeof U=="string"?{type:U}:U;return y===void 0?(v?.send(at,c()),W):(v?.send({...at,type:`${y}/${at.type}`},{...Ju(p.name),[y]:d.getState()}),W)}),d.devtools={cleanup:()=>{v&&typeof v.unsubscribe=="function"&&v.unsubscribe(),Z2(p.name,y)}};const D=(...V)=>{const F=_;_=!1,s(...V),_=F},q=a(d.setState,c,d);if(C.type==="untracked"?v?.init(q):(C.stores[C.store]=d,v?.init(Object.fromEntries(Object.entries(C.stores).map(([V,F])=>[V,V===C.store?q:F.getState()])))),d.dispatchFromDevtools&&typeof d.dispatch=="function"){let V=!1;const F=d.dispatch;d.dispatch=(...U)=>{(L0?"production":void 0)!=="production"&&U[0].type==="__setState"&&!V&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),V=!0),F(...U)}}return v.subscribe(V=>{var F;switch(V.type){case"ACTION":if(typeof V.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Us(V.payload,U=>{if(U.type==="__setState"){if(y===void 0){D(U.state);return}Object.keys(U.state).length!==1&&console.error(`
|
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
`);const W=U.state[y];if(W==null)return;JSON.stringify(d.getState())!==JSON.stringify(W)&&D(W);return}d.dispatchFromDevtools&&typeof d.dispatch=="function"&&d.dispatch(U)});case"DISPATCH":switch(V.payload.type){case"RESET":return D(q),y===void 0?v?.init(d.getState()):v?.init(Ju(p.name));case"COMMIT":if(y===void 0){v?.init(d.getState());return}return v?.init(Ju(p.name));case"ROLLBACK":return Us(V.state,U=>{if(y===void 0){D(U),v?.init(d.getState());return}D(U[y]),v?.init(Ju(p.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Us(V.state,U=>{if(y===void 0){D(U);return}JSON.stringify(d.getState())!==JSON.stringify(U[y])&&D(U[y])});case"IMPORT_STATE":{const{nextLiftedState:U}=V.payload,W=(F=U.computedStates.slice(-1)[0])==null?void 0:F.state;if(!W)return;D(y===void 0?W:W[y]),v?.send(null,U);return}case"PAUSE_RECORDING":return _=!_}return}}),q},K2=Q2,Us=(a,o)=>{let s;try{s=JSON.parse(a)}catch(c){console.error("[zustand devtools middleware] Could not parse the received json",c)}s!==void 0&&o(s)},cc=(a,o,s)=>{const c=o/100,d=s/100,h=d*c,f=h*(1-Math.abs(a/60%2-1)),y=d-h;let p=0,m=0,v=0;return 0<=a&&a<60?(p=h,m=f,v=0):60<=a&&a<120?(p=f,m=h,v=0):120<=a&&a<180?(p=0,m=h,v=f):180<=a&&a<240?(p=0,m=f,v=h):240<=a&&a<300?(p=f,m=0,v=h):300<=a&&a<360&&(p=h,m=0,v=f),{r:Math.round((p+y)*255),g:Math.round((m+y)*255),b:Math.round((v+y)*255)}},bm=(a,o,s)=>{const c=a/255,d=o/255,h=s/255,f=Math.max(c,d,h),y=Math.min(c,d,h),p=f-y;let m=0,v=0;const C=f;if(p!==0){switch(v=p/f,f){case c:m=(d-h)/p%6;break;case d:m=(h-c)/p+2;break;case h:m=(c-d)/p+4;break}m*=60,m<0&&(m+=360)}return{h:m,s:v*100,v:C*100}},J2=(a,o,s)=>{const c=d=>{const h=Math.round(Math.max(0,Math.min(255,d))).toString(16);return h.length===1?"0"+h:h};return`#${c(a)}${c(o)}${c(s)}`.toUpperCase()},F2=a=>{const o=a.replace("#","");if(o.length!==6)throw new Error("Invalid hex color format");const s=parseInt(o.slice(0,2),16),c=parseInt(o.slice(2,4),16),d=parseInt(o.slice(4,6),16);return{r:s,g:c,b:d}},El=(a,o,s)=>{const c=cc(a,o,s);return J2(c.r,c.g,c.b)},Sm=a=>{const o=F2(a);return bm(o.r,o.g,o.b)},W2=a=>/^#?([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(a);function Wu(a){try{let o=(a||"").trim().toUpperCase();o.startsWith("#")||(o=`#${o}`);const s=o.length===9?o.slice(0,7):o,{h:c,s:d,v:h}=Sm(s),f=Math.max(0,Math.min(100,h-12));return El(c,d,f)}catch{let o=(a||"#FFFFFF").trim().toUpperCase();return o.startsWith("#")||(o=`#${o}`),o.length===9?o.slice(0,7):o}}const j0=!0,$2={applyHeaderOnly:"comfyuiAlign.applyColorHeaderOnly"};function I2(a,o){if(typeof a=="boolean")return a;if(typeof a=="string"){if(a.toLowerCase()==="true")return!0;if(a.toLowerCase()==="false")return!1}return o}function oc(){try{const a=De($2.applyHeaderOnly);return I2(a,j0)}catch{return j0}}function Se(a,o){if(!a||typeof a!="string")return"#FFFFFFFF";let s=a.trim().toUpperCase();return s.startsWith("#")||(s=`#${s}`),s.length===9?s.slice(0,7)+o.toUpperCase():s.length===7?s+o.toUpperCase():"#FFFFFFFF"}function ln(a){const o=Math.max(0,Math.min(1,a)),c=Math.round(o*255).toString(16).toUpperCase();return c.length===1?"0"+c:c}function xm(a){const o=Ce(),s=sn(o),c=rn(o);if(!s.length&&!c.length)return;const d=oc();s.forEach(h=>{if(d)h.color=Se(a,"FF");else{h.bgcolor=Se(a,"FF");try{const f=Wu(a);h.color=Se(f,"FF")}catch{h.color=Se(a,"FF")}}}),c.forEach(h=>{try{h.color=Se(a,"FF")}catch{}}),on(o)}function va(a,o){const s=Ce(),c=sn(s),d=rn(s);if(!c.length&&!d.length)return;const h=oc(),f=ln(o);c.forEach(y=>{if(h)y.color=Se(a,f);else{y.bgcolor=Se(a,f);try{const p=Wu(a);y.color=Se(p,f)}catch{y.color=Se(a,f)}}}),d.forEach(y=>{try{y.color=Se(a,f)}catch{}}),on(s)}function P2(a){const o=Ce(),s=sn(o),c=rn(o);if(!s.length&&!c.length)return;const d=oc(),h=ln(a),f=p=>{if(typeof p!="string")return!1;const m=p.trim();return/^#?[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$/.test(m)},y=p=>{let m=p.trim().toUpperCase();return m.startsWith("#")||(m=`#${m}`),m};s.forEach(p=>{try{if(d){if(f(p.color)){const m=y(p.color);p.color=Se(m,h)}}else{if(f(p.bgcolor)){const m=y(p.bgcolor);p.bgcolor=Se(m,h)}if(f(p.color)){const m=y(p.color);p.color=Se(m,h)}}}catch{}}),c.forEach(p=>{try{if(f(p.color)){const m=y(p.color);p.color=Se(m,h)}}catch{}}),on(o)}function Cm(){const a=Ce(),o=sn(a),s=rn(a);!o.length&&!s.length||(o.forEach(c=>{try{typeof c.setColorOption=="function"?c.setColorOption(null):(c.color=void 0,c.bgcolor=void 0)}catch{}}),s.forEach(c=>{try{typeof c.setColorOption=="function"?c.setColorOption(null):delete c.color}catch{}}),on(a))}function ba(a){try{let o=(a||"").trim().toUpperCase();if(o.startsWith("#")||(o=`#${o}`),o.length===9)return o;if(o.length===7)return o+ln(1);const s=o.replace(/[^A-F0-9]/g,"");return s.length>=6?`#${s.slice(0,6)}`+ln(1):`#FFFFFF${ln(1)}`}catch{return`#FFFFFF${ln(1)}`}}const Pl={hue:0,saturation:100,value:100,alpha:1},Pt=J0()(K2((a,o)=>({hue:Pl.hue,saturation:Pl.saturation,value:Pl.value,alpha:Pl.alpha,history:[],presets:[],presetLabels:{},presetLabelList:{},presetSource:{},isPickerActive:!1,getRGB:()=>{const{hue:s,saturation:c,value:d}=o();return cc(s,c,d)},getHex:()=>{const{hue:s,saturation:c,value:d}=o();return El(s,c,d)},getHex8:()=>{const{hue:s,saturation:c,value:d,alpha:h}=o();return El(s,c,d)+ln(h)},getHSV:()=>{const{hue:s,saturation:c,value:d}=o();return{h:s,s:c,v:d}},setHue:s=>{a({hue:Math.max(0,Math.min(360,s))},!1,"setHue");const{hue:c,saturation:d,value:h,alpha:f}=o();va(El(c,d,h),f)},setSaturation:s=>{a({saturation:Math.max(0,Math.min(100,s))},!1,"setSaturation");const{hue:c,saturation:d,value:h,alpha:f}=o();va(El(c,d,h),f)},setValue:s=>{a({value:Math.max(0,Math.min(100,s))},!1,"setValue");const{hue:c,saturation:d,value:h,alpha:f}=o();va(El(c,d,h),f)},setAlpha:s=>{a({alpha:Math.max(0,Math.min(1,s))},!1,"setAlpha");const{alpha:c}=o();P2(c)},setHSV:(s,c,d)=>{a({hue:Math.max(0,Math.min(360,s)),saturation:Math.max(0,Math.min(100,c)),value:Math.max(0,Math.min(100,d))},!1,"setHSV");const{hue:h,saturation:f,value:y,alpha:p}=o();va(El(h,f,y),p)},setFromRGB:(s,c,d)=>{const h=bm(s,c,d);a({hue:h.h,saturation:h.s,value:h.v},!1,"setFromRGB");const{hue:f,saturation:y,value:p,alpha:m}=o();va(El(f,y,p),m)},setFromHex:s=>{try{let c=s.trim().toUpperCase();c.startsWith("#")||(c=`#${c}`);let d=null,h=c;c.length===9&&(d=Math.max(0,Math.min(1,parseInt(c.slice(7,9),16)/255)),h=c.slice(0,7));const f=Sm(h),y={hue:f.h,saturation:f.s,value:f.v};d!==null&&(y.alpha=d),a(y,!1,"setFromHex");const{hue:p,saturation:m,value:v,alpha:C}=o();va(El(p,m,v),C)}catch(c){console.warn("Invalid hex color:",s,c)}},addToHistory:s=>{const c=o(),d=ln(c.alpha);let f=(s||c.getHex()).trim().toUpperCase();f.startsWith("#")||(f=`#${f}`),f.length===9||(f.length===7?f=f+d:f=c.getHex()+d),a(y=>({history:[f,...y.history.filter(p=>p!==f).slice(0,9)]}),!1,"addToHistory")},clearHistory:()=>{a({history:[]},!1,"clearHistory")},addPreset:s=>{const c=s||o().getHex();a(d=>({presets:d.presets.includes(c)?d.presets:[...d.presets,c]}),!1,"addPreset")},removePreset:s=>{a(c=>{const d=c.presets[s],h=c.presets.filter((m,v)=>v!==s),f={...c.presetLabels||{}},y={...c.presetLabelList||{}},p={...c.presetSource||{}};if(d){const m=ba(d),C=c.presets.map((D,q)=>ba(D)===m?q:-1).filter(D=>D>=0).indexOf(s),_=Array.isArray(y[m])?[...y[m]]:[];C>=0&&C<_.length?_.splice(C,1):_.length&&_.pop(),_.length===0?(delete y[m],f[m]&&delete f[m],p[m]&&delete p[m]):(y[m]=_,f[m]=_[0])}return{presets:h,presetLabels:f,presetLabelList:y,presetSource:p}},!1,"removePreset")},clearPresets:()=>{a({presets:[],presetLabels:{},presetLabelList:{},presetSource:{}},!1,"clearPresets")},setPresetsFromConfig:s=>{try{const c=[],d={},h={},f={};for(const y of s||[]){const p=y.title||"Unknown";let m;y.bgcolor?(m=ba(y.bgcolor),f[m]="panel"):y.color&&(m=ba(y.color),f[m]="header"),m&&(c.push(m),d[m]=`${p}`,h[m]=h[m]||[],h[m].push(`${p}`))}a({presets:c,presetLabels:d,presetLabelList:h,presetSource:f},!1,"setPresetsFromConfig")}catch(c){console.warn("setPresetsFromConfig failed",c)}},removePresetByColor:s=>{const c=ba(s);a(d=>{const h=d.presets.filter(m=>ba(m)!==c),f={...d.presetLabels||{}};f[c]&&delete f[c];const y={...d.presetLabelList||{}};y[c]&&delete y[c];const p={...d.presetSource||{}};return p[c]&&delete p[c],{presets:h,presetLabels:f,presetLabelList:y,presetSource:p}},!1,"removePresetByColor")},setPickerActive:s=>{a({isPickerActive:s},!1,"setPickerActive")},reset:()=>{a({hue:Pl.hue,saturation:Pl.saturation,value:Pl.value,alpha:Pl.alpha,history:[],presets:[],presetLabels:{},isPickerActive:!1},!1,"reset")}}),{name:"color-store",enabled:!1})),fn=()=>{const a=Pt();return{hue:a.hue,saturation:a.saturation,value:a.value,alpha:a.alpha,rgb:a.getRGB(),hex:a.getHex(),hsv:a.getHSV(),setHue:a.setHue,setSaturation:a.setSaturation,setValue:a.setValue,setAlpha:a.setAlpha,setHSV:a.setHSV,setFromRGB:a.setFromRGB,setFromHex:a.setFromHex,updateColor:(o,s,c)=>{a.setHSV(o,s,c),a.addToHistory()}}},tv=()=>{const a=Pt(c=>c.history),o=Pt(c=>c.addToHistory),s=Pt(c=>c.clearHistory);return{history:a,addToHistory:o,clearHistory:s}},ev=()=>{const a=Pt(p=>p.presets),o=Pt(p=>p.presetLabels),s=Pt(p=>p.presetLabelList),c=Pt(p=>p.presetSource),d=Pt(p=>p.addPreset),h=Pt(p=>p.removePreset),f=Pt(p=>p.removePresetByColor),y=Pt(p=>p.clearPresets);return{presets:a,presetLabels:o,presetLabelList:s,presetSource:c,addPreset:d,removePreset:h,removePresetByColor:f,clearPresets:y}},lv=()=>{const a=Pt(d=>d.isPickerActive),o=Pt(d=>d.setPickerActive),s=Pt(d=>d.setFromRGB),c=Pt(d=>d.addToHistory);return{isPickerActive:a,setPickerActive:o,pickColor:(d,h,f)=>{s(d,h,f),c()}}},Zs=["#8C3030","#8C5330","#71641A","#305D1A","#20625B","#2A587E","#4E3F98","#653185","#400446"],za=()=>{const{history:a,addToHistory:o,clearHistory:s}=tv(),{setFromHex:c}=fn(),d=m=>{c(m),o(m)},h=()=>{s()},f=()=>{o()},y=()=>Math.max(0,10-a.length),p=()=>{const m=y(),v=Array(m).fill(null);return[...a.map(C=>({type:"color",color:C})),...v.map(()=>({type:"placeholder",color:null}))]};return{history:a,placeholderCount:y(),displayData:p(),handleHistoryColorClick:d,handleClearHistory:h,handleAddCurrentColor:f}},nv=({className:a="",onMoonIconClick:o})=>{const[s,c]=T.useState(!1),{setFromHex:d}=fn(),{handleAddCurrentColor:h}=za(),f=m=>{const v=an.getState();v.shortcutKeyHeld&&v.setHoveredColorBarIndex(m)},y=()=>{const m=an.getState();m.shortcutKeyHeld&&m.setHoveredColorBarIndex(null)},p=()=>{c(!0),setTimeout(()=>{c(!1)},200)};return G.jsx("div",{className:`w-[300px] h-10 bg-[#0c0c0c] rounded-4xl flex items-center justify-center pointer-events-auto ${a}`,children:G.jsx("div",{className:"w-[280px] h-5 rounded-4xl flex items-center justify-between px-0",children:Array.from({length:11},(m,v)=>v===9?G.jsx("div",{className:"w-5 h-5 rounded-full border-2 cursor-pointer transition-all duration-200 hover:scale-110",style:{borderColor:s?"#FF6467":"#cccccc",backgroundColor:"transparent"},onClick:()=>{p(),Cm()},onMouseEnter:()=>f(9),onMouseLeave:y},v):v===10?G.jsx("div",{className:"w-5 h-5 flex items-center justify-center cursor-pointer transition-all duration-200 hover:scale-110",onClick:o,onMouseEnter:()=>f(10),onMouseLeave:y,children:G.jsx(Is,{width:"20",height:"20",className:"text-[#FFB900]"})},v):G.jsx("div",{className:"w-5 h-5 rounded-full cursor-pointer transition-all duration-200 hover:scale-110",style:{backgroundColor:v<9?Zs[v]:"#3B82F6"},onClick:v<9?()=>{const C=Zs[v];d(C),h(),xm(C)}:void 0,onMouseEnter:()=>f(v),onMouseLeave:y},v))})})},tn={width:330,height:200},G0=(a,o)=>Math.max(0,Math.min(o,a)),av=({className:a="",hue:o=0,saturation:s=100,value:c=100,onChange:d,onChangeComplete:h})=>{const f=T.useRef(null),[y,p]=T.useState(!1),[m,v]=T.useState({x:s/100*tn.width,y:(100-c)/100*tn.height}),C=cc(o,100,100),_=T.useCallback((U,W)=>{const at=U/tn.width*100,st=100-W/tn.height*100;return{saturation:at,value:st}},[]),D=T.useCallback((U,W)=>{if(!f.current)return null;const at=f.current.getBoundingClientRect(),st=G0(U-at.left,tn.width),J=G0(W-at.top,tn.height);return v({x:st,y:J}),_(st,J)},[_]),q=T.useCallback(U=>{const W=D(U.clientX,U.clientY);W&&(p(!0),d?.(W.saturation,W.value)),U.preventDefault(),U.stopPropagation()},[D,d]),V=T.useCallback(U=>{if(!y)return;const W=D(U.clientX,U.clientY);W&&d?.(W.saturation,W.value)},[y,D,d]),F=T.useCallback(()=>{if(y){p(!1);const{saturation:U,value:W}=_(m.x,m.y);h?.(U,W)}},[y,m,_,h]);return T.useEffect(()=>(y&&(document.addEventListener("mousemove",V),document.addEventListener("mouseup",F)),()=>{document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",F)}),[y,V,F]),T.useEffect(()=>{v({x:s/100*tn.width,y:(100-c)/100*tn.height})},[s,c]),G.jsx("div",{ref:f,className:`relative cursor-crosshair select-none ${a}`,style:{width:"330px",height:"200px",borderRadius:"8px",background:`
|
|
linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 100%),
|
|
linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgb(${C.r}, ${C.g}, ${C.b}) 100%)
|
|
`,overflow:"hidden"},onMouseDown:q,children:G.jsx("div",{className:"absolute pointer-events-none",style:{left:`${m.x}px`,top:`${m.y}px`,transform:"translate(-50%, -50%)",width:"12.42px",height:"12.73px",borderRadius:"50%",border:"2px solid rgba(204, 204, 204, 0.88)",backgroundColor:"transparent",boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.3)"}})})},iv=({className:a="",onColorPicked:o,disabled:s=!1})=>{const{isPickerActive:c,setPickerActive:d,pickColor:h}=lv(),f=T.useCallback(async()=>{if(!(s||c))try{if(d(!0),"EyeDropper"in window){const p=await new window.EyeDropper().open();if(p?.sRGBHex){const m=p.sRGBHex,v=parseInt(m.slice(1,3),16),C=parseInt(m.slice(3,5),16),_=parseInt(m.slice(5,7),16);h(v,C,_),o?.({r:v,g:C,b:_,hex:m})}}else console.warn("EyeDropper API is not supported in this browser"),alert("Your browser does not support the eyedropper feature. Please use a browser that supports the EyeDropper API, such as Chrome, Edge.")}catch(y){console.log("Color picking cancelled or failed:",y)}finally{d(!1)}},[s,c,o,d,h]);return G.jsx("button",{className:`
|
|
relative overflow-visible
|
|
w-[30px] h-[30px]
|
|
rounded
|
|
border border-gray-400/15
|
|
flex items-center justify-center
|
|
transition-all duration-200
|
|
${c?"bg-blue-500/20 border-blue-400/40 text-blue-400":"bg-transparent hover:bg-gray-400/10 text-gray-400/88"}
|
|
${s?"opacity-50 cursor-not-allowed":"cursor-pointer hover:border-gray-400/25"}
|
|
${a}
|
|
`,onClick:f,disabled:s,type:"button",children:G.jsx("div",{className:"w-5 h-5 flex items-center justify-center",children:G.jsx(Ps,{name:"color-dropper",className:`w-5 h-5 ${c?"animate-pulse":""}`})})})},Am=$e.memo(({className:a="",onChange:o,onChangeComplete:s})=>{const[c,d]=T.useState(!1),[h,f]=T.useState(""),[y,p]=T.useState(!1),[m,v]=T.useState("CCCCCC"),C=T.useRef(null),_=T.useRef(null),D=T.useRef(null),q=T.useRef(""),V=T.useRef(null),{hex:F,setFromHex:U}=fn(),{handleAddCurrentColor:W}=za(),at=T.useMemo(()=>/^[0-9A-Fa-f]{6}$/,[]),st=T.useCallback(A=>at.test(A),[at]);T.useEffect(()=>{if(!c){const A=F.replace("#","").toUpperCase(),O=q.current;A!==O&&A!==m&&(v(A||"CCCCCC"),f(A||"CCCCCC"),q.current=A)}},[F,c,m]);const J=T.useCallback(async A=>{if(navigator?.clipboard?.writeText)try{return await navigator.clipboard.writeText(A)}catch(H){console.warn("Clipboard API failed, falling back to execCommand:",H)}const O=document.createElement("textarea");O.value=A,O.style.position="fixed",O.style.left="-999999px",O.style.top="-999999px",document.body.appendChild(O);try{return O.select(),O.setSelectionRange(0,O.value.length),document.execCommand("copy")}finally{document.body.removeChild(O)}},[]),lt=T.useCallback(async A=>{if(c)return;if(D.current){clearTimeout(D.current),D.current=null;return}const O=A.ctrlKey||A.metaKey;D.current=setTimeout(async()=>{const H=O?`#${m}`:m;try{await J(H),p(!0),setTimeout(()=>p(!1),300)}catch(k){if(console.error("Failed to copy to clipboard:",k),_.current){const ht=window.getSelection(),S=document.createRange();S.selectNodeContents(_.current),ht?.removeAllRanges(),ht?.addRange(S)}}D.current=null},250)},[m,c,J]),X=T.useCallback(()=>{c||(D.current&&(clearTimeout(D.current),D.current=null),d(!0),f(m),requestAnimationFrame(()=>{C.current&&(C.current.focus(),C.current.select())}))},[m,c]),K=T.useCallback(A=>{let O=A.target.value.toUpperCase().replace(/[^0-9A-F]/g,"");if(O.length>6&&(O=O.slice(0,6)),f(O),o?.(O),O.length===6&&st(O)){const H=`#${O}`;U(H)}},[o,st,U]),gt=T.useCallback(()=>{if(h.length===6&&st(h)){const A=`#${h.toUpperCase()}`;v(h.toUpperCase()),q.current=h.toUpperCase(),U(A),W(),s?.(A)}else f(m);d(!1)},[h,st,m,U,W,s]),Jt=T.useCallback(A=>{A.key==="Enter"?gt():A.key==="Escape"&&(f(m),d(!1))},[gt,m]),Ot=T.useCallback(()=>{gt()},[gt]),Dt=T.useCallback(A=>{_.current&&!_.current.contains(A.target)&&c&>()},[c,gt]);T.useEffect(()=>{if(c)return document.addEventListener("mousedown",Dt),()=>document.removeEventListener("mousedown",Dt)},[c,Dt]),T.useEffect(()=>()=>{D.current&&clearTimeout(D.current),V.current&&(document.body.removeChild(V.current),V.current=null)},[]);const Ut=T.useMemo(()=>({fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"12px",lineHeight:"1.2102272510528564em"}),[]),Xt=T.useMemo(()=>{const A=`
|
|
relative
|
|
w-[78px] h-6
|
|
rounded
|
|
border
|
|
flex items-center justify-center
|
|
transition-all duration-200
|
|
${c?"cursor-text":"cursor-pointer"}
|
|
${a}
|
|
`;return y?A+" border-[#04DE71] bg-transparent":c?A+" border-blue-400/60 bg-gray-800/50":A+" border-gray-400/15 bg-transparent hover:border-gray-400/25"},[c,y,a]),Z=T.useMemo(()=>({...Ut,color:"rgba(204, 204, 204, 0.88)",textAlign:"center"}),[Ut]);return G.jsxs("div",{ref:_,className:Xt,onClick:c?void 0:A=>lt(A),onDoubleClick:X,children:[c?G.jsx("input",{ref:C,type:"text",value:h,onChange:K,onKeyDown:Jt,onBlur:Ot,className:`
|
|
w-full h-full
|
|
bg-transparent
|
|
text-center
|
|
outline-none
|
|
text-[12px] font-medium
|
|
text-gray-300
|
|
placeholder-gray-500
|
|
`,placeholder:"CCCCCC",maxLength:6,style:Ut}):G.jsx("span",{className:`
|
|
text-[12px] font-medium
|
|
select-none
|
|
pointer-events-none
|
|
`,style:Z,children:m||"CCCCCC"}),c&&G.jsx("div",{className:`
|
|
absolute -top-1 -right-1
|
|
w-2 h-2
|
|
bg-blue-400
|
|
rounded-full
|
|
animate-pulse
|
|
`})]})});Am.displayName="HEX";const uv={isValidRGBA:(a,o)=>{const s=parseFloat(o);if(isNaN(s))return!1;switch(a){case"r":case"g":case"b":return s>=0&&s<=255&&Number.isInteger(s);case"a":return s>=0&&s<=100;default:return!1}}},On={formatDisplayValue:(a,o)=>{switch(a){case"r":case"g":case"b":return Math.round(o).toString();case"a":return Math.round(o*100).toString();default:return o.toString()}},formatCopyValue:(a,o)=>{switch(a){case"r":case"g":case"b":return Math.round(o).toString();case"a":return o.toFixed(3);default:return o.toString()}},formatRGBAString:a=>`rgba(${On.formatCopyValue("r",a.r)}, ${On.formatCopyValue("g",a.g)}, ${On.formatCopyValue("b",a.b)}, ${On.formatCopyValue("a",a.a)})`},$u={copyToClipboard:async a=>{try{return await navigator.clipboard.writeText(a),!0}catch(o){return console.error("Failed to copy to clipboard:",o),!1}},copyIndividualValue:async(a,o)=>{const s=On.formatCopyValue(a,o[a]);return $u.copyToClipboard(s)},copyFullRGBA:async a=>{const o=On.formatRGBAString(a);return $u.copyToClipboard(o)},fallbackTextSelection:a=>{const o=window.getSelection(),s=document.createRange();s.selectNodeContents(a),o?.removeAllRanges(),o?.addRange(s)}},Fu={validateAndFormatInput:(a,o)=>{let s=o;switch(a){case"r":case"g":case"b":s=s.replace(/[^0-9]/g,""),s&&parseInt(s)>255&&(s="255");break;case"a":s=s.replace(/[^0-9]/g,""),s&&parseInt(s)>100&&(s="100");break}return s},processInputValue:(a,o)=>{const s=parseFloat(o);return a==="a"?s/100:s},convertInputToNumber:(a,o)=>Fu.processInputValue(a,o)},cv=({className:a="",onChange:o,onChangeComplete:s})=>{const[c,d]=T.useState(null),[h,f]=T.useState({r:"80",g:"80",b:"80",a:"100"}),[y,p]=T.useState(null),[m,v]=T.useState({r:204,g:204,b:204,a:1}),[C,_]=T.useState({r:204,g:204,b:204,a:1}),[D,q]=T.useState(null),V=T.useRef({r:null,g:null,b:null,a:null}),F=T.useRef(null),{rgb:U,alpha:W,setFromRGB:at,setAlpha:st}=fn(),{handleAddCurrentColor:J}=za(),{isValidRGBA:lt}=uv,{formatDisplayValue:X}=On;T.useEffect(()=>{const Z={r:U.r,g:U.g,b:U.b,a:W},A=Object.keys(Z).some(O=>{const H=O;return Math.abs(Z[H]-C[H])>.001});!c&&A&&(v(Z),_(Z),f({r:X("r",Z.r),g:X("g",Z.g),b:X("b",Z.b),a:X("a",Z.a)}))},[U,W,c,C,X]);const K=T.useCallback(async(Z,A)=>{if(D){clearTimeout(D),q(null);return}const O=setTimeout(async()=>{const H=A.ctrlKey||A.metaKey,k={r:U.r,g:U.g,b:U.b,a:W};try{H?(await $u.copyFullRGBA(k),p("all")):(await $u.copyIndividualValue(Z,k),p(Z)),setTimeout(()=>p(null),300)}catch(ht){console.error("复制失败:",ht)}q(null)},250);q(O)},[U,W,D]),gt=T.useCallback(Z=>{c||(D&&(clearTimeout(D),q(null)),d(Z),f(A=>({...A,[Z]:X(Z,m[Z])})),setTimeout(()=>{const A=V.current[Z];A&&(A.focus(),A.select())},0))},[m,c,X,D]),Jt=T.useCallback((Z,A)=>{if(f(O=>({...O,[Z]:A})),lt(Z,A)){const O=Fu.processInputValue(Z,A),k={...{r:U.r,g:U.g,b:U.b,a:W},[Z]:O};Z==="a"?st(O):at(k.r,k.g,k.b),o?.(k.r,k.g,k.b,k.a)}},[U,W,at,st,o,lt]),Ot=T.useCallback(Z=>{const A=h[Z];if(lt(Z,A)){const O=Fu.processInputValue(Z,A),k={...{r:U.r,g:U.g,b:U.b,a:W},[Z]:O};v(k),_(k),Z==="a"?st(O):at(k.r,k.g,k.b),J(),s?.(k.r,k.g,k.b,k.a)}else{const O=X(Z,m[Z]);f(H=>({...H,[Z]:O}))}d(null)},[h,m,W,U,at,st,s,lt,X,J]),Dt=T.useCallback((Z,A)=>{if(A.key==="Enter")Ot(Z);else if(A.key==="Escape")f(O=>({...O,[Z]:X(Z,m[Z])})),d(null);else if(A.key==="Tab"){A.preventDefault(),Ot(Z);const O=["r","g","b","a"],k=(O.indexOf(Z)+1)%O.length,ht=O[k];setTimeout(()=>{gt(ht)},0)}},[Ot,m,X,gt]),Ut=T.useCallback(Z=>{Ot(Z)},[Ot]);T.useEffect(()=>()=>{D&&clearTimeout(D)},[D]),T.useEffect(()=>{const Z=A=>{F.current&&!F.current.contains(A.target)&&c&&Ot(c)};return c&&document.addEventListener("mousedown",Z),()=>{document.removeEventListener("mousedown",Z)}},[c,Ot]);const Xt=(Z,A)=>{const O=c===Z,H=O?h[Z]:X(Z,m[Z]);return G.jsxs("div",{className:`
|
|
relative
|
|
${A} h-6
|
|
rounded
|
|
border
|
|
flex items-center justify-center
|
|
transition-all duration-200
|
|
${y==="all"||y===Z?"border-[#04DE71] bg-transparent":O?"border-blue-400/60 bg-gray-800/50":"border-gray-400/15 bg-transparent hover:border-gray-400/25"}
|
|
${O?"cursor-text":"cursor-pointer"}
|
|
`,onClick:O?void 0:k=>K(Z,k),onDoubleClick:()=>gt(Z),children:[O?G.jsx("input",{ref:k=>{V.current[Z]=k},type:"text",value:H,onChange:k=>Jt(Z,Fu.validateAndFormatInput(Z,k.target.value)),onKeyDown:k=>Dt(Z,k),onBlur:()=>Ut(Z),className:`
|
|
w-full h-full
|
|
bg-transparent
|
|
text-center
|
|
outline-none
|
|
text-[12px] font-medium
|
|
text-gray-300
|
|
placeholder-gray-500
|
|
`,placeholder:Z==="a"?"100":"204",maxLength:3,style:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"12px",lineHeight:"1.2102272510528564em"}}):G.jsxs("span",{className:`
|
|
text-[12px] font-medium
|
|
select-none
|
|
pointer-events-none
|
|
`,style:{color:"rgba(204, 204, 204, 0.88)",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"12px",lineHeight:"1.2102272510528564em",textAlign:"center"},children:[H,Z==="a"?"%":""]}),O&&G.jsx("div",{className:`
|
|
absolute -top-1 -right-1
|
|
w-2 h-2
|
|
bg-blue-400
|
|
rounded-full
|
|
animate-pulse
|
|
`})]},Z)};return G.jsxs("div",{ref:F,className:`flex items-center gap-1 ${a}`,children:[Xt("r","w-[58px]"),Xt("g","w-[58px]"),Xt("b","w-[58px]"),Xt("a","w-[58px]")]})},Cl=5,ov=280,Ci=ov,sv=({className:a="",onChange:o,onChangeComplete:s})=>{const c=T.useRef(null),[d,h]=T.useState(!1),{hue:f,setHue:y}=fn(),{handleAddCurrentColor:p}=za(),[m,v]=T.useState({x:Cl+f/360*Ci}),C=T.useCallback(V=>{const U=(V-Cl)/Ci*360;return U>=360?0:Math.max(0,U)},[]),_=T.useCallback(V=>{if(!c.current)return;h(!0);const F=c.current.getBoundingClientRect(),U=Math.max(Cl,Math.min(Cl+Ci,V.clientX-F.left));v({x:U});const W=C(U);y(W),o?.(W),V.preventDefault(),V.stopPropagation()},[C,y,o]),D=T.useCallback(V=>{if(!d||!c.current)return;const F=c.current.getBoundingClientRect(),U=Math.max(Cl,Math.min(Cl+Ci,V.clientX-F.left));v({x:U});const W=C(U);y(W),o?.(W)},[d,C,y,o]),q=T.useCallback(()=>{if(d){h(!1);const V=C(m.x);s?.(V),p()}},[d,m.x,C,s,p]);return T.useEffect(()=>(d&&(document.addEventListener("mousemove",D),document.addEventListener("mouseup",q)),()=>{document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",q)}),[d,D,q]),T.useEffect(()=>{v({x:Cl+f/360*Ci})},[f]),G.jsx("div",{ref:c,className:`relative cursor-pointer select-none ${a}`,style:{width:"290px",height:"10px",borderRadius:"10px",background:"linear-gradient(90deg, hsl(0, 100%, 50%) 0%, hsl(60, 100%, 50%) 16.67%, hsl(120, 100%, 50%) 33.33%, hsl(180, 100%, 50%) 50%, hsl(240, 100%, 50%) 66.67%, hsl(300, 100%, 50%) 83.33%, hsl(360, 100%, 50%) 100%)",overflow:"visible",paddingLeft:`${Cl}px`,paddingRight:`${Cl}px`,boxSizing:"border-box"},onMouseDown:_,children:G.jsx("div",{className:"absolute pointer-events-none",style:{left:`${m.x}px`,top:"0px",transform:"translate(-50%, 0%)",width:"10px",height:"10px",borderRadius:"50%",border:"2px solid #CCCCCC",backgroundColor:"transparent",boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.3)",zIndex:10}})})},Al=5,rv=280,Ai=rv,fv=({className:a="",onChange:o,onChangeComplete:s})=>{const c=T.useRef(null),[d,h]=T.useState(!1),{hue:f,saturation:y,value:p,alpha:m,setAlpha:v}=fn(),[C,_]=T.useState({x:Al+m*Ai}),D=cc(f,y,p),q=`rgb(${D.r}, ${D.g}, ${D.b})`,V=T.useCallback(at=>{const J=(at-Al)/Ai;return Math.max(0,Math.min(1,J))},[]),F=T.useCallback(at=>{if(!c.current)return;h(!0);const st=c.current.getBoundingClientRect(),J=Math.max(Al,Math.min(Al+Ai,at.clientX-st.left));_({x:J});const lt=V(J);v(lt),o?.(lt),at.preventDefault(),at.stopPropagation()},[V,v,o]),U=T.useCallback(at=>{if(!d||!c.current)return;const st=c.current.getBoundingClientRect(),J=Math.max(Al,Math.min(Al+Ai,at.clientX-st.left));_({x:J});const lt=V(J);v(lt),o?.(lt)},[d,V,v,o]),W=T.useCallback(()=>{if(d){h(!1);const at=V(C.x);s?.(at)}},[d,C.x,V,s]);return T.useEffect(()=>(d&&(document.addEventListener("mousemove",U),document.addEventListener("mouseup",W)),()=>{document.removeEventListener("mousemove",U),document.removeEventListener("mouseup",W)}),[d,U,W]),T.useEffect(()=>{_({x:Al+m*Ai})},[m]),G.jsxs("div",{ref:c,className:`relative cursor-pointer select-none ${a}`,style:{width:"290px",height:"10px",borderRadius:"10px",overflow:"visible",paddingLeft:`${Al}px`,paddingRight:`${Al}px`,boxSizing:"border-box",backgroundImage:`
|
|
linear-gradient(45deg, #ccc 25%, transparent 25%),
|
|
linear-gradient(-45deg, #ccc 25%, transparent 25%),
|
|
linear-gradient(45deg, transparent 75%, #ccc 75%),
|
|
linear-gradient(-45deg, transparent 75%, #ccc 75%)
|
|
`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"},onMouseDown:F,children:[G.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(90deg, transparent 0%, ${q} 100%)`,borderRadius:"10px"}}),G.jsx("div",{className:"absolute pointer-events-none",style:{left:`${C.x}px`,top:"0px",transform:"translate(-50%, 0%)",width:"10px",height:"10px",borderRadius:"50%",border:"2px solid #CCCCCC",backgroundColor:"white",boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.3)",zIndex:10}})]})},dv=()=>{const{displayData:a,handleHistoryColorClick:o}=za(),[s,c]=T.useState(null);return G.jsx("div",{style:hv,children:a.map((d,h)=>G.jsx("div",{style:{...mv,...d.type==="color"?gv:yv,backgroundColor:d.type==="color"?d.color:"transparent",transform:d.type==="color"&&s===h?"scale(1.1)":"scale(1)",boxShadow:d.type==="color"&&s===h?"0 2px 8px rgba(0, 0, 0, 0.2)":"none",zIndex:d.type==="color"&&s===h?1:0},onMouseEnter:d.type==="color"?()=>c(h):void 0,onMouseLeave:d.type==="color"?()=>c(null):void 0,onClick:d.type==="color"?()=>o(d.color):void 0},h))})},hv={display:"flex",gap:"10px",width:"330px",height:"24px"},mv={width:"24px",height:"24px",borderRadius:"4px",cursor:"pointer",transition:"all 0.2s ease",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},gv={border:"1px solid rgba(0, 0, 0, 0.1)"},yv={width:"24px",height:"24px",backgroundColor:"transparent",border:"1px solid rgba(204, 204, 204, 0.1)",borderRadius:"4px",cursor:"default"};function fe(a){try{return String(a||"").replace(/\([^)]*\)/g,"").replace(/[^A-Za-z0-9]/g,"")}catch{return String(a||"")}}function nn(a){try{const o=(a??"").trim();if(!o)return null;let s=o.startsWith("#")?o.slice(1):o;if(s=s.replace(/[^A-Fa-f0-9]/g,""),s.length===3){const c=s[0],d=s[1],h=s[2];return`#${(c+c+d+d+h+h).toUpperCase()}FF`}if(s.length===4){const c=s[0],d=s[1],h=s[2],f=s[3];return`#${(c+c+d+d+h+h+f+f).toUpperCase()}`}return s.length===6?`#${s.toUpperCase()}FF`:s.length===8?`#${s.toUpperCase()}`:null}catch{return null}}async function pv(){try{const a=await fetch("/align/api/color_presets");if(!a.ok)return;const o=await a.json();let s=Array.isArray(o?.nodes)?o.nodes:[];s=s.filter(h=>fe(h.type)!==fe("MarkdownNote"));const c=s.map(h=>({title:String(h.type||"Unknown"),color:h.color||void 0,bgcolor:h.bgcolor||void 0}));Pt.getState().setPresetsFromConfig?.(c)}catch{}}async function vv(){try{Pt.getState().clearPresets(),await fetch("/align/api/color_presets/all",{method:"DELETE"})}catch{}}async function bv(){try{const a=Ce(),o=sn(a),s=[];for(const c of o||[]){const d=String(c?.type||""),h=c?.title,y=c?.properties?.["Node name for S&R"],p=String(h||y||d||"Unknown");if(fe(d)===fe("MarkdownNote")||fe(p)===fe("MarkdownNote"))continue;const m=nn(c?.color),v=nn(c?.bgcolor);(m||v)&&s.push({type:p,color:m,bgcolor:v})}return s}catch{return[]}}async function Sv(){try{const o=Ce()?.graph?._nodes||[],s=[];for(const c of o||[]){const d=String(c?.type||""),h=c?.title,y=c?.properties?.["Node name for S&R"],p=String(h||y||d||"Unknown");if(fe(d)===fe("MarkdownNote")||fe(p)===fe("MarkdownNote"))continue;const m=nn(c?.color),v=nn(c?.bgcolor);(m||v)&&s.push({type:p,color:m,bgcolor:v})}return s}catch{return[]}}async function xv(){try{let a=await bv();if(a.length||(a=await Sv()),a=a.filter(f=>fe(f.type)!==fe("MarkdownNote")),!a.length)return!1;const o=await fetch("/align/api/color_presets",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nodes:a})});if(!o.ok)return!1;const s=await o.json(),d=(Array.isArray(s?.config?.nodes)?s.config.nodes:a).map(f=>({title:String(f.type||"Unknown"),color:f.color||void 0,bgcolor:f.bgcolor||void 0}));return Pt.getState().setPresetsFromConfig?.(d),!0}catch{return!1}}async function Cv(){try{const a=Ce();let o=sn(a);(o?.length||0)>0||(o=a?.graph?._nodes||[]);const c=oc(),d=await fetch("/align/api/color_presets");if(!d.ok)return;const h=await d.json(),f=Array.isArray(h?.nodes)?h.nodes:[];for(const y of o){const p=String(y?.type||"");if(fe(p)===fe("MarkdownNote"))continue;const m=String(y?.type||""),v=y?.properties,C=String(v?.["Node name for S&R"]||""),_=String(y?.title||""),D=fe(_),q=f.find(U=>U.type===_)||(C?f.find(U=>U.type===C):void 0)||f.find(U=>fe(U.type)===D)||f.find(U=>U.type===m);if(!q)continue;const V=nn(q.color),F=nn(q.bgcolor);if(c){if(V)y.color=V;else if(F)try{const U=Wu(F);y.color=nn(U)||void 0}catch{y.color=F}}else if(F){y.bgcolor=F;try{const U=Wu(F);y.color=nn(U)||void 0}catch{y.color=F}}else V&&(y.color=V)}on(a)}catch{}}const Av=({className:a="",onColorSelect:o})=>{const{presets:s,presetLabels:c,presetLabelList:d,removePreset:h}=ev(),{setFromHex:f}=fn(),[y,p]=T.useState({visible:!1,x:0,y:0,colorIndex:-1}),m=T.useRef(null),[v,C]=T.useState(null);T.useEffect(()=>{pv().catch(()=>{})},[]);const _=T.useCallback(J=>{f(J),o?.(J)},[f,o]),D=T.useCallback((J,lt)=>{const X=J.target.getBoundingClientRect(),K=String(lt||"Preset").replace(/\s*\((?:header|panel)\)\s*$/i,"");C({x:X.left+X.width/2,y:X.top-8,label:K})},[]),q=T.useCallback(()=>{C(null)},[]),V=T.useCallback((J,lt)=>{J.preventDefault(),p({visible:!0,x:J.clientX,y:J.clientY,colorIndex:lt})},[]),F=T.useCallback(()=>{p(J=>({...J,visible:!1}))},[]),U=T.useCallback(()=>{const J=[],lt={};for(const X of s){if(X==="placeholder")continue;const K=X,gt=lt[K]||0;lt[K]=gt+1;const Ot=(d?.[K]||[])[gt]||c?.[K]||"Preset";J.push({color:K,label:Ot})}return J.length<30&&J.push({placeholder:!0}),J},[s,d,c]),W=U(),at=T.useCallback(async()=>{try{const J=y.colorIndex,lt=J>=0?s[J]:void 0;if(!lt){F();return}const X=String(lt).toUpperCase(),K=U(),gt=J>=0&&J<K.length?K[J]:null;let Jt;gt&&"label"in gt&&(Jt=gt.label),await fetch("/align/api/color_presets",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(Jt?{color:X,type:Jt}:{color:X})}).catch(()=>{}),typeof h=="function"&&h(J)}catch(J){console.warn("Delete Color failed",J)}finally{F()}},[y.colorIndex,s,h,F,U]),st=T.useCallback(J=>{m.current&&(J.preventDefault(),m.current.scrollTop+=J.deltaY)},[]);return G.jsxs(G.Fragment,{children:[G.jsxs("div",{className:`relative ${a}`,style:{width:"330px",height:"122px",fontFamily:"Inter, sans-serif"},onClick:F,children:[G.jsx("div",{className:"flex items-center",style:{width:"330px",height:"20px",borderBottom:"1px solid rgba(155, 146, 146, 0.1)"},children:G.jsx("span",{className:"text-center",style:{color:"#CCCCCC",fontSize:"12px",fontWeight:500,lineHeight:"14.52px",marginLeft:"-1px",marginTop:"6px"},children:"Color Presets"})}),G.jsxs("div",{ref:m,className:"overflow-auto",style:{width:"330px",height:"102px",marginTop:"10px",scrollbarWidth:"none",msOverflowStyle:"none",paddingBottom:"10px"},onWheel:st,children:[G.jsx("style",{children:`
|
|
.overflow-auto::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
`}),G.jsx("div",{className:"grid grid-cols-10 gap-2.5",style:{gridTemplateColumns:"repeat(10, 24px)",gridAutoRows:"24px",rowGap:"10px"},children:W.map((J,lt)=>"placeholder"in J?G.jsx("div",{style:{width:"24px",height:"24px",backgroundColor:"transparent",border:"1px solid rgba(204, 204, 204, 0.1)",borderRadius:"4px",cursor:"default"}},`placeholder-${lt}`):G.jsx("div",{className:"cursor-pointer transition-all duration-200 hover:scale-110",style:{width:"24px",height:"24px",backgroundColor:J.color,border:"1px solid rgba(0, 0, 0, 0.1)",borderRadius:"4px"},onClick:()=>_(J.color),onContextMenu:X=>V(X,lt),onMouseEnter:X=>D(X,J.label),onMouseLeave:q},`color-${lt}`))})]})]}),v&&G.jsx("div",{className:"fixed bg-[#1a1a1a] text-gray-200 text-xs px-2 py-1 rounded-md shadow",style:{left:v.x,top:v.y,transform:"translate(-50%, -100%)",zIndex:500,pointerEvents:"none",border:"1px solid rgba(255,255,255,0.1)"},children:v.label}),y.visible&&G.jsx("div",{className:"fixed bg-[#1a1a1a] border border-gray-600/20 border-opacity-10 rounded-md ",style:{left:y.x,top:y.y,zIndex:500},children:G.jsx("button",{className:"block w-full px-3 py-2 text-left text-sm text-gray-200 hover:bg-[#2a2a2a] hover:rounded-md",onClick:at,children:"Delete Color"})})]})},Ev=(a,o,s,c,d)=>({handleMouseDown:p=>{s(!0);const m=a.current?.getBoundingClientRect();m&&d({x:p.clientX-m.left,y:p.clientY-m.top})},handleMouseMove:p=>{if(o.isDragging){const m=window.innerWidth||document.documentElement.clientWidth,v=window.innerHeight||document.documentElement.clientHeight,C=346,_=526,D=p.clientX-o.dragStart.x,q=p.clientY-o.dragStart.y,V=Math.max(0,Math.min(D,m-C)),F=Math.max(0,Math.min(q,v-_));c({x:V,y:F})}},handleMouseUp:()=>{s(!1)}}),Mv=(a,o,s)=>({handleClear:()=>{window.confirm("Clear all preset colors?? This action is irreversible.")&&a?.()},handleSave:()=>{o?.()},handleClose:f=>{f.stopPropagation(),s?.()}}),V0=a=>{const{panelWidth:o,panelHeight:s,rightMargin:c}=a,d=window.innerWidth||document.documentElement.clientWidth,h=window.innerHeight||document.documentElement.clientHeight,f=Math.max(0,Math.min(d-o-c,d-o)),y=(h-s)/2,p=Math.max(0,Math.min(y,h-s));return{x:f,y:p}},zv=()=>({getDefaultPosition:()=>V0({panelWidth:346,panelHeight:526,rightMargin:20}),getInitialPosition:V0}),Tv=({className:a="",onClose:o})=>{const[s,c]=T.useState(!1),{getDefaultPosition:d}=zv(),h="align_colorpicker_position",f=346,y=526,p=H=>{const k=window.innerWidth||document.documentElement.clientWidth,ht=window.innerHeight||document.documentElement.clientHeight;return{x:Math.max(0,Math.min(H.x,k-f)),y:Math.max(0,Math.min(H.y,ht-y))}},[m,v]=T.useState(()=>{try{const H=localStorage.getItem(h);if(H){const k=JSON.parse(H);return p(k)}}catch{}return d()}),C=T.useRef(m);T.useEffect(()=>{C.current=m},[m]);const[_,D]=T.useState({x:0,y:0}),q=T.useRef(null),[V,F]=T.useState(!1),{hue:U,saturation:W,value:at,setSaturation:st,setValue:J,setFromRGB:lt,setFromHex:X}=fn(),{handleAddCurrentColor:K}=za(),gt=(H,k)=>{st(H),J(k)},Jt=(H,k)=>{st(H),J(k),K()},Ot=H=>{lt(H.r,H.g,H.b),K()},Ut=Ev(q,{isDragging:s,dragStart:_},c,v,D),Xt=async()=>{await vv()},Z=async()=>{await xv()},A=()=>{Cv()},O=Mv(Xt,Z,o);return T.useEffect(()=>{if(s)document.addEventListener("mousemove",Ut.handleMouseMove),document.addEventListener("mouseup",Ut.handleMouseUp);else{document.removeEventListener("mousemove",Ut.handleMouseMove),document.removeEventListener("mouseup",Ut.handleMouseUp);try{localStorage.setItem(h,JSON.stringify(C.current))}catch{}}return()=>{document.removeEventListener("mousemove",Ut.handleMouseMove),document.removeEventListener("mouseup",Ut.handleMouseUp)}},[s,Ut.handleMouseMove,Ut.handleMouseUp]),T.useEffect(()=>{const H=()=>{v(k=>p(k))};return window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)},[]),T.useEffect(()=>{let H="";const ht=setInterval(()=>{try{const S=Ce(),B=sn(S),Y=rn(S);if((B?.length||0)+(Y?.length||0)===1){let it;if(B?.length===1){const rt=B[0];it=rt?.bgcolor||rt?.color}else Y?.length===1&&(it=Y[0]?.color);if(it&&typeof it=="string"&&W2(it)){const rt=`1:${it.toUpperCase()}`;rt!==H&&(H=rt,X(it));return}}H=""}catch{}},150);return()=>clearInterval(ht)},[X]),G.jsxs("div",{ref:q,className:`w-[346px] h-[526px] bg-[#0c0c0c] rounded-lg flex flex-col shadow-lg pointer-events-auto ${a}`,style:{backgroundColor:"#0c0c0c",fontFamily:"Inter, sans-serif",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.4)",position:"fixed",left:m.x,top:m.y,zIndex:1e3},children:[G.jsxs("div",{className:"w-full h-[30px] flex items-center justify-between px-2 relative border-b border-gray-600/10 cursor-move select-none",onMouseDown:Ut.handleMouseDown,children:[G.jsx("div",{className:"w-3.5 h-3.5 ml-2 pointer-events-auto cursor-pointer",onClick:H=>{H.stopPropagation(),F(k=>!k)},onMouseDown:H=>{H.stopPropagation()},children:G.jsx(Is,{className:"w-full h-full text-[#FFB900]"})}),G.jsx("div",{className:"absolute left-1/2 transform -translate-x-1/2 pointer-events-none",children:G.jsx("span",{className:"text-[14px] font-medium leading-[17px] text-center",style:{color:"#CCCCCC",fontFamily:"Inter, sans-serif",fontWeight:500},children:"Color Picker"})}),G.jsx("div",{className:"w-5 h-5 mr-1 flex items-center justify-center cursor-pointer pointer-events-auto",onClick:O.handleClose,children:G.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:"text-gray-400 hover:text-gray-300",children:G.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),V&&G.jsxs("div",{className:"absolute top-0 right-[calc(100%+8px)] bg-[#0c0c0c] rounded-md p-2 shadow-xl flex flex-col items-center gap-2",style:{zIndex:1001},children:[G.jsx("a",{href:"https://github.com/Moooonet/ComfyUI-Align",target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-full flex items-center justify-center text-[#FFFFFF] transition-transform hover:scale-105",title:"GitHub",children:G.jsx("svg",{viewBox:"0 0 24 24",className:"w-4 h-4",fill:"currentColor","aria-hidden":"true",children:G.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})})}),G.jsx("a",{href:"https://youtu.be/gQd9pWg4",target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-full flex items-center justify-center text-[#D92525] transition-transform hover:scale-105",title:"YouTube",children:G.jsx("svg",{viewBox:"0 0 24 24",className:"w-4 h-4",fill:"currentColor","aria-hidden":"true",children:G.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}),G.jsx("a",{href:"https://space.bilibili.com/3546578992236984",target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-full flex items-center justify-center text-[#00A1D6] transition-transform hover:scale-105",title:"Bilibili",children:G.jsx("svg",{viewBox:"0 0 24 24",className:"w-4 h-4",fill:"currentColor","aria-hidden":"true",children:G.jsx("path",{d:`M17.813 4.653h.854c1.51.054 2.769.578 3.773 1.574 1.004.995 1.524 2.249 1.56 3.76v7.36c-.036 1.51-.556 2.769-1.56 3.773s-2.262 1.524-3.773 1.56H5.333c-1.51-.036-2.769-.556-3.773-1.56S.036 18.858 0 17.347v-7.36c.036-1.511.556-2.765 1.56-3.76 1.004-.996 2.262-1.52 3.773-1.574h.774l-1.174-1.12a1.234 1.234 0 0 1-.373-.906c0-.356.124-.658.373-.907l.027-.027c.267-.249.573-.373.92-.373.347 0 .653.124.92.373L9.653 4.44c.071.071.134.142.187.213h4.267a.836.836 0 0 1 .16-.213l2.853-2.747c.267-.249.573-.373.92-.373.347 0 .662.151.929.4.267.249.391.551.391.907 0 .355-.124.657-.373.906L17.813 4.653zM5.333 7.24c-.746.018-1.373.276-1.88.773-.506.498-.769 1.13-.786 1.894v7.52c.017.764.28 1.395.786 1.893.507.498 1.134.756 1.88.773h13.334c.746-.017 1.373-
|
|
.275 1.88-.773.506-.498.769-1.129.786-1.893v-7.52c-.017-.765-.28-1.396-.786-1.894-.507-.497-1.134-.755-1.88-.773H5.333zM8 11.107c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c.017-.391.15-.711.4-.96.249-.249.56-.373.933-.373zm8 0c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c.017-.391.15-.711.4-.96.249-.249.56-.373.933-.373z`})})})]}),G.jsxs("div",{className:"flex-1 flex flex-col pt-2.5 px-2 overflow-hidden",children:[G.jsx("div",{className:"flex justify-center",children:G.jsx(av,{hue:U,saturation:W,value:at,onChange:gt,onChangeComplete:Jt})}),G.jsxs("div",{className:"mt-2.5 flex flex-col items-center overflow-hidden",children:[G.jsxs("div",{className:"flex items-end w-[330px]",children:[G.jsx("div",{className:"shrink-0",children:G.jsx(iv,{onColorPicked:Ot})}),G.jsx("div",{className:"w-2.5 shrink-0"}),G.jsxs("div",{className:"flex flex-col items-end gap-2.5 flex-1",children:[G.jsx(sv,{}),G.jsx(fv,{})]})]}),G.jsxs("div",{className:"mt-2.5 w-[330px] flex justify-between items-center",children:[G.jsx(Am,{}),G.jsx(cv,{})]}),G.jsx("div",{className:"mt-2.5 w-[330px] flex justify-center",children:G.jsx(dv,{})}),G.jsx("div",{className:"mt-2.5 w-[330px] flex justify-center",children:G.jsx(Av,{})})]})]}),G.jsxs("div",{className:"w-full h-10 flex items-center justify-between px-2 border-t border-gray-600/10 relative",style:{zIndex:1e3},children:[G.jsx("button",{onClick:O.handleClear,className:"w-[50px] h-5 rounded flex items-center justify-center cursor-pointer hover:opacity-80 transition-opacity shadow-md",style:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.3)"},children:G.jsx("span",{className:"text-[14px] leading-3 text-center",style:{color:"rgba(204, 204, 204, 0.88)",fontFamily:"Inter, sans-serif",fontWeight:400},children:"Clear"})}),G.jsxs("div",{className:"flex items-center gap-2",children:[G.jsx("button",{onClick:A,className:"w-[50px] h-5 rounded flex items-center justify-center cursor-pointer hover:opacity-80 transition-opacity shadow-md",style:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.3)"},children:G.jsx("span",{className:"text-[14px] leading-3 text-center",style:{color:"rgba(204, 204, 204, 0.88)",fontFamily:"Inter, sans-serif",fontWeight:400},children:"Apply"})}),G.jsx("button",{onClick:O.handleSave,className:"w-[50px] h-5 rounded flex items-center justify-center cursor-pointer hover:opacity-80 transition-opacity shadow-md",style:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.3)"},children:G.jsx("span",{className:"text-[14px] leading-3 text-center",style:{color:"rgba(204, 204, 204, 0.88)",fontFamily:"Inter, sans-serif",fontWeight:400},children:"Save"})})]})]})]})};function wv(){const[a,o]=T.useState(!1),{isOpen:s,position:c,setMouse:d,setPosition:h,panelWidth:f,panelHeight:y}=an(),p=()=>{o(!a)};T.useEffect(()=>{const C=()=>o(_=>!_);return window.addEventListener("comfyuiAlign.toggleColorPicker",C),()=>{window.removeEventListener("comfyuiAlign.toggleColorPicker",C)}},[]);const m=()=>{o(!1)},v=T.useCallback(C=>{const _=window.innerWidth||document.documentElement.clientWidth,D=window.innerHeight||document.documentElement.clientHeight;return{x:Math.max(0,Math.min(C.x,_-f)),y:Math.max(0,Math.min(C.y,D-y))}},[f,y]);return T.useEffect(()=>{const C=_=>d(_.clientX,_.clientY);return window.addEventListener("mousemove",C),()=>window.removeEventListener("mousemove",C)},[d]),T.useEffect(()=>{const C=()=>{const _=an.getState().position;h(v(_))};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[v,h]),G.jsxs("div",{className:"h-screen relative pointer-events-none",children:[s&&G.jsx("div",{className:"fixed pointer-events-none",style:{left:c.x,top:c.y,zIndex:2e3},children:G.jsxs("div",{className:"flex flex-col items-center",children:[G.jsx(vm,{}),G.jsx("div",{className:"pointer-events-auto",children:G.jsx(nv,{onMoonIconClick:p})})]})}),a&&G.jsx(Tv,{onClose:m})]})}const _v=Object.freeze(Object.defineProperty({__proto__:null,default:wv},Symbol.toStringTag,{value:"Module"}));function Hv(a){if(a>=0&&a<=8){const o=Zs[a],s=Pt.getState();s.setFromHex(o),s.addToHistory(o),xm(o);return}if(a===9){Cm();return}if(a===10){window.dispatchEvent(new CustomEvent("comfyuiAlign.toggleColorPicker"));return}}const Nv=Object.freeze(Object.defineProperty({__proto__:null,executeColorBarAction:Hv},Symbol.toStringTag,{value:"Module"}));
|