From 276abd49f856686dca09e697588b6bbc77f28468 Mon Sep 17 00:00:00 2001 From: Admin Date: Thu, 21 Aug 2025 15:37:34 +0700 Subject: [PATCH] first commit --- .env.example | 1 - .gitignore | 3 +- .../assets/popup-DfztxwQY.css | 1 - .../assets/popup.js | 74 ++++----- .../assets/product-api.service-BCmn_jbQ.js | 6 - .../content/content.js | 8 +- auto-post-facebook-extensions_1.0/index.html | 4 +- package-lock.json | 15 ++ package.json | 2 + .../assets/popup.js | 74 ++++----- .../content/content.js | 8 +- .../index.html | 4 +- server/.env.example | 1 + server/.gitignore | 3 + server/data.json | 21 ++- server/package-lock.json | 154 +++++++++++++++++- server/package.json | 5 +- server/server.js | 128 ++++++++++++++- src/api/product-api.service.ts | 6 - src/components/btn/confirm-alert.tsx | 2 +- src/components/post-table.tsx | 70 ++++---- src/components/product-modal.tsx | 19 ++- src/content/content.ts | 18 +- src/lib/axios.ts | 1 - src/lib/utils.ts | 4 +- 25 files changed, 474 insertions(+), 158 deletions(-) delete mode 100644 auto-post-facebook-extensions_1.0/assets/popup-DfztxwQY.css delete mode 100644 auto-post-facebook-extensions_1.0/assets/product-api.service-BCmn_jbQ.js create mode 100644 server/.env.example diff --git a/.env.example b/.env.example index 3954676..7ac9757 100644 --- a/.env.example +++ b/.env.example @@ -2,6 +2,5 @@ VITE_API_URL="" VITE_API_TOKEN="" -VITE_API_SYNC_URL="" diff --git a/.gitignore b/.gitignore index 1b4b58e..1046fe7 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,8 @@ node_modules dist dist-content dist-ssr -auto-post-facebook-extensions +/auto-post-facebook-extensions* +auto-post-facebook-extensions_1.0/ *.local # Editor directories and files diff --git a/auto-post-facebook-extensions_1.0/assets/popup-DfztxwQY.css b/auto-post-facebook-extensions_1.0/assets/popup-DfztxwQY.css deleted file mode 100644 index 8e977ae..0000000 --- a/auto-post-facebook-extensions_1.0/assets/popup-DfztxwQY.css +++ /dev/null @@ -1 +0,0 @@ -/*! tailwindcss v4.1.12 | 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)))){*,:before,: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-tracking: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-outline-style:solid;--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;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--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-red-500:oklch(63.7% .237 25.331);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--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-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-widest:.1em;--radius-xs:.125rem;--animate-spin:spin 1s linear 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{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-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}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,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}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::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}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip:auto;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1{top:calc(var(--spacing)*1)}.top-1\/2{top:50%}.top-2\.5{top:calc(var(--spacing)*2.5)}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-4{right:calc(var(--spacing)*4)}.right-8{right:calc(var(--spacing)*8)}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.z-10{z-index:10}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.\!-mx-3{margin-inline:calc(var(--spacing)*-3)!important}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-1{width:calc(var(--spacing)*1);height:calc(var(--spacing)*1)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\(--cell-size\){height:var(--cell-size)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-24{height:calc(var(--spacing)*24)}.h-32{height:calc(var(--spacing)*32)}.h-\[95vh\]{height:95vh}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\(--radix-dropdown-menu-content-available-height\){max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.max-h-\[80vh\]{max-height:80vh}.min-h-16{min-height:calc(var(--spacing)*16)}.min-h-24{min-height:calc(var(--spacing)*24)}.min-h-28{min-height:calc(var(--spacing)*28)}.min-h-\[600px\]{min-height:600px}.w-\(--cell-size\){width:var(--cell-size)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-32{width:calc(var(--spacing)*32)}.w-72{width:calc(var(--spacing)*72)}.w-\[70px\]{width:70px}.w-\[80px\]{width:80px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[200px\]{max-width:200px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-\(--cell-size\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[100px\]{min-width:100px}.min-w-\[200px\]{min-width:200px}.min-w-\[500px\]{min-width:500px}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--radix-dropdown-menu-content-transform-origin\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-none{translate:none}.scale-3d{scale:var(--tw-scale-x)var(--tw-scale-y)var(--tw-scale-z)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}: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)))}: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)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-gray-200{border-color:var(--color-gray-200)}.border-green-200{border-color:var(--color-green-200)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-yellow-200{border-color:var(--color-yellow-200)}.bg-\[rgba\(255\,255\,255\,\.6\)\]{background-color:#fff9}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-green-100{background-color:var(--color-green-100)}.bg-muted,.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/20{background-color:color-mix(in oklab,var(--primary)20%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.fill-yellow-400{fill:var(--color-yellow-400)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-\[3px\]{padding:3px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-wrap{text-wrap:wrap}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-foreground{color:var(--accent-foreground)}.text-blue-600{color:var(--color-blue-600)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-gray-300{color:var(--color-gray-300)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-800{color:var(--color-gray-800)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-800{color:var(--color-yellow-800)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.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,)}.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,)}.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,)}.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,)}.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,)}.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,)}.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,)}.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,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.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)}.shadow-\[-4px_0_8px_-2px_rgba\(0\,0\,0\,0\.1\)\]{--tw-shadow:-4px 0 8px -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)}.shadow-\[-4px_0_8px_rgba\(0\,0\,0\,0\.1\)\]{--tw-shadow:-4px 0 8px 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)}.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)}.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)}.shadow-sm{--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)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.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)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.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,)}.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,)}.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,)}.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,)!important}.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,)}.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,)}.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,)}.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,)}.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,)}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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))}.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))}.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))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing)*8)}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.paused{animation-play-state:paused}.ring-inset{--tw-ring-inset:inset}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-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)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media (hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:\!text-destructive:hover{color:var(--destructive)!important}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-red-500:hover{color:var(--color-red-500)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-destructive:focus{color:var(--destructive)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-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)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-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)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-focus\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-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)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[error\=true\]\:text-destructive[data-error=true]{color:var(--destructive)}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing)*8)}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:rounded-r-md[data-range-end=true]{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:rounded-l-md[data-range-start=true]{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--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)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}@media (min-width:40rem){.sm\:max-w-4xl{max-width:var(--container-4xl)}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:text-left{text-align:left}}@media (min-width:48rem){.md\:max-w-4xl{max-width:var(--container-4xl)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (min-width:64rem){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:text-muted-foreground:is(.dark *){color:var(--muted-foreground)}@media (hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--foreground)}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--muted-foreground)}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@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-tracking{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:"";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:"";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:"";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-outline-style{syntax:"*";inherits:false;initial-value:solid}@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:"";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 spin{to{transform:rotate(360deg)}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}} diff --git a/auto-post-facebook-extensions_1.0/assets/popup.js b/auto-post-facebook-extensions_1.0/assets/popup.js index 355efc7..f052147 100644 --- a/auto-post-facebook-extensions_1.0/assets/popup.js +++ b/auto-post-facebook-extensions_1.0/assets/popup.js @@ -1,4 +1,4 @@ -import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./product-api.service-BCmn_jbQ.js";import{d as Xw,M as Kw,r as $w}from"./message.service-DcR3euAR.js";function Jw(n,a){for(var i=0;is[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var fd={exports:{}},Ws={};/** +import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as Sa}from"./product-api.service-Dn0sYl6J.js";import{d as kw,M as zw,r as Uw}from"./message.service-DcR3euAR.js";function Lw(n,a){for(var i=0;is[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var od={exports:{}},$s={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gg;function Ww(){if(Gg)return Ws;Gg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:c}}return Ws.Fragment=a,Ws.jsx=i,Ws.jsxs=i,Ws}var Fg;function e1(){return Fg||(Fg=1,fd.exports=Ww()),fd.exports}var y=e1(),Rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Hr=typeof window>"u"||"Deno"in globalThis;function Wt(){}function t1(n,a){return typeof n=="function"?n(a):n}function kd(n){return typeof n=="number"&&n>=0&&n!==1/0}function lb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function ir(n,a){return typeof n=="function"?n(a):n}function wn(n,a){return typeof n=="function"?n(a):n}function Zg(n,a){const{type:i="all",exact:s,fetchStatus:o,predicate:c,queryKey:d,stale:h}=n;if(d){if(s){if(a.queryHash!==fh(d,a.options))return!1}else if(!cl(a.queryKey,d))return!1}if(i!=="all"){const p=a.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||o&&o!==a.state.fetchStatus||c&&!c(a))}function Ig(n,a){const{exact:i,status:s,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(i){if(ul(a.options.mutationKey)!==ul(c))return!1}else if(!cl(a.options.mutationKey,c))return!1}return!(s&&a.state.status!==s||o&&!o(a))}function fh(n,a){return(a?.queryKeyHashFn||ul)(n)}function ul(n){return JSON.stringify(n,(a,i)=>Ud(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function cl(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(i=>cl(n[i],a[i])):!1}function ob(n,a){if(n===a)return n;const i=Yg(n)&&Yg(a);if(i||Ud(n)&&Ud(a)){const s=i?n:Object.keys(n),o=s.length,c=i?a:Object.keys(a),d=c.length,h=i?[]:{},p=new Set(s);let m=0;for(let g=0;g{setTimeout(a,n)})}function Ld(n,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,a):i.structuralSharing!==!1?ob(n,a):a}function a1(n,a,i=0){const s=[...n,a];return i&&s.length>i?s.slice(1):s}function r1(n,a,i=0){const s=[a,...n];return i&&s.length>i?s.slice(0,-1):s}var dh=Symbol();function ub(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===dh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function i1(n,a){return typeof n=="function"?n(...a):!!n}var s1=class extends Rl{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!Hr&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},hh=new s1,l1=class extends Rl{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!Hr&&window.addEventListener){const a=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(i=>{i(n)}))}isOnline(){return this.#t}},uu=new l1;function Vd(){let n,a;const i=new Promise((o,c)=>{n=o,a=c});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},i.reject=o=>{s({status:"rejected",reason:o}),a(o)},i}function o1(n){return Math.min(1e3*2**n,3e4)}function cb(n){return(n??"online")==="online"?uu.isOnline():!0}var fb=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function db(n){let a=!1,i=0,s;const o=Vd(),c=()=>o.status!=="pending",d=_=>{c()||(w(new fb(_)),n.abort?.())},h=()=>{a=!0},p=()=>{a=!1},m=()=>hh.isFocused()&&(n.networkMode==="always"||uu.isOnline())&&n.canRun(),g=()=>cb(n.networkMode)&&n.canRun(),S=_=>{c()||(s?.(),o.resolve(_))},w=_=>{c()||(s?.(),o.reject(_))},O=()=>new Promise(_=>{s=T=>{(c()||m())&&_(T)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),A=()=>{if(c())return;let _;const T=i===0?n.initialPromise:void 0;try{_=T??n.fn()}catch(k){_=Promise.reject(k)}Promise.resolve(_).then(S).catch(k=>{if(c())return;const M=n.retry??(Hr?0:3),U=n.retryDelay??o1,G=typeof U=="function"?U(i,k):U,N=M===!0||typeof M=="number"&&im()?void 0:O()).then(()=>{a?w(k):A()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?A():O().then(A),o)}}var u1=n=>setTimeout(n,0);function c1(){let n=[],a=0,i=h=>{h()},s=h=>{h()},o=u1;const c=h=>{a?n.push(h):o(()=>{i(h)})},d=()=>{const h=n;n=[],h.length&&o(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||d()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{o=h}}}var kt=c1(),hb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kd(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Hr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},f1=class extends hb{#t;#e;#n;#a;#r;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=d1(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const i=Ld(this.state.data,n,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),i}setState(n,a){this.#i({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#r?.promise;return this.#r?.cancel(n),a?a.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>wn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ir(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!lb(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},o=()=>{const h=ub(this.options,a),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#s=!1,this.options.persister?this.options.persister(h,m,this):h(m)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return s(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#r=db({initialPromise:a?.initialPromise,fn:d.fetchFn,abort:i.abort.bind(i),onFail:(h,p)=>{this.#i({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof fb){if(h.silent)return this.#r.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const a=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...mb(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?s:void 0,s;case"error":const o=n.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=a(this.state),kt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function mb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function d1(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,i=a!==void 0,s=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var h1=class extends Rl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,i){const s=a.queryKey,o=a.queryHash??fh(s,a);let c=this.get(o);return c||(c=new f1({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(a),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){kt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Zg(a,i))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(i=>Zg(n,i)):a}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},m1=class extends hb{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||p1(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(a=>a!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})};this.#n=db({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,c)=>{this.#a({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",s=!this.#n.canStart();try{if(i)a();else{this.#a({type:"pending",variables:n,isPaused:s}),await this.#e.config.onMutate?.(n,this);const c=await this.options.onMutate?.(n);c!==this.state.context&&this.#a({type:"pending",context:c,variables:n,isPaused:s})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#a({type:"error",error:o})}}finally{this.#e.runNext(this)}}#a(n){const a=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),kt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function p1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var v1=class extends Rl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,i){const s=new m1({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:i});return this.add(s),s}add(n){this.#t.add(n);const a=Qo(n);if(typeof a=="string"){const i=this.#e.get(a);i?i.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=Qo(n);if(typeof a=="string"){const i=this.#e.get(a);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Qo(n);if(typeof a=="string"){const s=this.#e.get(a)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const a=Qo(n);return typeof a=="string"?this.#e.get(a)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){kt.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Ig(a,i))}findAll(n={}){return this.getAll().filter(a=>Ig(n,a))}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return kt.batch(()=>Promise.all(n.map(a=>a.continue().catch(Wt))))}};function Qo(n){return n.options.scope?.id}function Xg(n){return{onFetch:(a,i)=>{const s=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const S=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(a.signal.aborted?g=!0:a.signal.addEventListener("abort",()=>{g=!0}),a.signal)})},w=ub(a.options,a.fetchOptions),O=async(A,_,T)=>{if(g)return Promise.reject();if(_==null&&A.pages.length)return Promise.resolve(A);const M=(()=>{const W={client:a.client,queryKey:a.queryKey,pageParam:_,direction:T?"backward":"forward",meta:a.options.meta};return S(W),W})(),U=await w(M),{maxPages:G}=a.options,N=T?r1:a1;return{pages:N(A.pages,U,G),pageParams:N(A.pageParams,_,G)}};if(o&&c.length){const A=o==="backward",_=A?g1:Kg,T={pages:c,pageParams:d},k=_(s,T);h=await O(T,k,A)}else{const A=n??c.length;do{const _=p===0?d[0]??s.initialPageParam:Kg(s,h);if(p>0&&_==null)break;h=await O(h,_),p++}while(pa.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i):a.fetchFn=m}}}function Kg(n,{pages:a,pageParams:i}){const s=a.length-1;return a.length>0?n.getNextPageParam(a[s],a,i[s],i):void 0}function g1(n,{pages:a,pageParams:i}){return a.length>0?n.getPreviousPageParam?.(a[0],a,i[0],i):void 0}var y1=class{#t;#e;#n;#a;#r;#l;#s;#i;constructor(n={}){this.#t=n.queryCache||new h1,this.#e=n.mutationCache||new v1,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=hh.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=uu.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),i=this.#t.build(this,a),s=i.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(ir(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:i})=>{const s=i.data;return[a,s]})}setQueryData(n,a,i){const s=this.defaultQueryOptions({queryKey:n}),c=this.#t.get(s.queryHash)?.state.data,d=t1(a,c);if(d!==void 0)return this.#t.build(this,s).setData(d,{...i,manual:!0})}setQueriesData(n,a,i){return kt.batch(()=>this.#t.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,a,i)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;kt.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(n,a){const i=this.#t;return kt.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const i={revert:!0,...a},s=kt.batch(()=>this.#t.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(Wt).catch(Wt)}invalidateQueries(n,a={}){return kt.batch(()=>(this.#t.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},s=kt.batch(()=>this.#t.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Wt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Wt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const i=this.#t.build(this,a);return i.isStaleByTime(ir(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Wt).catch(Wt)}fetchInfiniteQuery(n){return n.behavior=Xg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Wt).catch(Wt)}ensureInfiniteQueryData(n){return n.behavior=Xg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return uu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#a.set(ul(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],i={};return a.forEach(s=>{cl(n,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(n,a){this.#r.set(ul(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#r.values()],i={};return a.forEach(s=>{cl(n,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=fh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===dh&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},b1=class extends Rl{constructor(n,a){super(),this.options=a,this.#t=n,this.#i=null,this.#s=Vd(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#l;#s;#i;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),$g(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bd(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bd(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,i=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),a._defaulted&&!zd(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&Jg(this.#e,i,this.options,a)&&this.#f(),this.updateResult(),s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||ir(this.options.staleTime,this.#e)!==ir(a.staleTime,this.#e))&&this.#v();const o=this.#g();s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||o!==this.#o)&&this.#y(o)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),i=this.createResult(a,n);return S1(this,i)&&(this.#a=i,this.#l=this.options,this.#r=this.#e.state),i}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),a?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),i=this.#t.getQueryCache().build(this.#t,a);return i.fetch().then(()=>this.createResult(i,a))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#_();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(Wt)),a}#v(){this.#x();const n=ir(this.options.staleTime,this.#e);if(Hr||this.#a.isStale||!kd(n))return;const i=lb(this.#a.dataUpdatedAt,n)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#o=n,!(Hr||wn(this.options.enabled,this.#e)===!1||!kd(this.#o)||this.#o===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||hh.isFocused())&&this.#f()},this.#o))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,a){const i=this.#e,s=this.options,o=this.#a,c=this.#r,d=this.#l,p=n!==i?n.state:this.#n,{state:m}=n;let g={...m},S=!1,w;if(a._optimisticResults){const Z=this.hasListeners(),J=!Z&&$g(n,a),le=Z&&Jg(n,i,a,s);(J||le)&&(g={...g,...mb(m.data,n.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:O,errorUpdatedAt:A,status:_}=g;w=g.data;let T=!1;if(a.placeholderData!==void 0&&w===void 0&&_==="pending"){let Z;o?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(Z=o.data,T=!0):Z=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,Z!==void 0&&(_="success",w=Ld(o?.data,Z,a),S=!0)}if(a.select&&w!==void 0&&!T)if(o&&w===c?.data&&a.select===this.#p)w=this.#d;else try{this.#p=a.select,w=a.select(w),w=Ld(o?.data,w,a),this.#d=w,this.#i=null}catch(Z){this.#i=Z}this.#i&&(O=this.#i,w=this.#d,A=Date.now(),_="error");const k=g.fetchStatus==="fetching",M=_==="pending",U=_==="error",G=M&&k,N=w!==void 0,F={status:_,fetchStatus:g.fetchStatus,isPending:M,isSuccess:_==="success",isError:U,isInitialLoading:G,isLoading:G,data:w,dataUpdatedAt:g.dataUpdatedAt,error:O,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:k,isRefetching:k&&!M,isLoadingError:U&&!N,isPaused:g.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:U&&N,isStale:mh(n,a),refetch:this.refetch,promise:this.#s,isEnabled:wn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const Z=ce=>{F.status==="error"?ce.reject(F.error):F.data!==void 0&&ce.resolve(F.data)},J=()=>{const ce=this.#s=F.promise=Vd();Z(ce)},le=this.#s;switch(le.status){case"pending":n.queryHash===i.queryHash&&Z(le);break;case"fulfilled":(F.status==="error"||F.data!==le.value)&&J();break;case"rejected":(F.status!=="error"||F.error!==le.reason)&&J();break}}return F}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#l=this.options,this.#r.data!==void 0&&(this.#h=this.#e),zd(a,n))return;this.#a=a;const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&c.has(h)})};this.#w({listeners:i()})}#_(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){kt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function x1(n,a){return wn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function $g(n,a){return x1(n,a)||n.state.data!==void 0&&Bd(n,a,a.refetchOnMount)}function Bd(n,a,i){if(wn(a.enabled,n)!==!1&&ir(a.staleTime,n)!=="static"){const s=typeof i=="function"?i(n):i;return s==="always"||s!==!1&&mh(n,a)}return!1}function Jg(n,a,i,s){return(n!==a||wn(s.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&mh(n,i)}function mh(n,a){return wn(a.enabled,n)!==!1&&n.isStaleByTime(ir(a.staleTime,n))}function S1(n,a){return!zd(n.getCurrentResult(),a)}var dd={exports:{}},Ue={};/** + */var Pg;function Vw(){if(Pg)return $s;Pg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:c}}return $s.Fragment=a,$s.jsx=i,$s.jsxs=i,$s}var Gg;function Bw(){return Gg||(Gg=1,od.exports=Vw()),od.exports}var y=Bw(),Cl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vr=typeof window>"u"||"Deno"in globalThis;function Wt(){}function Hw(n,a){return typeof n=="function"?n(a):n}function Nd(n){return typeof n=="number"&&n>=0&&n!==1/0}function rb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function rr(n,a){return typeof n=="function"?n(a):n}function wn(n,a){return typeof n=="function"?n(a):n}function Fg(n,a){const{type:i="all",exact:s,fetchStatus:o,predicate:c,queryKey:d,stale:h}=n;if(d){if(s){if(a.queryHash!==fh(d,a.options))return!1}else if(!ol(a.queryKey,d))return!1}if(i!=="all"){const p=a.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||o&&o!==a.state.fetchStatus||c&&!c(a))}function Zg(n,a){const{exact:i,status:s,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(i){if(ll(a.options.mutationKey)!==ll(c))return!1}else if(!ol(a.options.mutationKey,c))return!1}return!(s&&a.state.status!==s||o&&!o(a))}function fh(n,a){return(a?.queryKeyHashFn||ll)(n)}function ll(n){return JSON.stringify(n,(a,i)=>jd(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function ol(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(i=>ol(n[i],a[i])):!1}function ib(n,a){if(n===a)return n;const i=Yg(n)&&Yg(a);if(i||jd(n)&&jd(a)){const s=i?n:Object.keys(n),o=s.length,c=i?a:Object.keys(a),d=c.length,h=i?[]:{},p=new Set(s);let m=0;for(let g=0;g{setTimeout(a,n)})}function kd(n,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,a):i.structuralSharing!==!1?ib(n,a):a}function Pw(n,a,i=0){const s=[...n,a];return i&&s.length>i?s.slice(1):s}function Gw(n,a,i=0){const s=[a,...n];return i&&s.length>i?s.slice(0,-1):s}var dh=Symbol();function sb(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===dh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Fw(n,a){return typeof n=="function"?n(...a):!!n}var Zw=class extends Cl{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!Vr&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},hh=new Zw,Yw=class extends Cl{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!Vr&&window.addEventListener){const a=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(i=>{i(n)}))}isOnline(){return this.#t}},uu=new Yw;function zd(){let n,a;const i=new Promise((o,c)=>{n=o,a=c});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},i.reject=o=>{s({status:"rejected",reason:o}),a(o)},i}function Iw(n){return Math.min(1e3*2**n,3e4)}function lb(n){return(n??"online")==="online"?uu.isOnline():!0}var ob=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function ub(n){let a=!1,i=0,s;const o=zd(),c=()=>o.status!=="pending",d=_=>{c()||(w(new ob(_)),n.abort?.())},h=()=>{a=!0},p=()=>{a=!1},m=()=>hh.isFocused()&&(n.networkMode==="always"||uu.isOnline())&&n.canRun(),g=()=>lb(n.networkMode)&&n.canRun(),S=_=>{c()||(s?.(),o.resolve(_))},w=_=>{c()||(s?.(),o.reject(_))},A=()=>new Promise(_=>{s=C=>{(c()||m())&&_(C)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),O=()=>{if(c())return;let _;const C=i===0?n.initialPromise:void 0;try{_=C??n.fn()}catch(U){_=Promise.reject(U)}Promise.resolve(_).then(S).catch(U=>{if(c())return;const N=n.retry??(Vr?0:3),M=n.retryDelay??Iw,L=typeof M=="function"?M(i,U):M,B=N===!0||typeof N=="number"&&im()?void 0:A()).then(()=>{a?w(U):O()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?O():A().then(O),o)}}var Qw=n=>setTimeout(n,0);function Xw(){let n=[],a=0,i=h=>{h()},s=h=>{h()},o=Qw;const c=h=>{a?n.push(h):o(()=>{i(h)})},d=()=>{const h=n;n=[],h.length&&o(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||d()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{o=h}}}var kt=Xw(),cb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nd(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Vr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},Kw=class extends cb{#t;#e;#n;#a;#r;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=$w(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const i=kd(this.state.data,n,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),i}setState(n,a){this.#i({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#r?.promise;return this.#r?.cancel(n),a?a.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>wn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>rr(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!rb(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},o=()=>{const h=sb(this.options,a),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#s=!1,this.options.persister?this.options.persister(h,m,this):h(m)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return s(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#r=ub({initialPromise:a?.initialPromise,fn:d.fetchFn,abort:i.abort.bind(i),onFail:(h,p)=>{this.#i({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof ob){if(h.silent)return this.#r.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const a=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...fb(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?s:void 0,s;case"error":const o=n.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=a(this.state),kt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function fb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $w(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,i=a!==void 0,s=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Jw=class extends Cl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,i){const s=a.queryKey,o=a.queryHash??fh(s,a);let c=this.get(o);return c||(c=new Kw({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(a),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){kt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Fg(a,i))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(i=>Fg(n,i)):a}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Ww=class extends cb{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||e1(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(a=>a!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})};this.#n=ub({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,c)=>{this.#a({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",s=!this.#n.canStart();try{if(i)a();else{this.#a({type:"pending",variables:n,isPaused:s}),await this.#e.config.onMutate?.(n,this);const c=await this.options.onMutate?.(n);c!==this.state.context&&this.#a({type:"pending",context:c,variables:n,isPaused:s})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#a({type:"error",error:o})}}finally{this.#e.runNext(this)}}#a(n){const a=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),kt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function e1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var t1=class extends Cl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,i){const s=new Ww({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:i});return this.add(s),s}add(n){this.#t.add(n);const a=Io(n);if(typeof a=="string"){const i=this.#e.get(a);i?i.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=Io(n);if(typeof a=="string"){const i=this.#e.get(a);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Io(n);if(typeof a=="string"){const s=this.#e.get(a)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const a=Io(n);return typeof a=="string"?this.#e.get(a)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){kt.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Zg(a,i))}findAll(n={}){return this.getAll().filter(a=>Zg(n,a))}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return kt.batch(()=>Promise.all(n.map(a=>a.continue().catch(Wt))))}};function Io(n){return n.options.scope?.id}function Qg(n){return{onFetch:(a,i)=>{const s=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const S=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(a.signal.aborted?g=!0:a.signal.addEventListener("abort",()=>{g=!0}),a.signal)})},w=sb(a.options,a.fetchOptions),A=async(O,_,C)=>{if(g)return Promise.reject();if(_==null&&O.pages.length)return Promise.resolve(O);const N=(()=>{const ne={client:a.client,queryKey:a.queryKey,pageParam:_,direction:C?"backward":"forward",meta:a.options.meta};return S(ne),ne})(),M=await w(N),{maxPages:L}=a.options,B=C?Gw:Pw;return{pages:B(O.pages,M,L),pageParams:B(O.pageParams,_,L)}};if(o&&c.length){const O=o==="backward",_=O?n1:Xg,C={pages:c,pageParams:d},U=_(s,C);h=await A(C,U,O)}else{const O=n??c.length;do{const _=p===0?d[0]??s.initialPageParam:Xg(s,h);if(p>0&&_==null)break;h=await A(h,_),p++}while(pa.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i):a.fetchFn=m}}}function Xg(n,{pages:a,pageParams:i}){const s=a.length-1;return a.length>0?n.getNextPageParam(a[s],a,i[s],i):void 0}function n1(n,{pages:a,pageParams:i}){return a.length>0?n.getPreviousPageParam?.(a[0],a,i[0],i):void 0}var a1=class{#t;#e;#n;#a;#r;#l;#s;#i;constructor(n={}){this.#t=n.queryCache||new Jw,this.#e=n.mutationCache||new t1,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=hh.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=uu.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),i=this.#t.build(this,a),s=i.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(rr(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:i})=>{const s=i.data;return[a,s]})}setQueryData(n,a,i){const s=this.defaultQueryOptions({queryKey:n}),c=this.#t.get(s.queryHash)?.state.data,d=Hw(a,c);if(d!==void 0)return this.#t.build(this,s).setData(d,{...i,manual:!0})}setQueriesData(n,a,i){return kt.batch(()=>this.#t.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,a,i)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;kt.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(n,a){const i=this.#t;return kt.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const i={revert:!0,...a},s=kt.batch(()=>this.#t.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(Wt).catch(Wt)}invalidateQueries(n,a={}){return kt.batch(()=>(this.#t.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},s=kt.batch(()=>this.#t.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Wt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Wt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const i=this.#t.build(this,a);return i.isStaleByTime(rr(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Wt).catch(Wt)}fetchInfiniteQuery(n){return n.behavior=Qg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Wt).catch(Wt)}ensureInfiniteQueryData(n){return n.behavior=Qg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return uu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#a.set(ll(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],i={};return a.forEach(s=>{ol(n,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(n,a){this.#r.set(ll(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#r.values()],i={};return a.forEach(s=>{ol(n,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=fh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===dh&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},r1=class extends Cl{constructor(n,a){super(),this.options=a,this.#t=n,this.#i=null,this.#s=zd(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#l;#s;#i;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Kg(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ud(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ud(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,i=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),a._defaulted&&!Dd(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&$g(this.#e,i,this.options,a)&&this.#f(),this.updateResult(),s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||rr(this.options.staleTime,this.#e)!==rr(a.staleTime,this.#e))&&this.#v();const o=this.#g();s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||o!==this.#o)&&this.#y(o)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),i=this.createResult(a,n);return s1(this,i)&&(this.#a=i,this.#l=this.options,this.#r=this.#e.state),i}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),a?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),i=this.#t.getQueryCache().build(this.#t,a);return i.fetch().then(()=>this.createResult(i,a))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#_();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(Wt)),a}#v(){this.#x();const n=rr(this.options.staleTime,this.#e);if(Vr||this.#a.isStale||!Nd(n))return;const i=rb(this.#a.dataUpdatedAt,n)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#o=n,!(Vr||wn(this.options.enabled,this.#e)===!1||!Nd(this.#o)||this.#o===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||hh.isFocused())&&this.#f()},this.#o))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,a){const i=this.#e,s=this.options,o=this.#a,c=this.#r,d=this.#l,p=n!==i?n.state:this.#n,{state:m}=n;let g={...m},S=!1,w;if(a._optimisticResults){const z=this.hasListeners(),ae=!z&&Kg(n,a),oe=z&&$g(n,i,a,s);(ae||oe)&&(g={...g,...fb(m.data,n.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:A,errorUpdatedAt:O,status:_}=g;w=g.data;let C=!1;if(a.placeholderData!==void 0&&w===void 0&&_==="pending"){let z;o?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(z=o.data,C=!0):z=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,z!==void 0&&(_="success",w=kd(o?.data,z,a),S=!0)}if(a.select&&w!==void 0&&!C)if(o&&w===c?.data&&a.select===this.#p)w=this.#d;else try{this.#p=a.select,w=a.select(w),w=kd(o?.data,w,a),this.#d=w,this.#i=null}catch(z){this.#i=z}this.#i&&(A=this.#i,w=this.#d,O=Date.now(),_="error");const U=g.fetchStatus==="fetching",N=_==="pending",M=_==="error",L=N&&U,B=w!==void 0,Z={status:_,fetchStatus:g.fetchStatus,isPending:N,isSuccess:_==="success",isError:M,isInitialLoading:L,isLoading:L,data:w,dataUpdatedAt:g.dataUpdatedAt,error:A,errorUpdatedAt:O,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:U,isRefetching:U&&!N,isLoadingError:M&&!B,isPaused:g.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:M&&B,isStale:mh(n,a),refetch:this.refetch,promise:this.#s,isEnabled:wn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const z=Se=>{Z.status==="error"?Se.reject(Z.error):Z.data!==void 0&&Se.resolve(Z.data)},ae=()=>{const Se=this.#s=Z.promise=zd();z(Se)},oe=this.#s;switch(oe.status){case"pending":n.queryHash===i.queryHash&&z(oe);break;case"fulfilled":(Z.status==="error"||Z.data!==oe.value)&&ae();break;case"rejected":(Z.status!=="error"||Z.error!==oe.reason)&&ae();break}}return Z}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#l=this.options,this.#r.data!==void 0&&(this.#h=this.#e),Dd(a,n))return;this.#a=a;const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&c.has(h)})};this.#w({listeners:i()})}#_(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){kt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function i1(n,a){return wn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function Kg(n,a){return i1(n,a)||n.state.data!==void 0&&Ud(n,a,a.refetchOnMount)}function Ud(n,a,i){if(wn(a.enabled,n)!==!1&&rr(a.staleTime,n)!=="static"){const s=typeof i=="function"?i(n):i;return s==="always"||s!==!1&&mh(n,a)}return!1}function $g(n,a,i,s){return(n!==a||wn(s.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&mh(n,i)}function mh(n,a){return wn(a.enabled,n)!==!1&&n.isStaleByTime(rr(a.staleTime,n))}function s1(n,a){return!Dd(n.getCurrentResult(),a)}var ud={exports:{}},Ue={};/** * @license React * react.production.js * @@ -14,7 +14,7 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Wg;function _1(){if(Wg)return Ue;Wg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,_={};function T(C,I,ie){this.props=C,this.context=I,this.refs=_,this.updater=ie||O}T.prototype.isReactComponent={},T.prototype.setState=function(C,I){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,I,"setState")},T.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function k(){}k.prototype=T.prototype;function M(C,I,ie){this.props=C,this.context=I,this.refs=_,this.updater=ie||O}var U=M.prototype=new k;U.constructor=M,A(U,T.prototype),U.isPureReactComponent=!0;var G=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},W=Object.prototype.hasOwnProperty;function F(C,I,ie,te,oe,Re){return ie=Re.ref,{$$typeof:n,type:C,key:I,ref:ie!==void 0?ie:null,props:Re}}function Z(C,I){return F(C.type,I,void 0,void 0,void 0,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function le(C){var I={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ie){return I[ie]})}var ce=/\/+/g;function re(C,I){return typeof C=="object"&&C!==null&&C.key!=null?le(""+C.key):I.toString(36)}function he(){}function pe(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(he,he):(C.status="pending",C.then(function(I){C.status==="pending"&&(C.status="fulfilled",C.value=I)},function(I){C.status==="pending"&&(C.status="rejected",C.reason=I)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ge(C,I,ie,te,oe){var Re=typeof C;(Re==="undefined"||Re==="boolean")&&(C=null);var Se=!1;if(C===null)Se=!0;else switch(Re){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(C.$$typeof){case n:case a:Se=!0;break;case g:return Se=C._init,ge(Se(C._payload),I,ie,te,oe)}}if(Se)return oe=oe(C),Se=te===""?"."+re(C,0):te,G(oe)?(ie="",Se!=null&&(ie=Se.replace(ce,"$&/")+"/"),ge(oe,I,ie,"",function(Xe){return Xe})):oe!=null&&(J(oe)&&(oe=Z(oe,ie+(oe.key==null||C&&C.key===oe.key?"":(""+oe.key).replace(ce,"$&/")+"/")+Se)),I.push(oe)),1;Se=0;var ne=te===""?".":te+":";if(G(C))for(var Te=0;Te{const a=b.useContext(vb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},E1=({client:n,children:a})=>(b.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),y.jsx(vb.Provider,{value:n,children:a})),gb=b.createContext(!1),C1=()=>b.useContext(gb);gb.Provider;function T1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var A1=b.createContext(T1()),R1=()=>b.useContext(A1),O1=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},M1=n=>{b.useEffect(()=>{n.clearReset()},[n])},N1=({result:n,errorResetBoundary:a,throwOnError:i,query:s,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||i1(i,[n.error,s])),D1=n=>{if(n.suspense){const a=s=>s==="static"?s:Math.max(s??1e3,1e3),i=n.staleTime;n.staleTime=typeof i=="function"?(...s)=>a(i(...s)):a(i),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},j1=(n,a)=>n.isLoading&&n.isFetching&&!a,k1=(n,a)=>n?.suspense&&a.isPending,ty=(n,a,i)=>a.fetchOptimistic(n).catch(()=>{i.clearReset()});function z1(n,a,i){const s=C1(),o=R1(),c=w1(),d=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",D1(d),O1(d,o),M1(o);const h=!c.getQueryCache().get(d.queryHash),[p]=b.useState(()=>new a(c,d)),m=p.getOptimisticResult(d),g=!s&&n.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(S=>{const w=g?p.subscribe(kt.batchCalls(S)):Wt;return p.updateResult(),w},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(d)},[d,p]),k1(d,m))throw ty(d,p,o);if(N1({result:m,errorResetBoundary:o,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!Hr&&j1(m,s)&&(h?ty(d,p,o):c.getQueryCache().get(d.queryHash)?.promise)?.catch(Wt).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function Hd(n,a){return z1(n,b1)}const U1=new y1({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var hd={exports:{}},el={},md={exports:{}},pd={};/** + */var Jg;function l1(){if(Jg)return Ue;Jg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.iterator;function w(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,_={};function C(T,Y,se){this.props=T,this.context=Y,this.refs=_,this.updater=se||A}C.prototype.isReactComponent={},C.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},C.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function U(){}U.prototype=C.prototype;function N(T,Y,se){this.props=T,this.context=Y,this.refs=_,this.updater=se||A}var M=N.prototype=new U;M.constructor=N,O(M,C.prototype),M.isPureReactComponent=!0;var L=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},ne=Object.prototype.hasOwnProperty;function Z(T,Y,se,W,ce,Re){return se=Re.ref,{$$typeof:n,type:T,key:Y,ref:se!==void 0?se:null,props:Re}}function z(T,Y){return Z(T.type,Y,void 0,void 0,void 0,T.props)}function ae(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function oe(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(se){return Y[se]})}var Se=/\/+/g;function re(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?oe(""+T.key):Y.toString(36)}function ie(){}function ue(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ie,ie):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function me(T,Y,se,W,ce){var Re=typeof T;(Re==="undefined"||Re==="boolean")&&(T=null);var xe=!1;if(T===null)xe=!0;else switch(Re){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(T.$$typeof){case n:case a:xe=!0;break;case g:return xe=T._init,me(xe(T._payload),Y,se,W,ce)}}if(xe)return ce=ce(T),xe=W===""?"."+re(T,0):W,L(ce)?(se="",xe!=null&&(se=xe.replace(Se,"$&/")+"/"),me(ce,Y,se,"",function(Xe){return Xe})):ce!=null&&(ae(ce)&&(ce=z(ce,se+(ce.key==null||T&&T.key===ce.key?"":(""+ce.key).replace(Se,"$&/")+"/")+xe)),Y.push(ce)),1;xe=0;var ee=W===""?".":W+":";if(L(T))for(var Te=0;Te{const a=b.useContext(hb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},u1=({client:n,children:a})=>(b.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),y.jsx(hb.Provider,{value:n,children:a})),mb=b.createContext(!1),c1=()=>b.useContext(mb);mb.Provider;function f1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var d1=b.createContext(f1()),h1=()=>b.useContext(d1),m1=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},p1=n=>{b.useEffect(()=>{n.clearReset()},[n])},v1=({result:n,errorResetBoundary:a,throwOnError:i,query:s,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||Fw(i,[n.error,s])),g1=n=>{if(n.suspense){const a=s=>s==="static"?s:Math.max(s??1e3,1e3),i=n.staleTime;n.staleTime=typeof i=="function"?(...s)=>a(i(...s)):a(i),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},y1=(n,a)=>n.isLoading&&n.isFetching&&!a,b1=(n,a)=>n?.suspense&&a.isPending,ey=(n,a,i)=>a.fetchOptimistic(n).catch(()=>{i.clearReset()});function x1(n,a,i){const s=c1(),o=h1(),c=o1(),d=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",g1(d),m1(d,o),p1(o);const h=!c.getQueryCache().get(d.queryHash),[p]=b.useState(()=>new a(c,d)),m=p.getOptimisticResult(d),g=!s&&n.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(S=>{const w=g?p.subscribe(kt.batchCalls(S)):Wt;return p.updateResult(),w},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(d)},[d,p]),b1(d,m))throw ey(d,p,o);if(v1({result:m,errorResetBoundary:o,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!Vr&&y1(m,s)&&(h?ey(d,p,o):c.getQueryCache().get(d.queryHash)?.promise)?.catch(Wt).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function Ld(n,a){return x1(n,r1)}const S1=new a1({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var cd={exports:{}},Js={},fd={exports:{}},dd={};/** * @license React * scheduler.production.js * @@ -22,7 +22,7 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ny;function L1(){return ny||(ny=1,(function(n){function a(j,Y){var H=j.length;j.push(Y);e:for(;0>>1,C=j[ee];if(0>>1;eeo(te,H))oeo(Re,te)?(j[ee]=Re,j[oe]=H,ee=oe):(j[ee]=te,j[ie]=H,ee=ie);else if(oeo(Re,H))j[ee]=Re,j[oe]=H,ee=oe;else break e}}return Y}function o(j,Y){var H=j.sortIndex-Y.sortIndex;return H!==0?H:j.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],g=1,S=null,w=3,O=!1,A=!1,_=!1,T=!1,k=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G(j){for(var Y=i(m);Y!==null;){if(Y.callback===null)s(m);else if(Y.startTime<=j)s(m),Y.sortIndex=Y.expirationTime,a(p,Y);else break;Y=i(m)}}function N(j){if(_=!1,G(j),!A)if(i(p)!==null)A=!0,W||(W=!0,re());else{var Y=i(m);Y!==null&&ge(N,Y.startTime-j)}}var W=!1,F=-1,Z=5,J=-1;function le(){return T?!0:!(n.unstable_now()-Jj&&le());){var ee=S.callback;if(typeof ee=="function"){S.callback=null,w=S.priorityLevel;var C=ee(S.expirationTime<=j);if(j=n.unstable_now(),typeof C=="function"){S.callback=C,G(j),Y=!0;break t}S===i(p)&&s(p),G(j)}else s(p);S=i(p)}if(S!==null)Y=!0;else{var I=i(m);I!==null&&ge(N,I.startTime-j),Y=!1}}break e}finally{S=null,w=H,O=!1}Y=void 0}}finally{Y?re():W=!1}}}var re;if(typeof U=="function")re=function(){U(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,pe=he.port2;he.port1.onmessage=ce,re=function(){pe.postMessage(null)}}else re=function(){k(ce,0)};function ge(j,Y){F=k(function(){j(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125ee?(j.sortIndex=H,a(m,j),i(p)===null&&j===i(m)&&(_?(M(F),F=-1):_=!0,ge(N,H-ee))):(j.sortIndex=C,a(p,j),A||O||(A=!0,W||(W=!0,re()))),j},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(j){var Y=w;return function(){var H=w;w=Y;try{return j.apply(this,arguments)}finally{w=H}}}})(pd)),pd}var ay;function V1(){return ay||(ay=1,md.exports=L1()),md.exports}var vd={exports:{}},Vt={};/** + */var ty;function _1(){return ty||(ty=1,(function(n){function a(j,I){var P=j.length;j.push(I);e:for(;0>>1,T=j[J];if(0>>1;Jo(W,P))ceo(Re,W)?(j[J]=Re,j[ce]=P,J=ce):(j[J]=W,j[se]=P,J=se);else if(ceo(Re,P))j[J]=Re,j[ce]=P,J=ce;else break e}}return I}function o(j,I){var P=j.sortIndex-I.sortIndex;return P!==0?P:j.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],g=1,S=null,w=3,A=!1,O=!1,_=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function L(j){for(var I=i(m);I!==null;){if(I.callback===null)s(m);else if(I.startTime<=j)s(m),I.sortIndex=I.expirationTime,a(p,I);else break;I=i(m)}}function B(j){if(_=!1,L(j),!O)if(i(p)!==null)O=!0,ne||(ne=!0,re());else{var I=i(m);I!==null&&me(B,I.startTime-j)}}var ne=!1,Z=-1,z=5,ae=-1;function oe(){return C?!0:!(n.unstable_now()-aej&&oe());){var J=S.callback;if(typeof J=="function"){S.callback=null,w=S.priorityLevel;var T=J(S.expirationTime<=j);if(j=n.unstable_now(),typeof T=="function"){S.callback=T,L(j),I=!0;break t}S===i(p)&&s(p),L(j)}else s(p);S=i(p)}if(S!==null)I=!0;else{var Y=i(m);Y!==null&&me(B,Y.startTime-j),I=!1}}break e}finally{S=null,w=P,A=!1}I=void 0}}finally{I?re():ne=!1}}}var re;if(typeof M=="function")re=function(){M(Se)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ue=ie.port2;ie.port1.onmessage=Se,re=function(){ue.postMessage(null)}}else re=function(){U(Se,0)};function me(j,I){Z=U(function(){j(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125J?(j.sortIndex=P,a(m,j),i(p)===null&&j===i(m)&&(_?(N(Z),Z=-1):_=!0,me(B,P-J))):(j.sortIndex=T,a(p,j),O||A||(O=!0,ne||(ne=!0,re()))),j},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(j){var I=w;return function(){var P=w;w=I;try{return j.apply(this,arguments)}finally{w=P}}}})(dd)),dd}var ny;function w1(){return ny||(ny=1,fd.exports=_1()),fd.exports}var hd={exports:{}},Vt={};/** * @license React * react-dom.production.js * @@ -30,7 +30,7 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ry;function B1(){if(ry)return Vt;ry=1;var n=ph();function a(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),vd.exports=B1(),vd.exports}/** + */var ay;function E1(){if(ay)return Vt;ay=1;var n=ph();function a(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),hd.exports=E1(),hd.exports}/** * @license React * react-dom-client.production.js * @@ -38,23 +38,23 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sy;function H1(){if(sy)return el;sy=1;var n=V1(),a=ph(),i=yb();function s(e){var t="https://react.dev/errors/"+e;if(1C||(e.current=ee[C],ee[C]=null,C--)}function te(e,t){C++,ee[C]=e.current,e.current=t}var oe=I(null),Re=I(null),Se=I(null),ne=I(null);function Te(e,t){switch(te(Se,t),te(Re,e),te(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gg(t),e=yg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ie(oe),te(oe,e)}function Xe(){ie(oe),ie(Re),ie(Se)}function He(e){e.memoizedState!==null&&te(ne,e);var t=oe.current,r=yg(t,e.type);t!==r&&(te(Re,e),te(oe,r))}function Ze(e){Re.current===e&&(ie(oe),ie(Re)),ne.current===e&&(ie(ne),Qs._currentValue=H)}var Ke=Object.prototype.hasOwnProperty,Tt=n.unstable_scheduleCallback,It=n.unstable_cancelCallback,Na=n.unstable_shouldYield,vr=n.unstable_requestPaint,zt=n.unstable_now,Wh=n.unstable_getCurrentPriorityLevel,as=n.unstable_ImmediatePriority,R=n.unstable_UserBlockingPriority,B=n.unstable_NormalPriority,X=n.unstable_LowPriority,me=n.unstable_IdlePriority,ue=n.log,se=n.unstable_setDisableYieldValue,_e=null,ke=null;function Ie(e){if(typeof ue=="function"&&se(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var ot=Math.clz32?Math.clz32:Ju,$r=Math.log,Ln=Math.LN2;function Ju(e){return e>>>=0,e===0?32:31-($r(e)/Ln|0)|0}var Da=256,ja=4194304;function aa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~f,l!==0?u=aa(l):(v&=x,v!==0?u=aa(v):r||(r=x&~e,r!==0&&(u=aa(r))))):(x=l&~f,x!==0?u=aa(x):v!==0?u=aa(v):r||(r=l&~e,r!==0&&(u=aa(r)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:u}function yr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ul(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 em(){var e=Da;return Da<<=1,(Da&4194048)===0&&(Da=256),e}function tm(){var e=ja;return ja<<=1,(ja&62914560)===0&&(ja=4194304),e}function Wu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function rs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function LS(e,t,r,l,u,f){var v=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,V=e.hiddenUpdates;for(r=v&~r;0T||(e.current=J[T],J[T]=null,T--)}function W(e,t){T++,J[T]=e.current,e.current=t}var ce=Y(null),Re=Y(null),xe=Y(null),ee=Y(null);function Te(e,t){switch(W(xe,t),W(Re,e),W(ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vg(t),e=gg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}se(ce),W(ce,e)}function Xe(){se(ce),se(Re),se(xe)}function He(e){e.memoizedState!==null&&W(ee,e);var t=ce.current,r=gg(t,e.type);t!==r&&(W(Re,e),W(ce,r))}function Fe(e){Re.current===e&&(se(ce),se(Re)),ee.current===e&&(se(ee),Ys._currentValue=P)}var Ke=Object.prototype.hasOwnProperty,At=n.unstable_scheduleCallback,Yt=n.unstable_cancelCallback,Oa=n.unstable_shouldYield,mr=n.unstable_requestPaint,zt=n.unstable_now,Jh=n.unstable_getCurrentPriorityLevel,ts=n.unstable_ImmediatePriority,R=n.unstable_UserBlockingPriority,q=n.unstable_NormalPriority,X=n.unstable_LowPriority,pe=n.unstable_IdlePriority,fe=n.log,le=n.unstable_setDisableYieldValue,_e=null,ke=null;function Ze(e){if(typeof fe=="function"&&le(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var ot=Math.clz32?Math.clz32:Xu,Kr=Math.log,Ln=Math.LN2;function Xu(e){return e>>>=0,e===0?32:31-(Kr(e)/Ln|0)|0}var Ma=256,Na=4194304;function ea(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~f,l!==0?u=ea(l):(v&=x,v!==0?u=ea(v):r||(r=x&~e,r!==0&&(u=ea(r))))):(x=l&~f,x!==0?u=ea(x):v!==0?u=ea(v):r||(r=l&~e,r!==0&&(u=ea(r)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:u}function vr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zl(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Wh(){var e=Ma;return Ma<<=1,(Ma&4194048)===0&&(Ma=256),e}function em(){var e=Na;return Na<<=1,(Na&62914560)===0&&(Na=4194304),e}function Ku(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ns(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _S(e,t,r,l,u,f){var v=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,H=e.hiddenUpdates;for(r=v&~r;0)":-1u||E[l]!==V[u]){var Q=` -`+E[l].replace(" at new "," at ");return e.displayName&&Q.includes("")&&(Q=Q.replace("",e.displayName)),Q}while(1<=l&&0<=u);break}}}finally{ic=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ai(r):""}function GS(e){switch(e.tag){case 26:case 27:case 5:return ai(e.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 15:return sc(e.type,!1);case 11:return sc(e.type.render,!1);case 1:return sc(e.type,!0);case 31:return ai("Activity");default:return""}}function fm(e){try{var t="";do t+=GS(e),e=e.return;while(e);return t}catch(r){return` +`+tc+e+um}var nc=!1;function ac(e,t){if(!e||nc)return"";nc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(F){var G=F}Reflect.construct(e,[],$)}else{try{$.call()}catch(F){G=F}e.call($.prototype)}}else{try{throw Error()}catch(F){G=F}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(F){if(F&&G&&typeof F.stack=="string")return[F.stack,G.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),v=f[0],x=f[1];if(v&&x){var E=v.split(` +`),H=x.split(` +`);for(u=l=0;lu||E[l]!==H[u]){var Q=` +`+E[l].replace(" at new "," at ");return e.displayName&&Q.includes("")&&(Q=Q.replace("",e.displayName)),Q}while(1<=l&&0<=u);break}}}finally{nc=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ni(r):""}function RS(e){switch(e.tag){case 26:case 27:case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return ni("Suspense");case 19:return ni("SuspenseList");case 0:case 15:return ac(e.type,!1);case 11:return ac(e.type.render,!1);case 1:return ac(e.type,!0);case 31:return ni("Activity");default:return""}}function cm(e){try{var t="";do t+=RS(e),e=e.return;while(e);return t}catch(r){return` Error generating stack: `+r.message+` -`+r.stack}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FS(e){var t=dm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,f=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(v){l=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bl(e){e._valueTracker||(e._valueTracker=FS(e))}function hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=dm(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function Hl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ZS=/[\n"\\]/g;function pn(e){return e.replace(ZS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lc(e,t,r,l,u,f,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mn(t)):e.value!==""+mn(t)&&(e.value=""+mn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?oc(e,v,mn(t)):r!=null?oc(e,v,mn(r)):l!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+mn(x):e.removeAttribute("name")}function mm(e,t,r,l,u,f,v,x){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||r!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;r=r!=null?""+mn(r):"",t=t!=null?""+mn(t):r,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function oc(e,t,r){t==="number"&&Hl(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ri(e,t,r,l){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=!1;if(ia)try{var os={};Object.defineProperty(os,"passive",{get:function(){hc=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{hc=!1}var za=null,mc=null,ql=null;function Sm(){if(ql)return ql;var e,t=mc,r=t.length,l,u="value"in za?za.value:za.textContent,f=u.length;for(e=0;e=fs),Am=" ",Rm=!1;function Om(e,t){switch(e){case"keyup":return b_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function S_(e,t){switch(e){case"compositionend":return Mm(t);case"keypress":return t.which!==32?null:(Rm=!0,Am);case"textInput":return e=t.data,e===Am&&Rm?null:e;default:return null}}function __(e,t){if(oi)return e==="compositionend"||!bc&&Om(e,t)?(e=Sm(),ql=mc=za=null,oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Vm(r)}}function Hm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hl(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Hl(e.document)}return t}function _c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var M_=ia&&"documentMode"in document&&11>=document.documentMode,ui=null,wc=null,ps=null,Ec=!1;function qm(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ec||ui==null||ui!==Hl(l)||(l=ui,"selectionStart"in l&&_c(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ps&&ms(ps,l)||(ps=l,l=jo(wc,"onSelect"),0>=v,u-=v,la=1<<32-ot(t)+u|r<f?f:8;var v=j.T,x={};j.T=x,cf(e,!1,t,r);try{var E=u(),V=j.S;if(V!==null&&V(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var Q=B_(E,l);Ms(e,t,Q,sn(e))}else Ms(e,t,l,sn(e))}catch($){Ms(e,t,{then:function(){},status:"rejected",reason:$},sn())}finally{Y.p=f,j.T=v}}function F_(){}function of(e,t,r,l){if(e.tag!==5)throw Error(s(476));var u=Gp(e).queue;qp(e,u,t,H,r===null?F_:function(){return Fp(e),r(l)})}function Gp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:H},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fp(e){var t=Gp(e).next.queue;Ms(e,t,{},sn())}function uf(){return Lt(Qs)}function Zp(){return xt().memoizedState}function Ip(){return xt().memoizedState}function Z_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=sn();e=Va(r);var l=Ba(t,e,r);l!==null&&(ln(l,t,r),Es(l,t,r)),t={cache:Vc()},e.payload=t;return}t=t.return}}function I_(e,t,r){var l=sn();r={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},ho(e)?Qp(t,r):(r=Rc(e,t,r,l),r!==null&&(ln(r,e,l),Xp(r,t,l)))}function Yp(e,t,r){var l=sn();Ms(e,t,r,l)}function Ms(e,t,r,l){var u={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(ho(e))Qp(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,x=f(v,r);if(u.hasEagerState=!0,u.eagerState=x,en(x,v))return Xl(e,t,u,0),ut===null&&Ql(),!1}catch{}finally{}if(r=Rc(e,t,u,l),r!==null)return ln(r,e,l),Xp(r,t,l),!0}return!1}function cf(e,t,r,l){if(l={lane:2,revertLane:qf(),action:l,hasEagerState:!1,eagerState:null,next:null},ho(e)){if(t)throw Error(s(479))}else t=Rc(e,r,l,2),t!==null&&ln(t,e,2)}function ho(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Qp(e,t){bi=so=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Xp(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,am(e,r)}}var mo={readContext:Lt,use:oo,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt},Kp={readContext:Lt,use:oo,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:jp,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,fo(4194308,4,Lp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fo(4194308,4,e,t)},useInsertionEffect:function(e,t){fo(4,2,e,t)},useMemo:function(e,t){var r=Xt();t=t===void 0?null:t;var l=e();if(Nr){Ie(!0);try{e()}finally{Ie(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Xt();if(r!==void 0){var u=r(t);if(Nr){Ie(!0);try{r(t)}finally{Ie(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=I_.bind(null,Ve,e),[l.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=af(e);var t=e.queue,r=Yp.bind(null,Ve,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:sf,useDeferredValue:function(e,t){var r=Xt();return lf(r,e,t)},useTransition:function(){var e=af(!1);return e=qp.bind(null,Ve,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=Ve,u=Xt();if(Je){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),ut===null)throw Error(s(349));(Ye&124)!==0||gp(l,t,r)}u.memoizedState=r;var f={value:r,getSnapshot:t};return u.queue=f,jp(bp.bind(null,l,f,e),[e]),l.flags|=2048,Si(9,co(),yp.bind(null,l,f,r,t),null),r},useId:function(){var e=Xt(),t=ut.identifierPrefix;if(Je){var r=oa,l=la;r=(l&~(1<<32-ot(l)-1)).toString(32)+r,t="«"+t+"R"+r,r=lo++,0Oe?(Mt=Ce,Ce=null):Mt=Ce.sibling;var $e=P(z,Ce,L[Oe],K);if($e===null){Ce===null&&(Ce=Mt);break}e&&Ce&&$e.alternate===null&&t(z,Ce),D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e,Ce=Mt}if(Oe===L.length)return r(z,Ce),Je&&Cr(z,Oe),ye;if(Ce===null){for(;OeOe?(Mt=Ce,Ce=null):Mt=Ce.sibling;var nr=P(z,Ce,$e.value,K);if(nr===null){Ce===null&&(Ce=Mt);break}e&&Ce&&nr.alternate===null&&t(z,Ce),D=f(nr,D,Oe),Pe===null?ye=nr:Pe.sibling=nr,Pe=nr,Ce=Mt}if($e.done)return r(z,Ce),Je&&Cr(z,Oe),ye;if(Ce===null){for(;!$e.done;Oe++,$e=L.next())$e=$(z,$e.value,K),$e!==null&&(D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e);return Je&&Cr(z,Oe),ye}for(Ce=l(Ce);!$e.done;Oe++,$e=L.next())$e=q(Ce,z,Oe,$e.value,K),$e!==null&&(e&&$e.alternate!==null&&Ce.delete($e.key===null?Oe:$e.key),D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e);return e&&Ce.forEach(function(Qw){return t(z,Qw)}),Je&&Cr(z,Oe),ye}function st(z,D,L,K){if(typeof L=="object"&&L!==null&&L.type===A&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case w:e:{for(var ye=L.key;D!==null;){if(D.key===ye){if(ye=L.type,ye===A){if(D.tag===7){r(z,D.sibling),K=u(D,L.props.children),K.return=z,z=K;break e}}else if(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===Z&&Jp(ye)===D.type){r(z,D.sibling),K=u(D,L.props),Ds(K,L),K.return=z,z=K;break e}r(z,D);break}else t(z,D);D=D.sibling}L.type===A?(K=wr(L.props.children,z.mode,K,L.key),K.return=z,z=K):(K=$l(L.type,L.key,L.props,null,z.mode,K),Ds(K,L),K.return=z,z=K)}return v(z);case O:e:{for(ye=L.key;D!==null;){if(D.key===ye)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){r(z,D.sibling),K=u(D,L.children||[]),K.return=z,z=K;break e}else{r(z,D);break}else t(z,D);D=D.sibling}K=Nc(L,z.mode,K),K.return=z,z=K}return v(z);case Z:return ye=L._init,L=ye(L._payload),st(z,D,L,K)}if(ge(L))return De(z,D,L,K);if(re(L)){if(ye=re(L),typeof ye!="function")throw Error(s(150));return L=ye.call(L),Ae(z,D,L,K)}if(typeof L.then=="function")return st(z,D,po(L),K);if(L.$$typeof===U)return st(z,D,to(z,L),K);vo(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(r(z,D.sibling),K=u(D,L),K.return=z,z=K):(r(z,D),K=Mc(L,z.mode,K),K.return=z,z=K),v(z)):r(z,D)}return function(z,D,L,K){try{Ns=0;var ye=st(z,D,L,K);return _i=null,ye}catch(Ce){if(Ce===_s||Ce===ao)throw Ce;var Pe=tn(29,Ce,null,z.mode);return Pe.lanes=K,Pe.return=z,Pe}finally{}}}var wi=Wp(!0),ev=Wp(!1),xn=I(null),Bn=null;function Pa(e){var t=e.alternate;te(wt,wt.current&1),te(xn,e),Bn===null&&(t===null||yi.current!==null||t.memoizedState!==null)&&(Bn=e)}function tv(e){if(e.tag===22){if(te(wt,wt.current),te(xn,e),Bn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Bn=e)}}else qa()}function qa(){te(wt,wt.current),te(xn,xn.current)}function da(e){ie(xn),Bn===e&&(Bn=null),ie(wt)}var wt=I(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||ed(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ff(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:g({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var df={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=sn(),u=Va(l);u.payload=t,r!=null&&(u.callback=r),t=Ba(e,u,l),t!==null&&(ln(t,e,l),Es(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=sn(),u=Va(l);u.tag=1,u.payload=t,r!=null&&(u.callback=r),t=Ba(e,u,l),t!==null&&(ln(t,e,l),Es(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=sn(),l=Va(r);l.tag=2,t!=null&&(l.callback=t),t=Ba(e,l,r),t!==null&&(ln(t,e,r),Es(t,e,r))}};function nv(e,t,r,l,u,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,v):t.prototype&&t.prototype.isPureReactComponent?!ms(r,l)||!ms(u,f):!0}function av(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&df.enqueueReplaceState(t,t.state,null)}function Dr(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=g({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}var yo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function rv(e){yo(e)}function iv(e){console.error(e)}function sv(e){yo(e)}function bo(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function lv(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function hf(e,t,r){return r=Va(r),r.tag=3,r.payload={element:null},r.callback=function(){bo(e,t)},r}function ov(e){return e=Va(e),e.tag=3,e}function uv(e,t,r,l){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var f=l.value;e.payload=function(){return u(f)},e.callback=function(){lv(t,r,l)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){lv(t,r,l),typeof u!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function Q_(e,t,r,l,u){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&bs(t,r,u,!0),r=xn.current,r!==null){switch(r.tag){case 13:return Bn===null?Lf():r.alternate===null&&mt===0&&(mt=3),r.flags&=-257,r.flags|=65536,r.lanes=u,l===Pc?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),Bf(e,l,u)),!1;case 22:return r.flags|=65536,l===Pc?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),Bf(e,l,u)),!1}throw Error(s(435,r.tag))}return Bf(e,l,u),Lf(),!1}if(Je)return t=xn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==kc&&(e=Error(s(422),{cause:l}),ys(vn(e,r)))):(l!==kc&&(t=Error(s(423),{cause:l}),ys(vn(t,r))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=vn(l,r),u=hf(e.stateNode,l,u),Fc(e,u),mt!==4&&(mt=2)),!1;var f=Error(s(520),{cause:l});if(f=vn(f,r),Bs===null?Bs=[f]:Bs.push(f),mt!==4&&(mt=2),t===null)return!0;l=vn(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=hf(r.stateNode,l,e),Fc(r,e),!1;case 1:if(t=r.type,f=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Qa===null||!Qa.has(f))))return r.flags|=65536,u&=-u,r.lanes|=u,u=ov(u),uv(u,e,r,l),Fc(r,u),!1}r=r.return}while(r!==null);return!1}var cv=Error(s(461)),Rt=!1;function Nt(e,t,r,l){t.child=e===null?ev(t,null,r,l):wi(t,e.child,r,l)}function fv(e,t,r,l,u){r=r.render;var f=t.ref;if("ref"in l){var v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}else v=l;return Or(t),l=Xc(e,t,r,v,f,u),x=Kc(),e!==null&&!Rt?($c(e,t,u),ha(e,t,u)):(Je&&x&&Dc(t),t.flags|=1,Nt(e,t,l,u),t.child)}function dv(e,t,r,l,u){if(e===null){var f=r.type;return typeof f=="function"&&!Oc(f)&&f.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=f,hv(e,t,f,l,u)):(e=$l(r.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Sf(e,u)){var v=f.memoizedProps;if(r=r.compare,r=r!==null?r:ms,r(v,l)&&e.ref===t.ref)return ha(e,t,u)}return t.flags|=1,e=sa(f,l),e.ref=t.ref,e.return=t,t.child=e}function hv(e,t,r,l,u){if(e!==null){var f=e.memoizedProps;if(ms(f,l)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=l=f,Sf(e,u))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,ha(e,t,u)}return mf(e,t,r,l,u)}function mv(e,t,r){var l=t.pendingProps,u=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|r:r,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return pv(e,t,l,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&no(t,f!==null?f.cachePool:null),f!==null?hp(t,f):Ic(),tv(t);else return t.lanes=t.childLanes=536870912,pv(e,t,f!==null?f.baseLanes|r:r,r)}else f!==null?(no(t,f.cachePool),hp(t,f),qa(),t.memoizedState=null):(e!==null&&no(t,null),Ic(),qa());return Nt(e,t,u,r),t.child}function pv(e,t,r,l){var u=Hc();return u=u===null?null:{parent:_t._currentValue,pool:u},t.memoizedState={baseLanes:r,cachePool:u},e!==null&&no(t,null),Ic(),tv(t),e!==null&&bs(e,t,l,!0),null}function xo(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function mf(e,t,r,l,u){return Or(t),r=Xc(e,t,r,l,void 0,u),l=Kc(),e!==null&&!Rt?($c(e,t,u),ha(e,t,u)):(Je&&l&&Dc(t),t.flags|=1,Nt(e,t,r,u),t.child)}function vv(e,t,r,l,u,f){return Or(t),t.updateQueue=null,r=pp(t,l,r,u),mp(e),l=Kc(),e!==null&&!Rt?($c(e,t,f),ha(e,t,f)):(Je&&l&&Dc(t),t.flags|=1,Nt(e,t,r,f),t.child)}function gv(e,t,r,l,u){if(Or(t),t.stateNode===null){var f=hi,v=r.contextType;typeof v=="object"&&v!==null&&(f=Lt(v)),f=new r(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=df,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},qc(t),v=r.contextType,f.context=typeof v=="object"&&v!==null?Lt(v):hi,f.state=t.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(ff(t,r,v,l),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&df.enqueueReplaceState(f,f.state,null),Ts(t,l,f,u),Cs(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var x=t.memoizedProps,E=Dr(r,x);f.props=E;var V=f.context,Q=r.contextType;v=hi,typeof Q=="object"&&Q!==null&&(v=Lt(Q));var $=r.getDerivedStateFromProps;Q=typeof $=="function"||typeof f.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x||V!==v)&&av(t,f,l,v),La=!1;var P=t.memoizedState;f.state=P,Ts(t,l,f,u),Cs(),V=t.memoizedState,x||P!==V||La?(typeof $=="function"&&(ff(t,r,$,l),V=t.memoizedState),(E=La||nv(t,r,E,l,P,V,v))?(Q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=V),f.props=l,f.state=V,f.context=v,l=E):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,Gc(e,t),v=t.memoizedProps,Q=Dr(r,v),f.props=Q,$=t.pendingProps,P=f.context,V=r.contextType,E=hi,typeof V=="object"&&V!==null&&(E=Lt(V)),x=r.getDerivedStateFromProps,(V=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==$||P!==E)&&av(t,f,l,E),La=!1,P=t.memoizedState,f.state=P,Ts(t,l,f,u),Cs();var q=t.memoizedState;v!==$||P!==q||La||e!==null&&e.dependencies!==null&&eo(e.dependencies)?(typeof x=="function"&&(ff(t,r,x,l),q=t.memoizedState),(Q=La||nv(t,r,Q,l,P,q,E)||e!==null&&e.dependencies!==null&&eo(e.dependencies))?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,q,E),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,q,E)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),f.props=l,f.state=q,f.context=E,l=Q):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,xo(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=wi(t,e.child,null,u),t.child=wi(t,null,r,u)):Nt(e,t,r,u),t.memoizedState=f.state,e=t.child):e=ha(e,t,u),e}function yv(e,t,r,l){return gs(),t.flags|=256,Nt(e,t,r,l),t.child}var pf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vf(e){return{baseLanes:e,cachePool:ip()}}function gf(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Sn),e}function bv(e,t,r){var l=t.pendingProps,u=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),v&&(u=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Je){if(u?Pa(t):qa(),Je){var x=ht,E;if(E=x){e:{for(E=x,x=Vn;E.nodeType!==8;){if(!x){x=null;break e}if(E=An(E.nextSibling),E===null){x=null;break e}}x=E}x!==null?(t.memoizedState={dehydrated:x,treeContext:Er!==null?{id:la,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},E=tn(18,null,null,0),E.stateNode=x,E.return=t,t.child=E,Pt=t,ht=null,E=!0):E=!1}E||Ar(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return ed(x)?t.lanes=32:t.lanes=536870912,null;da(t)}return x=l.children,l=l.fallback,u?(qa(),u=t.mode,x=So({mode:"hidden",children:x},u),l=wr(l,u,r,null),x.return=t,l.return=t,x.sibling=l,t.child=x,u=t.child,u.memoizedState=vf(r),u.childLanes=gf(e,v,r),t.memoizedState=pf,l):(Pa(t),yf(t,x))}if(E=e.memoizedState,E!==null&&(x=E.dehydrated,x!==null)){if(f)t.flags&256?(Pa(t),t.flags&=-257,t=bf(e,t,r)):t.memoizedState!==null?(qa(),t.child=e.child,t.flags|=128,t=null):(qa(),u=l.fallback,x=t.mode,l=So({mode:"visible",children:l.children},x),u=wr(u,x,r,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,wi(t,e.child,null,r),l=t.child,l.memoizedState=vf(r),l.childLanes=gf(e,v,r),t.memoizedState=pf,t=u);else if(Pa(t),ed(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var V=v.dgst;v=V,l=Error(s(419)),l.stack="",l.digest=v,ys({value:l,source:null,stack:null}),t=bf(e,t,r)}else if(Rt||bs(e,t,r,!1),v=(r&e.childLanes)!==0,Rt||v){if(v=ut,v!==null&&(l=r&-r,l=(l&42)!==0?1:ec(l),l=(l&(v.suspendedLanes|r))!==0?0:l,l!==0&&l!==E.retryLane))throw E.retryLane=l,di(e,l),ln(v,e,l),cv;x.data==="$?"||Lf(),t=bf(e,t,r)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,ht=An(x.nextSibling),Pt=t,Je=!0,Tr=null,Vn=!1,e!==null&&(yn[bn++]=la,yn[bn++]=oa,yn[bn++]=Er,la=e.id,oa=e.overflow,Er=t),t=yf(t,l.children),t.flags|=4096);return t}return u?(qa(),u=l.fallback,x=t.mode,E=e.child,V=E.sibling,l=sa(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,V!==null?u=sa(V,u):(u=wr(u,x,r,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,x=e.child.memoizedState,x===null?x=vf(r):(E=x.cachePool,E!==null?(V=_t._currentValue,E=E.parent!==V?{parent:V,pool:V}:E):E=ip(),x={baseLanes:x.baseLanes|r,cachePool:E}),u.memoizedState=x,u.childLanes=gf(e,v,r),t.memoizedState=pf,l):(Pa(t),r=e.child,e=r.sibling,r=sa(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=r,t.memoizedState=null,r)}function yf(e,t){return t=So({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function So(e,t){return e=tn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function bf(e,t,r){return wi(t,e.child,null,r),e=yf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xv(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Uc(e.return,t,r)}function xf(e,t,r,l,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=r,f.tailMode=u)}function Sv(e,t,r){var l=t.pendingProps,u=l.revealOrder,f=l.tail;if(Nt(e,t,l.children,r),l=wt.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xv(e,r,t);else if(e.tag===19)xv(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(te(wt,l),u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&go(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),xf(t,!1,u,r,f);break;case"backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&go(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}xf(t,!0,r,null,f);break;case"together":xf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ha(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(bs(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=sa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=sa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Sf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&eo(e)))}function X_(e,t,r){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),Ua(t,_t,e.memoizedState.cache),gs();break;case 27:case 5:He(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:Ua(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Pa(t),t.flags|=128,null):(r&t.child.childLanes)!==0?bv(e,t,r):(Pa(t),e=ha(e,t,r),e!==null?e.sibling:null);Pa(t);break;case 19:var u=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(bs(e,t,r,!1),l=(r&t.childLanes)!==0),u){if(l)return Sv(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),te(wt,wt.current),l)break;return null;case 22:case 23:return t.lanes=0,mv(e,t,r);case 24:Ua(t,_t,e.memoizedState.cache)}return ha(e,t,r)}function _v(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!Sf(e,r)&&(t.flags&128)===0)return Rt=!1,X_(e,t,r);Rt=(e.flags&131072)!==0}else Rt=!1,Je&&(t.flags&1048576)!==0&&Jm(t,Wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")Oc(l)?(e=Dr(l,e),t.tag=1,t=gv(null,t,l,e,r)):(t.tag=0,t=mf(null,t,l,e,r));else{if(l!=null){if(u=l.$$typeof,u===G){t.tag=11,t=fv(null,t,l,e,r);break e}else if(u===F){t.tag=14,t=dv(null,t,l,e,r);break e}}throw t=pe(l)||l,Error(s(306,t,""))}}return t;case 0:return mf(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,u=Dr(l,t.pendingProps),gv(e,t,l,u,r);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var f=t.memoizedState;u=f.element,Gc(e,t),Ts(t,l,null,r);var v=t.memoizedState;if(l=v.cache,Ua(t,_t,l),l!==f.cache&&Lc(t,[_t],r,!0),Cs(),l=v.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=yv(e,t,l,r);break e}else if(l!==u){u=vn(Error(s(424)),t),ys(u),t=yv(e,t,l,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=An(e.firstChild),Pt=t,Je=!0,Tr=null,Vn=!0,r=ev(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(gs(),l===u){t=ha(e,t,r);break e}Nt(e,t,l,r)}t=t.child}return t;case 26:return xo(e,t),e===null?(r=Tg(t.type,null,t.pendingProps,null))?t.memoizedState=r:Je||(r=t.type,e=t.pendingProps,l=zo(Se.current).createElement(r),l[Ut]=t,l[Yt]=e,jt(l,r,e),At(l),t.stateNode=l):t.memoizedState=Tg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return He(t),e===null&&Je&&(l=t.stateNode=wg(t.type,t.pendingProps,Se.current),Pt=t,Vn=!0,u=ht,$a(t.type)?(td=u,ht=An(l.firstChild)):ht=u),Nt(e,t,t.pendingProps.children,r),xo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Je&&((u=l=ht)&&(l=ww(l,t.type,t.pendingProps,Vn),l!==null?(t.stateNode=l,Pt=t,ht=An(l.firstChild),Vn=!1,u=!0):u=!1),u||Ar(t)),He(t),u=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,l=f.children,$f(u,f)?l=null:v!==null&&$f(u,v)&&(t.flags|=32),t.memoizedState!==null&&(u=Xc(e,t,P_,null,null,r),Qs._currentValue=u),xo(e,t),Nt(e,t,l,r),t.child;case 6:return e===null&&Je&&((e=r=ht)&&(r=Ew(r,t.pendingProps,Vn),r!==null?(t.stateNode=r,Pt=t,ht=null,e=!0):e=!1),e||Ar(t)),null;case 13:return bv(e,t,r);case 4:return Te(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=wi(t,null,l,r):Nt(e,t,l,r),t.child;case 11:return fv(e,t,t.type,t.pendingProps,r);case 7:return Nt(e,t,t.pendingProps,r),t.child;case 8:return Nt(e,t,t.pendingProps.children,r),t.child;case 12:return Nt(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,Ua(t,t.type,l.value),Nt(e,t,l.children,r),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Or(t),u=Lt(u),l=l(u),t.flags|=1,Nt(e,t,l,r),t.child;case 14:return dv(e,t,t.type,t.pendingProps,r);case 15:return hv(e,t,t.type,t.pendingProps,r);case 19:return Sv(e,t,r);case 31:return l=t.pendingProps,r=t.mode,l={mode:l.mode,children:l.children},e===null?(r=So(l,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=sa(e.child,l),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return mv(e,t,r);case 24:return Or(t),l=Lt(_t),e===null?(u=Hc(),u===null&&(u=ut,f=Vc(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=r),u=f),t.memoizedState={parent:l,cache:u},qc(t),Ua(t,_t,u)):((e.lanes&r)!==0&&(Gc(e,t),Ts(t,null,null,r),Cs()),u=e.memoizedState,f=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ua(t,_t,l)):(l=f.cache,Ua(t,_t,l),l!==u.cache&&Lc(t,[_t],r,!0))),Nt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ma(e){e.flags|=4}function wv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ng(t)){if(t=xn.current,t!==null&&((Ye&4194048)===Ye?Bn!==null:(Ye&62914560)!==Ye&&(Ye&536870912)===0||t!==Bn))throw ws=Pc,sp;e.flags|=8192}}function _o(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?tm():536870912,e.lanes|=t,Ai|=t)}function js(e,t){if(!Je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function K_(e,t,r){var l=t.pendingProps;switch(jc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(_t),Xe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(vs(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tp())),ft(t),null;case 26:return r=t.memoizedState,e===null?(ma(t),r!==null?(ft(t),wv(t,r)):(ft(t),t.flags&=-16777217)):r?r!==e.memoizedState?(ma(t),ft(t),wv(t,r)):(ft(t),t.flags&=-16777217):(e.memoizedProps!==l&&ma(t),ft(t),t.flags&=-16777217),null;case 27:Ze(t),r=Se.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return ft(t),null}e=oe.current,vs(t)?Wm(t):(e=wg(u,l,r),t.stateNode=e,ma(t))}return ft(t),null;case 5:if(Ze(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(e=oe.current,vs(t))Wm(t);else{switch(u=zo(Se.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=u.createElement("div"),e.innerHTML=" - + - +
diff --git a/package-lock.json b/package-lock.json index 4dd7f2e..1df8e81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,6 +27,7 @@ "clsx": "^2.1.1", "date-fns": "^4.1.0", "fs-extra": "^11.3.1", + "lodash": "^4.17.21", "lucide-react": "^0.540.0", "p-queue": "^8.1.0", "react": "^19.1.1", @@ -43,6 +44,7 @@ "@eslint/js": "^9.33.0", "@types/chrome": "^0.1.4", "@types/fs-extra": "^11.0.4", + "@types/lodash": "^4.17.20", "@types/node": "^24.3.0", "@types/react": "^19.1.10", "@types/react-dom": "^19.1.7", @@ -2575,6 +2577,13 @@ "@types/node": "*" } }, + "node_modules/@types/lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/node": { "version": "24.3.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz", @@ -5089,6 +5098,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", diff --git a/package.json b/package.json index a0191cd..a8607af 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "clsx": "^2.1.1", "date-fns": "^4.1.0", "fs-extra": "^11.3.1", + "lodash": "^4.17.21", "lucide-react": "^0.540.0", "p-queue": "^8.1.0", "react": "^19.1.1", @@ -51,6 +52,7 @@ "@eslint/js": "^9.33.0", "@types/chrome": "^0.1.4", "@types/fs-extra": "^11.0.4", + "@types/lodash": "^4.17.20", "@types/node": "^24.3.0", "@types/react": "^19.1.10", "@types/react-dom": "^19.1.7", diff --git a/releases/auto-post-facebook-extensions_1.0/assets/popup.js b/releases/auto-post-facebook-extensions_1.0/assets/popup.js index 355efc7..f052147 100644 --- a/releases/auto-post-facebook-extensions_1.0/assets/popup.js +++ b/releases/auto-post-facebook-extensions_1.0/assets/popup.js @@ -1,4 +1,4 @@ -import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./product-api.service-BCmn_jbQ.js";import{d as Xw,M as Kw,r as $w}from"./message.service-DcR3euAR.js";function Jw(n,a){for(var i=0;is[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var fd={exports:{}},Ws={};/** +import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as Sa}from"./product-api.service-Dn0sYl6J.js";import{d as kw,M as zw,r as Uw}from"./message.service-DcR3euAR.js";function Lw(n,a){for(var i=0;is[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var od={exports:{}},$s={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gg;function Ww(){if(Gg)return Ws;Gg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:c}}return Ws.Fragment=a,Ws.jsx=i,Ws.jsxs=i,Ws}var Fg;function e1(){return Fg||(Fg=1,fd.exports=Ww()),fd.exports}var y=e1(),Rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Hr=typeof window>"u"||"Deno"in globalThis;function Wt(){}function t1(n,a){return typeof n=="function"?n(a):n}function kd(n){return typeof n=="number"&&n>=0&&n!==1/0}function lb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function ir(n,a){return typeof n=="function"?n(a):n}function wn(n,a){return typeof n=="function"?n(a):n}function Zg(n,a){const{type:i="all",exact:s,fetchStatus:o,predicate:c,queryKey:d,stale:h}=n;if(d){if(s){if(a.queryHash!==fh(d,a.options))return!1}else if(!cl(a.queryKey,d))return!1}if(i!=="all"){const p=a.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||o&&o!==a.state.fetchStatus||c&&!c(a))}function Ig(n,a){const{exact:i,status:s,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(i){if(ul(a.options.mutationKey)!==ul(c))return!1}else if(!cl(a.options.mutationKey,c))return!1}return!(s&&a.state.status!==s||o&&!o(a))}function fh(n,a){return(a?.queryKeyHashFn||ul)(n)}function ul(n){return JSON.stringify(n,(a,i)=>Ud(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function cl(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(i=>cl(n[i],a[i])):!1}function ob(n,a){if(n===a)return n;const i=Yg(n)&&Yg(a);if(i||Ud(n)&&Ud(a)){const s=i?n:Object.keys(n),o=s.length,c=i?a:Object.keys(a),d=c.length,h=i?[]:{},p=new Set(s);let m=0;for(let g=0;g{setTimeout(a,n)})}function Ld(n,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,a):i.structuralSharing!==!1?ob(n,a):a}function a1(n,a,i=0){const s=[...n,a];return i&&s.length>i?s.slice(1):s}function r1(n,a,i=0){const s=[a,...n];return i&&s.length>i?s.slice(0,-1):s}var dh=Symbol();function ub(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===dh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function i1(n,a){return typeof n=="function"?n(...a):!!n}var s1=class extends Rl{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!Hr&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},hh=new s1,l1=class extends Rl{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!Hr&&window.addEventListener){const a=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(i=>{i(n)}))}isOnline(){return this.#t}},uu=new l1;function Vd(){let n,a;const i=new Promise((o,c)=>{n=o,a=c});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},i.reject=o=>{s({status:"rejected",reason:o}),a(o)},i}function o1(n){return Math.min(1e3*2**n,3e4)}function cb(n){return(n??"online")==="online"?uu.isOnline():!0}var fb=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function db(n){let a=!1,i=0,s;const o=Vd(),c=()=>o.status!=="pending",d=_=>{c()||(w(new fb(_)),n.abort?.())},h=()=>{a=!0},p=()=>{a=!1},m=()=>hh.isFocused()&&(n.networkMode==="always"||uu.isOnline())&&n.canRun(),g=()=>cb(n.networkMode)&&n.canRun(),S=_=>{c()||(s?.(),o.resolve(_))},w=_=>{c()||(s?.(),o.reject(_))},O=()=>new Promise(_=>{s=T=>{(c()||m())&&_(T)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),A=()=>{if(c())return;let _;const T=i===0?n.initialPromise:void 0;try{_=T??n.fn()}catch(k){_=Promise.reject(k)}Promise.resolve(_).then(S).catch(k=>{if(c())return;const M=n.retry??(Hr?0:3),U=n.retryDelay??o1,G=typeof U=="function"?U(i,k):U,N=M===!0||typeof M=="number"&&im()?void 0:O()).then(()=>{a?w(k):A()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?A():O().then(A),o)}}var u1=n=>setTimeout(n,0);function c1(){let n=[],a=0,i=h=>{h()},s=h=>{h()},o=u1;const c=h=>{a?n.push(h):o(()=>{i(h)})},d=()=>{const h=n;n=[],h.length&&o(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||d()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{o=h}}}var kt=c1(),hb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kd(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Hr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},f1=class extends hb{#t;#e;#n;#a;#r;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=d1(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const i=Ld(this.state.data,n,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),i}setState(n,a){this.#i({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#r?.promise;return this.#r?.cancel(n),a?a.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>wn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ir(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!lb(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},o=()=>{const h=ub(this.options,a),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#s=!1,this.options.persister?this.options.persister(h,m,this):h(m)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return s(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#r=db({initialPromise:a?.initialPromise,fn:d.fetchFn,abort:i.abort.bind(i),onFail:(h,p)=>{this.#i({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof fb){if(h.silent)return this.#r.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const a=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...mb(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?s:void 0,s;case"error":const o=n.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=a(this.state),kt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function mb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function d1(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,i=a!==void 0,s=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var h1=class extends Rl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,i){const s=a.queryKey,o=a.queryHash??fh(s,a);let c=this.get(o);return c||(c=new f1({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(a),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){kt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Zg(a,i))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(i=>Zg(n,i)):a}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},m1=class extends hb{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||p1(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(a=>a!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})};this.#n=db({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,c)=>{this.#a({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",s=!this.#n.canStart();try{if(i)a();else{this.#a({type:"pending",variables:n,isPaused:s}),await this.#e.config.onMutate?.(n,this);const c=await this.options.onMutate?.(n);c!==this.state.context&&this.#a({type:"pending",context:c,variables:n,isPaused:s})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#a({type:"error",error:o})}}finally{this.#e.runNext(this)}}#a(n){const a=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),kt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function p1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var v1=class extends Rl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,i){const s=new m1({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:i});return this.add(s),s}add(n){this.#t.add(n);const a=Qo(n);if(typeof a=="string"){const i=this.#e.get(a);i?i.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=Qo(n);if(typeof a=="string"){const i=this.#e.get(a);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Qo(n);if(typeof a=="string"){const s=this.#e.get(a)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const a=Qo(n);return typeof a=="string"?this.#e.get(a)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){kt.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Ig(a,i))}findAll(n={}){return this.getAll().filter(a=>Ig(n,a))}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return kt.batch(()=>Promise.all(n.map(a=>a.continue().catch(Wt))))}};function Qo(n){return n.options.scope?.id}function Xg(n){return{onFetch:(a,i)=>{const s=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const S=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(a.signal.aborted?g=!0:a.signal.addEventListener("abort",()=>{g=!0}),a.signal)})},w=ub(a.options,a.fetchOptions),O=async(A,_,T)=>{if(g)return Promise.reject();if(_==null&&A.pages.length)return Promise.resolve(A);const M=(()=>{const W={client:a.client,queryKey:a.queryKey,pageParam:_,direction:T?"backward":"forward",meta:a.options.meta};return S(W),W})(),U=await w(M),{maxPages:G}=a.options,N=T?r1:a1;return{pages:N(A.pages,U,G),pageParams:N(A.pageParams,_,G)}};if(o&&c.length){const A=o==="backward",_=A?g1:Kg,T={pages:c,pageParams:d},k=_(s,T);h=await O(T,k,A)}else{const A=n??c.length;do{const _=p===0?d[0]??s.initialPageParam:Kg(s,h);if(p>0&&_==null)break;h=await O(h,_),p++}while(pa.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i):a.fetchFn=m}}}function Kg(n,{pages:a,pageParams:i}){const s=a.length-1;return a.length>0?n.getNextPageParam(a[s],a,i[s],i):void 0}function g1(n,{pages:a,pageParams:i}){return a.length>0?n.getPreviousPageParam?.(a[0],a,i[0],i):void 0}var y1=class{#t;#e;#n;#a;#r;#l;#s;#i;constructor(n={}){this.#t=n.queryCache||new h1,this.#e=n.mutationCache||new v1,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=hh.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=uu.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),i=this.#t.build(this,a),s=i.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(ir(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:i})=>{const s=i.data;return[a,s]})}setQueryData(n,a,i){const s=this.defaultQueryOptions({queryKey:n}),c=this.#t.get(s.queryHash)?.state.data,d=t1(a,c);if(d!==void 0)return this.#t.build(this,s).setData(d,{...i,manual:!0})}setQueriesData(n,a,i){return kt.batch(()=>this.#t.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,a,i)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;kt.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(n,a){const i=this.#t;return kt.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const i={revert:!0,...a},s=kt.batch(()=>this.#t.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(Wt).catch(Wt)}invalidateQueries(n,a={}){return kt.batch(()=>(this.#t.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},s=kt.batch(()=>this.#t.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Wt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Wt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const i=this.#t.build(this,a);return i.isStaleByTime(ir(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Wt).catch(Wt)}fetchInfiniteQuery(n){return n.behavior=Xg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Wt).catch(Wt)}ensureInfiniteQueryData(n){return n.behavior=Xg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return uu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#a.set(ul(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],i={};return a.forEach(s=>{cl(n,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(n,a){this.#r.set(ul(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#r.values()],i={};return a.forEach(s=>{cl(n,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=fh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===dh&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},b1=class extends Rl{constructor(n,a){super(),this.options=a,this.#t=n,this.#i=null,this.#s=Vd(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#l;#s;#i;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),$g(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bd(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bd(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,i=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),a._defaulted&&!zd(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&Jg(this.#e,i,this.options,a)&&this.#f(),this.updateResult(),s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||ir(this.options.staleTime,this.#e)!==ir(a.staleTime,this.#e))&&this.#v();const o=this.#g();s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||o!==this.#o)&&this.#y(o)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),i=this.createResult(a,n);return S1(this,i)&&(this.#a=i,this.#l=this.options,this.#r=this.#e.state),i}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),a?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),i=this.#t.getQueryCache().build(this.#t,a);return i.fetch().then(()=>this.createResult(i,a))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#_();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(Wt)),a}#v(){this.#x();const n=ir(this.options.staleTime,this.#e);if(Hr||this.#a.isStale||!kd(n))return;const i=lb(this.#a.dataUpdatedAt,n)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#o=n,!(Hr||wn(this.options.enabled,this.#e)===!1||!kd(this.#o)||this.#o===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||hh.isFocused())&&this.#f()},this.#o))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,a){const i=this.#e,s=this.options,o=this.#a,c=this.#r,d=this.#l,p=n!==i?n.state:this.#n,{state:m}=n;let g={...m},S=!1,w;if(a._optimisticResults){const Z=this.hasListeners(),J=!Z&&$g(n,a),le=Z&&Jg(n,i,a,s);(J||le)&&(g={...g,...mb(m.data,n.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:O,errorUpdatedAt:A,status:_}=g;w=g.data;let T=!1;if(a.placeholderData!==void 0&&w===void 0&&_==="pending"){let Z;o?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(Z=o.data,T=!0):Z=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,Z!==void 0&&(_="success",w=Ld(o?.data,Z,a),S=!0)}if(a.select&&w!==void 0&&!T)if(o&&w===c?.data&&a.select===this.#p)w=this.#d;else try{this.#p=a.select,w=a.select(w),w=Ld(o?.data,w,a),this.#d=w,this.#i=null}catch(Z){this.#i=Z}this.#i&&(O=this.#i,w=this.#d,A=Date.now(),_="error");const k=g.fetchStatus==="fetching",M=_==="pending",U=_==="error",G=M&&k,N=w!==void 0,F={status:_,fetchStatus:g.fetchStatus,isPending:M,isSuccess:_==="success",isError:U,isInitialLoading:G,isLoading:G,data:w,dataUpdatedAt:g.dataUpdatedAt,error:O,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:k,isRefetching:k&&!M,isLoadingError:U&&!N,isPaused:g.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:U&&N,isStale:mh(n,a),refetch:this.refetch,promise:this.#s,isEnabled:wn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const Z=ce=>{F.status==="error"?ce.reject(F.error):F.data!==void 0&&ce.resolve(F.data)},J=()=>{const ce=this.#s=F.promise=Vd();Z(ce)},le=this.#s;switch(le.status){case"pending":n.queryHash===i.queryHash&&Z(le);break;case"fulfilled":(F.status==="error"||F.data!==le.value)&&J();break;case"rejected":(F.status!=="error"||F.error!==le.reason)&&J();break}}return F}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#l=this.options,this.#r.data!==void 0&&(this.#h=this.#e),zd(a,n))return;this.#a=a;const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&c.has(h)})};this.#w({listeners:i()})}#_(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){kt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function x1(n,a){return wn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function $g(n,a){return x1(n,a)||n.state.data!==void 0&&Bd(n,a,a.refetchOnMount)}function Bd(n,a,i){if(wn(a.enabled,n)!==!1&&ir(a.staleTime,n)!=="static"){const s=typeof i=="function"?i(n):i;return s==="always"||s!==!1&&mh(n,a)}return!1}function Jg(n,a,i,s){return(n!==a||wn(s.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&mh(n,i)}function mh(n,a){return wn(a.enabled,n)!==!1&&n.isStaleByTime(ir(a.staleTime,n))}function S1(n,a){return!zd(n.getCurrentResult(),a)}var dd={exports:{}},Ue={};/** + */var Pg;function Vw(){if(Pg)return $s;Pg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:c}}return $s.Fragment=a,$s.jsx=i,$s.jsxs=i,$s}var Gg;function Bw(){return Gg||(Gg=1,od.exports=Vw()),od.exports}var y=Bw(),Cl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vr=typeof window>"u"||"Deno"in globalThis;function Wt(){}function Hw(n,a){return typeof n=="function"?n(a):n}function Nd(n){return typeof n=="number"&&n>=0&&n!==1/0}function rb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function rr(n,a){return typeof n=="function"?n(a):n}function wn(n,a){return typeof n=="function"?n(a):n}function Fg(n,a){const{type:i="all",exact:s,fetchStatus:o,predicate:c,queryKey:d,stale:h}=n;if(d){if(s){if(a.queryHash!==fh(d,a.options))return!1}else if(!ol(a.queryKey,d))return!1}if(i!=="all"){const p=a.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||o&&o!==a.state.fetchStatus||c&&!c(a))}function Zg(n,a){const{exact:i,status:s,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(i){if(ll(a.options.mutationKey)!==ll(c))return!1}else if(!ol(a.options.mutationKey,c))return!1}return!(s&&a.state.status!==s||o&&!o(a))}function fh(n,a){return(a?.queryKeyHashFn||ll)(n)}function ll(n){return JSON.stringify(n,(a,i)=>jd(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function ol(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(i=>ol(n[i],a[i])):!1}function ib(n,a){if(n===a)return n;const i=Yg(n)&&Yg(a);if(i||jd(n)&&jd(a)){const s=i?n:Object.keys(n),o=s.length,c=i?a:Object.keys(a),d=c.length,h=i?[]:{},p=new Set(s);let m=0;for(let g=0;g{setTimeout(a,n)})}function kd(n,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,a):i.structuralSharing!==!1?ib(n,a):a}function Pw(n,a,i=0){const s=[...n,a];return i&&s.length>i?s.slice(1):s}function Gw(n,a,i=0){const s=[a,...n];return i&&s.length>i?s.slice(0,-1):s}var dh=Symbol();function sb(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===dh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Fw(n,a){return typeof n=="function"?n(...a):!!n}var Zw=class extends Cl{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!Vr&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},hh=new Zw,Yw=class extends Cl{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!Vr&&window.addEventListener){const a=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(i=>{i(n)}))}isOnline(){return this.#t}},uu=new Yw;function zd(){let n,a;const i=new Promise((o,c)=>{n=o,a=c});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},i.reject=o=>{s({status:"rejected",reason:o}),a(o)},i}function Iw(n){return Math.min(1e3*2**n,3e4)}function lb(n){return(n??"online")==="online"?uu.isOnline():!0}var ob=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function ub(n){let a=!1,i=0,s;const o=zd(),c=()=>o.status!=="pending",d=_=>{c()||(w(new ob(_)),n.abort?.())},h=()=>{a=!0},p=()=>{a=!1},m=()=>hh.isFocused()&&(n.networkMode==="always"||uu.isOnline())&&n.canRun(),g=()=>lb(n.networkMode)&&n.canRun(),S=_=>{c()||(s?.(),o.resolve(_))},w=_=>{c()||(s?.(),o.reject(_))},A=()=>new Promise(_=>{s=C=>{(c()||m())&&_(C)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),O=()=>{if(c())return;let _;const C=i===0?n.initialPromise:void 0;try{_=C??n.fn()}catch(U){_=Promise.reject(U)}Promise.resolve(_).then(S).catch(U=>{if(c())return;const N=n.retry??(Vr?0:3),M=n.retryDelay??Iw,L=typeof M=="function"?M(i,U):M,B=N===!0||typeof N=="number"&&im()?void 0:A()).then(()=>{a?w(U):O()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?O():A().then(O),o)}}var Qw=n=>setTimeout(n,0);function Xw(){let n=[],a=0,i=h=>{h()},s=h=>{h()},o=Qw;const c=h=>{a?n.push(h):o(()=>{i(h)})},d=()=>{const h=n;n=[],h.length&&o(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||d()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{o=h}}}var kt=Xw(),cb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nd(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Vr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},Kw=class extends cb{#t;#e;#n;#a;#r;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=$w(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const i=kd(this.state.data,n,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),i}setState(n,a){this.#i({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#r?.promise;return this.#r?.cancel(n),a?a.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>wn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>rr(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!rb(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},o=()=>{const h=sb(this.options,a),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#s=!1,this.options.persister?this.options.persister(h,m,this):h(m)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return s(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#r=ub({initialPromise:a?.initialPromise,fn:d.fetchFn,abort:i.abort.bind(i),onFail:(h,p)=>{this.#i({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof ob){if(h.silent)return this.#r.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const a=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...fb(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?s:void 0,s;case"error":const o=n.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=a(this.state),kt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function fb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $w(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,i=a!==void 0,s=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Jw=class extends Cl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,i){const s=a.queryKey,o=a.queryHash??fh(s,a);let c=this.get(o);return c||(c=new Kw({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(a),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){kt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Fg(a,i))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(i=>Fg(n,i)):a}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Ww=class extends cb{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||e1(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(a=>a!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})};this.#n=ub({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,c)=>{this.#a({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",s=!this.#n.canStart();try{if(i)a();else{this.#a({type:"pending",variables:n,isPaused:s}),await this.#e.config.onMutate?.(n,this);const c=await this.options.onMutate?.(n);c!==this.state.context&&this.#a({type:"pending",context:c,variables:n,isPaused:s})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#a({type:"error",error:o})}}finally{this.#e.runNext(this)}}#a(n){const a=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),kt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function e1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var t1=class extends Cl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,i){const s=new Ww({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:i});return this.add(s),s}add(n){this.#t.add(n);const a=Io(n);if(typeof a=="string"){const i=this.#e.get(a);i?i.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=Io(n);if(typeof a=="string"){const i=this.#e.get(a);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Io(n);if(typeof a=="string"){const s=this.#e.get(a)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const a=Io(n);return typeof a=="string"?this.#e.get(a)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){kt.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Zg(a,i))}findAll(n={}){return this.getAll().filter(a=>Zg(n,a))}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return kt.batch(()=>Promise.all(n.map(a=>a.continue().catch(Wt))))}};function Io(n){return n.options.scope?.id}function Qg(n){return{onFetch:(a,i)=>{const s=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const S=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(a.signal.aborted?g=!0:a.signal.addEventListener("abort",()=>{g=!0}),a.signal)})},w=sb(a.options,a.fetchOptions),A=async(O,_,C)=>{if(g)return Promise.reject();if(_==null&&O.pages.length)return Promise.resolve(O);const N=(()=>{const ne={client:a.client,queryKey:a.queryKey,pageParam:_,direction:C?"backward":"forward",meta:a.options.meta};return S(ne),ne})(),M=await w(N),{maxPages:L}=a.options,B=C?Gw:Pw;return{pages:B(O.pages,M,L),pageParams:B(O.pageParams,_,L)}};if(o&&c.length){const O=o==="backward",_=O?n1:Xg,C={pages:c,pageParams:d},U=_(s,C);h=await A(C,U,O)}else{const O=n??c.length;do{const _=p===0?d[0]??s.initialPageParam:Xg(s,h);if(p>0&&_==null)break;h=await A(h,_),p++}while(pa.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i):a.fetchFn=m}}}function Xg(n,{pages:a,pageParams:i}){const s=a.length-1;return a.length>0?n.getNextPageParam(a[s],a,i[s],i):void 0}function n1(n,{pages:a,pageParams:i}){return a.length>0?n.getPreviousPageParam?.(a[0],a,i[0],i):void 0}var a1=class{#t;#e;#n;#a;#r;#l;#s;#i;constructor(n={}){this.#t=n.queryCache||new Jw,this.#e=n.mutationCache||new t1,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=hh.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=uu.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),i=this.#t.build(this,a),s=i.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(rr(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:i})=>{const s=i.data;return[a,s]})}setQueryData(n,a,i){const s=this.defaultQueryOptions({queryKey:n}),c=this.#t.get(s.queryHash)?.state.data,d=Hw(a,c);if(d!==void 0)return this.#t.build(this,s).setData(d,{...i,manual:!0})}setQueriesData(n,a,i){return kt.batch(()=>this.#t.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,a,i)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;kt.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(n,a){const i=this.#t;return kt.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const i={revert:!0,...a},s=kt.batch(()=>this.#t.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(Wt).catch(Wt)}invalidateQueries(n,a={}){return kt.batch(()=>(this.#t.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},s=kt.batch(()=>this.#t.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Wt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Wt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const i=this.#t.build(this,a);return i.isStaleByTime(rr(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Wt).catch(Wt)}fetchInfiniteQuery(n){return n.behavior=Qg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Wt).catch(Wt)}ensureInfiniteQueryData(n){return n.behavior=Qg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return uu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#a.set(ll(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],i={};return a.forEach(s=>{ol(n,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(n,a){this.#r.set(ll(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#r.values()],i={};return a.forEach(s=>{ol(n,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=fh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===dh&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},r1=class extends Cl{constructor(n,a){super(),this.options=a,this.#t=n,this.#i=null,this.#s=zd(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#l;#s;#i;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Kg(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ud(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ud(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,i=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),a._defaulted&&!Dd(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&$g(this.#e,i,this.options,a)&&this.#f(),this.updateResult(),s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||rr(this.options.staleTime,this.#e)!==rr(a.staleTime,this.#e))&&this.#v();const o=this.#g();s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||o!==this.#o)&&this.#y(o)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),i=this.createResult(a,n);return s1(this,i)&&(this.#a=i,this.#l=this.options,this.#r=this.#e.state),i}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),a?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),i=this.#t.getQueryCache().build(this.#t,a);return i.fetch().then(()=>this.createResult(i,a))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#_();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(Wt)),a}#v(){this.#x();const n=rr(this.options.staleTime,this.#e);if(Vr||this.#a.isStale||!Nd(n))return;const i=rb(this.#a.dataUpdatedAt,n)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#o=n,!(Vr||wn(this.options.enabled,this.#e)===!1||!Nd(this.#o)||this.#o===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||hh.isFocused())&&this.#f()},this.#o))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,a){const i=this.#e,s=this.options,o=this.#a,c=this.#r,d=this.#l,p=n!==i?n.state:this.#n,{state:m}=n;let g={...m},S=!1,w;if(a._optimisticResults){const z=this.hasListeners(),ae=!z&&Kg(n,a),oe=z&&$g(n,i,a,s);(ae||oe)&&(g={...g,...fb(m.data,n.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:A,errorUpdatedAt:O,status:_}=g;w=g.data;let C=!1;if(a.placeholderData!==void 0&&w===void 0&&_==="pending"){let z;o?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(z=o.data,C=!0):z=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,z!==void 0&&(_="success",w=kd(o?.data,z,a),S=!0)}if(a.select&&w!==void 0&&!C)if(o&&w===c?.data&&a.select===this.#p)w=this.#d;else try{this.#p=a.select,w=a.select(w),w=kd(o?.data,w,a),this.#d=w,this.#i=null}catch(z){this.#i=z}this.#i&&(A=this.#i,w=this.#d,O=Date.now(),_="error");const U=g.fetchStatus==="fetching",N=_==="pending",M=_==="error",L=N&&U,B=w!==void 0,Z={status:_,fetchStatus:g.fetchStatus,isPending:N,isSuccess:_==="success",isError:M,isInitialLoading:L,isLoading:L,data:w,dataUpdatedAt:g.dataUpdatedAt,error:A,errorUpdatedAt:O,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:U,isRefetching:U&&!N,isLoadingError:M&&!B,isPaused:g.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:M&&B,isStale:mh(n,a),refetch:this.refetch,promise:this.#s,isEnabled:wn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const z=Se=>{Z.status==="error"?Se.reject(Z.error):Z.data!==void 0&&Se.resolve(Z.data)},ae=()=>{const Se=this.#s=Z.promise=zd();z(Se)},oe=this.#s;switch(oe.status){case"pending":n.queryHash===i.queryHash&&z(oe);break;case"fulfilled":(Z.status==="error"||Z.data!==oe.value)&&ae();break;case"rejected":(Z.status!=="error"||Z.error!==oe.reason)&&ae();break}}return Z}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#l=this.options,this.#r.data!==void 0&&(this.#h=this.#e),Dd(a,n))return;this.#a=a;const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&c.has(h)})};this.#w({listeners:i()})}#_(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){kt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function i1(n,a){return wn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function Kg(n,a){return i1(n,a)||n.state.data!==void 0&&Ud(n,a,a.refetchOnMount)}function Ud(n,a,i){if(wn(a.enabled,n)!==!1&&rr(a.staleTime,n)!=="static"){const s=typeof i=="function"?i(n):i;return s==="always"||s!==!1&&mh(n,a)}return!1}function $g(n,a,i,s){return(n!==a||wn(s.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&mh(n,i)}function mh(n,a){return wn(a.enabled,n)!==!1&&n.isStaleByTime(rr(a.staleTime,n))}function s1(n,a){return!Dd(n.getCurrentResult(),a)}var ud={exports:{}},Ue={};/** * @license React * react.production.js * @@ -14,7 +14,7 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Wg;function _1(){if(Wg)return Ue;Wg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,_={};function T(C,I,ie){this.props=C,this.context=I,this.refs=_,this.updater=ie||O}T.prototype.isReactComponent={},T.prototype.setState=function(C,I){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,I,"setState")},T.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function k(){}k.prototype=T.prototype;function M(C,I,ie){this.props=C,this.context=I,this.refs=_,this.updater=ie||O}var U=M.prototype=new k;U.constructor=M,A(U,T.prototype),U.isPureReactComponent=!0;var G=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},W=Object.prototype.hasOwnProperty;function F(C,I,ie,te,oe,Re){return ie=Re.ref,{$$typeof:n,type:C,key:I,ref:ie!==void 0?ie:null,props:Re}}function Z(C,I){return F(C.type,I,void 0,void 0,void 0,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function le(C){var I={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ie){return I[ie]})}var ce=/\/+/g;function re(C,I){return typeof C=="object"&&C!==null&&C.key!=null?le(""+C.key):I.toString(36)}function he(){}function pe(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(he,he):(C.status="pending",C.then(function(I){C.status==="pending"&&(C.status="fulfilled",C.value=I)},function(I){C.status==="pending"&&(C.status="rejected",C.reason=I)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ge(C,I,ie,te,oe){var Re=typeof C;(Re==="undefined"||Re==="boolean")&&(C=null);var Se=!1;if(C===null)Se=!0;else switch(Re){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(C.$$typeof){case n:case a:Se=!0;break;case g:return Se=C._init,ge(Se(C._payload),I,ie,te,oe)}}if(Se)return oe=oe(C),Se=te===""?"."+re(C,0):te,G(oe)?(ie="",Se!=null&&(ie=Se.replace(ce,"$&/")+"/"),ge(oe,I,ie,"",function(Xe){return Xe})):oe!=null&&(J(oe)&&(oe=Z(oe,ie+(oe.key==null||C&&C.key===oe.key?"":(""+oe.key).replace(ce,"$&/")+"/")+Se)),I.push(oe)),1;Se=0;var ne=te===""?".":te+":";if(G(C))for(var Te=0;Te{const a=b.useContext(vb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},E1=({client:n,children:a})=>(b.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),y.jsx(vb.Provider,{value:n,children:a})),gb=b.createContext(!1),C1=()=>b.useContext(gb);gb.Provider;function T1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var A1=b.createContext(T1()),R1=()=>b.useContext(A1),O1=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},M1=n=>{b.useEffect(()=>{n.clearReset()},[n])},N1=({result:n,errorResetBoundary:a,throwOnError:i,query:s,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||i1(i,[n.error,s])),D1=n=>{if(n.suspense){const a=s=>s==="static"?s:Math.max(s??1e3,1e3),i=n.staleTime;n.staleTime=typeof i=="function"?(...s)=>a(i(...s)):a(i),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},j1=(n,a)=>n.isLoading&&n.isFetching&&!a,k1=(n,a)=>n?.suspense&&a.isPending,ty=(n,a,i)=>a.fetchOptimistic(n).catch(()=>{i.clearReset()});function z1(n,a,i){const s=C1(),o=R1(),c=w1(),d=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",D1(d),O1(d,o),M1(o);const h=!c.getQueryCache().get(d.queryHash),[p]=b.useState(()=>new a(c,d)),m=p.getOptimisticResult(d),g=!s&&n.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(S=>{const w=g?p.subscribe(kt.batchCalls(S)):Wt;return p.updateResult(),w},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(d)},[d,p]),k1(d,m))throw ty(d,p,o);if(N1({result:m,errorResetBoundary:o,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!Hr&&j1(m,s)&&(h?ty(d,p,o):c.getQueryCache().get(d.queryHash)?.promise)?.catch(Wt).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function Hd(n,a){return z1(n,b1)}const U1=new y1({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var hd={exports:{}},el={},md={exports:{}},pd={};/** + */var Jg;function l1(){if(Jg)return Ue;Jg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.iterator;function w(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,_={};function C(T,Y,se){this.props=T,this.context=Y,this.refs=_,this.updater=se||A}C.prototype.isReactComponent={},C.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},C.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function U(){}U.prototype=C.prototype;function N(T,Y,se){this.props=T,this.context=Y,this.refs=_,this.updater=se||A}var M=N.prototype=new U;M.constructor=N,O(M,C.prototype),M.isPureReactComponent=!0;var L=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},ne=Object.prototype.hasOwnProperty;function Z(T,Y,se,W,ce,Re){return se=Re.ref,{$$typeof:n,type:T,key:Y,ref:se!==void 0?se:null,props:Re}}function z(T,Y){return Z(T.type,Y,void 0,void 0,void 0,T.props)}function ae(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function oe(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(se){return Y[se]})}var Se=/\/+/g;function re(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?oe(""+T.key):Y.toString(36)}function ie(){}function ue(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ie,ie):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function me(T,Y,se,W,ce){var Re=typeof T;(Re==="undefined"||Re==="boolean")&&(T=null);var xe=!1;if(T===null)xe=!0;else switch(Re){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(T.$$typeof){case n:case a:xe=!0;break;case g:return xe=T._init,me(xe(T._payload),Y,se,W,ce)}}if(xe)return ce=ce(T),xe=W===""?"."+re(T,0):W,L(ce)?(se="",xe!=null&&(se=xe.replace(Se,"$&/")+"/"),me(ce,Y,se,"",function(Xe){return Xe})):ce!=null&&(ae(ce)&&(ce=z(ce,se+(ce.key==null||T&&T.key===ce.key?"":(""+ce.key).replace(Se,"$&/")+"/")+xe)),Y.push(ce)),1;xe=0;var ee=W===""?".":W+":";if(L(T))for(var Te=0;Te{const a=b.useContext(hb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},u1=({client:n,children:a})=>(b.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),y.jsx(hb.Provider,{value:n,children:a})),mb=b.createContext(!1),c1=()=>b.useContext(mb);mb.Provider;function f1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var d1=b.createContext(f1()),h1=()=>b.useContext(d1),m1=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},p1=n=>{b.useEffect(()=>{n.clearReset()},[n])},v1=({result:n,errorResetBoundary:a,throwOnError:i,query:s,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||Fw(i,[n.error,s])),g1=n=>{if(n.suspense){const a=s=>s==="static"?s:Math.max(s??1e3,1e3),i=n.staleTime;n.staleTime=typeof i=="function"?(...s)=>a(i(...s)):a(i),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},y1=(n,a)=>n.isLoading&&n.isFetching&&!a,b1=(n,a)=>n?.suspense&&a.isPending,ey=(n,a,i)=>a.fetchOptimistic(n).catch(()=>{i.clearReset()});function x1(n,a,i){const s=c1(),o=h1(),c=o1(),d=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",g1(d),m1(d,o),p1(o);const h=!c.getQueryCache().get(d.queryHash),[p]=b.useState(()=>new a(c,d)),m=p.getOptimisticResult(d),g=!s&&n.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(S=>{const w=g?p.subscribe(kt.batchCalls(S)):Wt;return p.updateResult(),w},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(d)},[d,p]),b1(d,m))throw ey(d,p,o);if(v1({result:m,errorResetBoundary:o,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!Vr&&y1(m,s)&&(h?ey(d,p,o):c.getQueryCache().get(d.queryHash)?.promise)?.catch(Wt).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function Ld(n,a){return x1(n,r1)}const S1=new a1({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var cd={exports:{}},Js={},fd={exports:{}},dd={};/** * @license React * scheduler.production.js * @@ -22,7 +22,7 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ny;function L1(){return ny||(ny=1,(function(n){function a(j,Y){var H=j.length;j.push(Y);e:for(;0>>1,C=j[ee];if(0>>1;eeo(te,H))oeo(Re,te)?(j[ee]=Re,j[oe]=H,ee=oe):(j[ee]=te,j[ie]=H,ee=ie);else if(oeo(Re,H))j[ee]=Re,j[oe]=H,ee=oe;else break e}}return Y}function o(j,Y){var H=j.sortIndex-Y.sortIndex;return H!==0?H:j.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],g=1,S=null,w=3,O=!1,A=!1,_=!1,T=!1,k=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G(j){for(var Y=i(m);Y!==null;){if(Y.callback===null)s(m);else if(Y.startTime<=j)s(m),Y.sortIndex=Y.expirationTime,a(p,Y);else break;Y=i(m)}}function N(j){if(_=!1,G(j),!A)if(i(p)!==null)A=!0,W||(W=!0,re());else{var Y=i(m);Y!==null&&ge(N,Y.startTime-j)}}var W=!1,F=-1,Z=5,J=-1;function le(){return T?!0:!(n.unstable_now()-Jj&&le());){var ee=S.callback;if(typeof ee=="function"){S.callback=null,w=S.priorityLevel;var C=ee(S.expirationTime<=j);if(j=n.unstable_now(),typeof C=="function"){S.callback=C,G(j),Y=!0;break t}S===i(p)&&s(p),G(j)}else s(p);S=i(p)}if(S!==null)Y=!0;else{var I=i(m);I!==null&&ge(N,I.startTime-j),Y=!1}}break e}finally{S=null,w=H,O=!1}Y=void 0}}finally{Y?re():W=!1}}}var re;if(typeof U=="function")re=function(){U(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,pe=he.port2;he.port1.onmessage=ce,re=function(){pe.postMessage(null)}}else re=function(){k(ce,0)};function ge(j,Y){F=k(function(){j(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125ee?(j.sortIndex=H,a(m,j),i(p)===null&&j===i(m)&&(_?(M(F),F=-1):_=!0,ge(N,H-ee))):(j.sortIndex=C,a(p,j),A||O||(A=!0,W||(W=!0,re()))),j},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(j){var Y=w;return function(){var H=w;w=Y;try{return j.apply(this,arguments)}finally{w=H}}}})(pd)),pd}var ay;function V1(){return ay||(ay=1,md.exports=L1()),md.exports}var vd={exports:{}},Vt={};/** + */var ty;function _1(){return ty||(ty=1,(function(n){function a(j,I){var P=j.length;j.push(I);e:for(;0>>1,T=j[J];if(0>>1;Jo(W,P))ceo(Re,W)?(j[J]=Re,j[ce]=P,J=ce):(j[J]=W,j[se]=P,J=se);else if(ceo(Re,P))j[J]=Re,j[ce]=P,J=ce;else break e}}return I}function o(j,I){var P=j.sortIndex-I.sortIndex;return P!==0?P:j.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],g=1,S=null,w=3,A=!1,O=!1,_=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function L(j){for(var I=i(m);I!==null;){if(I.callback===null)s(m);else if(I.startTime<=j)s(m),I.sortIndex=I.expirationTime,a(p,I);else break;I=i(m)}}function B(j){if(_=!1,L(j),!O)if(i(p)!==null)O=!0,ne||(ne=!0,re());else{var I=i(m);I!==null&&me(B,I.startTime-j)}}var ne=!1,Z=-1,z=5,ae=-1;function oe(){return C?!0:!(n.unstable_now()-aej&&oe());){var J=S.callback;if(typeof J=="function"){S.callback=null,w=S.priorityLevel;var T=J(S.expirationTime<=j);if(j=n.unstable_now(),typeof T=="function"){S.callback=T,L(j),I=!0;break t}S===i(p)&&s(p),L(j)}else s(p);S=i(p)}if(S!==null)I=!0;else{var Y=i(m);Y!==null&&me(B,Y.startTime-j),I=!1}}break e}finally{S=null,w=P,A=!1}I=void 0}}finally{I?re():ne=!1}}}var re;if(typeof M=="function")re=function(){M(Se)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ue=ie.port2;ie.port1.onmessage=Se,re=function(){ue.postMessage(null)}}else re=function(){U(Se,0)};function me(j,I){Z=U(function(){j(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125J?(j.sortIndex=P,a(m,j),i(p)===null&&j===i(m)&&(_?(N(Z),Z=-1):_=!0,me(B,P-J))):(j.sortIndex=T,a(p,j),O||A||(O=!0,ne||(ne=!0,re()))),j},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(j){var I=w;return function(){var P=w;w=I;try{return j.apply(this,arguments)}finally{w=P}}}})(dd)),dd}var ny;function w1(){return ny||(ny=1,fd.exports=_1()),fd.exports}var hd={exports:{}},Vt={};/** * @license React * react-dom.production.js * @@ -30,7 +30,7 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ry;function B1(){if(ry)return Vt;ry=1;var n=ph();function a(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),vd.exports=B1(),vd.exports}/** + */var ay;function E1(){if(ay)return Vt;ay=1;var n=ph();function a(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),hd.exports=E1(),hd.exports}/** * @license React * react-dom-client.production.js * @@ -38,23 +38,23 @@ import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as _a}from"./produc * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sy;function H1(){if(sy)return el;sy=1;var n=V1(),a=ph(),i=yb();function s(e){var t="https://react.dev/errors/"+e;if(1C||(e.current=ee[C],ee[C]=null,C--)}function te(e,t){C++,ee[C]=e.current,e.current=t}var oe=I(null),Re=I(null),Se=I(null),ne=I(null);function Te(e,t){switch(te(Se,t),te(Re,e),te(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gg(t),e=yg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ie(oe),te(oe,e)}function Xe(){ie(oe),ie(Re),ie(Se)}function He(e){e.memoizedState!==null&&te(ne,e);var t=oe.current,r=yg(t,e.type);t!==r&&(te(Re,e),te(oe,r))}function Ze(e){Re.current===e&&(ie(oe),ie(Re)),ne.current===e&&(ie(ne),Qs._currentValue=H)}var Ke=Object.prototype.hasOwnProperty,Tt=n.unstable_scheduleCallback,It=n.unstable_cancelCallback,Na=n.unstable_shouldYield,vr=n.unstable_requestPaint,zt=n.unstable_now,Wh=n.unstable_getCurrentPriorityLevel,as=n.unstable_ImmediatePriority,R=n.unstable_UserBlockingPriority,B=n.unstable_NormalPriority,X=n.unstable_LowPriority,me=n.unstable_IdlePriority,ue=n.log,se=n.unstable_setDisableYieldValue,_e=null,ke=null;function Ie(e){if(typeof ue=="function"&&se(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var ot=Math.clz32?Math.clz32:Ju,$r=Math.log,Ln=Math.LN2;function Ju(e){return e>>>=0,e===0?32:31-($r(e)/Ln|0)|0}var Da=256,ja=4194304;function aa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~f,l!==0?u=aa(l):(v&=x,v!==0?u=aa(v):r||(r=x&~e,r!==0&&(u=aa(r))))):(x=l&~f,x!==0?u=aa(x):v!==0?u=aa(v):r||(r=l&~e,r!==0&&(u=aa(r)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:u}function yr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ul(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 em(){var e=Da;return Da<<=1,(Da&4194048)===0&&(Da=256),e}function tm(){var e=ja;return ja<<=1,(ja&62914560)===0&&(ja=4194304),e}function Wu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function rs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function LS(e,t,r,l,u,f){var v=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,V=e.hiddenUpdates;for(r=v&~r;0T||(e.current=J[T],J[T]=null,T--)}function W(e,t){T++,J[T]=e.current,e.current=t}var ce=Y(null),Re=Y(null),xe=Y(null),ee=Y(null);function Te(e,t){switch(W(xe,t),W(Re,e),W(ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vg(t),e=gg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}se(ce),W(ce,e)}function Xe(){se(ce),se(Re),se(xe)}function He(e){e.memoizedState!==null&&W(ee,e);var t=ce.current,r=gg(t,e.type);t!==r&&(W(Re,e),W(ce,r))}function Fe(e){Re.current===e&&(se(ce),se(Re)),ee.current===e&&(se(ee),Ys._currentValue=P)}var Ke=Object.prototype.hasOwnProperty,At=n.unstable_scheduleCallback,Yt=n.unstable_cancelCallback,Oa=n.unstable_shouldYield,mr=n.unstable_requestPaint,zt=n.unstable_now,Jh=n.unstable_getCurrentPriorityLevel,ts=n.unstable_ImmediatePriority,R=n.unstable_UserBlockingPriority,q=n.unstable_NormalPriority,X=n.unstable_LowPriority,pe=n.unstable_IdlePriority,fe=n.log,le=n.unstable_setDisableYieldValue,_e=null,ke=null;function Ze(e){if(typeof fe=="function"&&le(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var ot=Math.clz32?Math.clz32:Xu,Kr=Math.log,Ln=Math.LN2;function Xu(e){return e>>>=0,e===0?32:31-(Kr(e)/Ln|0)|0}var Ma=256,Na=4194304;function ea(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~f,l!==0?u=ea(l):(v&=x,v!==0?u=ea(v):r||(r=x&~e,r!==0&&(u=ea(r))))):(x=l&~f,x!==0?u=ea(x):v!==0?u=ea(v):r||(r=l&~e,r!==0&&(u=ea(r)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:u}function vr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zl(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Wh(){var e=Ma;return Ma<<=1,(Ma&4194048)===0&&(Ma=256),e}function em(){var e=Na;return Na<<=1,(Na&62914560)===0&&(Na=4194304),e}function Ku(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ns(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _S(e,t,r,l,u,f){var v=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,H=e.hiddenUpdates;for(r=v&~r;0)":-1u||E[l]!==V[u]){var Q=` -`+E[l].replace(" at new "," at ");return e.displayName&&Q.includes("")&&(Q=Q.replace("",e.displayName)),Q}while(1<=l&&0<=u);break}}}finally{ic=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ai(r):""}function GS(e){switch(e.tag){case 26:case 27:case 5:return ai(e.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 15:return sc(e.type,!1);case 11:return sc(e.type.render,!1);case 1:return sc(e.type,!0);case 31:return ai("Activity");default:return""}}function fm(e){try{var t="";do t+=GS(e),e=e.return;while(e);return t}catch(r){return` +`+tc+e+um}var nc=!1;function ac(e,t){if(!e||nc)return"";nc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(F){var G=F}Reflect.construct(e,[],$)}else{try{$.call()}catch(F){G=F}e.call($.prototype)}}else{try{throw Error()}catch(F){G=F}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(F){if(F&&G&&typeof F.stack=="string")return[F.stack,G.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),v=f[0],x=f[1];if(v&&x){var E=v.split(` +`),H=x.split(` +`);for(u=l=0;lu||E[l]!==H[u]){var Q=` +`+E[l].replace(" at new "," at ");return e.displayName&&Q.includes("")&&(Q=Q.replace("",e.displayName)),Q}while(1<=l&&0<=u);break}}}finally{nc=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ni(r):""}function RS(e){switch(e.tag){case 26:case 27:case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return ni("Suspense");case 19:return ni("SuspenseList");case 0:case 15:return ac(e.type,!1);case 11:return ac(e.type.render,!1);case 1:return ac(e.type,!0);case 31:return ni("Activity");default:return""}}function cm(e){try{var t="";do t+=RS(e),e=e.return;while(e);return t}catch(r){return` Error generating stack: `+r.message+` -`+r.stack}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FS(e){var t=dm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,f=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(v){l=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bl(e){e._valueTracker||(e._valueTracker=FS(e))}function hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=dm(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function Hl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ZS=/[\n"\\]/g;function pn(e){return e.replace(ZS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lc(e,t,r,l,u,f,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mn(t)):e.value!==""+mn(t)&&(e.value=""+mn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?oc(e,v,mn(t)):r!=null?oc(e,v,mn(r)):l!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+mn(x):e.removeAttribute("name")}function mm(e,t,r,l,u,f,v,x){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||r!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;r=r!=null?""+mn(r):"",t=t!=null?""+mn(t):r,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function oc(e,t,r){t==="number"&&Hl(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ri(e,t,r,l){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=!1;if(ia)try{var os={};Object.defineProperty(os,"passive",{get:function(){hc=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{hc=!1}var za=null,mc=null,ql=null;function Sm(){if(ql)return ql;var e,t=mc,r=t.length,l,u="value"in za?za.value:za.textContent,f=u.length;for(e=0;e=fs),Am=" ",Rm=!1;function Om(e,t){switch(e){case"keyup":return b_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function S_(e,t){switch(e){case"compositionend":return Mm(t);case"keypress":return t.which!==32?null:(Rm=!0,Am);case"textInput":return e=t.data,e===Am&&Rm?null:e;default:return null}}function __(e,t){if(oi)return e==="compositionend"||!bc&&Om(e,t)?(e=Sm(),ql=mc=za=null,oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Vm(r)}}function Hm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hl(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Hl(e.document)}return t}function _c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var M_=ia&&"documentMode"in document&&11>=document.documentMode,ui=null,wc=null,ps=null,Ec=!1;function qm(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ec||ui==null||ui!==Hl(l)||(l=ui,"selectionStart"in l&&_c(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ps&&ms(ps,l)||(ps=l,l=jo(wc,"onSelect"),0>=v,u-=v,la=1<<32-ot(t)+u|r<f?f:8;var v=j.T,x={};j.T=x,cf(e,!1,t,r);try{var E=u(),V=j.S;if(V!==null&&V(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var Q=B_(E,l);Ms(e,t,Q,sn(e))}else Ms(e,t,l,sn(e))}catch($){Ms(e,t,{then:function(){},status:"rejected",reason:$},sn())}finally{Y.p=f,j.T=v}}function F_(){}function of(e,t,r,l){if(e.tag!==5)throw Error(s(476));var u=Gp(e).queue;qp(e,u,t,H,r===null?F_:function(){return Fp(e),r(l)})}function Gp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:H},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fp(e){var t=Gp(e).next.queue;Ms(e,t,{},sn())}function uf(){return Lt(Qs)}function Zp(){return xt().memoizedState}function Ip(){return xt().memoizedState}function Z_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=sn();e=Va(r);var l=Ba(t,e,r);l!==null&&(ln(l,t,r),Es(l,t,r)),t={cache:Vc()},e.payload=t;return}t=t.return}}function I_(e,t,r){var l=sn();r={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},ho(e)?Qp(t,r):(r=Rc(e,t,r,l),r!==null&&(ln(r,e,l),Xp(r,t,l)))}function Yp(e,t,r){var l=sn();Ms(e,t,r,l)}function Ms(e,t,r,l){var u={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(ho(e))Qp(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,x=f(v,r);if(u.hasEagerState=!0,u.eagerState=x,en(x,v))return Xl(e,t,u,0),ut===null&&Ql(),!1}catch{}finally{}if(r=Rc(e,t,u,l),r!==null)return ln(r,e,l),Xp(r,t,l),!0}return!1}function cf(e,t,r,l){if(l={lane:2,revertLane:qf(),action:l,hasEagerState:!1,eagerState:null,next:null},ho(e)){if(t)throw Error(s(479))}else t=Rc(e,r,l,2),t!==null&&ln(t,e,2)}function ho(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Qp(e,t){bi=so=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Xp(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,am(e,r)}}var mo={readContext:Lt,use:oo,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt},Kp={readContext:Lt,use:oo,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:jp,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,fo(4194308,4,Lp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fo(4194308,4,e,t)},useInsertionEffect:function(e,t){fo(4,2,e,t)},useMemo:function(e,t){var r=Xt();t=t===void 0?null:t;var l=e();if(Nr){Ie(!0);try{e()}finally{Ie(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Xt();if(r!==void 0){var u=r(t);if(Nr){Ie(!0);try{r(t)}finally{Ie(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=I_.bind(null,Ve,e),[l.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=af(e);var t=e.queue,r=Yp.bind(null,Ve,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:sf,useDeferredValue:function(e,t){var r=Xt();return lf(r,e,t)},useTransition:function(){var e=af(!1);return e=qp.bind(null,Ve,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=Ve,u=Xt();if(Je){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),ut===null)throw Error(s(349));(Ye&124)!==0||gp(l,t,r)}u.memoizedState=r;var f={value:r,getSnapshot:t};return u.queue=f,jp(bp.bind(null,l,f,e),[e]),l.flags|=2048,Si(9,co(),yp.bind(null,l,f,r,t),null),r},useId:function(){var e=Xt(),t=ut.identifierPrefix;if(Je){var r=oa,l=la;r=(l&~(1<<32-ot(l)-1)).toString(32)+r,t="«"+t+"R"+r,r=lo++,0Oe?(Mt=Ce,Ce=null):Mt=Ce.sibling;var $e=P(z,Ce,L[Oe],K);if($e===null){Ce===null&&(Ce=Mt);break}e&&Ce&&$e.alternate===null&&t(z,Ce),D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e,Ce=Mt}if(Oe===L.length)return r(z,Ce),Je&&Cr(z,Oe),ye;if(Ce===null){for(;OeOe?(Mt=Ce,Ce=null):Mt=Ce.sibling;var nr=P(z,Ce,$e.value,K);if(nr===null){Ce===null&&(Ce=Mt);break}e&&Ce&&nr.alternate===null&&t(z,Ce),D=f(nr,D,Oe),Pe===null?ye=nr:Pe.sibling=nr,Pe=nr,Ce=Mt}if($e.done)return r(z,Ce),Je&&Cr(z,Oe),ye;if(Ce===null){for(;!$e.done;Oe++,$e=L.next())$e=$(z,$e.value,K),$e!==null&&(D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e);return Je&&Cr(z,Oe),ye}for(Ce=l(Ce);!$e.done;Oe++,$e=L.next())$e=q(Ce,z,Oe,$e.value,K),$e!==null&&(e&&$e.alternate!==null&&Ce.delete($e.key===null?Oe:$e.key),D=f($e,D,Oe),Pe===null?ye=$e:Pe.sibling=$e,Pe=$e);return e&&Ce.forEach(function(Qw){return t(z,Qw)}),Je&&Cr(z,Oe),ye}function st(z,D,L,K){if(typeof L=="object"&&L!==null&&L.type===A&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case w:e:{for(var ye=L.key;D!==null;){if(D.key===ye){if(ye=L.type,ye===A){if(D.tag===7){r(z,D.sibling),K=u(D,L.props.children),K.return=z,z=K;break e}}else if(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===Z&&Jp(ye)===D.type){r(z,D.sibling),K=u(D,L.props),Ds(K,L),K.return=z,z=K;break e}r(z,D);break}else t(z,D);D=D.sibling}L.type===A?(K=wr(L.props.children,z.mode,K,L.key),K.return=z,z=K):(K=$l(L.type,L.key,L.props,null,z.mode,K),Ds(K,L),K.return=z,z=K)}return v(z);case O:e:{for(ye=L.key;D!==null;){if(D.key===ye)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){r(z,D.sibling),K=u(D,L.children||[]),K.return=z,z=K;break e}else{r(z,D);break}else t(z,D);D=D.sibling}K=Nc(L,z.mode,K),K.return=z,z=K}return v(z);case Z:return ye=L._init,L=ye(L._payload),st(z,D,L,K)}if(ge(L))return De(z,D,L,K);if(re(L)){if(ye=re(L),typeof ye!="function")throw Error(s(150));return L=ye.call(L),Ae(z,D,L,K)}if(typeof L.then=="function")return st(z,D,po(L),K);if(L.$$typeof===U)return st(z,D,to(z,L),K);vo(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(r(z,D.sibling),K=u(D,L),K.return=z,z=K):(r(z,D),K=Mc(L,z.mode,K),K.return=z,z=K),v(z)):r(z,D)}return function(z,D,L,K){try{Ns=0;var ye=st(z,D,L,K);return _i=null,ye}catch(Ce){if(Ce===_s||Ce===ao)throw Ce;var Pe=tn(29,Ce,null,z.mode);return Pe.lanes=K,Pe.return=z,Pe}finally{}}}var wi=Wp(!0),ev=Wp(!1),xn=I(null),Bn=null;function Pa(e){var t=e.alternate;te(wt,wt.current&1),te(xn,e),Bn===null&&(t===null||yi.current!==null||t.memoizedState!==null)&&(Bn=e)}function tv(e){if(e.tag===22){if(te(wt,wt.current),te(xn,e),Bn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Bn=e)}}else qa()}function qa(){te(wt,wt.current),te(xn,xn.current)}function da(e){ie(xn),Bn===e&&(Bn=null),ie(wt)}var wt=I(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||ed(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ff(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:g({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var df={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=sn(),u=Va(l);u.payload=t,r!=null&&(u.callback=r),t=Ba(e,u,l),t!==null&&(ln(t,e,l),Es(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=sn(),u=Va(l);u.tag=1,u.payload=t,r!=null&&(u.callback=r),t=Ba(e,u,l),t!==null&&(ln(t,e,l),Es(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=sn(),l=Va(r);l.tag=2,t!=null&&(l.callback=t),t=Ba(e,l,r),t!==null&&(ln(t,e,r),Es(t,e,r))}};function nv(e,t,r,l,u,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,v):t.prototype&&t.prototype.isPureReactComponent?!ms(r,l)||!ms(u,f):!0}function av(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&df.enqueueReplaceState(t,t.state,null)}function Dr(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=g({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}var yo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function rv(e){yo(e)}function iv(e){console.error(e)}function sv(e){yo(e)}function bo(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function lv(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function hf(e,t,r){return r=Va(r),r.tag=3,r.payload={element:null},r.callback=function(){bo(e,t)},r}function ov(e){return e=Va(e),e.tag=3,e}function uv(e,t,r,l){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var f=l.value;e.payload=function(){return u(f)},e.callback=function(){lv(t,r,l)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){lv(t,r,l),typeof u!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function Q_(e,t,r,l,u){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&bs(t,r,u,!0),r=xn.current,r!==null){switch(r.tag){case 13:return Bn===null?Lf():r.alternate===null&&mt===0&&(mt=3),r.flags&=-257,r.flags|=65536,r.lanes=u,l===Pc?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),Bf(e,l,u)),!1;case 22:return r.flags|=65536,l===Pc?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),Bf(e,l,u)),!1}throw Error(s(435,r.tag))}return Bf(e,l,u),Lf(),!1}if(Je)return t=xn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==kc&&(e=Error(s(422),{cause:l}),ys(vn(e,r)))):(l!==kc&&(t=Error(s(423),{cause:l}),ys(vn(t,r))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=vn(l,r),u=hf(e.stateNode,l,u),Fc(e,u),mt!==4&&(mt=2)),!1;var f=Error(s(520),{cause:l});if(f=vn(f,r),Bs===null?Bs=[f]:Bs.push(f),mt!==4&&(mt=2),t===null)return!0;l=vn(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=hf(r.stateNode,l,e),Fc(r,e),!1;case 1:if(t=r.type,f=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Qa===null||!Qa.has(f))))return r.flags|=65536,u&=-u,r.lanes|=u,u=ov(u),uv(u,e,r,l),Fc(r,u),!1}r=r.return}while(r!==null);return!1}var cv=Error(s(461)),Rt=!1;function Nt(e,t,r,l){t.child=e===null?ev(t,null,r,l):wi(t,e.child,r,l)}function fv(e,t,r,l,u){r=r.render;var f=t.ref;if("ref"in l){var v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}else v=l;return Or(t),l=Xc(e,t,r,v,f,u),x=Kc(),e!==null&&!Rt?($c(e,t,u),ha(e,t,u)):(Je&&x&&Dc(t),t.flags|=1,Nt(e,t,l,u),t.child)}function dv(e,t,r,l,u){if(e===null){var f=r.type;return typeof f=="function"&&!Oc(f)&&f.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=f,hv(e,t,f,l,u)):(e=$l(r.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Sf(e,u)){var v=f.memoizedProps;if(r=r.compare,r=r!==null?r:ms,r(v,l)&&e.ref===t.ref)return ha(e,t,u)}return t.flags|=1,e=sa(f,l),e.ref=t.ref,e.return=t,t.child=e}function hv(e,t,r,l,u){if(e!==null){var f=e.memoizedProps;if(ms(f,l)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=l=f,Sf(e,u))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,ha(e,t,u)}return mf(e,t,r,l,u)}function mv(e,t,r){var l=t.pendingProps,u=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|r:r,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return pv(e,t,l,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&no(t,f!==null?f.cachePool:null),f!==null?hp(t,f):Ic(),tv(t);else return t.lanes=t.childLanes=536870912,pv(e,t,f!==null?f.baseLanes|r:r,r)}else f!==null?(no(t,f.cachePool),hp(t,f),qa(),t.memoizedState=null):(e!==null&&no(t,null),Ic(),qa());return Nt(e,t,u,r),t.child}function pv(e,t,r,l){var u=Hc();return u=u===null?null:{parent:_t._currentValue,pool:u},t.memoizedState={baseLanes:r,cachePool:u},e!==null&&no(t,null),Ic(),tv(t),e!==null&&bs(e,t,l,!0),null}function xo(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function mf(e,t,r,l,u){return Or(t),r=Xc(e,t,r,l,void 0,u),l=Kc(),e!==null&&!Rt?($c(e,t,u),ha(e,t,u)):(Je&&l&&Dc(t),t.flags|=1,Nt(e,t,r,u),t.child)}function vv(e,t,r,l,u,f){return Or(t),t.updateQueue=null,r=pp(t,l,r,u),mp(e),l=Kc(),e!==null&&!Rt?($c(e,t,f),ha(e,t,f)):(Je&&l&&Dc(t),t.flags|=1,Nt(e,t,r,f),t.child)}function gv(e,t,r,l,u){if(Or(t),t.stateNode===null){var f=hi,v=r.contextType;typeof v=="object"&&v!==null&&(f=Lt(v)),f=new r(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=df,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},qc(t),v=r.contextType,f.context=typeof v=="object"&&v!==null?Lt(v):hi,f.state=t.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(ff(t,r,v,l),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&df.enqueueReplaceState(f,f.state,null),Ts(t,l,f,u),Cs(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var x=t.memoizedProps,E=Dr(r,x);f.props=E;var V=f.context,Q=r.contextType;v=hi,typeof Q=="object"&&Q!==null&&(v=Lt(Q));var $=r.getDerivedStateFromProps;Q=typeof $=="function"||typeof f.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x||V!==v)&&av(t,f,l,v),La=!1;var P=t.memoizedState;f.state=P,Ts(t,l,f,u),Cs(),V=t.memoizedState,x||P!==V||La?(typeof $=="function"&&(ff(t,r,$,l),V=t.memoizedState),(E=La||nv(t,r,E,l,P,V,v))?(Q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=V),f.props=l,f.state=V,f.context=v,l=E):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,Gc(e,t),v=t.memoizedProps,Q=Dr(r,v),f.props=Q,$=t.pendingProps,P=f.context,V=r.contextType,E=hi,typeof V=="object"&&V!==null&&(E=Lt(V)),x=r.getDerivedStateFromProps,(V=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==$||P!==E)&&av(t,f,l,E),La=!1,P=t.memoizedState,f.state=P,Ts(t,l,f,u),Cs();var q=t.memoizedState;v!==$||P!==q||La||e!==null&&e.dependencies!==null&&eo(e.dependencies)?(typeof x=="function"&&(ff(t,r,x,l),q=t.memoizedState),(Q=La||nv(t,r,Q,l,P,q,E)||e!==null&&e.dependencies!==null&&eo(e.dependencies))?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,q,E),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,q,E)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),f.props=l,f.state=q,f.context=E,l=Q):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,xo(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=wi(t,e.child,null,u),t.child=wi(t,null,r,u)):Nt(e,t,r,u),t.memoizedState=f.state,e=t.child):e=ha(e,t,u),e}function yv(e,t,r,l){return gs(),t.flags|=256,Nt(e,t,r,l),t.child}var pf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vf(e){return{baseLanes:e,cachePool:ip()}}function gf(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Sn),e}function bv(e,t,r){var l=t.pendingProps,u=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),v&&(u=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Je){if(u?Pa(t):qa(),Je){var x=ht,E;if(E=x){e:{for(E=x,x=Vn;E.nodeType!==8;){if(!x){x=null;break e}if(E=An(E.nextSibling),E===null){x=null;break e}}x=E}x!==null?(t.memoizedState={dehydrated:x,treeContext:Er!==null?{id:la,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},E=tn(18,null,null,0),E.stateNode=x,E.return=t,t.child=E,Pt=t,ht=null,E=!0):E=!1}E||Ar(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return ed(x)?t.lanes=32:t.lanes=536870912,null;da(t)}return x=l.children,l=l.fallback,u?(qa(),u=t.mode,x=So({mode:"hidden",children:x},u),l=wr(l,u,r,null),x.return=t,l.return=t,x.sibling=l,t.child=x,u=t.child,u.memoizedState=vf(r),u.childLanes=gf(e,v,r),t.memoizedState=pf,l):(Pa(t),yf(t,x))}if(E=e.memoizedState,E!==null&&(x=E.dehydrated,x!==null)){if(f)t.flags&256?(Pa(t),t.flags&=-257,t=bf(e,t,r)):t.memoizedState!==null?(qa(),t.child=e.child,t.flags|=128,t=null):(qa(),u=l.fallback,x=t.mode,l=So({mode:"visible",children:l.children},x),u=wr(u,x,r,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,wi(t,e.child,null,r),l=t.child,l.memoizedState=vf(r),l.childLanes=gf(e,v,r),t.memoizedState=pf,t=u);else if(Pa(t),ed(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var V=v.dgst;v=V,l=Error(s(419)),l.stack="",l.digest=v,ys({value:l,source:null,stack:null}),t=bf(e,t,r)}else if(Rt||bs(e,t,r,!1),v=(r&e.childLanes)!==0,Rt||v){if(v=ut,v!==null&&(l=r&-r,l=(l&42)!==0?1:ec(l),l=(l&(v.suspendedLanes|r))!==0?0:l,l!==0&&l!==E.retryLane))throw E.retryLane=l,di(e,l),ln(v,e,l),cv;x.data==="$?"||Lf(),t=bf(e,t,r)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,ht=An(x.nextSibling),Pt=t,Je=!0,Tr=null,Vn=!1,e!==null&&(yn[bn++]=la,yn[bn++]=oa,yn[bn++]=Er,la=e.id,oa=e.overflow,Er=t),t=yf(t,l.children),t.flags|=4096);return t}return u?(qa(),u=l.fallback,x=t.mode,E=e.child,V=E.sibling,l=sa(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,V!==null?u=sa(V,u):(u=wr(u,x,r,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,x=e.child.memoizedState,x===null?x=vf(r):(E=x.cachePool,E!==null?(V=_t._currentValue,E=E.parent!==V?{parent:V,pool:V}:E):E=ip(),x={baseLanes:x.baseLanes|r,cachePool:E}),u.memoizedState=x,u.childLanes=gf(e,v,r),t.memoizedState=pf,l):(Pa(t),r=e.child,e=r.sibling,r=sa(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=r,t.memoizedState=null,r)}function yf(e,t){return t=So({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function So(e,t){return e=tn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function bf(e,t,r){return wi(t,e.child,null,r),e=yf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xv(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Uc(e.return,t,r)}function xf(e,t,r,l,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=r,f.tailMode=u)}function Sv(e,t,r){var l=t.pendingProps,u=l.revealOrder,f=l.tail;if(Nt(e,t,l.children,r),l=wt.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xv(e,r,t);else if(e.tag===19)xv(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(te(wt,l),u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&go(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),xf(t,!1,u,r,f);break;case"backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&go(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}xf(t,!0,r,null,f);break;case"together":xf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ha(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(bs(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=sa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=sa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Sf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&eo(e)))}function X_(e,t,r){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),Ua(t,_t,e.memoizedState.cache),gs();break;case 27:case 5:He(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:Ua(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Pa(t),t.flags|=128,null):(r&t.child.childLanes)!==0?bv(e,t,r):(Pa(t),e=ha(e,t,r),e!==null?e.sibling:null);Pa(t);break;case 19:var u=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(bs(e,t,r,!1),l=(r&t.childLanes)!==0),u){if(l)return Sv(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),te(wt,wt.current),l)break;return null;case 22:case 23:return t.lanes=0,mv(e,t,r);case 24:Ua(t,_t,e.memoizedState.cache)}return ha(e,t,r)}function _v(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!Sf(e,r)&&(t.flags&128)===0)return Rt=!1,X_(e,t,r);Rt=(e.flags&131072)!==0}else Rt=!1,Je&&(t.flags&1048576)!==0&&Jm(t,Wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")Oc(l)?(e=Dr(l,e),t.tag=1,t=gv(null,t,l,e,r)):(t.tag=0,t=mf(null,t,l,e,r));else{if(l!=null){if(u=l.$$typeof,u===G){t.tag=11,t=fv(null,t,l,e,r);break e}else if(u===F){t.tag=14,t=dv(null,t,l,e,r);break e}}throw t=pe(l)||l,Error(s(306,t,""))}}return t;case 0:return mf(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,u=Dr(l,t.pendingProps),gv(e,t,l,u,r);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var f=t.memoizedState;u=f.element,Gc(e,t),Ts(t,l,null,r);var v=t.memoizedState;if(l=v.cache,Ua(t,_t,l),l!==f.cache&&Lc(t,[_t],r,!0),Cs(),l=v.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=yv(e,t,l,r);break e}else if(l!==u){u=vn(Error(s(424)),t),ys(u),t=yv(e,t,l,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=An(e.firstChild),Pt=t,Je=!0,Tr=null,Vn=!0,r=ev(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(gs(),l===u){t=ha(e,t,r);break e}Nt(e,t,l,r)}t=t.child}return t;case 26:return xo(e,t),e===null?(r=Tg(t.type,null,t.pendingProps,null))?t.memoizedState=r:Je||(r=t.type,e=t.pendingProps,l=zo(Se.current).createElement(r),l[Ut]=t,l[Yt]=e,jt(l,r,e),At(l),t.stateNode=l):t.memoizedState=Tg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return He(t),e===null&&Je&&(l=t.stateNode=wg(t.type,t.pendingProps,Se.current),Pt=t,Vn=!0,u=ht,$a(t.type)?(td=u,ht=An(l.firstChild)):ht=u),Nt(e,t,t.pendingProps.children,r),xo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Je&&((u=l=ht)&&(l=ww(l,t.type,t.pendingProps,Vn),l!==null?(t.stateNode=l,Pt=t,ht=An(l.firstChild),Vn=!1,u=!0):u=!1),u||Ar(t)),He(t),u=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,l=f.children,$f(u,f)?l=null:v!==null&&$f(u,v)&&(t.flags|=32),t.memoizedState!==null&&(u=Xc(e,t,P_,null,null,r),Qs._currentValue=u),xo(e,t),Nt(e,t,l,r),t.child;case 6:return e===null&&Je&&((e=r=ht)&&(r=Ew(r,t.pendingProps,Vn),r!==null?(t.stateNode=r,Pt=t,ht=null,e=!0):e=!1),e||Ar(t)),null;case 13:return bv(e,t,r);case 4:return Te(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=wi(t,null,l,r):Nt(e,t,l,r),t.child;case 11:return fv(e,t,t.type,t.pendingProps,r);case 7:return Nt(e,t,t.pendingProps,r),t.child;case 8:return Nt(e,t,t.pendingProps.children,r),t.child;case 12:return Nt(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,Ua(t,t.type,l.value),Nt(e,t,l.children,r),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Or(t),u=Lt(u),l=l(u),t.flags|=1,Nt(e,t,l,r),t.child;case 14:return dv(e,t,t.type,t.pendingProps,r);case 15:return hv(e,t,t.type,t.pendingProps,r);case 19:return Sv(e,t,r);case 31:return l=t.pendingProps,r=t.mode,l={mode:l.mode,children:l.children},e===null?(r=So(l,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=sa(e.child,l),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return mv(e,t,r);case 24:return Or(t),l=Lt(_t),e===null?(u=Hc(),u===null&&(u=ut,f=Vc(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=r),u=f),t.memoizedState={parent:l,cache:u},qc(t),Ua(t,_t,u)):((e.lanes&r)!==0&&(Gc(e,t),Ts(t,null,null,r),Cs()),u=e.memoizedState,f=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ua(t,_t,l)):(l=f.cache,Ua(t,_t,l),l!==u.cache&&Lc(t,[_t],r,!0))),Nt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ma(e){e.flags|=4}function wv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ng(t)){if(t=xn.current,t!==null&&((Ye&4194048)===Ye?Bn!==null:(Ye&62914560)!==Ye&&(Ye&536870912)===0||t!==Bn))throw ws=Pc,sp;e.flags|=8192}}function _o(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?tm():536870912,e.lanes|=t,Ai|=t)}function js(e,t){if(!Je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function K_(e,t,r){var l=t.pendingProps;switch(jc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(_t),Xe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(vs(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tp())),ft(t),null;case 26:return r=t.memoizedState,e===null?(ma(t),r!==null?(ft(t),wv(t,r)):(ft(t),t.flags&=-16777217)):r?r!==e.memoizedState?(ma(t),ft(t),wv(t,r)):(ft(t),t.flags&=-16777217):(e.memoizedProps!==l&&ma(t),ft(t),t.flags&=-16777217),null;case 27:Ze(t),r=Se.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return ft(t),null}e=oe.current,vs(t)?Wm(t):(e=wg(u,l,r),t.stateNode=e,ma(t))}return ft(t),null;case 5:if(Ze(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(e=oe.current,vs(t))Wm(t);else{switch(u=zo(Se.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=u.createElement("div"),e.innerHTML=" - + - +
diff --git a/server/.env.example b/server/.env.example new file mode 100644 index 0000000..649bb11 --- /dev/null +++ b/server/.env.example @@ -0,0 +1 @@ +BASE_URL = 'https://int.ipsupply.com.au/api/' \ No newline at end of file diff --git a/server/.gitignore b/server/.gitignore index 1b4b58e..ba106d0 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -25,3 +25,6 @@ auto-post-facebook-extensions *.sln *.sw? .env +product-cache* +meta.json +data.json diff --git a/server/data.json b/server/data.json index 0637a08..72dd08c 100644 --- a/server/data.json +++ b/server/data.json @@ -1 +1,20 @@ -[] \ No newline at end of file +[ + { + "title": "2-Port Analog Telephone Adapter - ATA191-K9", + "price": 220, + "el": {}, + "date": "2025-08-21T08:34:00.451Z" + }, + { + "title": "Cisco 2911 Voice Bundle, Pvdm3-16, Uc License Pak, Fl- Cube10 - CISCO2911-V/K9", + "price": 125, + "el": {}, + "date": "2025-08-21T08:34:00.451Z" + }, + { + "title": "Air-ct7510-k9 - AIR-CT7510-K9", + "price": 8562, + "el": {}, + "date": "2025-08-21T08:34:00.451Z" + } +] \ No newline at end of file diff --git a/server/package-lock.json b/server/package-lock.json index bf31028..be98914 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -9,8 +9,11 @@ "version": "1.0.0", "license": "ISC", "dependencies": { + "axios": "^1.11.0", "cors": "^2.8.5", - "express": "^5.1.0" + "dotenv": "^17.2.1", + "express": "^5.1.0", + "lodash": "^4.17.21" } }, "node_modules/accepts": { @@ -26,6 +29,23 @@ "node": ">= 0.6" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.11.0.tgz", + "integrity": "sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.4", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/body-parser": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz", @@ -84,6 +104,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/content-disposition": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", @@ -153,6 +185,15 @@ } } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -162,6 +203,18 @@ "node": ">= 0.8" } }, + "node_modules/dotenv": { + "version": "17.2.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.1.tgz", + "integrity": "sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -221,6 +274,21 @@ "node": ">= 0.4" } }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", @@ -295,6 +363,63 @@ "node": ">= 0.8" } }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/form-data/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/form-data/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -383,6 +508,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", @@ -453,6 +593,12 @@ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", "license": "MIT" }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", @@ -592,6 +738,12 @@ "node": ">= 0.10" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, "node_modules/qs": { "version": "6.14.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", diff --git a/server/package.json b/server/package.json index 7016726..177ac6e 100644 --- a/server/package.json +++ b/server/package.json @@ -12,7 +12,10 @@ "license": "ISC", "type": "module", "dependencies": { + "axios": "^1.11.0", "cors": "^2.8.5", - "express": "^5.1.0" + "dotenv": "^17.2.1", + "express": "^5.1.0", + "lodash": "^4.17.21" } } diff --git a/server/server.js b/server/server.js index a60edde..d8ccecc 100644 --- a/server/server.js +++ b/server/server.js @@ -2,7 +2,17 @@ import express from "express"; import fs from "fs"; import bodyParser from "body-parser"; import cors from "cors"; +import axios from "axios"; +import path from "path"; +import _ from "lodash"; +import dotenv from "dotenv"; + +dotenv.config(); + +const metaPath = path.join(process.cwd(), "meta.json"); +const dataFile = "data.json"; +const cachePrefix = "product-cache-"; const app = express(); // Cho phép tất cả origin gọi API @@ -19,14 +29,41 @@ app.post("/sync", (req, res) => { return res.status(400).json({ error: "Dữ liệu phải là array" }); } - // Thêm field date cho mỗi item + // Chuẩn hoá dữ liệu (có thêm date) const mapped = data.map((item) => ({ ...item, date: new Date().toISOString(), })); - // Ghi xuống file - fs.writeFileSync("data.json", JSON.stringify(mapped, null, 2)); + // Đọc dữ liệu cũ + let oldData = []; + try { + oldData = JSON.parse(fs.readFileSync(dataFile, "utf-8")); + } catch (e) { + oldData = []; + } + + // So sánh (bỏ qua field date vì nó luôn khác) + const stripDate = (arr) => arr.map(({ date, ...rest }) => rest); + + const oldStripped = stripDate(oldData); + const newStripped = stripDate(mapped); + + if (!_.isEqual(oldStripped, newStripped)) { + // Nếu khác → xoá cache + const files = fs.readdirSync("."); + files.forEach((file) => { + if (file.startsWith(cachePrefix)) { + fs.unlinkSync(path.join(".", file)); + } + }); + console.log("Dữ liệu thay đổi → xoá cache"); + } else { + console.log("Dữ liệu không đổi → giữ cache"); + } + + // Ghi dữ liệu mới + fs.writeFileSync(dataFile, JSON.stringify(mapped, null, 2)); res.json({ message: "Đã lưu dữ liệu thành công", saved: mapped.length }); }); @@ -40,6 +77,91 @@ app.get("/data", (req, res) => { res.json(JSON.parse(content)); }); +app.post("/", async (req, res) => { + try { + // ===== Helpers ===== + const readJSON = (path, fallback = null) => { + try { + return JSON.parse(fs.readFileSync(path, "utf-8")); + } catch { + return fallback; + } + }; + const writeJSON = (path, data) => { + try { + fs.writeFileSync(path, JSON.stringify(data, null, 2)); + } catch (e) { + console.warn("Không ghi được file:", e.message); + } + }; + + // ===== Meta ===== + let meta = readJSON(metaPath, { total: 4000 }); + const filter = req.body?.filter || {}; + const originalFilter = { ...filter }; + const status = filter?.where?.status_listing; + + if (["listed", "unlisted"].includes(status)) { + filter.skip = 0; + } + + // ===== Cache check ===== + const cacheFile = `${cachePrefix}${JSON.stringify(originalFilter)}.json`; + if (fs.existsSync(cacheFile)) { + return res.json(readJSON(cacheFile, {})); + } + + // ===== Load publisted data nếu cần ===== + let publistedData = []; + if (status && meta.total) { + filter.limit = meta.total; + publistedData = readJSON("data.json", []); + } + + // ===== Call API gốc ===== + const { data } = await axios({ + headers: { Authorization: req.headers.authorization }, + url: "transferGetData", + baseURL: process.env.BASE_URL, + method: "POST", + data: { ...req.body, filter }, + }); + + // Update meta + if (typeof data.total === "number") { + writeJSON(metaPath, { total: data.total }); + } + + // ===== Xử lý listed/unlisted ===== + if (status === "listed" || status === "unlisted") { + const skip = originalFilter.skip || 0; + const limit = originalFilter.limit || data.data.length; + + const listedCodes = new Set( + publistedData.map((i) => (i.title + i.price || "").trim().toLowerCase()) + ); + + let filteredData = data.data.filter((item) => { + const key = `${item.name} - ${item.code}${item.price}`.toLowerCase(); + return status === "listed" + ? listedCodes.has(key) + : !listedCodes.has(key); + }); + + data.total = filteredData.length; + data.data = filteredData.slice(skip, skip + limit); + data.filter = { ...originalFilter, skip, limit }; + + writeJSON(cacheFile, data); + } + + res.json(data); + } catch (err) { + console.error("API error:", err.message); + res.status(500).json({ error: err.message }); + } +}); + app.listen(3000, () => { console.log("Server chạy tại http://localhost:3000"); }); diff --git a/src/api/product-api.service.ts b/src/api/product-api.service.ts index dc12867..58e9a99 100644 --- a/src/api/product-api.service.ts +++ b/src/api/product-api.service.ts @@ -21,8 +21,6 @@ class ProductApiService { }; return axios({ - url: "transferGetData", - method: "POST", data: { urlAPI: "/api/ebay-listing/listing-get-list", @@ -40,8 +38,6 @@ class ProductApiService { async get(data: IPost) { return axios({ - url: "transferGetData", - method: "POST", data: { urlAPI: "/api/product-model/get-info/" + data.id, @@ -52,7 +48,6 @@ class ProductApiService { async sync(data: ISyncItem[]) { return axios({ - baseURL: import.meta.env.VITE_API_SYNC_URL, url: "sync", method: "POST", data, @@ -61,7 +56,6 @@ class ProductApiService { async getPublistedProducts() { return axios({ - baseURL: import.meta.env.VITE_API_SYNC_URL, url: "data", }); } diff --git a/src/components/btn/confirm-alert.tsx b/src/components/btn/confirm-alert.tsx index 69ba039..d2a51b8 100644 --- a/src/components/btn/confirm-alert.tsx +++ b/src/components/btn/confirm-alert.tsx @@ -30,7 +30,7 @@ export function ConfirmAlert({ return ( {children} - + {title} {description} diff --git a/src/components/post-table.tsx b/src/components/post-table.tsx index 8344cb3..d0d4d2b 100644 --- a/src/components/post-table.tsx +++ b/src/components/post-table.tsx @@ -20,7 +20,15 @@ import { DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { Input } from "@/components/ui/input"; -import { Select, SelectTrigger, SelectValue } from "@/components/ui/select"; +import { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; import { Table, TableBody, @@ -50,17 +58,16 @@ export function PostTable() { const msg = new MessageService("popup"); const [searchTerm, setSearchTerm] = useState(""); - const [categoryFilter, setCategoryFilter] = useState("all"); - const [conditionFilter, setConditionFilter] = useState("all"); - const [brandFilter, setBrandFilter] = useState("all"); + const [filter, setFilter] = useState>({}); + const [statusFilter, setStatusFilter] = useState("all"); const [currentPage, setCurrentPage] = useState(1); const [isFilterModalOpen, setIsFilterModalOpen] = useState(false); const [search] = useDebounce(searchTerm, 400); const queryKey = useMemo( - () => ["products", { currentPage, search }], - [currentPage, search] + () => ["products", { currentPage, search, filter }], + [currentPage, search, filter] ); // --- React Query fetch --- @@ -72,6 +79,8 @@ export function PostTable() { skip: (currentPage - 1) * productApi.item_per_page, where: { productModelCode: searchTerm, + status_listing: + filter?.statusFilter === "all" ? undefined : filter.statusFilter, }, }) ); @@ -102,18 +111,15 @@ export function PostTable() { const clearFilters = () => { setSearchTerm(""); - setCategoryFilter("all"); - setConditionFilter("all"); - setBrandFilter("all"); + setStatusFilter("all"); + setFilter({}); setCurrentPage(1); + setIsFilterModalOpen(false); }; - const activeFiltersCount = [ - categoryFilter !== "all", - conditionFilter !== "all", - brandFilter !== "all", - searchTerm !== "", - ].filter(Boolean).length; + const activeFiltersCount = [statusFilter !== "all", searchTerm !== ""].filter( + Boolean + ).length; const totalPages = useMemo(() => { if (!rawProducts?.total) return 0; @@ -149,9 +155,13 @@ export function PostTable() { data: data, }); } else { + console.log({ + a: { ...data, ...mapToIPost({ ...res.data?.data }) }, + b: data, + }); msg.send("content", "popup-to-content", { type: "publist", - data: mapToIPost({ ...data, ...res.data?.data }), + data: { ...data, images: mapToIPost({ ...res.data?.data }).images }, }); } }; @@ -199,27 +209,26 @@ export function PostTable() { )} - + Product Filters
- - -
- */}
diff --git a/src/content/content.ts b/src/content/content.ts index bdb9bda..3048439 100644 --- a/src/content/content.ts +++ b/src/content/content.ts @@ -15,7 +15,7 @@ msgService.on<{ data: IPost }>( try { console.log("[publish] Content nhận:", payload); - await delayRD(1000, 2000); + await delayRD(800, 1000); await facebookService.handlePublist(payload.data); } catch (error) { @@ -36,19 +36,19 @@ msgService.on<{ data: IPost }>( try { console.log("[unlist] Content nhận:", payload); - await delayRD(1000, 2000); + await delayRD(800, 1000); await facebookService.gotoSell(); - await delayRD(1000, 2000); + await delayRD(800, 1000); await facebookService.handleDelete(payload.data); - await delayRD(1000, 2000); + await delayRD(800, 1000); const products = await facebookService.getProducts(); - await delayRD(1000, 2000); + await delayRD(800, 1000); productApi.sync(products); } catch (error) { @@ -69,11 +69,11 @@ msgService.on<{ data: IPost }>( try { console.log("[re-publist] Content nhận:", payload); - await delayRD(1000, 2000); + await delayRD(800, 1000); await facebookService.gotoSell(); - await delayRD(1000, 2000); + await delayRD(800, 1000); await facebookService.handleRePublist(payload.data); } catch (error) { @@ -88,7 +88,7 @@ msgService.on<{ data: IPost }>( ); (async () => { - await delayRD(1000, 2000); + await delayRD(800, 1000); // Sử dụng thiefService @@ -101,7 +101,7 @@ msgService.on<{ data: IPost }>( '[aria-label="Collection of your Marketplace items"]' ); - await delayRD(1000, 2000); + await delayRD(800, 1000); const products = await facebookService.getProducts(); console.log({ products }); diff --git a/src/lib/axios.ts b/src/lib/axios.ts index f0ad6c2..5d210f3 100644 --- a/src/lib/axios.ts +++ b/src/lib/axios.ts @@ -3,7 +3,6 @@ import ax from "axios"; const axios = ax.create({ // Dev baseURL: import.meta.env.VITE_API_URL, - headers: { "Content-Type": "application/json", Authorization: "Bearer " + import.meta.env.VITE_API_TOKEN, diff --git a/src/lib/utils.ts b/src/lib/utils.ts index cfab081..424115f 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -35,9 +35,7 @@ export function mapToIPost(raw: any): IPost { .map((img: any) => typeof img === "string" ? img - : `${(import.meta.env.VITE_API_URL as string).replaceAll("api", "")}${ - img.url - }` + : `${import.meta.env.VITE_BASE_IMG_URL as string}${img.url}` ) .slice(0, 10); // chỉ lấy tối đa 10 ảnh }