diff --git a/backend/accounts/views.py b/backend/accounts/views.py index d090ffb..575ef37 100644 --- a/backend/accounts/views.py +++ b/backend/accounts/views.py @@ -364,7 +364,9 @@ def patch(self, request): """ Update the user's default currency and fetch the new exchange rate. """ + print("PATCH") new_currency = request.data.get("default_currency") + print(new_currency) # Validate the currency if not any(new_currency == code for code, _ in CustomUser.CURRENCIES): @@ -376,6 +378,7 @@ def patch(self, request): try: # Retrieve the exchange rate using the provided utility function exchange_rate_to_usd = get_exchange_rate(new_currency) + print(exchange_rate_to_usd) except ValueError as e: return Response( {"error": str(e)}, diff --git a/backend/core/openexchangerates.py b/backend/core/openexchangerates.py index 9becc19..22218da 100644 --- a/backend/core/openexchangerates.py +++ b/backend/core/openexchangerates.py @@ -1,27 +1,33 @@ import os import requests +import sentry_sdk +from sentry_sdk import capture_exception - -class OpenExchangeRatesError(Exception): - """Custom exception for Open Exchange Rates errors.""" - - print("OpenExchangeRatesError") +# Initialize Sentry SDK (ensure this is done at the application startup) +sentry_sdk.init( + dsn=os.getenv("SENTRY_DSN"), # Replace with your Sentry DSN + traces_sample_rate=1.0, # Adjust this based on your needs +) def get_latest_exchange_rates(base_currency="USD"): api_key = os.getenv("OPENEXCHANGERATES_APP_ID") if not api_key: - raise OpenExchangeRatesError( - "OPENEXCHANGERATES_APP_ID is not set in the environment" - ) + error_message = "OPENEXCHANGERATES_APP_ID is not set in the environment" + capture_exception(Exception(error_message)) + return {"error": error_message} url = f"https://openexchangerates.org/api/latest.json?app_id={api_key}&base={base_currency}" print(url) - response = requests.get(url) - print(response) - if response.status_code != 200: - raise OpenExchangeRatesError( - f"Error fetching exchange rates: {response.json().get('error', 'Unknown error')}" - ) + try: + response = requests.get(url) + print(response) + if response.status_code != 200: + error_message = f"Error fetching exchange rates: {response.json().get('error', 'Unknown error')}" + capture_exception(Exception(error_message)) + return {"error": error_message} - return response.json() + return response.json() + except Exception as e: + capture_exception(e) + return {"error": str(e)} diff --git a/backend/core/views.py b/backend/core/views.py index 8e8414c..a7ef199 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -12,7 +12,7 @@ def get_exchange_rate(target_currency: str) -> float: - print("TEST") + print(target_currency) """ Retrieve the exchange rate for the given target currency against USD. @@ -35,11 +35,14 @@ def get_exchange_rate(target_currency: str) -> float: if not target_currency or len(target_currency) != 3: raise ValueError(f"Invalid target currency: {target_currency}") + # If the target currency is USD, the exchange rate is always 1.0 + if target_currency == "USD": + return 1.0 + # Try to retrieve from the database exchange_rate = ExchangeRate.objects.filter( base_currency="USD", target_currency=target_currency ).first() - print(exchange_rate) if exchange_rate and exchange_rate.last_updated > now() - timedelta(hours=24): # Return the cached rate if it's fresh @@ -55,12 +58,14 @@ def get_exchange_rate(target_currency: str) -> float: if rate is None: raise ValueError(f"Exchange rate not available for USD to {target_currency}") - # Update or create the exchange rate record + # Update the record if it exists, or create a new one if exchange_rate: + print("UPDATE") exchange_rate.rate = rate exchange_rate.last_updated = now() exchange_rate.save() else: + print("CREATE") ExchangeRate.objects.create( base_currency="USD", target_currency=target_currency, diff --git a/backend/static/css/styles.css b/backend/static/css/styles.css index 02518a4..594c9e7 100644 --- a/backend/static/css/styles.css +++ b/backend/static/css/styles.css @@ -1 +1 @@ -/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=checkbox]:indeterminate,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}#sentry-feedback{--background:#1f2327;--submit-background:#518467;--submit-border:#518467}#parallax-image{height:auto;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:-200px;width:180%}@media (min-width:1040px){#parallax-image{height:auto;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:-100px;width:150%}}@media (min-width:1300px){#parallax-image{height:auto;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:-200px;width:100%}}.group-hover:animate-gradient-hover{animation:gradient-hover 3s ease infinite;background-size:200% 200%}.rdt_Table{z-index:0!important}.rdt_Table,.rdt_TableBody{max-height:none!important}.rdt_TableHead{z-index:0!important}.rdt_TableCol,.rdt_TableHeadRow,.rdt_TableHeader,.rdt_TableRow{z-index:1!important}#shopping-list-slice-state-table .rdt_TableHeadRow{border:0!important}#table__wrapper>div:first-child{max-height:none!important}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.aspect-h-2{--tw-aspect-h:2}.aspect-h-9{--tw-aspect-h:9}.aspect-w-1{--tw-aspect-w:1;padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative}.aspect-w-1>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.aspect-w-16{--tw-aspect-w:16;padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative}.aspect-w-16>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.aspect-w-2{--tw-aspect-w:2;padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative}.aspect-w-2>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.aspect-none{padding-bottom:0;position:static}.aspect-none>*{bottom:auto;height:auto;left:auto;position:static;right:auto;top:auto;width:auto}.homepage-grid{display:grid;grid-template-areas:"header header header" "projects projects projects" "left middle right" "info1 info1 info1" "info2 info2 footer";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto 1fr 1fr auto;padding:1.5rem}.header-section{grid-area:header}.projects-section{grid-area:projects}.left-info-box{grid-area:left}.middle-info-box{grid-area:middle}.right-info-box{grid-area:right}.info1-section{grid-area:info1}.info2-section{grid-area:info2}.footer-section{grid-area:footer}@media (max-width:640px){.homepage-grid{grid-template-areas:"header header" "projects projects" "left left" "middle middle" "right right" "info1 info1" "info2 info2" "footer footer";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto auto auto auto auto auto}}.chevron-open{transform:translateY(-50%) rotate(180deg)!important}.table-of-contents{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-radius:.5rem;margin-bottom:1.25rem;padding:1.25rem}.table-of-contents h2{font-size:1.25rem;font-weight:600;line-height:1.75rem;margin-bottom:.75rem}.table-of-contents ul{list-style-type:none;padding:0}.table-of-contents a{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity));display:block;font-weight:700;margin-bottom:.25rem;padding:.5rem;text-decoration-line:none}.table-of-contents ul ul a{font-weight:400;padding-left:1.25rem}.table-of-contents a:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.table-of-contents{float:right;margin-left:1.25rem;width:25%}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.\!fixed{position:fixed!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-1{inset:-.25rem}.inset-0{inset:0}.inset-auto{inset:auto}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.-bottom-\[18px\]{bottom:-18px}.-left-\[10px\]{left:-10px}.-left-\[15px\]{left:-15px}.-right-\[15px\]{right:-15px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.end-1{inset-inline-end:.25rem}.left-0{left:0}.left-2{left:.5rem}.left-\[-20px\]{left:-20px}.left-full{left:100%}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.start-1{inset-inline-start:.25rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-10{top:2.5rem}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-\[-7px\]{top:-7px}.top-full{top:100%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.order-first{order:-9999}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-4{grid-column:span 4/span 4}.col-span-full{grid-column:1/-1}.row-span-1{grid-row:span 1/span 1}.float-right{float:right}.float-left{float:left}.float-none{float:none}.clear-left{clear:left}.clear-right{clear:right}.clear-both{clear:both}.clear-none{clear:none}.\!-m-px{margin:-1px!important}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.m-0{margin:0}.m-1{margin:.25rem}.m-12{margin:3rem}.m-48{margin:12rem}.m-6{margin:1.5rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.mx-0{margin-left:0;margin-right:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.my-0\.5{margin-bottom:.125rem;margin-top:.125rem}.my-10{margin-bottom:2.5rem;margin-top:2.5rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.my-6{margin-bottom:1.5rem;margin-top:1.5rem}.my-8{margin-bottom:2rem;margin-top:2rem}.my-\[10px\]{margin-bottom:10px;margin-top:10px}.my-\[16px\]{margin-bottom:16px;margin-top:16px}.-mb-px{margin-bottom:-1px}.-ml-0{margin-left:0}.-ml-1{margin-left:-.25rem}.-ml-10{margin-left:-2.5rem}.-mr-0{margin-right:0}.-mr-1{margin-right:-.25rem}.-mr-2{margin-right:-.5rem}.-mr-3{margin-right:-.75rem}.-mr-6{margin-right:-1.5rem}.-mr-\[1px\]{margin-right:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[10px\]{margin-bottom:10px}.mb-\[12px\]{margin-bottom:12px}.mb-\[14px\]{margin-bottom:14px}.mb-\[15px\]{margin-bottom:15px}.mb-\[17px\]{margin-bottom:17px}.mb-\[18px\]{margin-bottom:18px}.mb-\[1px\]{margin-bottom:1px}.mb-\[21px\]{margin-bottom:21px}.mb-\[22px\]{margin-bottom:22px}.mb-\[26px\]{margin-bottom:26px}.mb-\[27px\]{margin-bottom:27px}.mb-\[2px\]{margin-bottom:2px}.mb-\[9px\]{margin-bottom:9px}.mb-auto{margin-bottom:auto}.me-1{-webkit-margin-end:.25rem;margin-inline-end:.25rem}.me-3{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-6{margin-left:1.5rem}.ml-\[200px\]{margin-left:200px}.ml-\[22px\]{margin-left:22px}.ml-\[47px\]{margin-left:47px}.ml-\[60px\]{margin-left:60px}.ml-auto{margin-left:auto}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-5{margin-right:1.25rem}.mr-6{margin-right:1.5rem}.mr-\[10px\]{margin-right:10px}.mr-\[5px\]{margin-right:5px}.mr-\[6px\]{margin-right:6px}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-36{margin-top:9rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.mt-\[10px\]{margin-top:10px}.mt-\[11px\]{margin-top:11px}.mt-\[17px\]{margin-top:17px}.mt-\[20px\]{margin-top:20px}.mt-\[32px\]{margin-top:32px}.mt-\[40px\]{margin-top:40px}.mt-\[64px\]{margin-top:64px}.mt-\[6px\]{margin-top:6px}.mt-\[8px\]{margin-top:8px}.mt-\[9px\]{margin-top:9px}.mt-auto{margin-top:auto}.box-border{box-sizing:border-box}.box-content{box-sizing:initial}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-2{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2}.line-clamp-3{-webkit-line-clamp:3}.line-clamp-3,.line-clamp-5{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5}.line-clamp-none{-webkit-box-orient:horizontal;-webkit-line-clamp:none;display:block;overflow:visible}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-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-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.\!hidden{display:none!important}.hidden{display:none}.h-0{height:0}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[144px\]{height:144px}.h-\[1px\]{height:1px}.h-\[212px\]{height:212px}.h-\[295px\]{height:295px}.h-\[32px\]{height:32px}.h-\[33px\]{height:33px}.h-\[36px\]{height:36px}.h-\[40px\]{height:40px}.h-\[48px\]{height:48px}.h-\[50px\]{height:50px}.h-\[60px\]{height:60px}.h-\[80px\]{height:80px}.h-\[88px\]{height:88px}.h-\[96px\]{height:96px}.h-\[98px\]{height:98px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-min{height:-moz-min-content;height:min-content}.h-screen{height:100vh}.max-h-0{max-height:0}.max-h-20{max-height:5rem}.max-h-24{max-height:6rem}.max-h-28{max-height:7rem}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-44{max-height:11rem}.max-h-48{max-height:12rem}.max-h-52{max-height:13rem}.max-h-60{max-height:15rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[30rem\]{max-height:30rem}.max-h-\[36rem\]{max-height:36rem}.max-h-\[400px\]{max-height:400px}.max-h-\[470px\]{max-height:470px}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-\[120px\]{min-height:120px}.min-h-\[180px\]{min-height:180px}.min-h-\[208px\]{min-height:208px}.min-h-\[56px\]{min-height:56px}.min-h-\[7px\]{min-height:7px}.min-h-\[84px\]{min-height:84px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/3{width:66.666667%}.w-2\/5{width:40%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-52{width:13rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[154px\]{width:154px}.w-\[164px\]{width:164px}.w-\[200px\]{width:200px}.w-\[204px\]{width:204px}.w-\[275px\]{width:275px}.w-\[295px\]{width:295px}.w-\[300px\]{width:300px}.w-\[336px\]{width:336px}.w-\[338px\]{width:338px}.w-\[33px\]{width:33px}.w-\[348px\]{width:348px}.w-\[383px\]{width:383px}.w-\[48px\]{width:48px}.w-\[500px\]{width:500px}.w-\[65px\]{width:65px}.w-\[70px\]{width:70px}.w-\[75px\]{width:75px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.w-px{width:1px}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[2\.5rem\]{min-width:2.5rem}.min-w-\[200px\]{min-width:200px}.min-w-\[57px\]{min-width:57px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[290px\]{max-width:290px}.max-w-\[79px\]{max-width:79px}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.caption-top{caption-side:top}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.border-separate{border-collapse:initial}.origin-top-right{transform-origin:top right}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-full{--tw-translate-y:-100%}.-translate-y-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-10{--tw-translate-x:2.5rem}.translate-x-10,.translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:0.5rem}.translate-x-5{--tw-translate-x:1.25rem}.translate-x-5,.translate-x-9{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-9{--tw-translate-x:2.25rem}.translate-x-full{--tw-translate-x:100%}.translate-x-full,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.translate-y-2{--tw-translate-y:0.5rem}.translate-y-2,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1rem}.translate-y-full{--tw-translate-y:100%}.rotate-0,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate:0deg}.rotate-180{--tw-rotate:180deg}.rotate-180,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\!transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform,.transform-cpu{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}.animate-bounce{animation:bounce 1s infinite}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.touch-auto{touch-action:auto}.touch-none{touch-action:none}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-left,.touch-pan-x{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-left{--tw-pan-x:pan-left}.touch-pan-right{--tw-pan-x:pan-right}.touch-pan-right,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.touch-pan-up{--tw-pan-y:pan-up}.touch-pan-down,.touch-pan-up{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-down{--tw-pan-y:pan-down}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-manipulation{touch-action:manipulation}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-y{resize:vertical}.resize-x{resize:horizontal}.resize{resize:both}.snap-none{scroll-snap-type:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-both{scroll-snap-type:both var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-proximity{--tw-scroll-snap-strictness:proximity}.snap-start{scroll-snap-align:start}.snap-end{scroll-snap-align:end}.snap-center{scroll-snap-align:center}.snap-align-none{scroll-snap-align:none}.snap-normal{scroll-snap-stop:normal}.snap-always{scroll-snap-stop:always}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.break-before-auto{-moz-column-break-before:auto;break-before:auto}.break-before-avoid{-moz-column-break-before:avoid;break-before:avoid}.break-before-all{-moz-column-break-before:all;break-before:all}.break-before-avoid-page{-moz-column-break-before:avoid;break-before:avoid-page}.break-before-page{-moz-column-break-before:page;break-before:page}.break-before-left{-moz-column-break-before:left;break-before:left}.break-before-right{-moz-column-break-before:right;break-before:right}.break-before-column{-moz-column-break-before:column;break-before:column}.break-inside-auto{-moz-column-break-inside:auto;break-inside:auto}.break-inside-avoid{-moz-column-break-inside:avoid;break-inside:avoid}.break-inside-avoid-page{break-inside:avoid-page}.break-inside-avoid-column{-moz-column-break-inside:avoid;break-inside:avoid-column}.break-after-auto{-moz-column-break-after:auto;break-after:auto}.break-after-avoid{-moz-column-break-after:avoid;break-after:avoid}.break-after-all{-moz-column-break-after:all;break-after:all}.break-after-avoid-page{-moz-column-break-after:avoid;break-after:avoid-page}.break-after-page{-moz-column-break-after:page;break-after:page}.break-after-left{-moz-column-break-after:left;break-after:left}.break-after-right{-moz-column-break-after:right;break-after:right}.break-after-column{-moz-column-break-after:column;break-after:column}.grid-flow-row{grid-auto-flow:row}.grid-flow-col{grid-auto-flow:column}.grid-flow-dense{grid-auto-flow:dense}.grid-flow-row-dense{grid-auto-flow:row dense}.grid-flow-col-dense{grid-auto-flow:column dense}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.place-content-baseline{place-content:baseline}.place-content-stretch{place-content:stretch}.place-items-start{place-items:start}.place-items-end{place-items:end}.place-items-center{place-items:center}.place-items-baseline{place-items:baseline}.place-items-stretch{place-items:stretch}.content-normal{align-content:normal}.content-center{align-content:center}.content-start{align-content:flex-start}.content-end{align-content:flex-end}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-evenly{align-content:space-evenly}.content-baseline{align-content:baseline}.content-stretch{align-content:stretch}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-normal{justify-content:normal}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.justify-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[2px\]{gap:2px}.gap-\[6px\]{gap:6px}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-1\.5{-moz-column-gap:.375rem;column-gap:.375rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-\[14px\]{-moz-column-gap:14px;column-gap:14px}.gap-y-10{row-gap:2.5rem}.gap-y-14{row-gap:3.5rem}.gap-y-2{row-gap:.5rem}.gap-y-2\.5{row-gap:.625rem}.gap-y-4{row-gap:1rem}.gap-y-5{row-gap:1.25rem}.gap-y-7{row-gap:1.75rem}.gap-y-8{row-gap:2rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(-1px*(1 - var(--tw-space-x-reverse)));margin-right:calc(-1px*var(--tw-space-x-reverse))}.-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(-1rem*var(--tw-space-y-reverse));margin-top:calc(-1rem*(1 - var(--tw-space-y-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(3rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(3rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2.5rem*var(--tw-space-y-reverse));margin-top:calc(2.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-12>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(3rem*var(--tw-space-y-reverse));margin-top:calc(3rem*(1 - var(--tw-space-y-reverse)))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(4rem*var(--tw-space-y-reverse));margin-top:calc(4rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse:1}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(1px*var(--tw-divide-x-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-y-reverse>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:1}.divide-x-reverse>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:1}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-dashed>:not([hidden])~:not([hidden]){border-style:dashed}.divide-dotted>:not([hidden])~:not([hidden]){border-style:dotted}.divide-double>:not([hidden])~:not([hidden]){border-style:double}.divide-none>:not([hidden])~:not([hidden]){border-style:none}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(243 244 246/var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.place-self-auto{place-self:auto}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.place-self-stretch{place-self:stretch}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.self-baseline{align-self:baseline}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.justify-self-stretch{justify-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-clip{overflow-x:clip}.overflow-y-clip{overflow-y:clip}.overflow-x-visible{overflow-x:visible}.overflow-y-visible{overflow-y:visible}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.overscroll-auto{overscroll-behavior:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-none{overscroll-behavior:none}.overscroll-y-auto{overscroll-behavior-y:auto}.overscroll-y-contain{overscroll-behavior-y:contain}.overscroll-y-none{overscroll-behavior-y:none}.overscroll-x-auto{overscroll-behavior-x:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.overscroll-x-none{overscroll-behavior-x:none}.scroll-auto{scroll-behavior:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-clip{text-overflow:clip}.hyphens-none{-webkit-hyphens:none;hyphens:none}.hyphens-manual{-webkit-hyphens:manual;hyphens:manual}.hyphens-auto{-webkit-hyphens:auto;hyphens:auto}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[14px\]{border-radius:14px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-e{border-end-end-radius:.25rem;border-start-end-radius:.25rem}.rounded-l{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.rounded-l-lg{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-lg{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-s{border-end-start-radius:.25rem;border-start-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-x{border-left-width:1px;border-right-width:1px}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-e{border-inline-end-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-s{border-inline-start-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-double{border-style:double}.border-hidden{border-style:hidden}.border-none{border-style:none}.border-\[\#212529\]{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.border-\[\#ECECEC\]{--tw-border-opacity:1;border-color:rgb(236 236 236/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.border-brandgreen-500{--tw-border-opacity:1;border-color:rgb(84 138 106/var(--tw-border-opacity))}.border-current{border-color:currentColor}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-gray-50{--tw-border-opacity:1;border-color:rgb(249 250 251/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(79 70 229/var(--tw-border-opacity))}.border-pink-500{--tw-border-opacity:1;border-color:rgb(236 72 153/var(--tw-border-opacity))}.border-slate-500{--tw-border-opacity:1;border-color:rgb(100 116 139/var(--tw-border-opacity))}.border-transparent{border-color:#0000}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-e-transparent{border-inline-end-color:#0000}.bg-\[\#13c3ff\]{--tw-bg-opacity:1;background-color:rgb(19 195 255/var(--tw-bg-opacity))}.bg-\[\#212529\]{--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity))}.bg-\[\#2c3237\]{--tw-bg-opacity:1;background-color:rgb(44 50 55/var(--tw-bg-opacity))}.bg-\[\#3c82f6\]{--tw-bg-opacity:1;background-color:rgb(60 130 246/var(--tw-bg-opacity))}.bg-\[\#548a6a\]{--tw-bg-opacity:1;background-color:rgb(84 138 106/var(--tw-bg-opacity))}.bg-\[\#568b6d\]{--tw-bg-opacity:1;background-color:rgb(86 139 109/var(--tw-bg-opacity))}.bg-\[\#DFFAFD\]{--tw-bg-opacity:1;background-color:rgb(223 250 253/var(--tw-bg-opacity))}.bg-\[\#EBFBFC\]{--tw-bg-opacity:1;background-color:rgb(235 251 252/var(--tw-bg-opacity))}.bg-\[\#F3F3F3\]{--tw-bg-opacity:1;background-color:rgb(243 243 243/var(--tw-bg-opacity))}.bg-\[\#c9e2d3\]{--tw-bg-opacity:1;background-color:rgb(201 226 211/var(--tw-bg-opacity))}.bg-\[\#cab9a3\]{--tw-bg-opacity:1;background-color:rgb(202 185 163/var(--tw-bg-opacity))}.bg-\[\#d4e4ea\]{--tw-bg-opacity:1;background-color:rgb(212 228 234/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 219 254/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity))}.bg-brandgreen-100{--tw-bg-opacity:1;background-color:rgb(236 243 234/var(--tw-bg-opacity))}.bg-brandgreen-200{--tw-bg-opacity:1;background-color:rgb(205 229 204/var(--tw-bg-opacity))}.bg-brandgreen-300{--tw-bg-opacity:1;background-color:rgb(174 215 174/var(--tw-bg-opacity))}.bg-brandgreen-500{--tw-bg-opacity:1;background-color:rgb(84 138 106/var(--tw-bg-opacity))}.bg-brandgreen-600{--tw-bg-opacity:1;background-color:rgb(76 126 94/var(--tw-bg-opacity))}.bg-brandgreen-700{--tw-bg-opacity:1;background-color:rgb(64 106 76/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.bg-pink-400{--tw-bg-opacity:1;background-color:rgb(244 114 182/var(--tw-bg-opacity))}.bg-pink-600{--tw-bg-opacity:1;background-color:rgb(219 39 119/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(233 213 255/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.bg-sky-200{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.bg-sky-400{--tw-bg-opacity:1;background-color:rgb(56 189 248/var(--tw-bg-opacity))}.bg-sky-50{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.bg-slate-600{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.bg-stone-200{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity))}.bg-yellow-700{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity))}.bg-yellow-800{--tw-bg-opacity:1;background-color:rgb(133 77 14/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-opacity-75{--tw-bg-opacity:0.75}.bg-opacity-90{--tw-bg-opacity:0.9}.bg-opacity-95{--tw-bg-opacity:0.95}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-\[\#ABABAB\]\/20{--tw-gradient-from:#ababab33 var(--tw-gradient-from-position);--tw-gradient-to:#ababab00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-black{--tw-gradient-from:#000 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-50{--tw-gradient-from:#eff6ff var(--tw-gradient-from-position);--tw-gradient-to:#eff6ff00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-gray-50{--tw-gradient-from:#f9fafb var(--tw-gradient-from-position);--tw-gradient-to:#f9fafb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-50{--tw-gradient-from:#f8fafc var(--tw-gradient-from-position);--tw-gradient-to:#f8fafc00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-70\%{--tw-gradient-from-position:70%}.to-gray-100{--tw-gradient-to:#f3f4f6 var(--tw-gradient-to-position)}.decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.box-decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.bg-cover{background-size:cover}.bg-fixed{background-attachment:fixed}.bg-local{background-attachment:local}.bg-scroll{background-attachment:scroll}.bg-clip-border{background-clip:initial}.bg-clip-padding{background-clip:padding-box}.bg-clip-content{background-clip:content-box}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-center{background-position:50%}.bg-repeat{background-repeat:repeat}.bg-no-repeat{background-repeat:no-repeat}.bg-repeat-x{background-repeat:repeat-x}.bg-repeat-y{background-repeat:repeat-y}.bg-repeat-round{background-repeat:round}.bg-repeat-space{background-repeat:space}.bg-origin-border{background-origin:border-box}.bg-origin-padding{background-origin:initial}.bg-origin-content{background-origin:content-box}.fill-\[\#548a6a\]{fill:#548a6a}.fill-blue-500{fill:#3b82f6}.fill-gray-500{fill:#6b7280}.fill-sky-500{fill:#0ea5e9}.fill-white{fill:#fff}.fill-yellow-300{fill:#fde047}.stroke-black{stroke:#000}.stroke-blue-500{stroke:#3b82f6}.stroke-pink-500{stroke:#ec4899}.stroke-sky-500{stroke:#0ea5e9}.stroke-slate-300{stroke:#cbd5e1}.stroke-slate-400{stroke:#94a3b8}.stroke-slate-500{stroke:#64748b}.stroke-yellow-300{stroke:#fde047}.stroke-yellow-500{stroke:#eab308}.stroke-2{stroke-width:2}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.object-none{-o-object-fit:none;object-fit:none}.object-scale-down{-o-object-fit:scale-down;object-fit:scale-down}.object-custom-center{-o-object-position:30% 70%;object-position:30% 70%}.\!p-0{padding:0!important}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-14{padding:3.5rem}.p-16{padding:4rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-20{padding-left:5rem;padding-right:5rem}.px-24{padding-left:6rem;padding-right:6rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-48{padding-left:12rem;padding-right:12rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.px-\[15px\]{padding-left:15px;padding-right:15px}.px-\[18px\]{padding-left:18px;padding-right:18px}.px-\[21px\]{padding-left:21px;padding-right:21px}.px-\[22px\]{padding-left:22px;padding-right:22px}.px-\[25px\]{padding-left:25px;padding-right:25px}.px-\[30px\]{padding-left:30px;padding-right:30px}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-36{padding-bottom:9rem;padding-top:9rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-48{padding-bottom:12rem;padding-top:12rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.py-\[13px\]{padding-bottom:13px;padding-top:13px}.py-\[2\.5px\]{padding-bottom:2.5px;padding-top:2.5px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.py-\[9px\]{padding-bottom:9px;padding-top:9px}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-\[13px\]{padding-bottom:13px}.pb-\[14px\]{padding-bottom:14px}.pb-\[19px\]{padding-bottom:19px}.pb-\[20px\]{padding-bottom:20px}.pb-\[3px\]{padding-bottom:3px}.pb-\[6px\]{padding-bottom:6px}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-3\.5{padding-left:.875rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-7{padding-left:1.75rem}.pl-72{padding-left:18rem}.pl-8{padding-left:2rem}.pl-\[11px\]{padding-left:11px}.pl-\[20px\]{padding-left:20px}.pl-\[24px\]{padding-left:24px}.pl-\[30px\]{padding-left:30px}.pl-\[32px\]{padding-left:32px}.pl-\[8px\]{padding-left:8px}.pr-0{padding-right:0}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-\[13px\]{padding-right:13px}.pr-\[15px\]{padding-right:15px}.pr-\[16px\]{padding-right:16px}.pr-\[20px\]{padding-right:20px}.pr-\[22px\]{padding-right:22px}.pr-\[39px\]{padding-right:39px}.pr-\[3px\]{padding-right:3px}.pr-\[8px\]{padding-right:8px}.pr-\[9px\]{padding-right:9px}.ps-2{-webkit-padding-start:.5rem;padding-inline-start:.5rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.pt-\[10px\]{padding-top:10px}.pt-\[11px\]{padding-top:11px}.pt-\[21px\]{padding-top:21px}.pt-\[24px\]{padding-top:24px}.pt-\[38px\]{padding-top:38px}.pt-\[3px\]{padding-top:3px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-start{text-align:start}.text-end{text-align:end}.align-baseline{vertical-align:initial}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-top{vertical-align:text-top}.align-text-bottom{vertical-align:text-bottom}.align-sub{vertical-align:sub}.align-super{vertical-align:super}.font-display{font-family:Quicksand,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-roboto{font-family:Roboto,sans-serif}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-2xs{font-size:.5rem;line-height:.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.\!font-bold{font-weight:700!important}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.not-italic{font-style:normal}.normal-nums{font-variant-numeric:normal}.ordinal{--tw-ordinal:ordinal}.ordinal,.slashed-zero{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}.lining-nums{--tw-numeric-figure:lining-nums}.lining-nums,.oldstyle-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}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{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}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions}.diagonal-fractions,.stacked-fractions{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}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-\[14px\]{line-height:14px}.leading-tight{line-height:1.25}.tracking-\[1px\]{letter-spacing:1px}.tracking-wider{letter-spacing:.05em}.text-\[\#01B4C2\]{--tw-text-opacity:1;color:rgb(1 180 194/var(--tw-text-opacity))}.text-\[\#548a6a\]{--tw-text-opacity:1;color:rgb(84 138 106/var(--tw-text-opacity))}.text-\[\#558a6b\]{--tw-text-opacity:1;color:rgb(85 138 107/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity:1;color:rgb(239 246 255/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity))}.text-brandgreen-400{--tw-text-opacity:1;color:rgb(111 201 128/var(--tw-text-opacity))}.text-brandgreen-500{--tw-text-opacity:1;color:rgb(84 138 106/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity:1;color:rgb(219 39 119/var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity:1;color:rgb(126 34 206/var(--tw-text-opacity))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.text-sky-800{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.text-transparent{color:#0000}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.decoration-solid{text-decoration-style:solid}.decoration-double{text-decoration-style:double}.decoration-dotted{text-decoration-style:dotted}.decoration-dashed{text-decoration-style:dashed}.decoration-wavy{text-decoration-style:wavy}.decoration-1{text-decoration-thickness:1px}.underline-offset-1{text-underline-offset:1px}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.placeholder-gray-600::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(75 85 99/var(--tw-placeholder-opacity))}.placeholder-gray-600::placeholder{--tw-placeholder-opacity:1;color:rgb(75 85 99/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.bg-blend-normal{background-blend-mode:normal}.bg-blend-multiply{background-blend-mode:multiply}.bg-blend-screen{background-blend-mode:screen}.bg-blend-overlay{background-blend-mode:overlay}.bg-blend-darken{background-blend-mode:darken}.bg-blend-lighten{background-blend-mode:lighten}.bg-blend-color-dodge{background-blend-mode:color-dodge}.bg-blend-color-burn{background-blend-mode:color-burn}.bg-blend-hard-light{background-blend-mode:hard-light}.bg-blend-soft-light{background-blend-mode:soft-light}.bg-blend-difference{background-blend-mode:difference}.bg-blend-exclusion{background-blend-mode:exclusion}.bg-blend-hue{background-blend-mode:hue}.bg-blend-saturation{background-blend-mode:saturation}.bg-blend-color{background-blend-mode:color}.bg-blend-luminosity{background-blend-mode:luminosity}.mix-blend-normal{mix-blend-mode:normal}.mix-blend-multiply{mix-blend-mode:multiply}.mix-blend-screen{mix-blend-mode:screen}.mix-blend-overlay{mix-blend-mode:overlay}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-lighten{mix-blend-mode:lighten}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-color-burn{mix-blend-mode:color-burn}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-soft-light{mix-blend-mode:soft-light}.mix-blend-difference{mix-blend-mode:difference}.mix-blend-exclusion{mix-blend-mode:exclusion}.mix-blend-hue{mix-blend-mode:hue}.mix-blend-saturation{mix-blend-mode:saturation}.mix-blend-color{mix-blend-mode:color}.mix-blend-luminosity{mix-blend-mode:luminosity}.mix-blend-plus-lighter{mix-blend-mode:plus-lighter}.\!shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_8px_0_rgba\(0\2c 0\2c 0\2c 0\.12\)\2c 0_4px_10px_0_rgba\(50\2c 50\2c 50\2c \.12\)\]{--tw-shadow:0 1px 8px 0 #0000001f,0 4px 10px 0 #3232321f;--tw-shadow-colored:0 1px 8px 0 var(--tw-shadow-color),0 4px 10px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[3px_6px_20px_0px_rgba\(171\2c 171\2c 184\2c 0\.4\)\]{--tw-shadow:3px 6px 20px 0px #ababb866;--tw-shadow-colored:3px 6px 20px 0px var(--tw-shadow-color)}.shadow-\[3px_6px_20px_0px_rgba\(171\2c 171\2c 184\2c 0\.4\)\],.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid #0000;outline-offset:2px}.\!outline{outline-style:solid!important}.outline{outline-style:solid}.outline-dashed{outline-style:dashed}.outline-dotted{outline-style:dotted}.outline-double{outline-style:double}.outline-1{outline-width:1px}.outline-offset-0{outline-offset:0}.outline-pink-400{outline-color:#f472b6}.outline-pink-600{outline-color:#db2777}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-0{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-1,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-blue-300{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity))}.ring-blue-600{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.ring-brandgreen-500{--tw-ring-opacity:1;--tw-ring-color:rgb(84 138 106/var(--tw-ring-opacity))}.ring-brandgreen-600{--tw-ring-opacity:1;--tw-ring-color:rgb(76 126 94/var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.ring-gray-400{--tw-ring-opacity:1;--tw-ring-color:rgb(156 163 175/var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.ring-indigo-500{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.ring-indigo-600{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}.ring-pink-500{--tw-ring-opacity:1;--tw-ring-color:rgb(236 72 153/var(--tw-ring-opacity))}.ring-pink-600{--tw-ring-opacity:1;--tw-ring-color:rgb(219 39 119/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-2{--tw-ring-offset-width:2px}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow{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:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f)}.grayscale{--tw-grayscale:grayscale(100%);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)}.\!invert{--tw-invert:invert(100%)!important;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}.invert{--tw-invert:invert(100%)}.invert,.sepia{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)}.sepia{--tw-sepia:sepia(100%)}.\!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}.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-none{filter:none}.backdrop-blur{--tw-backdrop-blur:blur(8px)}.backdrop-blur,.backdrop-blur-md{-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-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.backdrop-blur-sm,.backdrop-grayscale{-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%)}.backdrop-invert{--tw-backdrop-invert:invert(100%)}.backdrop-invert,.backdrop-sepia{-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%)}.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)}.backdrop-filter-none{-webkit-backdrop-filter:none;backdrop-filter:none}.\!transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[max-height\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[width\]{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-200{transition-delay:.2s}.delay-300{transition-delay:.3s}.delay-700{transition-delay:.7s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[a\:a\]{a:a}.\[alo\:ahi\]{alo:ahi}.\[animation-delay\:0\.3s\]{animation-delay:.3s}.\[animation-delay\:0\.6s\]{animation-delay:.6s}.\[blo\:bhi\]{blo:bhi}.\[i\:ai\]{i:ai}.\[n\:number\|string\]{n:number|string}.placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.hover\:w-\[200px\]:hover{width:200px}.hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}.hover\:border-purple-700:hover{--tw-border-opacity:1;border-color:rgb(126 34 206/var(--tw-border-opacity))}.hover\:bg-\[\#2c3237\]:hover{--tw-bg-opacity:1;background-color:rgb(44 50 55/var(--tw-bg-opacity))}.hover\:bg-\[\#3a3f44\]:hover{--tw-bg-opacity:1;background-color:rgb(58 63 68/var(--tw-bg-opacity))}.hover\:bg-\[\#406a4c\]:hover{--tw-bg-opacity:1;background-color:rgb(64 106 76/var(--tw-bg-opacity))}.hover\:bg-\[\#4f7f63\]:hover{--tw-bg-opacity:1;background-color:rgb(79 127 99/var(--tw-bg-opacity))}.hover\:bg-\[\#548a6a\]:hover{--tw-bg-opacity:1;background-color:rgb(84 138 106/var(--tw-bg-opacity))}.hover\:bg-\[\#afd4be\]:hover{--tw-bg-opacity:1;background-color:rgb(175 212 190/var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\:bg-brandgreen-500:hover{--tw-bg-opacity:1;background-color:rgb(84 138 106/var(--tw-bg-opacity))}.hover\:bg-brandgreen-600:hover{--tw-bg-opacity:1;background-color:rgb(76 126 94/var(--tw-bg-opacity))}.hover\:bg-brandgreen-700:hover{--tw-bg-opacity:1;background-color:rgb(64 106 76/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-gray-500:hover{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.hover\:bg-pink-400:hover{--tw-bg-opacity:1;background-color:rgb(244 114 182/var(--tw-bg-opacity))}.hover\:bg-pink-600:hover{--tw-bg-opacity:1;background-color:rgb(219 39 119/var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\:bg-slate-500:hover{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))}.hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.hover\:bg-stone-200:hover{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.hover\:bg-yellow-700:hover{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity))}.hover\:hover\:bg-\[\#2c3237\]:hover:hover{--tw-bg-opacity:1;background-color:rgb(44 50 55/var(--tw-bg-opacity))}.hover\:stroke-pink-500:hover{stroke:#ec4899}.hover\:text-\[\#548a6a\]:hover{--tw-text-opacity:1;color:rgb(84 138 106/var(--tw-text-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.hover\:text-gray-100:hover{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.hover\:text-gray-200:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.hover\:text-gray-300:hover{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.hover\:text-gray-400:hover{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.hover\:text-red-200:hover{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.hover\:text-sky-800:hover{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-90:hover{opacity:.9}.focus\:border-\[\#548a6a\]:focus{--tw-border-opacity:1;border-color:rgb(84 138 106/var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\:border-brandgreen-500:focus{--tw-border-opacity:1;border-color:rgb(84 138 106/var(--tw-border-opacity))}.focus\:text-black:focus{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:outline-offset-0:focus{outline-offset:0}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-\[\#548a6a\]:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(84 138 106/var(--tw-ring-opacity))}.focus\:ring-\[\#558a6b\]:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(85 138 107/var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.focus\:ring-brandgreen-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(84 138 106/var(--tw-ring-opacity))}.focus\:ring-brandgreen-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(76 126 94/var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.group\/row:hover .group-hover\/row\:visible,.group\/slideout:hover .group-hover\/slideout\:visible{visibility:visible}.group:hover .group-hover\:mr-2{margin-right:.5rem}.group\/resources:hover .group-hover\/resources\:block,.group\/tools:hover .group-hover\/tools\:block{display:block}.group:hover .group-hover\:inline{display:inline}.group\/column:hover .group-hover\/column\:inline-flex{display:inline-flex}.group\/column:hover .group-hover\/column\:hidden{display:none}.group\/resources:hover .group-hover\/resources\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes gradient-hover{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.group:hover .group-hover\:animate-gradient-hover{animation:gradient-hover 3s ease infinite}.group:hover .group-hover\:px-4{padding-left:1rem;padding-right:1rem}.group\/item:hover .group-hover\/item\:text-\[\#548a6a\]{--tw-text-opacity:1;color:rgb(84 138 106/var(--tw-text-opacity))}.group:hover .group-hover\:text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.group:hover .group-hover\:opacity-100,.group\/column:hover .group-hover\/column\:opacity-100,.group\/slideout:hover .group-hover\/slideout\:opacity-100{opacity:1}:is(.dark .dark\:border-0){border-width:0}:is(.dark .dark\:border-\[\#212529\]){--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}:is(.dark .dark\:bg-\[\#212529\]){--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#3a4141\]){--tw-bg-opacity:1;background-color:rgb(58 65 65/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-200){--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}:is(.dark .dark\:ring-0){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .dark\:ring-white){--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}:is(.dark .dark\:hover\:text-gray-50:hover){--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity))}:is(.dark .dark\:focus\:border-white:focus){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}:is(.dark .dark\:focus\:ring-white:focus){--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}@media (min-width:640px){.sm\:static{position:static}.sm\:inset-auto{inset:auto}.sm\:bottom-6{bottom:1.5rem}.sm\:right-6{right:1.5rem}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:mx-0{margin-left:0;margin-right:0}.sm\:my-10{margin-bottom:2.5rem;margin-top:2.5rem}.sm\:my-4{margin-bottom:1rem;margin-top:1rem}.sm\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\:ml-3{margin-left:.75rem}.sm\:ml-4{margin-left:1rem}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-0{margin-top:0}.sm\:mt-36{margin-top:9rem}.sm\:mt-4{margin-top:1rem}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:h-10{height:2.5rem}.sm\:w-10{width:2.5rem}.sm\:w-2\/5{width:40%}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-\[400px\]{max-width:400px}.sm\:max-w-lg{max-width:32rem}.sm\:translate-x-0{--tw-translate-x:0px}.sm\:translate-x-0,.sm\:translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:translate-x-2{--tw-translate-x:0.5rem}.sm\:translate-y-0{--tw-translate-y:0px}.sm\:scale-100,.sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row-reverse{flex-direction:row-reverse}.sm\:items-start{align-items:flex-start}.sm\:items-end{align-items:flex-end}.sm\:items-center{align-items:center}.sm\:items-stretch{align-items:stretch}.sm\:justify-start{justify-content:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-4{gap:1rem}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:px-3{padding-left:.75rem;padding-right:.75rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-1{padding-bottom:.25rem;padding-top:.25rem}.sm\:py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.sm\:pr-0{padding-right:0}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}.sm\:duration-700{transition-duration:.7s}}@media (min-width:768px){.md\:col-span-2{grid-column:span 2/span 2}.md\:col-span-3{grid-column:span 3/span 3}.md\:mb-0{margin-bottom:0}.md\:ml-\[70px\]{margin-left:70px}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-48{height:12rem}.md\:h-full{height:100%}.md\:w-1\/2{width:50%}.md\:w-1\/5{width:20%}.md\:w-24{width:6rem}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-2xl{max-width:42rem}.md\:max-w-\[600px\]{max-width:600px}.md\:max-w-lg{max-width:32rem}.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\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-nowrap{flex-wrap:nowrap}.md\:justify-start{justify-content:flex-start}.md\:justify-end{justify-content:flex-end}.md\:justify-between{justify-content:space-between}.md\:-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(-1rem*var(--tw-space-y-reverse));margin-top:calc(-1rem*(1 - var(--tw-space-y-reverse)))}.md\:space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.md\:rounded-full{border-radius:9999px}.md\:border{border-width:1px}.md\:border-0{border-width:0}.md\:border-b{border-bottom-width:1px}.md\:border-l{border-left-width:1px}.md\:border-l-0{border-left-width:0}.md\:border-r{border-right-width:1px}.md\:border-t{border-top-width:1px}.md\:border-t-0{border-top-width:0}.md\:border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.md\:object-contain{-o-object-fit:contain;object-fit:contain}.md\:px-0{padding-left:0;padding-right:0}.md\:px-24{padding-left:6rem;padding-right:6rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:py-0{padding-bottom:0;padding-top:0}.md\:py-5{padding-bottom:1.25rem;padding-top:1.25rem}.md\:text-left{text-align:left}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.focus\:md\:border-gray-400:focus{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}}@media (min-width:1024px){.lg\:order-none{order:0}.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-start-3{grid-column-start:3}.lg\:row-start-1{grid-row-start:1}.lg\:float-right{float:right}.lg\:my-10{margin-bottom:2.5rem;margin-top:2.5rem}.lg\:my-14{margin-bottom:3.5rem;margin-top:3.5rem}.lg\:mb-0{margin-bottom:0}.lg\:ml-5{margin-left:1.25rem}.lg\:mr-6{margin-right:1.5rem}.lg\:block{display:block}.lg\:inline-block{display:inline-block}.lg\:hidden{display:none}.lg\:h-11{height:2.75rem}.lg\:h-20{height:5rem}.lg\:h-\[408px\]{height:408px}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:w-11{width:2.75rem}.lg\:w-20{width:5rem}.lg\:w-3\/4{width:75%}.lg\:w-4\/5{width:80%}.lg\:w-auto{width:auto}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:flex-nowrap{flex-wrap:nowrap}.lg\:items-start{align-items:flex-start}.lg\:gap-4{gap:1rem}.lg\:gap-y-14{row-gap:3.5rem}.lg\:px-48{padding-left:12rem;padding-right:12rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-left{text-align:left}}@media (min-width:1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}} \ No newline at end of file +/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=checkbox]:indeterminate,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}#sentry-feedback{--background:#1f2327;--submit-background:#518467;--submit-border:#518467}#parallax-image{height:auto;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:-200px;width:180%}.widget__actor{color:#ebe6ef!important}@media (min-width:1040px){#parallax-image{height:auto;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:-100px;width:150%}}@media (min-width:1300px){#parallax-image{height:auto;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:-200px;width:100%}}.group-hover:animate-gradient-hover{animation:gradient-hover 3s ease infinite;background-size:200% 200%}.rdt_Table{z-index:0!important}.rdt_Table,.rdt_TableBody{max-height:none!important}.rdt_TableHead{z-index:0!important}.rdt_TableCol,.rdt_TableHeadRow,.rdt_TableHeader,.rdt_TableRow{z-index:1!important}#shopping-list-slice-state-table .rdt_TableHeadRow{border:0!important}#table__wrapper>div:first-child{max-height:none!important}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.aspect-h-2{--tw-aspect-h:2}.aspect-h-9{--tw-aspect-h:9}.aspect-w-1{--tw-aspect-w:1;padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative}.aspect-w-1>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.aspect-w-16{--tw-aspect-w:16;padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative}.aspect-w-16>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.aspect-w-2{--tw-aspect-w:2;padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative}.aspect-w-2>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.aspect-none{padding-bottom:0;position:static}.aspect-none>*{bottom:auto;height:auto;left:auto;position:static;right:auto;top:auto;width:auto}.homepage-grid{display:grid;grid-template-areas:"header header header" "projects projects projects" "left middle right" "info1 info1 info1" "info2 info2 footer";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto 1fr 1fr auto;padding:1.5rem}.header-section{grid-area:header}.projects-section{grid-area:projects}.left-info-box{grid-area:left}.middle-info-box{grid-area:middle}.right-info-box{grid-area:right}.info1-section{grid-area:info1}.info2-section{grid-area:info2}.footer-section{grid-area:footer}@media (max-width:640px){.homepage-grid{grid-template-areas:"header header" "projects projects" "left left" "middle middle" "right right" "info1 info1" "info2 info2" "footer footer";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto auto auto auto auto auto}}.chevron-open{transform:translateY(-50%) rotate(180deg)!important}.table-of-contents{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-radius:.5rem;margin-bottom:1.25rem;padding:1.25rem}.table-of-contents h2{font-size:1.25rem;font-weight:600;line-height:1.75rem;margin-bottom:.75rem}.table-of-contents ul{list-style-type:none;padding:0}.table-of-contents a{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity));display:block;font-weight:700;margin-bottom:.25rem;padding:.5rem;text-decoration-line:none}.table-of-contents ul ul a{font-weight:400;padding-left:1.25rem}.table-of-contents a:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.table-of-contents{float:right;margin-left:1.25rem;width:25%}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.\!fixed{position:fixed!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-1{inset:-.25rem}.inset-0{inset:0}.inset-auto{inset:auto}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.-bottom-\[18px\]{bottom:-18px}.-left-\[10px\]{left:-10px}.-left-\[15px\]{left:-15px}.-right-\[15px\]{right:-15px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.end-1{inset-inline-end:.25rem}.left-0{left:0}.left-2{left:.5rem}.left-\[-20px\]{left:-20px}.left-full{left:100%}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.start-1{inset-inline-start:.25rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-10{top:2.5rem}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-\[-7px\]{top:-7px}.top-full{top:100%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.order-first{order:-9999}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-4{grid-column:span 4/span 4}.col-span-full{grid-column:1/-1}.row-span-1{grid-row:span 1/span 1}.float-right{float:right}.float-left{float:left}.float-none{float:none}.clear-left{clear:left}.clear-right{clear:right}.clear-both{clear:both}.clear-none{clear:none}.\!-m-px{margin:-1px!important}.-m-1{margin:-.25rem}.-m-2{margin:-.5rem}.m-0{margin:0}.m-1{margin:.25rem}.m-12{margin:3rem}.m-48{margin:12rem}.m-6{margin:1.5rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.mx-0{margin-left:0;margin-right:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.my-0\.5{margin-bottom:.125rem;margin-top:.125rem}.my-10{margin-bottom:2.5rem;margin-top:2.5rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.my-6{margin-bottom:1.5rem;margin-top:1.5rem}.my-8{margin-bottom:2rem;margin-top:2rem}.my-\[10px\]{margin-bottom:10px;margin-top:10px}.my-\[16px\]{margin-bottom:16px;margin-top:16px}.-mb-px{margin-bottom:-1px}.-ml-0{margin-left:0}.-ml-1{margin-left:-.25rem}.-ml-10{margin-left:-2.5rem}.-mr-0{margin-right:0}.-mr-1{margin-right:-.25rem}.-mr-2{margin-right:-.5rem}.-mr-3{margin-right:-.75rem}.-mr-6{margin-right:-1.5rem}.-mr-\[1px\]{margin-right:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[10px\]{margin-bottom:10px}.mb-\[12px\]{margin-bottom:12px}.mb-\[14px\]{margin-bottom:14px}.mb-\[15px\]{margin-bottom:15px}.mb-\[17px\]{margin-bottom:17px}.mb-\[18px\]{margin-bottom:18px}.mb-\[1px\]{margin-bottom:1px}.mb-\[21px\]{margin-bottom:21px}.mb-\[22px\]{margin-bottom:22px}.mb-\[26px\]{margin-bottom:26px}.mb-\[27px\]{margin-bottom:27px}.mb-\[2px\]{margin-bottom:2px}.mb-\[9px\]{margin-bottom:9px}.mb-auto{margin-bottom:auto}.me-1{-webkit-margin-end:.25rem;margin-inline-end:.25rem}.me-3{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-6{margin-left:1.5rem}.ml-\[200px\]{margin-left:200px}.ml-\[22px\]{margin-left:22px}.ml-\[47px\]{margin-left:47px}.ml-\[60px\]{margin-left:60px}.ml-auto{margin-left:auto}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-5{margin-right:1.25rem}.mr-6{margin-right:1.5rem}.mr-\[10px\]{margin-right:10px}.mr-\[5px\]{margin-right:5px}.mr-\[6px\]{margin-right:6px}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-36{margin-top:9rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.mt-\[10px\]{margin-top:10px}.mt-\[11px\]{margin-top:11px}.mt-\[17px\]{margin-top:17px}.mt-\[20px\]{margin-top:20px}.mt-\[32px\]{margin-top:32px}.mt-\[40px\]{margin-top:40px}.mt-\[64px\]{margin-top:64px}.mt-\[6px\]{margin-top:6px}.mt-\[8px\]{margin-top:8px}.mt-\[9px\]{margin-top:9px}.mt-auto{margin-top:auto}.box-border{box-sizing:border-box}.box-content{box-sizing:initial}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-2{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2}.line-clamp-3{-webkit-line-clamp:3}.line-clamp-3,.line-clamp-5{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5}.line-clamp-none{-webkit-box-orient:horizontal;-webkit-line-clamp:none;display:block;overflow:visible}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-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-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.\!hidden{display:none!important}.hidden{display:none}.h-0{height:0}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[144px\]{height:144px}.h-\[1px\]{height:1px}.h-\[212px\]{height:212px}.h-\[295px\]{height:295px}.h-\[32px\]{height:32px}.h-\[33px\]{height:33px}.h-\[36px\]{height:36px}.h-\[40px\]{height:40px}.h-\[48px\]{height:48px}.h-\[50px\]{height:50px}.h-\[60px\]{height:60px}.h-\[80px\]{height:80px}.h-\[88px\]{height:88px}.h-\[96px\]{height:96px}.h-\[98px\]{height:98px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-min{height:-moz-min-content;height:min-content}.h-screen{height:100vh}.max-h-0{max-height:0}.max-h-20{max-height:5rem}.max-h-24{max-height:6rem}.max-h-28{max-height:7rem}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-44{max-height:11rem}.max-h-48{max-height:12rem}.max-h-52{max-height:13rem}.max-h-60{max-height:15rem}.max-h-80{max-height:20rem}.max-h-96{max-height:24rem}.max-h-\[30rem\]{max-height:30rem}.max-h-\[36rem\]{max-height:36rem}.max-h-\[400px\]{max-height:400px}.max-h-\[470px\]{max-height:470px}.max-h-\[90vh\]{max-height:90vh}.max-h-full{max-height:100%}.min-h-\[120px\]{min-height:120px}.min-h-\[180px\]{min-height:180px}.min-h-\[208px\]{min-height:208px}.min-h-\[56px\]{min-height:56px}.min-h-\[7px\]{min-height:7px}.min-h-\[84px\]{min-height:84px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/3{width:66.666667%}.w-2\/5{width:40%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-52{width:13rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[100px\]{width:100px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[154px\]{width:154px}.w-\[164px\]{width:164px}.w-\[200px\]{width:200px}.w-\[204px\]{width:204px}.w-\[275px\]{width:275px}.w-\[295px\]{width:295px}.w-\[300px\]{width:300px}.w-\[336px\]{width:336px}.w-\[338px\]{width:338px}.w-\[33px\]{width:33px}.w-\[348px\]{width:348px}.w-\[383px\]{width:383px}.w-\[48px\]{width:48px}.w-\[500px\]{width:500px}.w-\[65px\]{width:65px}.w-\[70px\]{width:70px}.w-\[75px\]{width:75px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.w-px{width:1px}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[2\.5rem\]{min-width:2.5rem}.min-w-\[200px\]{min-width:200px}.min-w-\[57px\]{min-width:57px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[290px\]{max-width:290px}.max-w-\[79px\]{max-width:79px}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.caption-top{caption-side:top}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.border-separate{border-collapse:initial}.origin-top-right{transform-origin:top right}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-full{--tw-translate-y:-100%}.-translate-y-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-10{--tw-translate-x:2.5rem}.translate-x-10,.translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:0.5rem}.translate-x-5{--tw-translate-x:1.25rem}.translate-x-5,.translate-x-9{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-9{--tw-translate-x:2.25rem}.translate-x-full{--tw-translate-x:100%}.translate-x-full,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.translate-y-2{--tw-translate-y:0.5rem}.translate-y-2,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1rem}.translate-y-full{--tw-translate-y:100%}.rotate-0,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate:0deg}.rotate-180{--tw-rotate:180deg}.rotate-180,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\!transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform,.transform-cpu{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}.animate-bounce{animation:bounce 1s infinite}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-copy{cursor:copy}.cursor-pointer{cursor:pointer}.touch-auto{touch-action:auto}.touch-none{touch-action:none}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-left,.touch-pan-x{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-left{--tw-pan-x:pan-left}.touch-pan-right{--tw-pan-x:pan-right}.touch-pan-right,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.touch-pan-up{--tw-pan-y:pan-up}.touch-pan-down,.touch-pan-up{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-down{--tw-pan-y:pan-down}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-manipulation{touch-action:manipulation}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-y{resize:vertical}.resize-x{resize:horizontal}.resize{resize:both}.snap-none{scroll-snap-type:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-both{scroll-snap-type:both var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-proximity{--tw-scroll-snap-strictness:proximity}.snap-start{scroll-snap-align:start}.snap-end{scroll-snap-align:end}.snap-center{scroll-snap-align:center}.snap-align-none{scroll-snap-align:none}.snap-normal{scroll-snap-stop:normal}.snap-always{scroll-snap-stop:always}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.break-before-auto{-moz-column-break-before:auto;break-before:auto}.break-before-avoid{-moz-column-break-before:avoid;break-before:avoid}.break-before-all{-moz-column-break-before:all;break-before:all}.break-before-avoid-page{-moz-column-break-before:avoid;break-before:avoid-page}.break-before-page{-moz-column-break-before:page;break-before:page}.break-before-left{-moz-column-break-before:left;break-before:left}.break-before-right{-moz-column-break-before:right;break-before:right}.break-before-column{-moz-column-break-before:column;break-before:column}.break-inside-auto{-moz-column-break-inside:auto;break-inside:auto}.break-inside-avoid{-moz-column-break-inside:avoid;break-inside:avoid}.break-inside-avoid-page{break-inside:avoid-page}.break-inside-avoid-column{-moz-column-break-inside:avoid;break-inside:avoid-column}.break-after-auto{-moz-column-break-after:auto;break-after:auto}.break-after-avoid{-moz-column-break-after:avoid;break-after:avoid}.break-after-all{-moz-column-break-after:all;break-after:all}.break-after-avoid-page{-moz-column-break-after:avoid;break-after:avoid-page}.break-after-page{-moz-column-break-after:page;break-after:page}.break-after-left{-moz-column-break-after:left;break-after:left}.break-after-right{-moz-column-break-after:right;break-after:right}.break-after-column{-moz-column-break-after:column;break-after:column}.grid-flow-row{grid-auto-flow:row}.grid-flow-col{grid-auto-flow:column}.grid-flow-dense{grid-auto-flow:dense}.grid-flow-row-dense{grid-auto-flow:row dense}.grid-flow-col-dense{grid-auto-flow:column dense}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.place-content-baseline{place-content:baseline}.place-content-stretch{place-content:stretch}.place-items-start{place-items:start}.place-items-end{place-items:end}.place-items-center{place-items:center}.place-items-baseline{place-items:baseline}.place-items-stretch{place-items:stretch}.content-normal{align-content:normal}.content-center{align-content:center}.content-start{align-content:flex-start}.content-end{align-content:flex-end}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-evenly{align-content:space-evenly}.content-baseline{align-content:baseline}.content-stretch{align-content:stretch}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-normal{justify-content:normal}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.justify-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[2px\]{gap:2px}.gap-\[6px\]{gap:6px}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-1\.5{-moz-column-gap:.375rem;column-gap:.375rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-\[14px\]{-moz-column-gap:14px;column-gap:14px}.gap-y-10{row-gap:2.5rem}.gap-y-14{row-gap:3.5rem}.gap-y-2{row-gap:.5rem}.gap-y-2\.5{row-gap:.625rem}.gap-y-4{row-gap:1rem}.gap-y-5{row-gap:1.25rem}.gap-y-7{row-gap:1.75rem}.gap-y-8{row-gap:2rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(-1px*(1 - var(--tw-space-x-reverse)));margin-right:calc(-1px*var(--tw-space-x-reverse))}.-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(-1rem*var(--tw-space-y-reverse));margin-top:calc(-1rem*(1 - var(--tw-space-y-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(3rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(3rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2.5rem*var(--tw-space-y-reverse));margin-top:calc(2.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-12>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(3rem*var(--tw-space-y-reverse));margin-top:calc(3rem*(1 - var(--tw-space-y-reverse)))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(4rem*var(--tw-space-y-reverse));margin-top:calc(4rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse:1}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(1px*var(--tw-divide-x-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-y-reverse>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:1}.divide-x-reverse>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:1}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-dashed>:not([hidden])~:not([hidden]){border-style:dashed}.divide-dotted>:not([hidden])~:not([hidden]){border-style:dotted}.divide-double>:not([hidden])~:not([hidden]){border-style:double}.divide-none>:not([hidden])~:not([hidden]){border-style:none}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(243 244 246/var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.place-self-auto{place-self:auto}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.place-self-stretch{place-self:stretch}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.self-baseline{align-self:baseline}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.justify-self-stretch{justify-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-clip{overflow-x:clip}.overflow-y-clip{overflow-y:clip}.overflow-x-visible{overflow-x:visible}.overflow-y-visible{overflow-y:visible}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.overscroll-auto{overscroll-behavior:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-none{overscroll-behavior:none}.overscroll-y-auto{overscroll-behavior-y:auto}.overscroll-y-contain{overscroll-behavior-y:contain}.overscroll-y-none{overscroll-behavior-y:none}.overscroll-x-auto{overscroll-behavior-x:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.overscroll-x-none{overscroll-behavior-x:none}.scroll-auto{scroll-behavior:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-clip{text-overflow:clip}.hyphens-none{-webkit-hyphens:none;hyphens:none}.hyphens-manual{-webkit-hyphens:manual;hyphens:manual}.hyphens-auto{-webkit-hyphens:auto;hyphens:auto}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[14px\]{border-radius:14px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-e{border-end-end-radius:.25rem;border-start-end-radius:.25rem}.rounded-l{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.rounded-l-lg{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-lg{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-s{border-end-start-radius:.25rem;border-start-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-x{border-left-width:1px;border-right-width:1px}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-e{border-inline-end-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-s{border-inline-start-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-double{border-style:double}.border-hidden{border-style:hidden}.border-none{border-style:none}.border-\[\#212529\]{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.border-\[\#ECECEC\]{--tw-border-opacity:1;border-color:rgb(236 236 236/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.border-brandgreen-500{--tw-border-opacity:1;border-color:rgb(84 138 106/var(--tw-border-opacity))}.border-current{border-color:currentColor}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-gray-50{--tw-border-opacity:1;border-color:rgb(249 250 251/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(79 70 229/var(--tw-border-opacity))}.border-pink-500{--tw-border-opacity:1;border-color:rgb(236 72 153/var(--tw-border-opacity))}.border-slate-500{--tw-border-opacity:1;border-color:rgb(100 116 139/var(--tw-border-opacity))}.border-transparent{border-color:#0000}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-e-transparent{border-inline-end-color:#0000}.bg-\[\#13c3ff\]{--tw-bg-opacity:1;background-color:rgb(19 195 255/var(--tw-bg-opacity))}.bg-\[\#212529\]{--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity))}.bg-\[\#2c3237\]{--tw-bg-opacity:1;background-color:rgb(44 50 55/var(--tw-bg-opacity))}.bg-\[\#3c82f6\]{--tw-bg-opacity:1;background-color:rgb(60 130 246/var(--tw-bg-opacity))}.bg-\[\#548a6a\]{--tw-bg-opacity:1;background-color:rgb(84 138 106/var(--tw-bg-opacity))}.bg-\[\#568b6d\]{--tw-bg-opacity:1;background-color:rgb(86 139 109/var(--tw-bg-opacity))}.bg-\[\#DFFAFD\]{--tw-bg-opacity:1;background-color:rgb(223 250 253/var(--tw-bg-opacity))}.bg-\[\#EBFBFC\]{--tw-bg-opacity:1;background-color:rgb(235 251 252/var(--tw-bg-opacity))}.bg-\[\#F3F3F3\]{--tw-bg-opacity:1;background-color:rgb(243 243 243/var(--tw-bg-opacity))}.bg-\[\#c9e2d3\]{--tw-bg-opacity:1;background-color:rgb(201 226 211/var(--tw-bg-opacity))}.bg-\[\#cab9a3\]{--tw-bg-opacity:1;background-color:rgb(202 185 163/var(--tw-bg-opacity))}.bg-\[\#d4e4ea\]{--tw-bg-opacity:1;background-color:rgb(212 228 234/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 219 254/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity))}.bg-brandgreen-100{--tw-bg-opacity:1;background-color:rgb(236 243 234/var(--tw-bg-opacity))}.bg-brandgreen-200{--tw-bg-opacity:1;background-color:rgb(205 229 204/var(--tw-bg-opacity))}.bg-brandgreen-300{--tw-bg-opacity:1;background-color:rgb(174 215 174/var(--tw-bg-opacity))}.bg-brandgreen-500{--tw-bg-opacity:1;background-color:rgb(84 138 106/var(--tw-bg-opacity))}.bg-brandgreen-600{--tw-bg-opacity:1;background-color:rgb(76 126 94/var(--tw-bg-opacity))}.bg-brandgreen-700{--tw-bg-opacity:1;background-color:rgb(64 106 76/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.bg-pink-400{--tw-bg-opacity:1;background-color:rgb(244 114 182/var(--tw-bg-opacity))}.bg-pink-600{--tw-bg-opacity:1;background-color:rgb(219 39 119/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(233 213 255/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.bg-sky-200{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.bg-sky-400{--tw-bg-opacity:1;background-color:rgb(56 189 248/var(--tw-bg-opacity))}.bg-sky-50{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.bg-slate-600{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.bg-stone-200{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity))}.bg-yellow-700{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity))}.bg-yellow-800{--tw-bg-opacity:1;background-color:rgb(133 77 14/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-opacity-75{--tw-bg-opacity:0.75}.bg-opacity-90{--tw-bg-opacity:0.9}.bg-opacity-95{--tw-bg-opacity:0.95}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-\[\#ABABAB\]\/20{--tw-gradient-from:#ababab33 var(--tw-gradient-from-position);--tw-gradient-to:#ababab00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-black{--tw-gradient-from:#000 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-50{--tw-gradient-from:#eff6ff var(--tw-gradient-from-position);--tw-gradient-to:#eff6ff00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-gray-50{--tw-gradient-from:#f9fafb var(--tw-gradient-from-position);--tw-gradient-to:#f9fafb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-50{--tw-gradient-from:#f8fafc var(--tw-gradient-from-position);--tw-gradient-to:#f8fafc00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-70\%{--tw-gradient-from-position:70%}.to-gray-100{--tw-gradient-to:#f3f4f6 var(--tw-gradient-to-position)}.decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.box-decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.bg-cover{background-size:cover}.bg-fixed{background-attachment:fixed}.bg-local{background-attachment:local}.bg-scroll{background-attachment:scroll}.bg-clip-border{background-clip:initial}.bg-clip-padding{background-clip:padding-box}.bg-clip-content{background-clip:content-box}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-center{background-position:50%}.bg-repeat{background-repeat:repeat}.bg-no-repeat{background-repeat:no-repeat}.bg-repeat-x{background-repeat:repeat-x}.bg-repeat-y{background-repeat:repeat-y}.bg-repeat-round{background-repeat:round}.bg-repeat-space{background-repeat:space}.bg-origin-border{background-origin:border-box}.bg-origin-padding{background-origin:initial}.bg-origin-content{background-origin:content-box}.fill-\[\#548a6a\]{fill:#548a6a}.fill-blue-500{fill:#3b82f6}.fill-gray-500{fill:#6b7280}.fill-sky-500{fill:#0ea5e9}.fill-white{fill:#fff}.fill-yellow-300{fill:#fde047}.stroke-black{stroke:#000}.stroke-blue-500{stroke:#3b82f6}.stroke-pink-500{stroke:#ec4899}.stroke-sky-500{stroke:#0ea5e9}.stroke-slate-300{stroke:#cbd5e1}.stroke-slate-400{stroke:#94a3b8}.stroke-slate-500{stroke:#64748b}.stroke-yellow-300{stroke:#fde047}.stroke-yellow-500{stroke:#eab308}.stroke-2{stroke-width:2}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.object-none{-o-object-fit:none;object-fit:none}.object-scale-down{-o-object-fit:scale-down;object-fit:scale-down}.object-custom-center{-o-object-position:30% 70%;object-position:30% 70%}.\!p-0{padding:0!important}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-14{padding:3.5rem}.p-16{padding:4rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-20{padding-left:5rem;padding-right:5rem}.px-24{padding-left:6rem;padding-right:6rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-48{padding-left:12rem;padding-right:12rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.px-\[15px\]{padding-left:15px;padding-right:15px}.px-\[18px\]{padding-left:18px;padding-right:18px}.px-\[21px\]{padding-left:21px;padding-right:21px}.px-\[22px\]{padding-left:22px;padding-right:22px}.px-\[25px\]{padding-left:25px;padding-right:25px}.px-\[30px\]{padding-left:30px;padding-right:30px}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-36{padding-bottom:9rem;padding-top:9rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-48{padding-bottom:12rem;padding-top:12rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.py-\[13px\]{padding-bottom:13px;padding-top:13px}.py-\[2\.5px\]{padding-bottom:2.5px;padding-top:2.5px}.py-\[8px\]{padding-bottom:8px;padding-top:8px}.py-\[9px\]{padding-bottom:9px;padding-top:9px}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-\[13px\]{padding-bottom:13px}.pb-\[14px\]{padding-bottom:14px}.pb-\[19px\]{padding-bottom:19px}.pb-\[20px\]{padding-bottom:20px}.pb-\[3px\]{padding-bottom:3px}.pb-\[6px\]{padding-bottom:6px}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-3\.5{padding-left:.875rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-7{padding-left:1.75rem}.pl-72{padding-left:18rem}.pl-8{padding-left:2rem}.pl-\[11px\]{padding-left:11px}.pl-\[20px\]{padding-left:20px}.pl-\[24px\]{padding-left:24px}.pl-\[30px\]{padding-left:30px}.pl-\[32px\]{padding-left:32px}.pl-\[8px\]{padding-left:8px}.pr-0{padding-right:0}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-\[13px\]{padding-right:13px}.pr-\[15px\]{padding-right:15px}.pr-\[16px\]{padding-right:16px}.pr-\[20px\]{padding-right:20px}.pr-\[22px\]{padding-right:22px}.pr-\[39px\]{padding-right:39px}.pr-\[3px\]{padding-right:3px}.pr-\[8px\]{padding-right:8px}.pr-\[9px\]{padding-right:9px}.ps-2{-webkit-padding-start:.5rem;padding-inline-start:.5rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.pt-\[10px\]{padding-top:10px}.pt-\[11px\]{padding-top:11px}.pt-\[21px\]{padding-top:21px}.pt-\[24px\]{padding-top:24px}.pt-\[38px\]{padding-top:38px}.pt-\[3px\]{padding-top:3px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-start{text-align:start}.text-end{text-align:end}.align-baseline{vertical-align:initial}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-top{vertical-align:text-top}.align-text-bottom{vertical-align:text-bottom}.align-sub{vertical-align:sub}.align-super{vertical-align:super}.font-display{font-family:Quicksand,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-roboto{font-family:Roboto,sans-serif}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-2xs{font-size:.5rem;line-height:.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.\!font-bold{font-weight:700!important}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.not-italic{font-style:normal}.normal-nums{font-variant-numeric:normal}.ordinal{--tw-ordinal:ordinal}.ordinal,.slashed-zero{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}.lining-nums{--tw-numeric-figure:lining-nums}.lining-nums,.oldstyle-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}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{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}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions}.diagonal-fractions,.stacked-fractions{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}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-\[14px\]{line-height:14px}.leading-tight{line-height:1.25}.tracking-\[1px\]{letter-spacing:1px}.tracking-wider{letter-spacing:.05em}.text-\[\#01B4C2\]{--tw-text-opacity:1;color:rgb(1 180 194/var(--tw-text-opacity))}.text-\[\#548a6a\]{--tw-text-opacity:1;color:rgb(84 138 106/var(--tw-text-opacity))}.text-\[\#558a6b\]{--tw-text-opacity:1;color:rgb(85 138 107/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity:1;color:rgb(239 246 255/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity))}.text-brandgreen-400{--tw-text-opacity:1;color:rgb(111 201 128/var(--tw-text-opacity))}.text-brandgreen-500{--tw-text-opacity:1;color:rgb(84 138 106/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.text-orange-800{--tw-text-opacity:1;color:rgb(154 52 18/var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity:1;color:rgb(219 39 119/var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity:1;color:rgb(126 34 206/var(--tw-text-opacity))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.text-sky-800{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.text-transparent{color:#0000}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.decoration-solid{text-decoration-style:solid}.decoration-double{text-decoration-style:double}.decoration-dotted{text-decoration-style:dotted}.decoration-dashed{text-decoration-style:dashed}.decoration-wavy{text-decoration-style:wavy}.decoration-1{text-decoration-thickness:1px}.underline-offset-1{text-underline-offset:1px}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.placeholder-gray-600::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(75 85 99/var(--tw-placeholder-opacity))}.placeholder-gray-600::placeholder{--tw-placeholder-opacity:1;color:rgb(75 85 99/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.bg-blend-normal{background-blend-mode:normal}.bg-blend-multiply{background-blend-mode:multiply}.bg-blend-screen{background-blend-mode:screen}.bg-blend-overlay{background-blend-mode:overlay}.bg-blend-darken{background-blend-mode:darken}.bg-blend-lighten{background-blend-mode:lighten}.bg-blend-color-dodge{background-blend-mode:color-dodge}.bg-blend-color-burn{background-blend-mode:color-burn}.bg-blend-hard-light{background-blend-mode:hard-light}.bg-blend-soft-light{background-blend-mode:soft-light}.bg-blend-difference{background-blend-mode:difference}.bg-blend-exclusion{background-blend-mode:exclusion}.bg-blend-hue{background-blend-mode:hue}.bg-blend-saturation{background-blend-mode:saturation}.bg-blend-color{background-blend-mode:color}.bg-blend-luminosity{background-blend-mode:luminosity}.mix-blend-normal{mix-blend-mode:normal}.mix-blend-multiply{mix-blend-mode:multiply}.mix-blend-screen{mix-blend-mode:screen}.mix-blend-overlay{mix-blend-mode:overlay}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-lighten{mix-blend-mode:lighten}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-color-burn{mix-blend-mode:color-burn}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-soft-light{mix-blend-mode:soft-light}.mix-blend-difference{mix-blend-mode:difference}.mix-blend-exclusion{mix-blend-mode:exclusion}.mix-blend-hue{mix-blend-mode:hue}.mix-blend-saturation{mix-blend-mode:saturation}.mix-blend-color{mix-blend-mode:color}.mix-blend-luminosity{mix-blend-mode:luminosity}.mix-blend-plus-lighter{mix-blend-mode:plus-lighter}.\!shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_8px_0_rgba\(0\2c 0\2c 0\2c 0\.12\)\2c 0_4px_10px_0_rgba\(50\2c 50\2c 50\2c \.12\)\]{--tw-shadow:0 1px 8px 0 #0000001f,0 4px 10px 0 #3232321f;--tw-shadow-colored:0 1px 8px 0 var(--tw-shadow-color),0 4px 10px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[3px_6px_20px_0px_rgba\(171\2c 171\2c 184\2c 0\.4\)\]{--tw-shadow:3px 6px 20px 0px #ababb866;--tw-shadow-colored:3px 6px 20px 0px var(--tw-shadow-color)}.shadow-\[3px_6px_20px_0px_rgba\(171\2c 171\2c 184\2c 0\.4\)\],.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid #0000;outline-offset:2px}.\!outline{outline-style:solid!important}.outline{outline-style:solid}.outline-dashed{outline-style:dashed}.outline-dotted{outline-style:dotted}.outline-double{outline-style:double}.outline-1{outline-width:1px}.outline-offset-0{outline-offset:0}.outline-pink-400{outline-color:#f472b6}.outline-pink-600{outline-color:#db2777}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-0{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-1,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-blue-300{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity))}.ring-blue-600{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.ring-brandgreen-500{--tw-ring-opacity:1;--tw-ring-color:rgb(84 138 106/var(--tw-ring-opacity))}.ring-brandgreen-600{--tw-ring-opacity:1;--tw-ring-color:rgb(76 126 94/var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.ring-gray-400{--tw-ring-opacity:1;--tw-ring-color:rgb(156 163 175/var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.ring-indigo-500{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.ring-indigo-600{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}.ring-pink-500{--tw-ring-opacity:1;--tw-ring-color:rgb(236 72 153/var(--tw-ring-opacity))}.ring-pink-600{--tw-ring-opacity:1;--tw-ring-color:rgb(219 39 119/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-2{--tw-ring-offset-width:2px}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow{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:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f)}.grayscale{--tw-grayscale:grayscale(100%);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)}.\!invert{--tw-invert:invert(100%)!important;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}.invert{--tw-invert:invert(100%)}.invert,.sepia{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)}.sepia{--tw-sepia:sepia(100%)}.\!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}.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-none{filter:none}.backdrop-blur{--tw-backdrop-blur:blur(8px)}.backdrop-blur,.backdrop-blur-md{-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-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.backdrop-blur-sm,.backdrop-grayscale{-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%)}.backdrop-invert{--tw-backdrop-invert:invert(100%)}.backdrop-invert,.backdrop-sepia{-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%)}.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)}.backdrop-filter-none{-webkit-backdrop-filter:none;backdrop-filter:none}.\!transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[max-height\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[width\]{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-200{transition-delay:.2s}.delay-300{transition-delay:.3s}.delay-700{transition-delay:.7s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[a\:a\]{a:a}.\[alo\:ahi\]{alo:ahi}.\[animation-delay\:0\.3s\]{animation-delay:.3s}.\[animation-delay\:0\.6s\]{animation-delay:.6s}.\[blo\:bhi\]{blo:bhi}.\[i\:ai\]{i:ai}.\[n\:number\|string\]{n:number|string}.placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.hover\:w-\[200px\]:hover{width:200px}.hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}.hover\:border-purple-700:hover{--tw-border-opacity:1;border-color:rgb(126 34 206/var(--tw-border-opacity))}.hover\:bg-\[\#2c3237\]:hover{--tw-bg-opacity:1;background-color:rgb(44 50 55/var(--tw-bg-opacity))}.hover\:bg-\[\#3a3f44\]:hover{--tw-bg-opacity:1;background-color:rgb(58 63 68/var(--tw-bg-opacity))}.hover\:bg-\[\#406a4c\]:hover{--tw-bg-opacity:1;background-color:rgb(64 106 76/var(--tw-bg-opacity))}.hover\:bg-\[\#4f7f63\]:hover{--tw-bg-opacity:1;background-color:rgb(79 127 99/var(--tw-bg-opacity))}.hover\:bg-\[\#548a6a\]:hover{--tw-bg-opacity:1;background-color:rgb(84 138 106/var(--tw-bg-opacity))}.hover\:bg-\[\#afd4be\]:hover{--tw-bg-opacity:1;background-color:rgb(175 212 190/var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\:bg-brandgreen-500:hover{--tw-bg-opacity:1;background-color:rgb(84 138 106/var(--tw-bg-opacity))}.hover\:bg-brandgreen-600:hover{--tw-bg-opacity:1;background-color:rgb(76 126 94/var(--tw-bg-opacity))}.hover\:bg-brandgreen-700:hover{--tw-bg-opacity:1;background-color:rgb(64 106 76/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-gray-500:hover{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.hover\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.hover\:bg-pink-400:hover{--tw-bg-opacity:1;background-color:rgb(244 114 182/var(--tw-bg-opacity))}.hover\:bg-pink-600:hover{--tw-bg-opacity:1;background-color:rgb(219 39 119/var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\:bg-slate-500:hover{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity:1;background-color:rgb(71 85 105/var(--tw-bg-opacity))}.hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.hover\:bg-stone-200:hover{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.hover\:bg-yellow-700:hover{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity))}.hover\:hover\:bg-\[\#2c3237\]:hover:hover{--tw-bg-opacity:1;background-color:rgb(44 50 55/var(--tw-bg-opacity))}.hover\:stroke-pink-500:hover{stroke:#ec4899}.hover\:text-\[\#548a6a\]:hover{--tw-text-opacity:1;color:rgb(84 138 106/var(--tw-text-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.hover\:text-gray-100:hover{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.hover\:text-gray-200:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.hover\:text-gray-300:hover{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.hover\:text-gray-400:hover{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.hover\:text-red-200:hover{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.hover\:text-sky-800:hover{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-90:hover{opacity:.9}.focus\:border-\[\#548a6a\]:focus{--tw-border-opacity:1;border-color:rgb(84 138 106/var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\:border-brandgreen-500:focus{--tw-border-opacity:1;border-color:rgb(84 138 106/var(--tw-border-opacity))}.focus\:text-black:focus{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:outline-offset-0:focus{outline-offset:0}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus\:ring-\[\#548a6a\]:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(84 138 106/var(--tw-ring-opacity))}.focus\:ring-\[\#558a6b\]:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(85 138 107/var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.focus\:ring-brandgreen-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(84 138 106/var(--tw-ring-opacity))}.focus\:ring-brandgreen-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(76 126 94/var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.group\/row:hover .group-hover\/row\:visible,.group\/slideout:hover .group-hover\/slideout\:visible{visibility:visible}.group:hover .group-hover\:mr-2{margin-right:.5rem}.group\/resources:hover .group-hover\/resources\:block,.group\/tools:hover .group-hover\/tools\:block{display:block}.group:hover .group-hover\:inline{display:inline}.group\/column:hover .group-hover\/column\:inline-flex{display:inline-flex}.group\/column:hover .group-hover\/column\:hidden{display:none}.group\/resources:hover .group-hover\/resources\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes gradient-hover{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.group:hover .group-hover\:animate-gradient-hover{animation:gradient-hover 3s ease infinite}.group:hover .group-hover\:px-4{padding-left:1rem;padding-right:1rem}.group\/item:hover .group-hover\/item\:text-\[\#548a6a\]{--tw-text-opacity:1;color:rgb(84 138 106/var(--tw-text-opacity))}.group:hover .group-hover\:text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.group:hover .group-hover\:opacity-100,.group\/column:hover .group-hover\/column\:opacity-100,.group\/slideout:hover .group-hover\/slideout\:opacity-100{opacity:1}:is(.dark .dark\:border-0){border-width:0}:is(.dark .dark\:border-\[\#212529\]){--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}:is(.dark .dark\:bg-\[\#212529\]){--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#3a4141\]){--tw-bg-opacity:1;background-color:rgb(58 65 65/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-200){--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}:is(.dark .dark\:ring-0){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(.dark .dark\:ring-white){--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}:is(.dark .dark\:hover\:text-gray-50:hover){--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity))}:is(.dark .dark\:focus\:border-white:focus){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}:is(.dark .dark\:focus\:ring-white:focus){--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}@media (min-width:640px){.sm\:static{position:static}.sm\:inset-auto{inset:auto}.sm\:bottom-6{bottom:1.5rem}.sm\:right-6{right:1.5rem}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:mx-0{margin-left:0;margin-right:0}.sm\:my-10{margin-bottom:2.5rem;margin-top:2.5rem}.sm\:my-4{margin-bottom:1rem;margin-top:1rem}.sm\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\:ml-3{margin-left:.75rem}.sm\:ml-4{margin-left:1rem}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-0{margin-top:0}.sm\:mt-36{margin-top:9rem}.sm\:mt-4{margin-top:1rem}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:h-10{height:2.5rem}.sm\:w-10{width:2.5rem}.sm\:w-2\/5{width:40%}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-\[400px\]{max-width:400px}.sm\:max-w-lg{max-width:32rem}.sm\:translate-x-0{--tw-translate-x:0px}.sm\:translate-x-0,.sm\:translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:translate-x-2{--tw-translate-x:0.5rem}.sm\:translate-y-0{--tw-translate-y:0px}.sm\:scale-100,.sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row-reverse{flex-direction:row-reverse}.sm\:items-start{align-items:flex-start}.sm\:items-end{align-items:flex-end}.sm\:items-center{align-items:center}.sm\:items-stretch{align-items:stretch}.sm\:justify-start{justify-content:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:gap-4{gap:1rem}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:px-3{padding-left:.75rem;padding-right:.75rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-1{padding-bottom:.25rem;padding-top:.25rem}.sm\:py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.sm\:pr-0{padding-right:0}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}.sm\:duration-700{transition-duration:.7s}}@media (min-width:768px){.md\:col-span-2{grid-column:span 2/span 2}.md\:col-span-3{grid-column:span 3/span 3}.md\:mb-0{margin-bottom:0}.md\:ml-\[70px\]{margin-left:70px}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-48{height:12rem}.md\:h-full{height:100%}.md\:w-1\/2{width:50%}.md\:w-1\/5{width:20%}.md\:w-24{width:6rem}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-2xl{max-width:42rem}.md\:max-w-\[600px\]{max-width:600px}.md\:max-w-lg{max-width:32rem}.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\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-nowrap{flex-wrap:nowrap}.md\:justify-start{justify-content:flex-start}.md\:justify-end{justify-content:flex-end}.md\:justify-between{justify-content:space-between}.md\:-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(-1rem*var(--tw-space-y-reverse));margin-top:calc(-1rem*(1 - var(--tw-space-y-reverse)))}.md\:space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.md\:rounded-full{border-radius:9999px}.md\:border{border-width:1px}.md\:border-0{border-width:0}.md\:border-b{border-bottom-width:1px}.md\:border-l{border-left-width:1px}.md\:border-l-0{border-left-width:0}.md\:border-r{border-right-width:1px}.md\:border-t{border-top-width:1px}.md\:border-t-0{border-top-width:0}.md\:border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.md\:object-contain{-o-object-fit:contain;object-fit:contain}.md\:px-0{padding-left:0;padding-right:0}.md\:px-24{padding-left:6rem;padding-right:6rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:py-0{padding-bottom:0;padding-top:0}.md\:py-5{padding-bottom:1.25rem;padding-top:1.25rem}.md\:text-left{text-align:left}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.focus\:md\:border-gray-400:focus{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}}@media (min-width:1024px){.lg\:order-none{order:0}.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-start-3{grid-column-start:3}.lg\:row-start-1{grid-row-start:1}.lg\:float-right{float:right}.lg\:my-10{margin-bottom:2.5rem;margin-top:2.5rem}.lg\:my-14{margin-bottom:3.5rem;margin-top:3.5rem}.lg\:mb-0{margin-bottom:0}.lg\:ml-5{margin-left:1.25rem}.lg\:mr-6{margin-right:1.5rem}.lg\:block{display:block}.lg\:inline-block{display:inline-block}.lg\:hidden{display:none}.lg\:h-11{height:2.75rem}.lg\:h-20{height:5rem}.lg\:h-\[408px\]{height:408px}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:w-11{width:2.75rem}.lg\:w-20{width:5rem}.lg\:w-3\/4{width:75%}.lg\:w-4\/5{width:80%}.lg\:w-auto{width:auto}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:flex-nowrap{flex-wrap:nowrap}.lg\:items-start{align-items:flex-start}.lg\:gap-4{gap:1rem}.lg\:gap-y-14{row-gap:3.5rem}.lg\:px-48{padding-left:12rem;padding-right:12rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-left{text-align:left}}@media (min-width:1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}} \ No newline at end of file diff --git a/backend/static/css/tailwind.css b/backend/static/css/tailwind.css index 03bfee8..84ab43a 100644 --- a/backend/static/css/tailwind.css +++ b/backend/static/css/tailwind.css @@ -18,6 +18,10 @@ top: -200px; width: 180%; } + + .widget__actor { + color: #ebe6ef !important; + } @media (min-width: 1040px) { #parallax-image { diff --git a/backend/static/js/currency_selector.js b/backend/static/js/currency_selector.js index 297eb2f..e87b68a 100644 --- a/backend/static/js/currency_selector.js +++ b/backend/static/js/currency_selector.js @@ -4,14 +4,12 @@ function updateCurrency(newCurrency) { const currencyContainer = $("#currency-container"); const isAuthenticated = currencyContainer.data("is-authenticated") === "true"; const csrfToken = currencyContainer.data("csrf-token"); - const userCurrencyUrl = currencyContainer.data("url-user-currency"); - console.log("Fetching URL:", userCurrencyUrl); - console.log("CSRF Token:", csrfToken); - console.log("Currency to update:", newCurrency); + console.log(isAuthenticated) + console.log(csrfToken) // Update user's default currency on the server if authenticated if (isAuthenticated) { - fetch(userCurrencyUrl, { + fetch("/api/user-update-currency/", { method: "PATCH", headers: { "Content-Type": "application/json", diff --git a/backend/static/js/main.bundle.js b/backend/static/js/main.bundle.js index ce3e86a..167e796 100644 --- a/backend/static/js/main.bundle.js +++ b/backend/static/js/main.bundle.js @@ -1,5 +1,5 @@ /*! For license information please see main.bundle.js.LICENSE.txt */ -(()=>{var e,t,n,r,i={2865:(e,t,n)=>{e.exports=n(9711)},9711:function(e,t,n){(function(){var e,r,i,o,a,s,g,l,A,C,c,I,u,d,h,f,p,m,v,y,b,w=[].indexOf;({floor:h,max:p,min:m}=Math),r=n(5731),u=n(4148),l=function(e,t){return t?2*e/t:1},g=function(e,t){var n,r,i,o,a;for([i,o]=[e.length,t.length],n=r=0,a=m(i,o);0<=a?ra;n=0<=a?++r:--r){if(e[n]t[n])return 1}return i-o},I=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s=function(e){var t,n;for(t=0,n=e.length;t=200&&(l=h(g/100)+1,t.forEach((function(e,n){if(e.length>l)return A.set(n,!0),t.delete(n)}))),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return A.has(e)}}findLongestMatch(e,t,n,r){var i,o,a,s,g,l,A,C,c,I,u,d,h,f,p,m,v,y;for([i,o,a,C]=[this.a,this.b,this.b2j,this.isbjunk],[s,g,l]=[e,n,0],I={},A=h=v=e,y=t;v<=y?hy;A=v<=y?++h:--h){for(m={},u=[],a.has(i[A])&&(u=a.get(i[A])),p=0,f=u.length;p=r)break;(d=m[c]=(I[c-1]||0)+1)>l&&([s,g,l]=[A-d+1,c-d+1,d])}I=m}for(;s>e&&g>n&&!C(o[g-1])&&i[s-1]===o[g-1];)[s,g,l]=[s-1,g-1,l+1];for(;s+le&&g>n&&C(o[g-1])&&i[s-1]===o[g-1];)[s,g,l]=[s-1,g-1,l+1];for(;s+lA&&(n.push([C,i,m(o,i+e),a,m(s,a+e)]),r.push(n),n=[],[i,a]=[p(i,o-e),p(a,s-e)]),n.push([C,i,o,a,s]);return!n.length||1===n.length&&"equal"===n[0][0]||r.push(n),r}ratio(){var e,t,n,r;for(n=0,e=0,t=(r=this.getMatchingBlocks()).length;e0&&s++;return l(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],l(m(e,t),e+t)}},f=function(e,t,n=3,i=.6){var o,s,l,A,C,c,I,u,d;if(!(n>0))throw new Error(`n must be > 0: (${n})`);if(!(0<=i&&i<=1))throw new Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(C=[],(I=new a).setSeq2(e),o=0,s=t.length;o=i&&I.quickRatio()>=i&&I.ratio()>=i&&C.push([I.ratio(),d]);for(c=[],A=0,l=(C=r.nlargest(C,n,g)).length;As;i=a<=s?++o:--o)g.push(`${e} ${t[i]}`);return g}_plainReplace(e,t,n,r,i,o){var a,s,g,l,A,C,c,I,d,h;for(u(tU;E=V<=U?++k:--k)for(h=r[E],v.setSeq2(h),x=L=Z=t,G=n;Z<=G?LG;x=Z<=G?++L:--L)(g=e[x])!==h?(v.setSeq1(g),v.realQuickRatio()>I&&v.quickRatio()>I&&v.ratio()>I&&([I,u,d]=[v.ratio(),x,E])):null===b&&([b,w]=[x,E]);if(I=0},c=function(e,t){var n,r;return n=e+1,1===(r=t-e)?`${n}`:(r||n--,`${n},${r}`)},b=function(e,t,{fromfile:n,tofile:r,fromfiledate:i,tofiledate:o,n:s,lineterm:g}={}){var l,A,C,I,u,d,h,f,p,m,v,y,b,w,x,E,k,S,T,O,R,N,_,P,D,M,L,F,j;for(null==n&&(n=""),null==r&&(r=""),null==i&&(i=""),null==o&&(o=""),null==s&&(s=3),null==g&&(g="\n"),S=[],L=!1,m=0,y=(_=new a(null,e,t).getGroupedOpcodes()).length;m=0&&o.push(i.slice(2));return o},t._arrayCmp=g,t.SequenceMatcher=a,t.getCloseMatches=f,t._countLeading=A,t.Differ=e,t.IS_LINE_JUNK=o,t.IS_CHARACTER_JUNK=i,t._formatRangeUnified=c,t.unifiedDiff=b,t._formatRangeContext=C,t.contextDiff=d,t.ndiff=v,t.restore=y}).call(this)},8341:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{Z:()=>r,e:()=>i})},6284:(e,t,n)=>{"use strict";n.d(t,{wD:()=>i});var r=n(8341);function i(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}e=n.hmd(e)},4148:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(n=e.length),e.substring(n-t.length,n)===t}var m="",v="",y="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function E(e){return h(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function k(e,t,n){var r="",i="",o=0,a="",s=!1,g=E(e),l=g.split("\n"),A=E(t).split("\n"),C=0,c="";if("strictEqual"===n&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===A.length&&l[0]!==A[0]){var I=l[0].length+A[0].length;if(I<=10){if(!("object"===d(e)&&null!==e||"object"===d(t)&&null!==t||0===e&&0===t))return"".concat(w[n],"\n\n")+"".concat(l[0]," !== ").concat(A[0],"\n")}else if("strictEqualObject"!==n){if(I<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;l[0][C]===A[0][C];)C++;C>2&&(c="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",C),"^"),C=0)}}}for(var u=l[l.length-1],h=A[A.length-1];u===h&&(C++<2?a="\n ".concat(u).concat(a):r=u,l.pop(),A.pop(),0!==l.length&&0!==A.length);)u=l[l.length-1],h=A[A.length-1];var f=Math.max(l.length,A.length);if(0===f){var x=g.split("\n");if(x.length>30)for(x[26]="".concat(m,"...").concat(b);x.length>27;)x.pop();return"".concat(w.notIdentical,"\n\n").concat(x.join("\n"),"\n")}C>3&&(a="\n".concat(m,"...").concat(b).concat(a),s=!0),""!==r&&(a="\n ".concat(r).concat(a),r="");var k=0,S=w[n]+"\n".concat(v,"+ actual").concat(b," ").concat(y,"- expected").concat(b),T=" ".concat(m,"...").concat(b," Lines skipped");for(C=0;C1&&C>2&&(O>4?(i+="\n".concat(m,"...").concat(b),s=!0):O>3&&(i+="\n ".concat(A[C-2]),k++),i+="\n ".concat(A[C-1]),k++),o=C,r+="\n".concat(y,"-").concat(b," ").concat(A[C]),k++;else if(A.length1&&C>2&&(O>4?(i+="\n".concat(m,"...").concat(b),s=!0):O>3&&(i+="\n ".concat(l[C-2]),k++),i+="\n ".concat(l[C-1]),k++),o=C,i+="\n".concat(v,"+").concat(b," ").concat(l[C]),k++;else{var R=A[C],N=l[C],_=N!==R&&(!p(N,",")||N.slice(0,-1)!==R);_&&p(R,",")&&R.slice(0,-1)===N&&(_=!1,N+=","),_?(O>1&&C>2&&(O>4?(i+="\n".concat(m,"...").concat(b),s=!0):O>3&&(i+="\n ".concat(l[C-2]),k++),i+="\n ".concat(l[C-1]),k++),o=C,i+="\n".concat(v,"+").concat(b," ").concat(N),r+="\n".concat(y,"-").concat(b," ").concat(R),k+=2):(i+=r,r="",1!==O&&0!==C||(i+="\n ".concat(N),k++))}if(k>20&&C30)for(c[26]="".concat(m,"...").concat(b);c.length>27;)c.pop();t=1===c.length?C.call(this,"".concat(A," ").concat(c[0])):C.call(this,"".concat(A,"\n\n").concat(c.join("\n"),"\n"))}else{var I=E(o),u="",h=w[r];"notDeepEqual"===r||"notEqual"===r?(I="".concat(w[r],"\n\n").concat(I)).length>1024&&(I="".concat(I.slice(0,1021),"...")):(u="".concat(E(a)),I.length>512&&(I="".concat(I.slice(0,509),"...")),u.length>512&&(u="".concat(u.slice(0,509),"...")),"deepEqual"===r||"equal"===r?I="".concat(h,"\n\n").concat(I,"\n\nshould equal\n\n"):u=" ".concat(r," ").concat(u)),t=C.call(this,"".concat(I).concat(u))}return Error.stackTraceLimit=s,t.generatedMessage=!n,Object.defineProperty(l(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=a,t.operator=r,Error.captureStackTrace&&Error.captureStackTrace(l(t),i),t.stack,t.name="AssertionError",g(t)}return o=p,(s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return h(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&a(o.prototype,s),A&&a(o,A),Object.defineProperty(o,"prototype",{writable:!1}),p}(A(Error),h.custom);e.exports=S},9597:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}C("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),C("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,s,l;if(void 0===g&&(g=n(4148)),g("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!s||s<0?0:+s,a.length)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(c(t,"type"));else{var A=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(A," ").concat(o," ").concat(c(t,"type"))}return l+=". Received type ".concat(r(i))}),TypeError),C("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(537));var i=l.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),C("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),C("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=A},2299:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],g=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;g=!1}else for(;!(g=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);g=!0);}catch(e){l=!0,i=e}finally{try{if(!g&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function P(e){return Object.keys(e).filter(_).concat(A(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function D(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i{"use strict";var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>vv,hasStandardBrowserEnv:()=>bv,hasStandardBrowserWebWorkerEnv:()=>wv,navigator:()=>yv,origin:()=>xv});const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function o(e){return e&&e.Math==Math?e:void 0}const a="object"==typeof globalThis&&o(globalThis)||"object"==typeof window&&o(window)||"object"==typeof self&&o(self)||"object"==typeof n.g&&o(n.g)||function(){return this}()||{};function s(){return a}function g(e,t,n){const r=n||a,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const l=["debug","info","warn","error","log","assert","trace"],A={};function C(e){if(!("console"in a))return e();const t=a.console,n={},r=Object.keys(A);r.forEach((e=>{const r=A[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const c=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i?l.forEach((n=>{t[n]=(...t)=>{e&&C((()=>{a.console[n](`Sentry Logger [${n}]:`,...t)}))}})):l.forEach((e=>{t[e]=()=>{}})),t}(),I=Object.prototype.toString;function u(e){switch(I.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return E(e,Error)}}function d(e,t){return I.call(e)===`[object ${t}]`}function h(e){return d(e,"ErrorEvent")}function f(e){return d(e,"DOMError")}function p(e){return d(e,"String")}function m(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function v(e){return null===e||m(e)||"object"!=typeof e&&"function"!=typeof e}function y(e){return d(e,"Object")}function b(e){return"undefined"!=typeof Event&&E(e,Event)}function w(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function x(e){return"number"==typeof e&&e!=e}function E(e,t){try{return e instanceof t}catch(e){return!1}}function k(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const S=s();function T(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",g=s.length;let l;const A=Array.isArray(t)?t:t.keyAttrs,C=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++1&&a+i.length*g+l.length>=C));)i.push(l),a+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return""}}function O(e,t){const n=e,r=[];let i,o,a,s,g;if(!n||!n.tagName)return"";if(S.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&p(i))for(o=i.split(/\s+/),g=0;gD(e,t,n)))}function L(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&j(i,r),e[t]=i}function F(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i&&c.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function j(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,F(e,"__sentry_original__",t)}catch(e){}}function B(e){return e.__sentry_original__}function z(e){if(u(e))return{message:e.message,name:e.name,stack:e.stack,...U(e)};if(b(e)){const t={type:e.type,target:V(e.target),currentTarget:V(e.currentTarget),...U(e)};return"undefined"!=typeof CustomEvent&&E(e,CustomEvent)&&(t.detail=e.detail),t}return e}function V(e){try{return t=e,"undefined"!=typeof Element&&E(t,Element)?T(e):Object.prototype.toString.call(e)}catch(e){return""}var t}function U(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Z(e){return G(e,new Map)}function G(e,t){if(function(e){if(!y(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=G(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(G(e,t))})),r}return e}function W(){const e=a,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function H(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Y(e){const{message:t,event_id:n}=e;if(t)return t;const r=H(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function K(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Q(e,t){const n=H(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function X(e){if(e&&e.__sentry_captured__)return!0;try{F(e,"__sentry_captured__",!0)}catch(e){}return!1}function q(e){return Array.isArray(e)?e:[e]}const J="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var ee;function te(e){return new re((t=>{t(e)}))}function ne(e){return new re(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(ee||(ee={}));class re{constructor(e){re.prototype.__init.call(this),re.prototype.__init2.call(this),re.prototype.__init3.call(this),re.prototype.__init4.call(this),this._state=ee.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new re(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new re(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(ee.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ee.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===ee.PENDING&&(w(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ee.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===ee.RESOLVED&&e[1](this._value),this._state===ee.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function ie(){return g("globalEventProcessors",(()=>[]))}function oe(e){ie().push(e)}function ae(e,t,n,r=0){return new re(((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);J&&a.id&&null===s&&c.log(`Event processor "${a.id}" dropped event`),w(s)?s.then((t=>ae(e,t,n,r+1).then(i))).then(null,o):ae(e,s,n,r+1).then(i).then(null,o)}}))}function se(){return Date.now()/1e3}const ge=function(){const{performance:e}=a;if(!e||!e.now)return se;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let le;const Ae=(()=>{const{performance:e}=a;if(!e||!e.now)return void(le="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=ifunction(e){return Z({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Ie(n,e),n}function Ie(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ge(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:W()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ue(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Ie(e,n)}const de=/\(error: (.*)\)/,he=/captureMessage|captureException/;function fe(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],i=e.split("\n");for(let e=n;e1024)continue;const o=de.test(n)?n.replace(de,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),he.test(t[t.length-1].function||"")&&(t.pop(),he.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,50).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}const pe="";function me(e){try{return e&&"function"==typeof e&&e.name||pe}catch(e){return pe}}function ve(e,t=100,n=1/0){try{return be("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ye(e,t=3,n=102400){const r=ve(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?ye(e,t-1,n):r;var i}function be(e,t,r=1/0,i=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=i){C[e]="[MaxProperties ~]";break}const t=I[e];C[e]=be(e,t,l-1,i,o),c++}return s(t),C}const we="baggage",xe="sentry-",Ee=/^sentry-/;function ke(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===r?o:`${e},${o}`;return a.length>8192?(i&&c.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${xe}${t}`]=n),e)),{}))}function Se(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const Te=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Oe(e){if(!e)return;const t=e.match(Te);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Re(e,t){const n=Oe(e),r=function(e){if(!p(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=Se(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});else{if(!e)return;t=Se(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Ee)&&(e[t.slice(7)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:o,parentSampled:a}=n||{};return n?{traceId:i||W(),parentSpanId:o||W().substring(16),spanId:W().substring(16),sampled:a,dsc:r||{}}:{traceId:i||W(),spanId:W().substring(16)}}function Ne(e=W(),t=W().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function _e(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:g}=Le(e);return Z({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:g})}function Pe(e){const{traceId:t,spanId:n}=e.spanContext();return Ne(t,n,Fe(e))}function De(e){return"number"==typeof e?Me(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Me(e.getTime()):ge()}function Me(e){return e>9999999999?e/1e3:e}function Le(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function Fe(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}function je(e,t,n,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:g=1e3}=e,l={...t,event_id:t.event_id||n.event_id||W(),timestamp:t.timestamp||se()},A=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:Ce);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=_(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=_(a.value,o));const s=e.request;s&&s.url&&(s.url=_(s.url,o))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,A),void 0===t.type&&function(e,t){const n=a._sentryDebugIds;if(!n)return;let r;const i=Be.get(t);i?r=i:(r=new Map,Be.set(t,r));const o=Object.keys(n).reduce(((e,i)=>{let o;const a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(e){}}(l,e.stackParser);const C=function(e,t){if(!t)return e;const n=e?e.clone():new ot;return n.update(t),n}(r,n.captureContext);n.mechanism&&Q(l,n.mechanism);const c=i&&i.getEventProcessors?i.getEventProcessors():[],I=function(){it||(it=new ot);return it}().getScopeData();if(o){nt(I,o.getScopeData())}if(C){nt(I,C.getScopeData())}const u=[...n.attachments||[],...I.attachments];u.length&&(n.attachments=u),tt(l,I);return ae([...c,...ie(),...I.eventProcessors],l,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:ve(e.data,t,n)}})))},...e.user&&{user:ve(e.user,t,n)},...e.contexts&&{contexts:ve(e.contexts,t,n)},...e.extra&&{extra:ve(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ve(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>{const r=Le(e).data;return r&&(e.data=ve(r,t,n)),e})));return r}(e,s,g):e)))}const Be=new WeakMap;function ze(e){if(e)return function(e){return e instanceof ot||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Ve.includes(e)))}(e)?{captureContext:e}:e}const Ve=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ue(e,t){return It().captureException(e,ze(t))}function Ze(e,t){return It().captureEvent(e,t)}function Ge(e,t){It().addBreadcrumb(e,t)}function We(...e){const t=It();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}return t.withScope(e[0])}function He(){return It().getClient()}function Ye(){return It().getScope()}function Ke(e){const t=He(),n=ut(),r=Ye(),{release:i,environment:o=Ce}=t&&t.getOptions()||{},{userAgent:s}=a.navigator||{},g=ce({release:i,environment:o,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&"ok"===l.status&&Ie(l,{status:"exited"}),Qe(),n.setSession(g),r.setSession(g),g}function Qe(){const e=ut(),t=Ye(),n=t.getSession()||e.getSession();n&&ue(n),Xe(),e.setSession(),t.setSession()}function Xe(){const e=ut(),t=Ye(),n=He(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function qe(e=!1){e?Qe():Xe()}function Je(e){return e.transaction}function $e(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Z({environment:r.environment||Ce,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function et(e){const t=He();if(!t)return{};const n=$e(Le(e).trace_id||"",t,Ye()),r=Je(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);const s=Le(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(Fe(r)),t.emit&&t.emit("createDsc",n),n}function tt(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,g=Z(n);g&&Object.keys(g).length&&(e.extra={...g,...e.extra});const l=Z(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const A=Z(i);A&&Object.keys(A).length&&(e.user={...A,...e.user});const C=Z(o);C&&Object.keys(C).length&&(e.contexts={...C,...e.contexts});a&&(e.level=a);s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:_e(t),...e.contexts};const n=Je(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:et(t),...e.sdkProcessingMetadata};const r=Le(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){e.fingerprint=e.fingerprint?q(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)}function nt(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:g,fingerprint:l,eventProcessors:A,attachments:C,propagationContext:c,transactionName:I,span:u}=t;rt(e,"extra",n),rt(e,"tags",r),rt(e,"user",i),rt(e,"contexts",o),rt(e,"sdkProcessingMetadata",s),a&&(e.level=a),I&&(e.transactionName=I),u&&(e.span=u),g.length&&(e.breadcrumbs=[...e.breadcrumbs,...g]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),A.length&&(e.eventProcessors=[...e.eventProcessors,...A]),C.length&&(e.attachments=[...e.attachments,...C]),e.propagationContext={...e.propagationContext,...c}}function rt(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let it;class ot{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=at()}static clone(e){return e?e.clone():new ot}clone(){const e=new ot;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Ie(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof ot){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(y(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=at(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:se(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:g,_propagationContext:l,_sdkProcessingMetadata:A,_transactionName:C,_span:c}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:g,propagationContext:l,sdkProcessingMetadata:A,transactionName:C,span:c}}applyToEvent(e,t={},n=[]){tt(e,this.getScopeData());return ae([...n,...ie(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:W();if(!this._client)return c.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:W();if(!this._client)return c.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:W();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(c.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function at(){return{traceId:W(),spanId:W().substring(16)}}const st="7.119.2",gt=parseFloat(st),lt=100;class At{constructor(e,t,n,r=gt){let i,o;this._version=r,t?i=t:(i=new ot,i.setClient(e)),n?o=n:(o=new ot,o.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:W(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:W(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:W();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=lt}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:se(),...e},s=i?C((()=>i(a,t))):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=ct(this);try{e(this)}finally{ct(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return J&&c.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(J&&!n){this.getClient()?c.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):c.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&ue(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Ce}=n&&n.getOptions()||{},{userAgent:o}=a.navigator||{},s=ce({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),g=t.getSession&&t.getSession();return g&&"ok"===g.status&&Ie(g,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=Ct().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);J&&c.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ct(){return a.__SENTRY__=a.__SENTRY__||{extensions:{},hub:void 0},a}function ct(e){const t=Ct(),n=ft(t);return pt(t,e),n}function It(){const e=Ct();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return dt(e)}function ut(){return It().getIsolationScope()}function dt(e=Ct()){return ht(e)&&!ft(e).isOlderThan(gt)||pt(e,new At),ft(e)}function ht(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function ft(e){return g("hub",(()=>new At),e)}function pt(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}const mt=[];function vt(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?q(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),o=function(e,t){for(let n=0;n"Debug"===e.name));if(-1!==o){const[e]=i.splice(o,1);i.push(e)}return i}function yt(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function bt(e,t,n){if(n[t.name])J&&c.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===mt.indexOf(t.name)&&(t.setupOnce(oe,It),mt.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}J&&c.log(`Integration installed: ${t.name}`)}}function wt(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}const xt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Et=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],kt="InboundFilters",St=(e={})=>({name:kt,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Et],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return J&&c.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Y(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));J&&0===t.length&&c.error(`Could not extract message for event ${Y(e)}`);return t}(e).some((e=>M(e,t)))}(e,t.ignoreErrors))return J&&c.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Y(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&M(n,t)}(e,t.ignoreTransactions))return J&&c.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Y(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=Tt(e);return!!n&&M(n,t)}(e,t.denyUrls))return J&&c.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Y(e)}.\nUrl: ${Tt(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=Tt(e);return!n||M(n,t)}(e,t.allowUrls))return J&&c.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Y(e)}.\nUrl: ${Tt(e)}`),!0;return!1}(t,o)?null:t}});wt(kt,St);function Tt(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return J&&c.error(`Cannot extract url for event ${Y(e)}`),null}}let Ot;const Rt="FunctionToString",Nt=new WeakMap,_t=()=>({name:Rt,setupOnce(){Ot=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=B(this),n=Nt.has(He())&&void 0!==t?t:this;return Ot.apply(n,e)}}catch(e){}},setup(e){Nt.set(e,!0)}});wt(Rt,_t);function Pt(e,t){!0===t.debug&&(J?c.enable():C((()=>{})));Ye().update(t.initialScope);const n=new e(t);!function(e){const t=It().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}const Dt=s();function Mt(){if(!("fetch"in Dt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Lt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const Ft=s();const jt={},Bt={};function zt(e,t){jt[e]=jt[e]||[],jt[e].push(t)}function Vt(e,t){Bt[e]||(t(),Bt[e]=!0)}function Ut(e,t){const n=e&&jt[e];if(n)for(const r of n)try{r(t)}catch(t){i&&c.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${me(r)}\nError:`,t)}}const Zt=a;let Gt;function Wt(e){const t="history";zt(t,e),Vt(t,Ht)}function Ht(){if(!function(){const e=Ft.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ft&&!!Ft.history.pushState&&!!Ft.history.replaceState;return!t&&n}())return;const e=Zt.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Gt,t=String(n);Gt=t;Ut("history",{from:e,to:t})}return e.apply(this,t)}}Zt.onpopstate=function(...t){const n=Zt.location.href,r=Gt;Gt=n;if(Ut("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},L(Zt.history,"pushState",t),L(Zt.history,"replaceState",t)}const Yt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Kt(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:g}=e;return`${s}://${g}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Qt(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Xt(e){const t="string"==typeof e?function(e){const t=Yt.exec(e);if(!t)return void C((()=>{}));const[n,r,i="",o,a="",s]=t.slice(1);let g="",l=s;const A=l.split("/");if(A.length>1&&(g=A.slice(0,-1).join("/"),l=A.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Qt({host:o,pass:i,path:g,projectId:l,port:a,protocol:n,publicKey:r})}(e):Qt(e);if(t&&function(e){if(!i)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(c.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(c.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(c.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(c.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function qt(e,t=[]){return[e,t]}function Jt(e,t){const[n,r]=e;return[n,[...r,t]]}function $t(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function en(e,t){return(t||new TextEncoder).encode(e)}function tn(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[en(i,t),e]:i.push("string"==typeof e?en(e,t):e)}for(const e of r){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(ve(n))}o(e)}}return"string"==typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(i)}function nn(e,t){const n="string"==typeof e.data?en(e.data,t):e.data;return[Z({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const rn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function on(e){return rn[e]}function an(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function sn(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Kt(r)},...i&&{trace:Z({...i})}}}class gn extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function ln(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function An(e,t){return function(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}function Cn(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${ln(e)}${e.projectId}/envelope/`}(e)}?${An(e,r)}`}function cn(e,t,n,r){const i=an(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=sn(e,i,r,t);delete e.sdkProcessingMetadata;return qt(a,[[{type:o},e]])}function In(e,t,n,r){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=Kt(t));const o=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return qt(i,[o])}const un="Not capturing exception because it's already been captured.";class dn{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Xt(e.dsn):J&&c.warn("No DSN provided, client will not send events."),this._dsn){const t=Cn(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(X(e))return void(J&&c.log(un));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;const o=m(e)?e:String(e),a=v(e)?this.eventFromMessage(o,t,n):this.eventFromException(e,n);return this._process(a.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&X(t.originalException))return void(J&&c.log(un));let r=t&&t.event_id;const i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?J&&c.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ie(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):te(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return J&&c.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];bt(this,e,this._integrations),t||yt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=cn(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Jt(n,nn(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const i=an(n);return qt({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Kt(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,i=`${e}:${t}`;J&&c.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){J&&c.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=In(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&bt(e,t,n)})),n}(this,e),yt(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&(Ie(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new re((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=ut()){const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),je(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:r,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...e.contexts};const s=a||$e(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(J){const t=e;"log"===t.logLevel?c.log(t.message):c.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=fn(e),a=hn(e),s=e.type||"error",g=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),ne(new gn(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const l="replay_event"===s?"replay":s,A=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,A).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new gn("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(hn(t)&&r)return r(t,n);if(fn(t)&&i){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(w(e))return e.then((e=>{if(!y(e)&&null!==e)throw new gn(n);return e}),(e=>{throw new gn(`${t} rejected with ${e}`)}));if(!y(e)&&null!==e)throw new gn(n);return e}(i,g)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",l,e),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new gn(`${g} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof gn)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new gn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{J&&c.error("Error while sending event:",e)}));J&&c.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function hn(e){return void 0===e.type}function fn(e){return"transaction"===e.type}function pn(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:st}))),version:st}),e._metadata=i}var mn=n(8341);const vn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function yn(e,t){const n=wn(e,t),r={type:t&&t.name,value:En(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function bn(e,t){return{exception:{values:[yn(e,t)]}}}function wn(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(xn.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const xn=/Minified React error #\d+;/i;function En(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function kn(e,t,n,r,i){let o;if(h(t)&&t.error){return bn(e,t.error)}if(f(t)||d(t,"DOMException")){const i=t;if("stack"in t)o=bn(e,t);else{const t=i.name||(f(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=Sn(e,a,n,r),K(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}if(u(t))return bn(e,t);if(y(t)||b(t)){return o=function(e,t,n,r){const i=He(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:b(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Tn(t,{isUnhandledRejection:r})}]},extra:{__serialized__:ye(t,o)}};if(n){const t=wn(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),Q(o,{synthetic:!0}),o}return o=Sn(e,t,n,r),K(o,`${t}`,void 0),Q(o,{synthetic:!0}),o}function Sn(e,t,n,r){const i={};if(r&&n){const r=wn(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(m(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Tn(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(z(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return _(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:_(r,t)}return""}(e),r=t?"promise rejection":"exception";if(h(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(b(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const On=a;let Rn=0;function Nn(){return Rn>0}function _n(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(B(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((e=>_n(e,t)));return e.apply(this,i)}catch(e){throw Rn++,setTimeout((()=>{Rn--})),We((n=>{n.addEventProcessor((e=>(t.mechanism&&(K(e,void 0,void 0),Q(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),Ue(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}j(r,e),F(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class Pn extends dn{constructor(e){pn(e,"browser",["browser"],On.SENTRY_SDK_SOURCE||(0,mn.e)()),super(e),e.sendClientReports&&On.document&&On.document.addEventListener("visibilitychange",(()=>{"hidden"===On.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const i=kn(e,t,n&&n.syntheticException||void 0,r);return Q(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),te(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=Sn(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),te(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(vn&&c.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Kt(r)}},o=function(e){return[{type:"user_report"},e]}(e);return qt(i,[o])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(vn&&c.log("No outcomes to send"));if(!this._dsn)return void(vn&&c.log("No dsn provided, will not send outcomes"));vn&&c.log("Sending outcomes:",e);const t=(n=e,qt((r=this._options.tunnel&&Kt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||se(),discarded_events:n}]]));var n,r,i;this._sendEnvelope(t)}}function Dn(){"console"in a&&l.forEach((function(e){e in a.console&&L(a.console,e,(function(t){return A[e]=t,function(...t){Ut("console",{args:t,level:e});const n=A[e];n&&n.apply(a.console,t)}}))}))}const Mn=a;let Ln,Fn,jn;function Bn(e){zt("dom",e),Vt("dom",zn)}function zn(){if(!Mn.document)return;const e=Ut.bind(null,"dom"),t=Vn(e,!0);Mn.document.addEventListener("click",t,!1),Mn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Mn[t]&&Mn[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(L(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=Vn(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}})),L(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function Vn(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;F(n,"_sentryCaptured",!0),r&&!r._sentryId&&F(r,"_sentryId",W());const i="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Fn)return!1;try{if(!e.target||e.target._sentryId!==jn)return!1}catch(e){}return!0}(n)){e({event:n,name:i,global:t}),Fn=n.type,jn=r?r._sentryId:void 0}clearTimeout(Ln),Ln=Mn.setTimeout((()=>{jn=void 0,Fn=void 0}),1e3)}}const Un=a,Zn="__sentry_xhr_v3__";function Gn(e){zt("xhr",e),Vt("xhr",Wn)}function Wn(){if(!Un.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;L(e,"open",(function(e){return function(...t){const n=Date.now(),r=p(t[0])?t[0].toUpperCase():void 0,i=function(e){if(p(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!r||!i)return e.apply(this,t);this[Zn]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[Zn];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Ut("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?L(this,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(this,t)}})):this.addEventListener("readystatechange",o),L(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,i=this[Zn];return i&&p(n)&&p(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),L(e,"send",(function(e){return function(...t){const n=this[Zn];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return Ut("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function Hn(e){const t="fetch";zt(t,e),Vt(t,Yn)}function Yn(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Mt())return!1;if(Lt(Dt.fetch))return!0;let e=!1;const t=Dt.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Lt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){i&&c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&L(a,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Qn(t),method:Kn(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Qn(t),method:Kn(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Ut("fetch",{...i}),e.apply(a,t).then((e=>(Ut("fetch",{...i,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Ut("fetch",{...i,endTimestamp:Date.now(),error:e}),e}))}}))}function Kn(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Qn(e){return"string"==typeof e?e:e?Kn(e,"url")?e.url:e.toString?e.toString():"":""}const Xn=["fatal","error","warning","log","info","debug"];function qn(e){return"warn"===e?"warning":Xn.includes(e)?e:"log"}function Jn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const $n=1024,er="Breadcrumbs",tr=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:er,setupOnce(){},setup(e){t.console&&function(e){const t="console";zt(t,e),Vt(t,Dn)}(function(e){return function(t){if(He()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:qn(t.level),message:P(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${P(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Ge(n,{input:t.args,level:t.level})}}(e)),t.dom&&Bn(function(e,t){return function(n){if(He()!==e)return;let r,i,o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>$n&&(vn&&c.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=$n),"string"==typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=T(t,{keyAttrs:o,maxStringLength:a}),i=N(t)}catch(e){r=""}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Ge(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&Gn(function(e){return function(t){if(He()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Zn];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:g}=i;Ge({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:g,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&Hn(function(e){return function(t){if(He()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Ge({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response;Ge({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&Wt(function(e){return function(t){if(He()!==e)return;let n=t.from,r=t.to;const i=Jn(On.location.href);let o=n?Jn(n):void 0;const a=Jn(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Ge({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){He()===e&&Ge({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Y(t)},{event:t})}}(e))}}};wt(er,tr);const nr="Dedupe",rr=()=>{let e;return{name:nr,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!or(e,t))return!1;if(!ir(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=ar(t),r=ar(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!or(e,t))return!1;if(!ir(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return vn&&c.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};wt(nr,rr);function ir(e,t){let n=sr(e),r=sr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:ur,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){lr((t=>{const{stackParser:n,attachStacktrace:r}=pr();if(He()!==e||Nn())return;const{msg:i,url:o,line:a,column:s,error:g}=t,l=void 0===g&&p(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=h(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);const g={exception:{values:[{type:a,value:o}]}};return hr(g,t,n,r)}(i,o,a,s):hr(kn(n,g||i,void 0,r,!1),o,a,s);l.level="error",Ze(l,{originalException:g,mechanism:{handled:!1,type:"onerror"}})}))}(e),fr("onerror")),t.onunhandledrejection&&(!function(e){cr((t=>{const{stackParser:n,attachStacktrace:r}=pr();if(He()!==e||Nn())return;const i=function(e){if(v(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),o=v(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:kn(n,i,void 0,r,!0);o.level="error",Ze(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),fr("onunhandledrejection"))}}};wt(ur,dr);function hr(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},g=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,A=isNaN(parseInt(n,10))?void 0:n,C=p(t)&&t.length>0?t:R();return 0===g.length&&g.push({colno:l,filename:C,function:"?",in_app:!0,lineno:A}),e}function fr(e){vn&&c.log(`Global Handler attached: ${e}`)}function pr(){const e=He();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const mr="HttpContext",vr=()=>({name:mr,setupOnce(){},preprocessEvent(e){if(!On.navigator&&!On.location&&!On.document)return;const t=e.request&&e.request.url||On.location&&On.location.href,{referrer:n}=On.document||{},{userAgent:r}=On.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});wt(mr,vr);function yr(e,t,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&E(a.originalException,Error)))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var g,l;s&&(o.exception.values=(g=br(e,t,i,a.originalException,r,o.exception.values,s,0),l=n,g.map((e=>(e.value&&(e.value=_(e.value,l)),e)))))}function br(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let g=[...o];if(E(r[i],Error)){wr(a,s);const o=e(t,r[i]),l=g.length;xr(o,i,l,s),g=br(e,t,n,r[i],i,[o,...g],o,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(E(r,Error)){wr(a,s);const l=e(t,r),A=g.length;xr(l,`errors[${o}]`,A,s),g=br(e,t,n,r,i,[l,...g],l,A)}})),g}function wr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function xr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Er="LinkedErrors",kr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:Er,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();yr(yn,o.stackParser,o.maxValueLength,n,t,e,r)}}},Sr=(wt(Er,kr),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),Tr="TryCatch",Or=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Tr,setupOnce(){t.setTimeout&&L(On,"setTimeout",Rr),t.setInterval&&L(On,"setInterval",Rr),t.requestAnimationFrame&&L(On,"requestAnimationFrame",Nr),t.XMLHttpRequest&&"XMLHttpRequest"in On&&L(XMLHttpRequest.prototype,"send",_r);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Sr).forEach(Pr)}}}};wt(Tr,Or);function Rr(e){return function(...t){const n=t[0];return t[0]=_n(n,{mechanism:{data:{function:me(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Nr(e){return function(t){return e.apply(this,[_n(t,{mechanism:{data:{function:"requestAnimationFrame",handler:me(e)},handled:!1,type:"instrument"}})])}}function _r(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&L(n,e,(function(t){const n={mechanism:{data:{function:e,handler:me(t)},handled:!1,type:"instrument"}},r=B(t);return r&&(n.mechanism.data.handler=me(r)),_n(t,n)}))})),e.apply(this,t)}}function Pr(e){const t=On,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(L(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=_n(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:me(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,_n(r,{mechanism:{data:{function:"addEventListener",handler:me(r),target:e},handled:!1,type:"instrument"}}),i])}})),L(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,i,r)}})))}const Dr="?";function Mr(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const Lr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fr=/\((\S*)(?::(\d+))(?::(\d+))\)/,jr=[30,e=>{const t=Lr.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Fr.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Wr(t[1]||Dr,t[2]);return Mr(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Br=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Vr=[50,e=>{const t=Br.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=zr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Dr;return[n,e]=Wr(n,e),Mr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Ur=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Zr=[40,e=>{const t=Ur.exec(e);return t?Mr(t[2],t[1]||Dr,+t[3],t[4]?+t[4]:void 0):void 0}],Gr=fe(...[jr,Vr,Zr]),Wr=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Dr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Hr(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new re(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{te(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function Yr(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function Kr(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=r+s);else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}function Qr(e,t,n=Hr(e.bufferSize||30)){let r={};function i(i){const o=[];if($t(i,((t,n)=>{const i=on(n);if(Yr(r,i)){const r=Xr(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)})),0===o.length)return te();const a=qt(i[0],o),s=t=>{$t(a,((n,r)=>{const i=Xr(n,r);e.recordDroppedEvent(t,on(r),i)}))};return n.add((()=>t({body:tn(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&J&&c.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Kr(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof gn)return J&&c.error("Skipped sending event because buffer is full."),s("queue_overflow"),te();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Xr(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let qr;function Jr(e,t=function(){if(qr)return qr;if(Lt(On.fetch))return qr=On.fetch.bind(On);const e=On.document;let t=On.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){vn&&c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return qr=t.bind(On)}()){let n=0,r=0;return Qr(e,(function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return qr=void 0,n-=o,r--,ne(e)}}))}function $r(e){return Qr(e,(function(t){return new re(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}const ei=[St(),_t(),Or(),tr(),dr(),kr(),rr(),vr()];function ti(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...ei]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),On.SENTRY_RELEASE&&On.SENTRY_RELEASE.id&&(e.release=On.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Gr,Array.isArray(n)?fe(...n):n),integrations:vt(e),transport:e.transport||(Mt()?Jr:$r)};var n;Pt(Pn,t),e.autoSessionTracking&&function(){if(void 0===On.document)return void(vn&&c.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Ke({ignoreDuration:!0}),qe(),Wt((({from:e,to:t})=>{void 0!==e&&e!==t&&(Ke({ignoreDuration:!0}),qe())}))}()}let ni;function ri(e){return ni?ni.get(e):void 0}function ii(e){const t=ri(e);if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(Z(r));return n}const oi="sentry.source",ai="sentry.sample_rate",si="sentry.op",gi="sentry.origin";var li;function Ai(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(li||(li={}));function Ci(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=Ai(t);"unknown_error"!==n&&e.setStatus(n)}class ci{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Ii{constructor(e={}){this._traceId=e.traceId||W(),this._spanId=e.spanId||W().substring(16),this._startTime=e.startTimestamp||ge(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[gi]:e.origin||"manual",[si]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[si]}set op(e){this.setAttribute(si,e)}get origin(){return this._attributes[gi]}set origin(e){this.setAttribute(gi,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}startChild(e){const t=new Ii({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=Je(this);if(t.transaction=n,J&&n){const r=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${Le(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;c.log(r),this._logMessage=r}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Ci(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=Je(this);if(J&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&c.log(e.replace("Starting","Finishing"))}this._endTime=De(e)}toTraceparent(){return Pe(this)}toContext(){return Z({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return _e(this)}getSpanJSON(){return Z({data:this._getData(),description:this._name,op:this._attributes[si],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gi],_metrics_summary:ii(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}function ui(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=He(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function di(e){if(!ui())return;const t=pi(e),n=It(),r=e.scope?e.scope.getSpan():hi();if(e.onlyIfParent&&!r)return;const i=(e.scope||Ye()).clone();return fi(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:i})}function hi(){return Ye().getSpan()}function fi(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!ui())return;const o=ut();let a;if(t&&!r)a=t.startChild(n);else if(t){const r=et(t),{traceId:i,spanId:o}=t.spanContext(),s=Fe(t);a=e.startTransaction({traceId:i,parentSpanId:o,parentSampled:s,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:t,dsc:r,parentSpanId:s,sampled:g}={...o.getPropagationContext(),...i.getPropagationContext()};a=e.startTransaction({traceId:t,parentSpanId:s,parentSampled:g,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(a),function(e,t,n){e&&(F(e,vi,n),F(e,mi,t))}(a,i,o),a}function pi(e){if(e.startTime){const t={...e};return t.startTimestamp=De(e.startTime),delete t.startTime,t}return e}const mi="_sentryScope",vi="_sentryIsolationScope";class yi extends Ii{constructor(e,t){super(e),this._contexts={},this._hub=t||It(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[oi]&&{source:this._attributes[oi]},...this._attributes[ai]&&{sampleRate:this._attributes[ai]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(oi,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new ci(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=De(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return Z({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return et(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(J&&c.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return J&&c.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&Le(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>Le(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:r,isolationScope:i}={scope:(o=this)[mi],isolationScope:o[vi]};var o;const{metadata:a}=this,{source:s}=a,g={contexts:{...this._contexts,trace:_e(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...a,capturedSpanScope:r,capturedSpanIsolationScope:i,...Z({dynamicSamplingContext:et(this)})},_metrics_summary:ii(this),...s&&{transaction_info:{source:s}}};return Object.keys(this._measurements).length>0&&(J&&c.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),g.measurements=this._measurements),J&&c.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),g}}const bi={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},wi=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class xi extends ci{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===Le(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Ei extends yi{constructor(e,t,n=bi.idleTimeout,r=bi.finalTimeout,i=bi.heartbeatInterval,o=!1,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=wi[4],this._autoFinishAllowed=!a,o&&(J&&c.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=wi[3],this.end())}),this._finalTimeout)}end(e){const t=De(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){J&&c.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;Le(e).timestamp||(e.setStatus("cancelled"),e.end(t),J&&c.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:r}=Le(e),i=n&&n{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new xi(t,n,this.spanContext().spanId,e),J&&c.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=wi[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(J&&c.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=wi[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),J&&c.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,J&&c.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(J&&c.log(`[Tracing] popActivity ${e}`),delete this.activities[e],J&&c.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=ge();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=wi[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(J&&c.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=wi[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){J&&c.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function ki(e){return(e||It()).getScope().getTransaction()}let Si=!1;function Ti(){const e=ki();if(e){const t="internal_error";J&&c.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function Oi(e,t,n){if(!ui(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(ai,Number(e.sampled)),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(ai,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(ai,Number(r))):(r=1,e.setAttribute(ai,r)),Ri(r)?r?(e.sampled=Math.random()1)||(J&&c.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function Ni(){const e=this.getScope().getSpan();return e?{"sentry-trace":Pe(e)}:{}}function _i(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(J&&c.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter.\nThe transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new yi(e,this);return a=Oi(a,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),a.isRecording()&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function Pi(e,t,n,r,i,o,a,s=!1){const g=e.getClient(),l=g&&g.getOptions()||{};let A=new Ei(t,e,n,r,a,i,s);return A=Oi(A,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...o}),A.isRecording()&&A.initSpanRecorder(l._experiments&&l._experiments.maxSpans),g&&g.emit&&g.emit("startTransaction",A),A}function Di(){const e=Ct();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=_i),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Ni),Si||(Si=!0,lr(Ti),cr(Ti)))}Ti.tag="sentry_tracingErrorCallback";const Mi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Li=a;const Fi=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&(i=t.value-(r||0),(i||void 0===r)&&(r=t.value,t.delta=i,e(t)))}},ji=()=>Li.__WEB_VITALS_POLYFILL__?Li.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=Li.performance.timing,t=Li.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):Li.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Bi=()=>{const e=ji();return e&&e.activationStart||0},zi=(e,t)=>{const n=ji();let r="navigate";return n&&(r=Li.document&&Li.document.prerendering||Bi()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Vi=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Ui=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==Li.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Li.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))};let Zi=-1;const Gi=()=>(Zi<0&&(Li.document&&Li.document.visibilityState&&(Zi="hidden"!==Li.document.visibilityState||Li.document.prerendering?1/0:0),Ui((({timeStamp:e})=>{Zi=e}),!0)),{get firstHiddenTime(){return Zi}});let Wi=0,Hi=1/0,Yi=0;const Ki=e=>{e.forEach((e=>{e.interactionId&&(Hi=Math.min(Hi,e.interactionId),Yi=Math.max(Yi,e.interactionId),Wi=Yi?(Yi-Hi)/7+1:0)}))};let Qi;const Xi=()=>{"interactionCount"in performance||Qi||(Qi=Vi("event",Ki,{type:"event",buffered:!0,durationThreshold:0}))},qi=()=>Qi?Wi:performance.interactionCount||0,Ji=[],$i={},eo=e=>{const t=Ji[Ji.length-1],n=$i[e.interactionId];if(n||Ji.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};$i[t.id]=t,Ji.push(t)}Ji.sort(((e,t)=>t.latency-e.latency)),Ji.splice(10).forEach((e=>{delete $i[e.id]}))}},to=(e,t)=>{t=t||{},Xi();const n=zi("INP");let r;const i=e=>{e.forEach((e=>{if(e.interactionId&&eo(e),"first-input"===e.entryType){!Ji.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&eo(e)}}));const t=(()=>{const e=Math.min(Ji.length-1,Math.floor(qi()/50));return Ji[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},o=Vi("event",i,{durationThreshold:t.durationThreshold||40});r=Fi(e,n,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Ui((()=>{i(o.takeRecords()),n.value<0&&qi()>0&&(n.value=0,n.entries=[]),r(!0)})))},no={},ro=e=>{Li.document&&(Li.document.prerendering?addEventListener("prerenderingchange",(()=>ro(e)),!0):"complete"!==Li.document.readyState?addEventListener("load",(()=>ro(e)),!0):setTimeout(e,0))},io={},oo={};let ao,so,go,lo,Ao;function Co(e,t=!1){return vo("lcp",e,fo,go,t)}function co(e,t){return yo(e,t),oo[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);Vi(e,(t=>{Io(e,{entries:t})}),t)}(e),oo[e]=!0),bo(e,t)}function Io(e,t){const n=io[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){Mi&&c.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${me(r)}\nError:`,t)}}function uo(){return((e,t={})=>{const n=zi("CLS",0);let r,i=0,o=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],a=o[o.length-1];i&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>n.value&&(n.value=i,n.entries=o,r&&r())}}))},s=Vi("layout-shift",a);if(s){r=Fi(e,n,t.reportAllChanges);const i=()=>{a(s.takeRecords()),r(!0)};return Ui(i),i}})((e=>{Io("cls",{metric:e}),ao=e}),{reportAllChanges:!0})}function ho(){return(e=>{const t=Gi(),n=zi("FID");let r;const i=e=>{e.startTime{e.forEach(i)},a=Vi("first-input",o);r=Fi(e,n),a&&Ui((()=>{o(a.takeRecords()),a.disconnect()}),!0)})((e=>{Io("fid",{metric:e}),so=e}))}function fo(){return(e=>{const t=Gi(),n=zi("LCP");let r;const i=e=>{const i=e[e.length-1];if(i){const e=Math.max(i.startTime-Bi(),0);e{no[n.id]||(i(o.takeRecords()),o.disconnect(),no[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{Li.document&&addEventListener(e,t,{once:!0,capture:!0})})),Ui(t,!0),t}})((e=>{Io("lcp",{metric:e}),go=e}))}function po(){return((e,t)=>{t=t||{};const n=zi("TTFB"),r=Fi(e,n,t.reportAllChanges);ro((()=>{const e=ji();if(e){if(n.value=Math.max(e.responseStart-Bi(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}}))})((e=>{Io("ttfb",{metric:e}),lo=e}))}function mo(){return to((e=>{Io("inp",{metric:e}),Ao=e}))}function vo(e,t,n,r,i=!1){let o;return yo(e,t),oo[e]||(o=n(),oo[e]=!0),r&&t({metric:r}),bo(e,t,i?o:void 0)}function yo(e,t){io[e]=io[e]||[],io[e].push(t)}function bo(e,t,n){return()=>{n&&n();const r=io[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function wo(e){return[{type:"span"},e]}function xo(e){return"number"==typeof e&&isFinite(e)}function Eo(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function ko(e){return e/1e3}function So(){return Li&&Li.addEventListener&&Li.performance}let To,Oo,Ro=0,No={};function _o(){const e=So();if(e&&Ae){e.mark&&Li.performance.mark("sentry-tracing-init");const t=vo("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ko(Ae),r=ko(t.startTime);Mi&&c.log("[Measurements] Adding FID"),No.fid={value:e.value,unit:"millisecond"},No["mark.fid"]={value:n+r,unit:"second"}}),ho,so),n=function(e,t=!1){return vo("cls",e,uo,ao,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Mi&&c.log("[Measurements] Adding CLS"),No.cls={value:e.value,unit:""},Oo=t)}),!0),r=Co((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Mi&&c.log("[Measurements] Adding LCP"),No.lcp={value:e.value,unit:"millisecond"},To=t)}),!0),i=function(e){return vo("ttfb",e,po,lo)}((({metric:e})=>{e.entries[e.entries.length-1]&&(Mi&&c.log("[Measurements] Adding TTFB"),No.ttfb={value:e.value,unit:"millisecond"})}));return()=>{t(),n(),r(),i()}}return()=>{}}function Po(e,t){if(So()&&Ae){const n=function(e,t){return n=({metric:n})=>{if(void 0===n.value)return;const r=n.entries.find((e=>e.duration===n.value&&void 0!==Do[e.name])),i=He();if(!r||!i)return;const o=Do[r.name],a=i.getOptions(),s=ko(Ae+r.startTime),g=ko(n.value),l=void 0!==r.interactionId?e[r.interactionId]:void 0;if(void 0===l)return;const{routeName:A,parentContext:C,activeTransaction:I,user:u,replayId:d}=l,h=void 0!==u?u.email||u.id||u.ip_address:void 0,f=void 0!==I?I.getProfileId():void 0,p=new Ii({startTimestamp:s,endTimestamp:s+g,op:`ui.interaction.${o}`,name:T(r.target),attributes:{release:a.release,environment:a.environment,transaction:A,...void 0!==h&&""!==h?{user:h}:{},...void 0!==f?{profile_id:f}:{},...void 0!==d?{replay_id:d}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),m=function(e,t,n){if(!ui(t))return!1;let r;return r=void 0!==e&&"function"==typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Li.location}):void 0!==e&&void 0!==e.sampled?e.sampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1,Ri(r)?!0===r?n:!1===r?0:r*n:(Mi&&c.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(C,a,t);if(m&&Math.random(){Mi&&c.error("Error while sending interaction:",e)}))}},vo("inp",n,mo,Ao);var n}(e,t);return()=>{n()}}return()=>{}}const Do={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Mo(e){const t=So();if(!t||!Li.performance.getEntries||!Ae)return;Mi&&c.log("[Tracing] Adding & adjusting spans using Performance API");const n=ko(Ae),r=t.getEntries(),{op:i,start_timestamp:o}=Le(e);if(r.slice(Ro).forEach((t=>{const r=ko(t.startTime),i=ko(t.duration);if(!("navigation"===e.op&&o&&n+r{Lo(e,t,r,n)})),Lo(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Lo(e,t,"fetch",n,"cache","domainLookupStart"),Lo(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Eo(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ko(t.requestStart),endTimestamp:n+ko(t.responseEnd)}),Eo(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ko(t.responseStart),endTimestamp:n+ko(t.responseEnd)}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const o=i+n,a=o+r;Eo(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})}(e,t,r,i,n);const o=Gi(),a=t.startTime{if(!No[e]||!o||n>=o)return;const t=No[e].value,r=n+ko(t),i=Math.abs(1e3*(r-o)),a=i-t;Mi&&c.log(`[Measurements] Normalized ${e} from ${t} to ${i} (${a})`),No[e].value=i}));const t=No["mark.fid"];t&&No.fid&&(Eo(e,{description:"first input delay",endTimestamp:t.value+ko(No.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete No["mark.fid"]),"fcp"in No||delete No.cls,Object.keys(No).forEach((e=>{!function(e,t,n){const r=ki();r&&r.setMeasurement(e,t,n)}(e,No[e].value,No[e].unit)})),function(e){To&&(Mi&&c.log("[Measurements] Adding LCP Data"),To.element&&e.setTag("lcp.element",T(To.element)),To.id&&e.setTag("lcp.id",To.id),To.url&&e.setTag("lcp.url",To.url.trim().slice(0,200)),e.setTag("lcp.size",To.size));Oo&&Oo.sources&&(Mi&&c.log("[Measurements] Adding CLS Data"),Oo.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,T(t.node)))))}(e)}To=void 0,Oo=void 0,No={}}function Lo(e,t,n,r,i,o){const a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&Eo(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ko(s),endTimestamp:r+ko(a)})}function Fo(e,t,n,r){const i=t[n];null!=i&&i<2147483647&&(e[r]=i)}function jo(e,t,n,r,i="auto.http.browser"){if(!ui()||!e.fetchData)return;const o=t(e.fetchData.url);if(e.endTimestamp&&o){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){Ci(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(n,e),delete r[t]))}const a=Ye(),s=He(),{method:g,url:l}=e.fetchData,A=function(e){try{return new URL(e).href}catch(e){return}}(l),C=A?Jn(A).host:void 0,c=o?di({name:`${g} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":g,"http.url":A,"server.address":C,[gi]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&s){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,i){const o=i||n.getSpan(),a=ut(),{traceId:s,spanId:g,sampled:l,dsc:A}={...a.getPropagationContext(),...n.getPropagationContext()},C=o?Pe(o):Ne(s,g,l),c=ke(A||(o?et(o):$e(s,t,n))),I=r.headers||("undefined"!=typeof Request&&E(e,Request)?e.headers:void 0);if(I){if("undefined"!=typeof Headers&&E(I,Headers)){const e=new Headers(I);return e.append("sentry-trace",C),c&&e.append(we,c),e}if(Array.isArray(I)){const e=[...I,["sentry-trace",C]];return c&&e.push([we,c]),e}{const e="baggage"in I?I.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),c&&t.push(c),{...I,"sentry-trace":C,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":C,baggage:c}}(t,s,a,n,c)}return c}const Bo=["localhost",/^\/(?!\/)/],zo={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Bo,tracePropagationTargets:Bo};function Vo(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:zo.traceFetch,traceXHR:zo.traceXHR,...e},s="function"==typeof o?o:e=>!0,g=e=>function(e,t){return M(e,t||Bo)}(e,r||i),l={};t&&Hn((e=>{const t=jo(e,s,g,l);if(t){const n=Go(e.fetchData.url),r=n?Jn(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}a&&t&&Uo(t)})),n&&Gn((e=>{const t=function(e,t,n,r){const i=e.xhr,o=i&&i[Zn];if(!ui()||!i||i.__sentry_own_request__||!o)return;const a=t(o.url);if(e.endTimestamp&&a){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==o.status_code&&(Ci(t,o.status_code),t.end(),delete r[e]))}const s=Ye(),g=ut(),l=Go(o.url),A=l?Jn(l).host:void 0,C=a?di({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":l,url:o.url,"server.address":A,[gi]:"auto.http.browser"},op:"http.client"}):void 0;C&&(i.__sentry_xhr_span_id__=C.spanContext().spanId,r[i.__sentry_xhr_span_id__]=C);const c=He();if(i.setRequestHeader&&n(o.url)&&c){const{traceId:e,spanId:t,sampled:n,dsc:r}={...g.getPropagationContext(),...s.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(we,n)}catch(e){}}(i,C?Pe(C):Ne(e,t,n),ke(r||(C?et(C):$e(e,c,s))))}return C}(e,s,g,l);a&&t&&Uo(t)}))}function Uo(e){const{url:t}=Le(e).data||{};if(!t||"string"!=typeof t)return;const n=co("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!Ae)return r;return[...r,["http.request.redirect_start",Zo(e.redirectStart)],["http.request.fetch_start",Zo(e.fetchStart)],["http.request.domain_lookup_start",Zo(e.domainLookupStart)],["http.request.domain_lookup_end",Zo(e.domainLookupEnd)],["http.request.connect_start",Zo(e.connectStart)],["http.request.secure_connection_start",Zo(e.secureConnectionStart)],["http.request.connection_end",Zo(e.connectEnd)],["http.request.request_start",Zo(e.requestStart)],["http.request.response_start",Zo(e.responseStart)],["http.request.response_end",Zo(e.responseEnd)]]}(r);t.forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function Zo(e=0){return((Ae||performance.timeOrigin)+e)/1e3}function Go(e){try{return new URL(e,Li.location.origin).href}catch(e){return}}const Wo={...bi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...zo},Ho=(e={})=>{const t=!!Mi&&!(!e.tracePropagationTargets&&!e.tracingOrigins);Di(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...Wo,...e},r=_o(),i={};n.enableInp&&Po(i,n.interactionsSampleRate),n.enableLongTask&&co("longtask",(({entries:e})=>{for(const t of e){const e=ki();if(!e)return;const n=ko(Ae+t.startTime),r=ko(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})),n._experiments.enableInteractions&&co("event",(({entries:e})=>{for(const t of e){const e=ki();if(!e)return;if("click"===t.name){const n=ko(Ae+t.startTime),r=ko(t.duration),i={description:T(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},o=N(t.target);o&&(i.attributes={"ui.component_name":o}),e.startChild(i)}}}));const o={name:void 0,context:void 0};function a(e){const t=It(),{beforeStartSpan:i,idleTimeout:a,finalTimeout:s,heartbeatInterval:g}=n,l="pageload"===e.op;let A;if(l){const t=l?Qo("sentry-trace"):"",n=l?Qo("baggage"):void 0,{traceId:r,dsc:i,parentSpanId:o,sampled:a}=Re(t,n);A={traceId:r,parentSpanId:o,parentSampled:a,...e,metadata:{...e.metadata,dynamicSamplingContext:i},trimEnd:!0}}else A={trimEnd:!0,...e};const C=i?i(A):A;C.metadata=C.name!==A.name?{...C.metadata,source:"custom"}:C.metadata,o.name=C.name,o.context=C,!1===C.sampled&&Mi&&c.log(`[Tracing] Will not send ${C.op} transaction because of beforeNavigate.`),Mi&&c.log(`[Tracing] Starting ${C.op} transaction on scope`);const{location:I}=Li,u=Pi(t,C,a,s,!0,{location:I},g,l);return l&&Li.document&&(Li.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(Li.document.readyState)&&u.sendAutoFinishSignal()})),["interactive","complete"].includes(Li.document.readyState)&&u.sendAutoFinishSignal()),u.registerBeforeFinishCallback((e=>{r(),Mo(e)})),u}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const r=e.getOptions(),{markBackgroundSpan:s,traceFetch:g,traceXHR:l,shouldCreateSpanForRequest:A,enableHTTPTimings:C,_experiments:I}=n,u=r&&r.tracePropagationTargets,d=u||n.tracePropagationTargets;let h;Mi&&t&&u&&c.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let f=Li.location&&Li.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{h&&(Mi&&c.log(`[Tracing] Finishing current transaction with op: ${Le(h).op}`),h.end()),h=a({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{h&&(Mi&&c.log(`[Tracing] Finishing current transaction with op: ${Le(h).op}`),h.end()),h=a({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit&&Li.location){const t={name:Li.location.pathname,startTimestamp:Ae?Ae/1e3:void 0,origin:"auto.pageload.browser",attributes:{[oi]:"url"}};Yo(e,t)}n.instrumentNavigation&&e.emit&&Li.location&&Wt((({to:t,from:n})=>{if(void 0===n&&f&&-1!==f.indexOf(t))f=void 0;else if(n!==t){f=void 0;const t={name:Li.location.pathname,origin:"auto.navigation.browser",attributes:{[oi]:"url"}};Ko(e,t)}})),s&&(Li.document?Li.document.addEventListener("visibilitychange",(()=>{const e=ki();if(Li.document.hidden&&e){const t="cancelled",{op:n,status:r}=Le(e);Mi&&c.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):Mi&&c.warn("[Tracing] Could not set up background tab detection due to lack of global document")),I.enableInteractions&&function(e,t){let n;const r=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=e,a="ui.action.click",s=ki();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(Mi&&c.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name)return void(Mi&&c.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`));const{location:g}=Li,l={name:t.name,op:a,trimEnd:!0,data:{[oi]:t.context?qo(t.context):"url"}};n=Pi(It(),l,r,i,!0,{location:g},o)};["click"].forEach((e=>{Li.document&&addEventListener(e,r,{once:!1,capture:!0})}))}(n,o),n.enableInp&&function(e,t){const n=({entries:n})=>{const r=He(),i=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,o=void 0!==i?i.getReplayId():void 0,a=ki(),s=Ye(),g=void 0!==s?s.getUser():void 0;n.forEach((n=>{if(function(e){return"duration"in e}(n)){const r=n.interactionId;if(void 0===r)return;const i=e[r],s=n.duration,l=n.startTime,A=Object.keys(e),C=A.length>0?A.reduce(((t,n)=>e[t].duratione[t])).some((e=>e.duration===s&&e.startTime===l)))return}if(!r)return;if(i)i.duration=Math.max(i.duration,s);else if(A.lengthe[C].duration){const n=t.name,i=t.context;n&&i&&(C&&Object.keys(e).length>=Xo&&delete e[C],e[r]={routeName:n,duration:s,parentContext:i,user:g,activeTransaction:a,replayId:o,startTime:l})}}}))};co("event",n),co("first-input",n)}(i,o),Vo({traceFetch:g,traceXHR:l,tracePropagationTargets:d,shouldCreateSpanForRequest:A,enableHTTPTimings:C})},options:n}};function Yo(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=hi();return"pageload"===(n&&Le(n).op)?n:void 0}function Ko(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=hi();return"navigation"===(n&&Le(n).op)?n:void 0}function Qo(e){const t=(n=`meta[name=${e}]`,S.document&&S.document.querySelector?S.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}const Xo=10;function qo(e){const t=e.attributes&&e.attributes[oi],n=e.data&&e.data[oi],r=e.metadata&&e.metadata.source;return t||n||r}n(4146);var Jo=n(6540),$o=n.t(Jo,2);let ea,ta,na,ra,ia,oa,aa,sa=!1;var ga=n(6284);function la(){return"undefined"!=typeof window&&(!(0,ga.wD)()||void 0!==a.process&&"renderer"===a.process.type)}const Aa=a,Ca="#ffffff",ca="inherit",Ia="rgba(108, 95, 199, 1)",ua={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:Ca,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"25px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:Ia,submitBorder:Ia,submitOutlineFocus:"#29232f",submitForeground:Ca,submitForegroundHover:Ca,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:ca,inputForeground:ca,inputBorder:"var(--border)",inputOutlineFocus:Ia,formBorderRadius:"20px",formContentBorderRadius:"6px"},da=ua,ha={...ua,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"},fa="widget",pa="api";async function ma({feedback:{message:e,email:t,name:n,source:r,url:i}},{includeReplay:o=!0}={}){const a=He(),s=a&&a.getTransport(),g=a&&a.getDsn();if(!a||!s||!g)return;const l={contexts:{feedback:{contact_email:t,name:n,message:e,url:i,source:r}},type:"feedback"};return We((async e=>{e.clearBreadcrumbs(),[pa,fa].includes(String(r))&&e.setLevel("info");const t=await async function({client:e,scope:t,event:n}){const r={};e.emit&&e.emit("preprocessEvent",n,r);const i=await je(e.getOptions(),n,r,t,e,ut());return null===i?(e.recordDroppedEvent("event_processor","feedback",n),null):(i.platform=i.platform||"javascript",i)}({scope:e,client:a,event:l});if(!t)return;a.emit&&a.emit("beforeSendFeedback",t,{includeReplay:Boolean(o)});const n=cn(t,g,a.getOptions()._metadata,a.getOptions().tunnel);let i;try{i=await s.send(n)}catch(e){const t=new Error("Unable to send Feedback");try{t.cause=e}catch(e){}throw t}if(i){if("number"==typeof i.statusCode&&(i.statusCode<200||i.statusCode>=300))throw new Error("Unable to send Feedback");return i}}))}const va="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ya(e,t){return{...e,...t,themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function ba(e){return`\n --background: ${e.background};\n --background-hover: ${e.backgroundHover};\n --foreground: ${e.foreground};\n --error: ${e.error};\n --success: ${e.success};\n --border: ${e.border};\n --border-radius: ${e.borderRadius};\n --box-shadow: ${e.boxShadow};\n\n --submit-background: ${e.submitBackground};\n --submit-background-hover: ${e.submitBackgroundHover};\n --submit-border: ${e.submitBorder};\n --submit-outline-focus: ${e.submitOutlineFocus};\n --submit-foreground: ${e.submitForeground};\n --submit-foreground-hover: ${e.submitForegroundHover};\n\n --cancel-background: ${e.cancelBackground};\n --cancel-background-hover: ${e.cancelBackgroundHover};\n --cancel-border: ${e.cancelBorder};\n --cancel-outline-focus: ${e.cancelOutlineFocus};\n --cancel-foreground: ${e.cancelForeground};\n --cancel-foreground-hover: ${e.cancelForegroundHover};\n\n --input-background: ${e.inputBackground};\n --input-foreground: ${e.inputForeground};\n --input-border: ${e.inputBorder};\n --input-outline-focus: ${e.inputOutlineFocus};\n\n --form-border-radius: ${e.formBorderRadius};\n --form-content-border-radius: ${e.formContentBorderRadius};\n `}function wa({id:e,colorScheme:t,themeDark:n,themeLight:r}){try{const i=Aa.document,o=i.createElement("div");o.id=e;const a=o.attachShadow({mode:"open"});return a.appendChild(function(e,t,n){const r=e.createElement("style");return r.textContent=`\n:host {\n --bottom: 1rem;\n --right: 1rem;\n --top: auto;\n --left: auto;\n --z-index: 100000;\n --font-family: ${n.light.fontFamily};\n --font-size: ${n.light.fontSize};\n\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n z-index: var(--z-index);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${ba("dark"===t?n.dark:n.light)}\n}\n\n${"system"===t?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${ba(n.dark)}\n }\n}`:""}\n}`,r}(i,t,{dark:n,light:r})),a.appendChild(function(e){const t=e.createElement("style");return t.textContent="\n.dialog {\n line-height: 25px;\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n position: fixed;\n inset: 0;\n z-index: 10000;\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n\n border: var(--border);\n border-radius: var(--form-border-radius);\n background-color: var(--background);\n color: var(--foreground);\n\n width: 320px;\n max-width: 100%;\n max-height: calc(100% - 2rem);\n display: flex;\n flex-direction: column;\n box-shadow: var(--box-shadow);\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 20px;\n font-weight: 600;\n padding: 24px 24px 0 24px;\n margin: 0;\n margin-bottom: 16px;\n}\n\n.brand-link {\n display: inline-flex;\n}\n\n.error {\n color: var(--error);\n margin-bottom: 16px;\n}\n\n.form {\n display: grid;\n overflow: auto;\n flex-direction: column;\n gap: 16px;\n padding: 0 24px 24px;\n}\n\n.form__error-container {\n color: var(--error);\n}\n\n.form__error-container--hidden {\n display: none;\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: grid;\n gap: 4px;\n align-items: center;\n grid-auto-flow: column;\n grid-auto-columns: max-content;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n line-height: inherit;\n background-color: var(--input-background);\n box-sizing: border-box;\n border: var(--input-border);\n border-radius: var(--form-content-border-radius);\n color: var(--input-foreground);\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 500;\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n color: var(--input-foreground);\n opacity: 0.65;\n}\n\n.form__input:focus-visible {\n outline: 1px auto var(--input-outline-focus);\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.btn-group {\n display: grid;\n gap: 8px;\n margin-top: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--cancel-border);\n border-radius: var(--form-content-border-radius);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n padding: 6px 16px;\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n background-color: var(--submit-background);\n border-color: var(--submit-border);\n color: var(--submit-foreground);\n}\n.btn--primary:hover {\n background-color: var(--submit-background-hover);\n color: var(--submit-foreground-hover);\n}\n.btn--primary:focus-visible {\n outline: 1px auto var(--submit-outline-focus);\n}\n\n.btn--default {\n background-color: var(--cancel-background);\n color: var(--cancel-foreground);\n font-weight: 500;\n}\n.btn--default:hover {\n background-color: var(--cancel-background-hover);\n color: var(--cancel-foreground-hover);\n}\n.btn--default:focus-visible {\n outline: 1px auto var(--cancel-outline-focus);\n}\n\n.success-message {\n background-color: var(--background);\n border: var(--border);\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n font-weight: 600;\n color: var(--success);\n padding: 12px 24px;\n line-height: 25px;\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success-icon path {\n fill: var(--success);\n}\n",t}(i)),{shadow:a,host:o}}catch(e){throw c.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}async function xa(e,t,n){if(!e)return;e.hideError();try{const e=await function({name:e,email:t,message:n,source:r=pa,url:i=R()},o={}){if(!n)throw new Error("Unable to submit feedback with empty message");return ma({feedback:{name:e,email:t,message:n,url:i,source:r}},o)}({...t,source:fa},n);return e}catch(t){va&&c.error(t),e&&e.showError("There was a problem submitting feedback, please wait and try again.")}}function Ea(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}function ka(e,t,...n){const r=Aa.document.createElement(e);t&&Object.entries(t).forEach((([e,t])=>{"className"===e&&"string"==typeof t?r.setAttribute("class",t):"boolean"==typeof t&&t?r.setAttribute(e,""):"string"==typeof t?r.setAttribute(e,t):e.startsWith("on")&&"function"==typeof t&&r.addEventListener(e.substring(2).toLowerCase(),t)}));for(const e of n)Sa(r,e);return r}function Sa(e,t){const n=Aa.document;if(null!=t)if(Array.isArray(t))for(const n of t)Sa(e,n);else!1===t||("string"==typeof t?e.appendChild(n.createTextNode(t)):t instanceof Node?e.appendChild(t):e.appendChild(n.createTextNode(String(t))))}function Ta({buttonLabel:e,onClick:t}){const n=ka("button",{type:"button",className:"widget__actor","aria-label":e,"aria-hidden":"false"},function(){const e=e=>Aa.document.createElementNS("http://www.w3.org/2000/svg",e),t=Ea(e("svg"),{class:"feedback-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"}),n=Ea(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Ea(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const i=e("defs"),o=Ea(e("clipPath"),{id:"clip0_57_80"}),a=Ea(e("rect"),{width:"20",height:"20",fill:"white"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),{get el(){return t}}}().el,e?ka("span",{className:"widget__actor__text"},e):null);return n.addEventListener("click",(function(e){t&&t(e)})),{get el(){return n},show:()=>{n.classList.remove("widget__actor--hidden"),n.setAttribute("aria-hidden","false")},hide:()=>{n.classList.add("widget__actor--hidden"),n.setAttribute("aria-hidden","true")}}}function Oa(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function Ra({nameLabel:e,namePlaceholder:t,emailLabel:n,emailPlaceholder:r,messageLabel:i,messagePlaceholder:o,isRequiredLabel:a,cancelButtonLabel:s,submitButtonLabel:g,showName:l,showEmail:A,isNameRequired:C,isEmailRequired:c,defaultName:I,defaultEmail:u,onCancel:d,onSubmit:h}){const{el:f}=function({label:e}){return{el:ka("button",{type:"submit",className:"btn btn--primary","aria-label":e},e)}}({label:g});const p=ka("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});const m=ka("input",{id:"name",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"name",required:C,className:"form__input",placeholder:t,value:I}),v=ka("input",{id:"email",type:A?"text":"hidden","aria-hidden":A?"false":"true",name:"email",required:c,className:"form__input",placeholder:r,value:u}),y=ka("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:o}),b=ka("button",{type:"button",className:"btn btn--default","aria-label":s,onClick:e=>{d&&d(e)}},s),w=ka("form",{className:"form",onSubmit:function(e){if(e.preventDefault(),e.target instanceof HTMLFormElement)try{if(h){const t=new FormData(e.target),n={name:Oa(t,"name"),email:Oa(t,"email"),message:Oa(t,"message")};h(n)}}catch(e){}}},[p,l&&ka("label",{htmlFor:"name",className:"form__label"},[ka("span",{className:"form__label__text"},e,C&&ka("span",{className:"form__label__text--required"},` ${a}`)),m]),!l&&m,A&&ka("label",{htmlFor:"email",className:"form__label"},[ka("span",{className:"form__label__text"},n,c&&ka("span",{className:"form__label__text--required"},` ${a}`)),v]),!A&&v,ka("label",{htmlFor:"message",className:"form__label"},[ka("span",{className:"form__label__text"},i,ka("span",{className:"form__label__text--required"},` ${a}`)),y]),ka("div",{className:"btn-group"},[f,b])]);return{get el(){return w},showError:function(e){p.textContent=e,p.classList.remove("form__error-container--hidden"),p.setAttribute("aria-hidden","false")},hideError:function(){p.textContent="",p.classList.add("form__error-container--hidden"),p.setAttribute("aria-hidden","true")}}}function Na({formTitle:e,showBranding:t,showName:n,showEmail:r,isNameRequired:i,isEmailRequired:o,colorScheme:a,defaultName:s,defaultEmail:g,onClosed:l,onCancel:A,onSubmit:C,...c}){let I=null;function u(){I&&(I.open=!1)}const{el:d,showError:h,hideError:f}=Ra({showEmail:r,showName:n,isEmailRequired:o,isNameRequired:i,defaultName:s,defaultEmail:g,onSubmit:C,onCancel:A,...c});return I=ka("dialog",{className:"dialog",open:!0,onClick:function(){u(),l&&l()}},ka("div",{className:"dialog__content",onClick:e=>{e.stopPropagation()}},ka("h2",{className:"dialog__header"},e,t&&ka("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},function({colorScheme:e}){const t=e=>Aa.document.createElementNS("http://www.w3.org/2000/svg",e),n=Ea(t("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),r=Ea(t("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});n.append(r);const i=t("defs"),o=t("style");return o.textContent=`\n path {\n fill: ${"dark"===e?"#fff":"#362d59"};\n }`,"system"===e&&(o.textContent+="\n @media (prefers-color-scheme: dark) {\n path: {\n fill: '#fff';\n }\n }\n "),i.append(o),n.append(i),{get el(){return n}}}({colorScheme:a}).el)),d)),{get el(){return I},showError:h,hideError:f,open:function(){I&&(I.open=!0)},close:u,checkIsOpen:function(){return I&&!0===I.open||!1}}}function _a({message:e,onRemove:t}){function n(){r&&(r.remove(),t&&t())}const r=ka("div",{className:"success-message",onClick:n},function(){const e=e=>Aa.document.createElementNS("http://www.w3.org/2000/svg",e),t=Ea(e("svg"),{class:"success-icon",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"}),n=Ea(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ea(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=Ea(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);const o=e("defs"),a=Ea(e("clipPath"),{id:"clip0_57_156"}),s=Ea(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(s),{get el(){return t}}}().el,e);return{el:r,remove:n}}function Pa({shadow:e,options:{shouldCreateActor:t=!0,...n},attachTo:r}){let i,o,a=!1;async function s(t){if(!o)return;const r=[];if(n.isNameRequired&&!t.name&&r.push(n.nameLabel),n.isEmailRequired&&!t.email&&r.push(n.emailLabel),t.message||r.push(n.messageLabel),r.length>0)return void o.showError(`Please enter in the following required fields: ${r.join(", ")}`);await xa(o,t)?(u(),function(){if(e)try{const t=_a({message:n.successMessageText,onRemove:()=>{r&&clearTimeout(r),l()}});if(!t.el)throw new Error("Unable to show success message");e.appendChild(t.el);const r=setTimeout((()=>{t&&t.remove()}),5e3)}catch(e){c.error(e)}}(),n.onSubmitSuccess&&n.onSubmitSuccess()):n.onSubmitError&&n.onSubmitError()}function g(){const e=He(),t=e&&e.getIntegrationByName&&e.getIntegrationByName("Replay");t&&t.flush().catch((e=>{va&&c.error(e)}))}function l(){i&&i.show()}function A(){i&&i.hide()}function C(){try{if(o)return o.open(),a=!0,n.onFormOpen&&n.onFormOpen(),void g();const t=n.useSentryUser,r=Ye(),i=r&&r.getUser();if(o=Na({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:t&&i&&i[t.name]||"",defaultEmail:t&&i&&i[t.email]||"",onClosed:()=>{l(),a=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{I(),l()},onSubmit:s}),!o.el)throw new Error("Unable to open Feedback dialog");e.appendChild(o.el),A(),n.onFormOpen&&n.onFormOpen(),g()}catch(e){c.error(e)}}function I(){o&&(o.close(),a=!1,n.onFormClose&&n.onFormClose())}function u(){if(o){I();const e=o.el;e&&e.remove(),o=void 0}}function d(){a||C(),A()}return r?r.addEventListener("click",d):t&&(i=Ta({buttonLabel:n.buttonLabel,onClick:d}),i.el&&e.appendChild(i.el)),{get actor(){return i},get dialog(){return o},showActor:l,hideActor:A,removeActor:function(){i&&i.el&&i.el.remove()},openDialog:C,closeDialog:I,removeDialog:u}}const Da=Aa.document;class Ma{static __initStatic(){this.id="Feedback"}constructor({autoInject:e=!0,id:t="sentry-feedback",isEmailRequired:n=!1,isNameRequired:r=!1,showBranding:i=!0,showEmail:o=!0,showName:a=!0,useSentryUser:s={email:"email",name:"username"},themeDark:g,themeLight:l,colorScheme:A="system",buttonLabel:C="Report a Bug",cancelButtonLabel:c="Cancel",submitButtonLabel:I="Send Bug Report",formTitle:u="Report a Bug",emailPlaceholder:d="your.email@example.org",emailLabel:h="Email",messagePlaceholder:f="What's the bug? What did you expect?",messageLabel:p="Description",namePlaceholder:m="Your Name",nameLabel:v="Name",isRequiredLabel:y="(required)",successMessageText:b="Thank you for your report!",onFormClose:w,onFormOpen:x,onSubmitError:E,onSubmitSuccess:k}={}){this.name=Ma.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:e,showBranding:i,id:t,isEmailRequired:n,isNameRequired:r,showEmail:o,showName:a,useSentryUser:s,colorScheme:A,themeDark:{...ha,...g},themeLight:{...da,...l},buttonLabel:C,cancelButtonLabel:c,submitButtonLabel:I,formTitle:u,emailLabel:h,emailPlaceholder:d,messageLabel:p,messagePlaceholder:f,nameLabel:v,namePlaceholder:m,isRequiredLabel:y,successMessageText:b,onFormClose:w,onFormOpen:x,onSubmitError:E,onSubmitSuccess:k}}setupOnce(){if(la())try{this._cleanupWidgetIfExists();const{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){va&&c.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,t){try{const n=ya(this.options,t||{});return this._ensureShadowHost(n,(({shadow:t})=>{const r="string"==typeof e?Da.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)return va&&c.error("[Feedback] Unable to attach to target element"),null;const i=Pa({shadow:t,options:n,attachTo:r});return this._widgets.add(i),this._widget||(this._widget=i),i}))}catch(e){return va&&c.error(e),null}}createWidget(e){try{return this._createWidget(ya(this.options,e||{}))}catch(e){return va&&c.error(e),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(e){va&&c.error(e)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();const e=Da.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,(({shadow:t})=>{const n=Pa({shadow:t,options:e});return!this._hasInsertedActorStyles&&n.actor&&(t.appendChild(function(e){const t=e.createElement("style");return t.textContent="\n.widget__actor {\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n z-index: var(--z-index);\n\n line-height: 16px;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n border-radius: var(--border-radius);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n padding: 16px;\n text-decoration: none;\n z-index: 9000;\n\n color: var(--foreground);\n background-color: var(--background);\n border: var(--border);\n box-shadow: var(--box-shadow);\n opacity: 1;\n transition: opacity 0.1s ease-in-out;\n}\n\n.widget__actor:hover {\n background-color: var(--background-hover);\n}\n\n.widget__actor svg {\n width: 16px;\n height: 16px;\n}\n\n.widget__actor--hidden {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n\n.widget__actor__text {\n}\n\n@media (max-width: 600px) {\n .widget__actor__text {\n display: none;\n }\n}\n\n.feedback-icon path {\n fill: var(--foreground);\n}\n",t}(Da)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||(this._widget=n),n}))}_ensureShadowHost(e,t){let n=!1;if(!this._shadow||!this._host){const{id:t,colorScheme:r,themeLight:i,themeDark:o}=e,{shadow:a,host:s}=wa({id:t,colorScheme:r,themeLight:i,themeDark:o});this._shadow=a,this._host=s,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;const r=t({shadow:this._shadow,host:this._host});return n&&Da.body.appendChild(this._host),r}}function La(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function Fa(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){if(!t)return!1;return ja(e)===ja(t)}(e,i)}function ja(e){return"/"===e[e.length-1]?e.slice(0,-1):e}Ma.__initStatic();const Ba=a,za="sentryReplaySession",Va="Unable to send Replay",Ua=15e4,Za=5e3,Ga=2e7,Wa=36e5;function Ha(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}var Ya;function Ka(e){const t=Ha([e,"optionalAccess",e=>e.host]);return Boolean(Ha([t,"optionalAccess",e=>e.shadowRoot])===e)}function Qa(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Xa(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,qa).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function qa(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Xa(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Ya||(Ya={}));class Ja{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=Ha([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return r=()=>-1,null!=(n=t)?n:r();var n,r}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function $a({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function es({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function ts(e){return e.toLowerCase()}function ns(e){return e.toUpperCase()}const rs="__rrweb_original__";function is(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ts(t):null}function os(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let as=1;const ss=new RegExp("[^a-z0-9-_:]");function gs(){return as++}let ls,As;const Cs=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,cs=/^(?:[a-z+]+:)?\/\//i,Is=/^www\..*/i,us=/^(data:)([^,]*),(.*)/i;function ds(e,t){return(e||"").replace(Cs,((e,n,r,i,o,a)=>{const s=r||o||a,g=n||i||"";if(!s)return e;if(cs.test(s)||Is.test(s))return`url(${g}${s}${g})`;if(us.test(s))return`url(${g}${s}${g})`;if("/"===s[0])return`url(${g}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${g})`;const l=t.split("/"),A=s.split("/");l.pop();for(const e of A)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${g}${l.join("/")}${g})`}))}const hs=/^[^ \t\n\r\u000c]+/,fs=/^[, \t\n\r\u000c]+/;function ps(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function ms(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function vs(){const e=document.createElement("a");return e.href="",e.href}function ys(e,t,n,r,i,o){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?ps(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}const i=[];for(;r(fs),!(n>=t.length);){let o=r(hs);if(","===o.slice(-1))o=ps(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=ps(e,o);let a=!1;for(;;){const e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?ds(r,vs()):"object"===t&&"data"===n?ps(e,r):"function"==typeof o?o(n,r,i):r:ps(e,r):r}function bs(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ws(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ws(e.parentNode,t,n,r+1):-1}function xs(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function Es(e,t,n,r,i,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,g=-1;if(o){if(g=ws(a,xs(r,i)),g<0)return!0;s=ws(a,xs(t,n),g>=0?g:1/0)}else{if(s=ws(a,xs(t,n)),s<0)return!1;g=ws(a,xs(r,i),s>=0?s:1/0)}return s>=0?!(g>=0)||s<=g:!(g>=0)&&!!o}catch(e){}return!!o}function ks(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:g,maskTextClass:l,unmaskTextClass:A,maskTextSelector:C,unmaskTextSelector:c,inlineStylesheet:I,maskInputOptions:u={},maskTextFn:d,maskInputFn:h,dataURLOptions:f={},inlineImages:p,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:y=!1}=t,b=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ya.Document,childNodes:[],compatMode:e.compatMode}:{type:Ya.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ya.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:g,maskInputFn:l,dataURLOptions:A={},inlineImages:C,recordCanvas:c,keepIframeSrcFn:I,newlyAddedElement:u=!1,rootId:d,maskAllText:h,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:v}=t,y=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,i,o),b=function(e){if(e instanceof HTMLFormElement)return"form";const t=ts(e.tagName);return ss.test(t)?"div":t}(e);let w={};const x=e.attributes.length;for(let t=0;tt.href===e.href));let r=null;t&&(r=Xa(t)),r&&(delete w.rel,delete w.href,w._cssText=ds(r,t.href))}if("style"===b&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Xa(e.sheet);t&&(w._cssText=ds(t,vs()))}if("input"===b||"textarea"===b||"select"===b||"option"===b){const t=e,n=is(t),r=os(t,ns(b),n),i=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Es(t,f,m,p,v,$a({type:n,tagName:ns(b),maskInputOptions:s}));w.value=es({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(w.checked=i)}"option"===b&&(e.selected&&!s.select?w.selected=!0:delete w.selected);if("canvas"===b&&c)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e)))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(A.type,A.quality));else if(!("__context"in e)){const t=e.toDataURL(A.type,A.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(A.type,A.quality)&&(w.rr_dataURL=t)}if("img"===b&&C){ls||(ls=n.createElement("canvas"),As=ls.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const i=()=>{t.removeEventListener("load",i);try{ls.width=t.naturalWidth,ls.height=t.naturalHeight,As.drawImage(t,0,0),w.rr_dataURL=ls.toDataURL(A.type,A.quality)}catch(e){}r?w.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==b&&"video"!==b||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime);u||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(y){const{width:t,height:n}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==b||I(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);let E;try{customElements.get(b)&&(E=!0)}catch(e){}return{type:Ya.Element,tagName:b,attributes:w,childNodes:[],isSVG:ms(e)||void 0,needBlock:y,rootId:d,isCustom:E}}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:I,maskAttributeFn:g,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:p,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:y,rootId:b,maskAllText:s,maskTextClass:l,unmaskTextClass:A,maskTextSelector:C,unmaskTextSelector:c});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:g,maskInputFn:l,rootId:A}=t,C=e.parentNode&&e.parentNode.tagName;let c=e.textContent;const I="STYLE"===C||void 0,u="SCRIPT"===C||void 0,d="TEXTAREA"===C||void 0;if(I&&c){try{e.nextSibling||e.previousSibling||Ha([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(c=Xa(e.parentNode.sheet))}catch(e){}c=ds(c,vs())}u&&(c="SCRIPT_PLACEHOLDER");const h=Es(e,r,o,i,a,n);I||u||d||!c||!h||(c=s?s(c,e.parentElement):c.replace(/[\S]/g,"*"));d&&c&&(g.textarea||h)&&(c=l?l(c,e.parentNode):c.replace(/[\S]/g,"*"));if("OPTION"===C&&c){c=es({isMasked:Es(e,r,o,i,a,$a({type:null,tagName:C,maskInputOptions:g})),element:e,value:c,maskInputFn:l})}return{type:Ya.Text,textContent:c||"",isStyle:I,rootId:A}}(e,{maskAllText:s,maskTextClass:l,unmaskTextClass:A,maskTextSelector:C,unmaskTextSelector:c,maskTextFn:d,maskInputOptions:u,maskInputFn:h,rootId:b});case e.CDATA_SECTION_NODE:return{type:Ya.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:Ya.Comment,textContent:e.textContent||"",rootId:b};default:return!1}}function Ss(e){return null==e?"":e.toLowerCase()}function Ts(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:g,unmaskTextClass:l,maskTextSelector:A,unmaskTextSelector:C,skipChild:c=!1,inlineStylesheet:I=!0,maskInputOptions:u={},maskAttributeFn:d,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m={},inlineImages:v=!1,recordCanvas:y=!1,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:T=!1}=t;let{preserveWhiteSpace:O=!0}=t;const R=ks(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:g,unmaskTextClass:l,maskTextSelector:A,unmaskTextSelector:C,inlineStylesheet:I,maskInputOptions:u,maskAttributeFn:d,maskTextFn:h,maskInputFn:f,dataURLOptions:m,inlineImages:v,recordCanvas:y,keepIframeSrcFn:S,newlyAddedElement:T});if(!R)return null;let N;N=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===Ya.Comment)return!0;if(e.type===Ya.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ss(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ss(e.attributes.name)||"icon"===Ss(e.attributes.rel)||"apple-touch-icon"===Ss(e.attributes.rel)||"shortcut icon"===Ss(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ss(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ss(e.attributes.property).match(/^(og|twitter|fb):/)||Ss(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ss(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ss(e.attributes.name)||"googlebot"===Ss(e.attributes.name)||"bingbot"===Ss(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ss(e.attributes.name)||"generator"===Ss(e.attributes.name)||"framework"===Ss(e.attributes.name)||"publisher"===Ss(e.attributes.name)||"progid"===Ss(e.attributes.name)||Ss(e.attributes.property).match(/^article:/)||Ss(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ss(e.attributes.name)||"yandex-verification"===Ss(e.attributes.name)||"csrf-token"===Ss(e.attributes.name)||"p:domain_verify"===Ss(e.attributes.name)||"verify-v1"===Ss(e.attributes.name)||"verification"===Ss(e.attributes.name)||"shopify-checkout-api-token"===Ss(e.attributes.name)))return!0}}return!1}(R,p)&&(O||R.type!==Ya.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?gs():-2;const _=Object.assign(R,{id:N});if(r.add(e,_),-2===N)return null;b&&b(e);let P=!c;if(_.type===Ya.Element){P=P&&!_.needBlock,delete _.needBlock;const t=e.shadowRoot;t&&Qa(t)&&(_.isShadowHost=!0)}if((_.type===Ya.Document||_.type===Ya.Element)&&P){p.headWhitespace&&_.type===Ya.Element&&"head"===_.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:g,unmaskTextClass:l,maskTextSelector:A,unmaskTextSelector:C,skipChild:c,inlineStylesheet:I,maskInputOptions:u,maskAttributeFn:d,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:v,recordCanvas:y,preserveWhiteSpace:O,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:S};for(const n of Array.from(e.childNodes)){const e=Ts(n,t);e&&_.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Ts(n,t);r&&(Qa(e.shadowRoot)&&(r.isShadow=!0),_.childNodes.push(r))}}return e.parentNode&&Ka(e.parentNode)&&Qa(e.parentNode)&&(_.isShadow=!0),_.type===Ya.Element&&"iframe"===_.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch(e){return}if("complete"!==i){const r=setTimeout((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),o=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&w){const n=Ts(t,{doc:t,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:g,unmaskTextClass:l,maskTextSelector:A,unmaskTextSelector:C,skipChild:!1,inlineStylesheet:I,maskInputOptions:u,maskAttributeFn:d,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:v,recordCanvas:y,preserveWhiteSpace:O,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:S});n&&w(e,n)}}),x),_.type===Ya.Element&&"link"===_.tagName&&"stylesheet"===_.attributes.rel&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;const o=setTimeout((()=>{i||(t(),i=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(o),i=!0,t()}))}(e,(()=>{if(E){const t=Ts(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:g,unmaskTextClass:l,maskTextSelector:A,unmaskTextSelector:C,skipChild:!1,inlineStylesheet:I,maskInputOptions:u,maskAttributeFn:d,maskTextFn:h,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:v,recordCanvas:y,preserveWhiteSpace:O,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:S});t&&E(e,t)}}),k),_}function Os(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function Rs(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let Ns={map:{},getId:()=>-1,getNode:()=>null,removeNodeFromMap(){},has:()=>!1,reset(){}};function _s(e,t,n={}){let r=null,i=0;return function(...o){const a=Date.now();i||!1!==n.leading||(i=a);const s=t-(a-i),g=this;s<=0||s>t?(r&&(!function(...e){Js("clearTimeout")(...e)}(r),r=null),i=a,e.apply(g,o)):r||!1===n.trailing||(r=$s((()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(g,o)}),s))}}function Ps(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){$s((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Ps(e,t,o||{},!0)}function Ds(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ns=new Proxy(Ns,{get:(e,t,n)=>Reflect.get(e,t,n)}));let Ms=Date.now;function Ls(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Os([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Os([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Os([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Os([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Os([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Os([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Fs(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function js(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Bs(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function zs(e,t,n,r,i){if(!e)return!1;const o=Bs(e);if(!o)return!1;const a=xs(t,n);if(!i){const e=r&&o.matches(r);return a(o)&&!e}const s=ws(o,a);let g=-1;return!(s<0)&&(r&&(g=ws(o,xs(null,r))),s>-1&&g<0||se.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ms=()=>(new Date).getTime());class Ys{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ks(e){let t=null;return Os([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Qs(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Ks(n);)n=t;return n}(e);return t.contains(n)}function Xs(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Qs(e))}const qs={};function Js(e){const t=qs[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return qs[e]=r.bind(window)}function $s(...e){return Js("setTimeout")(...e)}var eg=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(eg||{}),tg=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(tg||{}),ng=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ng||{}),rg=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(rg||{});function ig(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function og(e){return"__ln"in e}class ag{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;ne.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&og(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&og(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const sg=(e,t)=>`${e}@${t}`;class gg{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new ag,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!Xs(i))return;const o=Ka(i.parentNode)?this.mirror.getId(Ks(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===o||-1===a)return n.addNode(i);const s=Ts(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Gs(e,this.mirror)&&this.iframeManager.addIframe(e),Ws(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Hs(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Ag(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)cg(this.droppedSet,e)||Ag(this.removes,e,this.mirror)?cg(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!Vs(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;zs(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Es(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Bs(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=is(t),i=t.tagName;r=os(t,i,n);const o=$a({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=es({isMasked:Es(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(zs(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!bs(t.tagName,n)&&(i.attributes[n]=ys(this.doc,ts(t.tagName),ts(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?i.styleDiff[e]=""===o?r:[r,o]:i._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(zs(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=Ka(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);zs(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Vs(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(lg(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Us(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[sg(n,r)]?lg(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Ka(e.target)||!Qa(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Vs(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[sg(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);zs(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Hs(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function lg(e,t){e.delete(t),t.childNodes.forEach((t=>lg(e,t)))}function Ag(e,t,n){return 0!==e.length&&Cg(e,t,n)}function Cg(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return!!e.some((e=>e.id===i))||Cg(e,r,n)}function cg(e,t){return 0!==e.size&&Ig(e,t)}function Ig(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Ig(e,n))}let ug;function dg(e){ug=e}function hg(){ug=void 0}const fg=e=>{if(!ug)return e;return(...t)=>{try{return e(...t)}catch(e){if(ug&&!0===ug(e))return()=>{};throw e}}};function pg(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const mg=[];function vg(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function yg(e,t){const n=new gg;mg.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=pg([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r(fg((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function bg({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,g=[];let l=null;return Object.keys(ng).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=ts(a);const A=(t=>a=>{const s=vg(a);if(zs(s,r,i,o,!0))return;let g=null,A=t;if("pointerType"in a){switch(a.pointerType){case"mouse":g=rg.Mouse;break;case"touch":g=rg.Touch;break;case"pen":g=rg.Pen}g===rg.Touch?ng[t]===ng.MouseDown?A="TouchStart":ng[t]===ng.MouseUp&&(A="TouchEnd"):rg.Pen}else Zs(a)&&(g=rg.Touch);null!==g?(l=g,(A.startsWith("Touch")&&g===rg.Touch||A.startsWith("Mouse")&&g===rg.Mouse)&&(g=null)):ng[t]===ng.Click&&(g=l,l=null);const C=Zs(a)?a.changedTouches[0]:a;if(!C)return;const c=n.getId(s),{clientX:I,clientY:u}=C;fg(e)({type:ng[A],id:c,x:I,y:u,...null!==g&&{pointerType:g}})})(a);if(window.PointerEvent)switch(ng[a]){case ng.MouseDown:case ng.MouseUp:s=s.replace("mouse","pointer");break;case ng.TouchStart:case ng.TouchEnd:return}g.push(Rs(s,A,t))})),fg((()=>{g.forEach((e=>e()))}))}function wg({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){const s=fg(_s(fg((a=>{const s=vg(a);if(!s||zs(s,r,i,o,!0))return;const g=n.getId(s);if(s===t&&t.defaultView){const n=Ls(t.defaultView);e({id:g,x:n.left,y:n.top})}else e({id:g,x:s.scrollLeft,y:s.scrollTop})})),a.scroll||100));return Rs("scroll",s,t)}const xg=["INPUT","TEXTAREA","SELECT"],Eg=new WeakMap;function kg({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:g,maskInputFn:l,sampling:A,userTriggeredOnInput:C,maskTextClass:c,unmaskTextClass:I,maskTextSelector:u,unmaskTextSelector:d}){function h(e){let n=vg(e);const A=e.isTrusted,h=n&&ns(n.tagName);if("OPTION"===h&&(n=n.parentElement),!n||!h||xg.indexOf(h)<0||zs(n,r,i,o,!0))return;const p=n;if(p.classList.contains(a)||s&&p.matches(s))return;const m=is(n);let v=os(p,h,m),y=!1;const b=$a({maskInputOptions:g,tagName:h,type:m}),w=Es(n,c,u,I,d,b);"radio"!==m&&"checkbox"!==m||(y=n.checked),v=es({isMasked:w,element:n,value:v,maskInputFn:l}),f(n,C?{text:v,isChecked:y,userTriggered:A}:{text:v,isChecked:y});const x=n.name;"radio"===m&&x&&y&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((e=>{if(e!==n){const t=es({isMasked:w,element:e,value:os(e,h,m),maskInputFn:l});f(e,C?{text:t,isChecked:!y,userTriggered:!1}:{text:t,isChecked:!y})}}))}function f(t,r){const i=Eg.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Eg.set(t,r);const i=n.getId(t);fg(e)({...r,id:i})}}const p=("last"===A.input?["change"]:["input","change"]).map((e=>Rs(e,fg(h),t))),m=t.defaultView;if(!m)return()=>{p.forEach((e=>e()))};const v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&p.push(...y.map((e=>Ps(e[0],e[1],{set(){fg(h)({target:this,isTrusted:!1})}},!1,m)))),fg((()=>{p.forEach((e=>e()))}))}function Sg(e){return function(e,t){if(Ng("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Ng("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Ng("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Ng("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Tg(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Og({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const i="#document"===n.nodeName?pg([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):pg([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=pg([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(pg([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return pg([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=pg([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),fg((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function Rg(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=yg(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const g=_s(fg((t=>{const n=Date.now()-a;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],a=null})),o),l=fg(_s(fg((e=>{const t=vg(e),{clientX:n,clientY:i}=Zs(e)?e.changedTouches[0]:e;a||(a=Ms()),s.push({x:n,y:i,id:r.getId(t),timeOffset:Ms()-a}),g("undefined"!=typeof DragEvent&&e instanceof DragEvent?tg.Drag:e instanceof MouseEvent?tg.MouseMove:tg.TouchMove)})),i,{trailing:!1})),A=[Rs("mousemove",l,n),Rs("touchmove",l,n),Rs("drag",l,n)];return fg((()=>{A.forEach((e=>e()))}))}(e),o=bg(e),a=wg(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Rs("resize",fg(_s(fg((()=>{const t=Fs(),i=js();n===t&&r===i||(e({width:Number(i),height:Number(t)}),n=t,r=i)})),200)),t)}(e,{win:n}),g=kg(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:a}){const s=fg((a=>_s(fg((o=>{const s=vg(o);if(!s||zs(s,t,n,r,!0))return;const{currentTime:g,volume:l,muted:A,playbackRate:C}=s;e({type:a,id:i.getId(s),currentTime:g,volume:l,muted:A,playbackRate:C})})),o.media||500))),g=[Rs("play",s(0),a),Rs("pause",s(1),a),Rs("seeked",s(2),a),Rs("volumechange",s(3),a),Rs("ratechange",s(4),a)];return fg((()=>{g.forEach((e=>e()))}))}(e),A=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:fg(((r,i,o)=>{const[a,s]=o,{id:g,styleId:l}=Tg(i,t,n.styleMirror);return(g&&-1!==g||l&&-1!==l)&&e({id:g,styleId:l,adds:[{rule:a,index:s}]}),r.apply(i,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let a,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:fg(((r,i,o)=>{const[a]=o,{id:s,styleId:g}=Tg(i,t,n.styleMirror);return(s&&-1!==s||g&&-1!==g)&&e({id:s,styleId:g,removes:[{index:a}]}),r.apply(i,o)}))}),r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:fg(((r,i,o)=>{const[a]=o,{id:s,styleId:g}=Tg(i,t,n.styleMirror);return(s&&-1!==s||g&&-1!==g)&&e({id:s,styleId:g,replace:a}),r.apply(i,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:fg(((r,i,o)=>{const[a]=o,{id:s,styleId:g}=Tg(i,t,n.styleMirror);return(s&&-1!==s||g&&-1!==g)&&e({id:s,styleId:g,replaceSync:a}),r.apply(i,o)}))}));const g={};_g("CSSGroupingRule")?g.CSSGroupingRule=r.CSSGroupingRule:(_g("CSSMediaRule")&&(g.CSSMediaRule=r.CSSMediaRule),_g("CSSConditionRule")&&(g.CSSConditionRule=r.CSSConditionRule),_g("CSSSupportsRule")&&(g.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(g).forEach((([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:fg(((r,i,o)=>{const[a,s]=o,{id:g,styleId:l}=Tg(i.parentStyleSheet,t,n.styleMirror);return(g&&-1!==g||l&&-1!==l)&&e({id:g,styleId:l,adds:[{rule:a,index:[...Sg(i),s||0]}]}),r.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:fg(((r,i,o)=>{const[a]=o,{id:s,styleId:g}=Tg(i.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||g&&-1!==g)&&e({id:s,styleId:g,removes:[{index:[...Sg(i),a]}]}),r.apply(i,o)}))})})),fg((()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,a&&(r.CSSStyleSheet.prototype.replace=a),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(g).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),C=Og(e,e.doc),c=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:fg(((i,a,s)=>{const[g,l,A]=s;if(n.has(g))return o.apply(a,[g,l,A]);const{id:C,styleId:c}=Tg(pg([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(C&&-1!==C||c&&-1!==c)&&e({id:C,styleId:c,set:{property:g,value:l,priority:A},index:Sg(a.parentRule)}),i.apply(a,s)}))});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:fg(((i,o,s)=>{const[g]=s;if(n.has(g))return a.apply(o,[g]);const{id:l,styleId:A}=Tg(pg([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||A&&-1!==A)&&e({id:l,styleId:A,remove:{property:g},index:Sg(o.parentRule)}),i.apply(o,s)}))}),fg((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:n}),I=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const a=Ds(t.fonts,"add",(function(t){return function(n){return $s(fg((()=>{const t=i.get(n);t&&(e(t),i.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(a),fg((()=>{r.forEach((e=>e()))}))}(e):()=>{},u=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:a}=e;let s=!0;const g=fg((()=>{const e=t.getSelection();if(!e||s&&pg([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const g=[],l=e.rangeCount||0;for(let t=0;t{};const r=Ds(n.customElements,"define",(function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}));return r}(e),h=[];for(const t of e.plugins)h.push(t.observer(t.callback,n,t.options));return fg((()=>{mg.forEach((e=>e.reset())),r.disconnect(),i(),o(),a(),s(),g(),l(),A(),C(),c(),I(),u(),d(),h.forEach((e=>e()))}))}function Ng(e){return void 0!==window[e]}function _g(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Pg{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const i=r.get(t);return i||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Dg(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class Mg{constructor(){this.crossOriginIframeMirror=new Pg(gs),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Lg{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Pg(gs),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Pg(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Dg([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case eg.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:eg.IncrementalSnapshot,data:{source:tg.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case eg.Meta:case eg.Load:case eg.DomContentLoaded:return!1;case eg.Plugin:return t;case eg.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case eg.IncrementalSnapshot:switch(t.data.source){case tg.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case tg.Drag:case tg.TouchMove:case tg.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case tg.ViewportResize:return!1;case tg.MediaInteraction:case tg.MouseInteraction:case tg.Scroll:case tg.CanvasMutation:case tg.Input:return this.replaceIds(t.data,e,["id"]),t;case tg.StyleSheetRule:case tg.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case tg.Font:return t;case tg.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case tg.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Dg([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Ya.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Fg{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class jg{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Qa(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=yg({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(wg({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),$s((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Og({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ds(e.prototype,"attachShadow",(function(e){return function(r){const i=e.call(this,r);return this.shadowRoot&&Xs(this)&&n.addShadowRoot(this.shadowRoot,t),i}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Bg{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class zg{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ys,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:qa(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Vg{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){Js("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Ug,Zg;const Gg=new Ja;function Wg(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:g=null,maskAllText:l=!1,maskTextClass:A="rr-mask",unmaskTextClass:C=null,maskTextSelector:c=null,unmaskTextSelector:I=null,inlineStylesheet:u=!0,maskAllInputs:d,maskInputOptions:h,slimDOMOptions:f,maskAttributeFn:p,maskInputFn:m,maskTextFn:v,maxCanvasSize:y=null,packFn:b,sampling:w={},dataURLOptions:x={},mousemoveWait:E,recordCanvas:k=!1,recordCrossOriginIframes:S=!1,recordAfter:T=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:R=!1,inlineImages:N=!1,plugins:_,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:M,onMutation:L,getCanvasManager:F}=e;dg(M);const j=!S||window.parent===window;let B=!1;if(!j)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(j&&!t)throw new Error("emit function is required");void 0!==E&&void 0===w.mousemove&&(w.mousemove=E),Gg.reset();const z=!0===d?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==h?h:{},V=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let U;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let Z=0;const G=e=>{for(const t of _||[])t.eventProcessor&&(e=t.eventProcessor(e));return b&&!B&&(e=b(e)),e};Ug=(e,i)=>{const o=e;if(o.timestamp=Ms(),!La([mg,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||o.type===eg.FullSnapshot||o.type===eg.IncrementalSnapshot&&o.data.source===tg.Mutation||mg.forEach((e=>e.unfreeze())),j)La([t,"optionalCall",e=>e(G(o),i)]);else if(B){const e={type:"rrweb",event:G(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(o.type===eg.FullSnapshot)U=o,Z=0;else if(o.type===eg.IncrementalSnapshot){if(o.data.source===tg.Mutation&&o.data.isAttachIframe)return;Z++;const e=r&&Z>=r,t=n&&U&&o.timestamp-U.timestamp>n;(e||t)&&$(!0)}};const W=e=>{Ug({type:eg.IncrementalSnapshot,data:{source:tg.Mutation,...e}})},H=e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.Scroll,...e}}),Y=e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.CanvasMutation,...e}}),K=new zg({mutationCb:W,adoptedStyleSheetCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Mg:new Lg({mirror:Gg,mutationCb:W,stylesheetManager:K,recordCrossOriginIframes:S,wrappedEmit:Ug});for(const e of _||[])e.getMirror&&e.getMirror({nodeMirror:Gg,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const X=new Vg,q=function(e,t){try{return e?e(t):new Bg}catch(e){return new Bg}}(F,{mirror:Gg,win:window,mutationCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.CanvasMutation,...e}}),recordCanvas:k,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:y,sampling:w.canvas,dataURLOptions:x,errorHandler:M}),J="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Fg:new jg({mutationCb:W,scrollCb:H,bypassOptions:{onMutation:L,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:A,unmaskTextClass:C,maskTextSelector:c,unmaskTextSelector:I,inlineStylesheet:u,maskInputOptions:z,dataURLOptions:x,maskAttributeFn:p,maskTextFn:v,maskInputFn:m,recordCanvas:k,inlineImages:N,sampling:w,slimDOMOptions:V,iframeManager:Q,stylesheetManager:K,canvasManager:q,keepIframeSrcFn:P,processedNodeManager:X},mirror:Gg}),$=(e=!1)=>{Ug({type:eg.Meta,data:{href:window.location.href,width:js(),height:Fs()}},e),K.reset(),J.init(),mg.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Ja,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:g=null,maskTextSelector:l=null,unmaskTextSelector:A=null,inlineStylesheet:C=!0,inlineImages:c=!1,recordCanvas:I=!1,maskAllInputs:u=!1,maskAttributeFn:d,maskTextFn:h,maskInputFn:f,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:v,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:k=()=>!1}=t||{};return Ts(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:g,maskTextSelector:l,unmaskTextSelector:A,skipChild:!1,inlineStylesheet:C,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===u?{}:u,maskAttributeFn:d,maskTextFn:h,maskInputFn:f,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:m,inlineImages:c,recordCanvas:I,preserveWhiteSpace:v,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:k,newlyAddedElement:!1})}(document,{mirror:Gg,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:A,unmaskTextClass:C,maskTextSelector:c,unmaskTextSelector:I,inlineStylesheet:u,maskAllInputs:z,maskAttributeFn:p,maskInputFn:m,maskTextFn:v,slimDOM:V,dataURLOptions:x,recordCanvas:k,inlineImages:N,onSerialize:e=>{Gs(e,Gg)&&Q.addIframe(e),Ws(e,Gg)&&K.trackLinkElement(e),Hs(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:P});t&&(Ug({type:eg.FullSnapshot,data:{node:t,initialOffset:Ls(window)}}),mg.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,Gg.getId(document)))};Zg=$;try{const e=[],t=e=>fg(Rg)({onMutation:L,mutationCb:W,mousemoveCb:(e,t)=>Ug({type:eg.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.MouseInteraction,...e}}),scrollCb:H,viewportResizeCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.ViewportResize,...e}}),inputCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.Input,...e}}),mediaInteractionCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.MediaInteraction,...e}}),styleSheetRuleCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.StyleSheetRule,...e}}),styleDeclarationCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>Ug({type:eg.IncrementalSnapshot,data:{source:tg.Font,...e}}),selectionCb:e=>{Ug({type:eg.IncrementalSnapshot,data:{source:tg.Selection,...e}})},customElementCb:e=>{Ug({type:eg.IncrementalSnapshot,data:{source:tg.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:g,maskAllText:l,maskTextClass:A,unmaskTextClass:C,maskTextSelector:c,unmaskTextSelector:I,maskInputOptions:z,inlineStylesheet:u,sampling:w,recordCanvas:k,inlineImages:N,userTriggeredOnInput:O,collectFonts:R,doc:e,maskAttributeFn:p,maskInputFn:m,maskTextFn:v,keepIframeSrcFn:P,blockSelector:o,unblockSelector:a,slimDOMOptions:V,dataURLOptions:x,mirror:Gg,iframeManager:Q,stylesheetManager:K,shadowDomManager:J,processedNodeManager:X,canvasManager:q,ignoreCSSAttributes:D,plugins:La([_,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Ug({type:eg.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Q.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){}}));const n=()=>{$(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Rs("DOMContentLoaded",(()=>{Ug({type:eg.DomContentLoaded,data:{}}),"DOMContentLoaded"===T&&n()}))),e.push(Rs("load",(()=>{Ug({type:eg.Load,data:{}}),"load"===T&&n()}),window))),()=>{e.forEach((e=>e())),X.destroy(),Zg=void 0,hg()}}catch(e){}}Wg.mirror=Gg,Wg.takeFullSnapshot=function(e){if(!Zg)throw new Error("please take full snapshot after start recording");Zg(e)};function Hg(e){return e>9999999999?e:1e3*e}function Yg(e){return e>9999999999?e/1e3:e}function Kg(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:eg.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:ve(t,10,1e3)}}),"console"===t.category))))}function Qg(e){return e.closest("button,a")||e}function Xg(e){const t=qg(e);return t&&t instanceof Element?Qg(t):t}function qg(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Jg;function $g(e){return Jg||(Jg=[],L(Ba,"open",(function(e){return function(...t){if(Jg)try{Jg.forEach((e=>e()))}catch(e){}return e.apply(Ba,t)}}))),Jg.push(e),()=>{const t=Jg?Jg.indexOf(e):-1;t>-1&&Jg.splice(t,1)}}class el{constructor(e,t,n=Kg){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=$g((()=>{this._lastMutation=nl()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!tl.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Yg(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Yg(e)}registerScroll(e=Date.now()){this._lastScroll=Yg(e)}registerClick(e){const t=Qg(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=nl();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:o,clickBreadcrumb:a}=e;if(i){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:Ba.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,i)}else if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Ba.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const tl=["A","BUTTON","INPUT"];function nl(){return Date.now()/1e3}function rl(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(n===tg.Mutation&&e.registerMutation(t.timestamp),n===tg.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===tg.MouseInteraction}(t)){const{type:n,id:r}=t.data,i=Wg.mirror.getNode(r);i instanceof HTMLElement&&n===ng.Click&&e.registerClick(i)}}catch(e){}}function il(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ol;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ol||(ol={}));const al=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function sl(e){const t={};for(const n in e)if(al.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const gl=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Xg(e.event):qg(e.event),n=T(r,{maxStringLength:200})||""}catch(e){n=""}return{target:r,message:n}}(e);return il({category:`ui.${e.name}`,...ll(t,n)})}(t);if(!n)return;const r="click"===t.name,i=r?t.event:void 0;!(r&&e.clickDetector&&i&&i.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,Xg(t.event)),Kg(e,n)};function ll(e,t){const n=Wg.mirror.getId(e),r=n&&Wg.mirror.getNode(n),i=r&&Wg.mirror.getMeta(r),o=i&&function(e){return e.type===ol.Element}(i)?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===ol.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:sl(o.attributes)}}:{}}}function Al(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||r||i,g=1===o.length;if(!s&&g)return null;const l=T(a,{maxStringLength:200})||"",A=ll(a,l);return il({category:"ui.keyDown",message:l,data:{...A.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}(t);n&&Kg(e,n)}const Cl={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:g,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Il(o),end:Il(i),name:r,data:{size:l,statusCode:g,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=Il(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:g,domInteractive:l,loadEventStart:A,loadEventEnd:C,redirectCount:c,startTime:I,transferSize:u,type:d}=e;if(0===i)return null;return{type:`${t}.${d}`,start:Il(I),end:Il(o),name:n,data:{size:u,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:g,loadEventStart:A,loadEventEnd:C,domComplete:o,redirectCount:c}}}};function cl(e){return Cl[e.entryType]?Cl[e.entryType](e):null}function Il(e){return((Ae||Ba.performance.timeOrigin)+e)/1e3}function ul(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(co(e,n))})),r.push(Co((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,i=e.value,o=Il(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:i,size:i,nodeId:r?Wg.mirror.getId(r):void 0}}}(t))}))),()=>{r.forEach((e=>e()))}}const dl="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function hl(e,t){dl&&(c.info(e),t&&pl(e))}function fl(e,t){dl&&(c.info(e),t&&setTimeout((()=>{pl(e)}),0))}function pl(e){Ge({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class ml extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class vl{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Ga)throw new ml;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Hg(e):null}}class yl{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){hl("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=({data:t})=>{const a=t;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",o),!a.success)return dl&&c.error("[Replay]",a.response),void i(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class bl{constructor(e){this._worker=new yl(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Hg(e.timestamp);(!this._earliestTimestamp||tGa?Promise.reject(new ml):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{dl&&c.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class wl{constructor(e){this._fallback=new vl,this._compression=new bl(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void hl("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){dl&&c.warn("[Replay] Failed to add events when switching buffers.",e)}}}function xl({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;hl("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new wl(n)}catch(e){hl("[Replay] Failed to create compression worker")}}(t);if(e)return e}return hl("[Replay] Using simple buffer"),new vl}function El(){try{return"sessionStorage"in Ba&&!!Ba.sessionStorage}catch(e){return!1}}function kl(e){!function(){if(!El())return;try{Ba.sessionStorage.removeItem(za)}catch(e){}}(),e.session=void 0}function Sl(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(hl(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function jl(e){return!e.type}function Bl(e){return"transaction"===e.type}function zl(e){return"feedback"===e.type}function Vl(e){const t=function(){const e=He();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!e.isEnabled()||!jl(n)&&!Bl(n))return;const i=r&&r.statusCode;t&&(!i||i<200||i>=300)||(Bl(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function Ul(e){return t=>{e.isEnabled()&&jl(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Kg(e,il({category:"replay.hydrate-error"}))}}(e,t)}}function Zl(e,t=!1){const n=t?Vl(e):void 0;return Object.assign(((t,r)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!jl(t)&&!Bl(t)&&!zl(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(zl(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:eg.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return dl&&c.log("[Replay] Ignoring error from rrweb internals",t),null;const i=function(e,t){return"buffer"===e.recordingMode&&t.message!==Va&&!(!t.exception||t.type)&&Sl(e.getOptions().errorSampleRate)}(e,t);return(i||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}function Gl(e,t){return t.map((({type:t,start:n,end:r,name:i,data:o})=>{const a=e.throttledAddEvent({type:eg.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof a?Promise.resolve(null):a}))}function Wl(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Gl(e,[n]),!1))))}}function Hl(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!dl||!e.getOptions()._experiments.traceInternals)&&Fa(t,He())}(e,t.name)||e.addUpdate((()=>(Gl(e,[t]),!0))))}function Yl(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[Zn];if(!t||!n||!i)return null;const{method:o,url:a,status_code:s}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:t/1e3,end:n/1e3,data:{method:o,statusCode:s}}}(t);Hl(e,n)}}function Kl(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=nA(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Ql(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Xl(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nA(e)];if(!e)return[void 0]}catch(t){return dl&&c.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return dl&&c.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ql(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Jl(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:g}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:Z({method:o,statusCode:a,request:s,response:g})}}function $l(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function eA(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Ua,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,Ua);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function tA(e,t){return Object.keys(e).reduce(((n,r)=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n}),{})}function nA(e){return new URLSearchParams(e).toString()}function rA(e,t){const n=function(e,t=Ba.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ba.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return M(n,t)}async function iA(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:a,method:s,status_code:g=0,request_body_size:l,response_body_size:A}=e.data,C=rA(a,n.networkDetailAllowUrls)&&!rA(a,n.networkDetailDenyUrls),I=C?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return sA(e[0],t);if(2===e.length)return sA(e[1],t);return{}}(n,t):{};if(!e)return eA(i,r,void 0);const o=oA(n),[a,s]=Xl(o),g=eA(i,r,a);if(s)return ql(g,s);return g}(n,t.input,l):$l(l),u=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,o){if(!e&&void 0!==o)return $l(o);const a=i?aA(i.headers,r):{};if(!i||!t&&void 0!==o)return eA(a,o,void 0);const[s,g]=await async function(e){const t=function(e){try{return e.clone()}catch(e){dl&&c.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return dl&&c.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(i),l=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:i,headers:o}){try{const a=e&&e.length&&void 0===r?Kl(e,n):r;return i?eA(o,a,t?e:void 0):$l(a)}catch(e){return dl&&c.warn("[Replay] Failed to serialize response body",e),eA(o,r,void 0)}}(s,{networkCaptureBodies:t,textEncoder:n,responseBodySize:o,captureDetails:e,headers:a});if(g)return ql(l,g);return l}(C,n,t.response,A);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:g,request:I,response:u}}(e,t,n),i=Jl("resource.fetch",r);Hl(n.replay,i)}catch(e){dl&&c.error("[Replay] Failed to capture fetch breadcrumb",e)}}function oA(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function aA(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function sA(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?aA(n,t):Array.isArray(n)?{}:tA(n,t):{}}async function gA(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:a,xhr:s}=t,{url:g,method:l,status_code:A=0,request_body_size:C,response_body_size:I}=e.data;if(!g)return null;if(!s||!rA(g,n.networkDetailAllowUrls)||rA(g,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:g,method:l,statusCode:A,request:$l(C),response:$l(I)}}const u=s[Zn],d=u?tA(u.request_headers,n.networkRequestHeaders):{},h=tA(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{})}(s),n.networkResponseHeaders),[f,p]=n.networkCaptureBodies?Xl(a):[void 0],[m,v]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return dl&&c.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return dl&&c.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return dl&&c.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(s):[void 0],y=eA(d,C,f),b=eA(h,I,m);return{startTimestamp:i,endTimestamp:o,url:g,method:l,statusCode:A,request:p?ql(y,p):y,response:v?ql(b,v):b}}(e,t,n),i=Jl("resource.xhr",r);Hl(n.replay,i)}catch(e){dl&&c.error("[Replay] Failed to capture xhr breadcrumb",e)}}function lA(e,t,n){const{xhr:r,input:i}=t;if(!r)return;const o=Kl(i,n.textEncoder),a=r.getResponseHeader("content-length")?Ql(r.getResponseHeader("content-length")):function(e,t,n){try{return Kl("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(r.response,r.responseType,n.textEncoder);void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}function AA(e){const t=He();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),g={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:s};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(lA(t,n,e),gA(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:r,response:i}=t,o=Kl(r?oA(r):void 0,n.textEncoder),a=i?Ql(i.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),iA(t,n,e))}catch(e){dl&&c.warn("Error when enriching network breadcrumb")}}(g,e,t))):(Hn(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;const{method:o,url:a}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:a,data:{method:o,statusCode:i?i.status:void 0}}}(t);Hl(e,n)}}(e)),Gn(Yl(e)))}catch(e){}}let CA=null;const cA=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(CA===t||!t)return null;if(CA=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return il(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Za?(n=!0,`${e.slice(0,Za)}…`):e;if("object"==typeof e)try{const t=ve(e,7);return JSON.stringify(t).length>Za?(n=!0,`${JSON.stringify(t,null,2).slice(0,Za)}…`):t}catch(e){}return e}));return il({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return il(t)}(t);n&&Kg(e,n)};function IA(e){const t=Ye(),n=He();t.addScopeListener(cA(e)),Bn(gl(e)),Wt(Wl(e)),AA(e);const r=Zl(e,!uA(n));n&&n.addEventProcessor?n.addEventProcessor(r):function(e){const t=He();t&&t.addEventProcessor&&t.addEventProcessor(e)}(r),uA(n)&&(n.on("beforeSendEvent",Ul(e)),n.on("afterSendEvent",Vl(e)),n.on("createDsc",(t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}function uA(e){return!(!e||!e.on)}function dA(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function hA(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(dl&&c.warn("[Replay] Received replay event after session expired."));const i=r||!t;t=!0,e.clickDetector&&rl(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Ml(e,n,i))return!0;if(!i)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Ml(e,function(e){const t=e.getOptions();return{type:eg.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(hl(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Ol(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function fA({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const a=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:g,traceIds:l,initialTimestamp:A}=r,C=He(),c=Ye(),I=C&&C.getTransport(),u=C&&C.getDsn();if(!(C&&I&&u&&o.sampled))return;const d={type:"replay_event",replay_start_timestamp:A/1e3,timestamp:i/1e3,error_ids:g,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},h=await async function({client:e,scope:t,replayId:n,event:r}){const i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",r,i);const o=await je(e.getOptions(),r,i,t,e,ut());if(!o)return null;o.platform=o.platform||"javascript";const a=e.getSdkMetadata&&e.getSdkMetadata(),{name:s,version:g}=a&&a.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:g||"0.0.0"},o}({scope:c,client:C,replayId:t,event:d});if(!h)return C.recordDroppedEvent("event_processor","replay",d),void hl("An event processor returned `null`, will not send event.");delete h.sdkProcessingMetadata;const f=function(e,t,n,r){return qt(sn(e,an(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(h,a,u,C.getOptions().tunnel);let p;try{p=await I.send(f)}catch(e){const t=new Error(Va);try{t.cause=e}catch(e){}throw t}if(!p)return p;if("number"==typeof p.statusCode&&(p.statusCode<200||p.statusCode>=300))throw new pA(p.statusCode);const m=Kr({},p);if(Yr(m,"replay"))throw new mA(m);return p}class pA extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class mA extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function vA(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;var i,o;if(n.length)try{return await fA(e),!0}catch(n){if(n instanceof pA||n instanceof mA)throw n;if(i="Replays",o={_retryCount:t.count},It().setContext(i,o),dl&&r._experiments&&r._experiments.captureExceptions&&Ue(n),t.count>=3){const e=new Error(`${Va} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await vA(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const yA="__THROTTLED";function bA(e,t,n){const r=new Map;let i=!1;return(...o)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{ne+t),0)>=t){const e=i;return i=!0,e?"__SKIPPED":yA}i=!1;const s=r.get(a)||0;return r.set(a,s+1),e(...o)}}class wA{constructor({options:e,recordingOptions:t}){wA.prototype.__init.call(this),wA.prototype.__init2.call(this),wA.prototype.__init3.call(this),wA.prototype.__init4.call(this),wA.prototype.__init5.call(this),wA.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,o;const a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return g(),r=e(),r}function g(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function l(){return i&&clearTimeout(i),i=setTimeout(s,t),a&&void 0===o&&(o=setTimeout(s,a)),r}return l.cancel=g,l.flush=function(){return void 0!==i||void 0!==o?s():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=bA(((e,t)=>function(e,t,n){return Fl(e,t)?Ll(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new el(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",fl(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");fl("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Dl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");fl("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Dl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Wg({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:hA(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{hl("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,kl(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),hl("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),hl("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();hl("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Nl(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Ba.location.pathname}${Ba.location.hash}${Ba.location.search}`,t=`${Ba.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===yA){const e=il({category:"replay.throttled"});this.addUpdate((()=>!Ml(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Ye().getTransaction(),t=(e&&Le(e).data||{})[oi];if(e&&t&&["route","custom"].includes(t))return Le(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=xl({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){dl&&c.error("[Replay]",e),dl&&this._options._experiments&&this._options._experiments.captureExceptions&&Ue(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Dl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Pl(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Ba.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ba.addEventListener("blur",this._handleWindowBlur),Ba.addEventListener("focus",this._handleWindowFocus),Ba.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(IA(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=ul(this)}_removeListeners(){try{Ba.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ba.removeEventListener("blur",this._handleWindowBlur),Ba.removeEventListener("focus",this._handleWindowFocus),Ba.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Ba.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=il({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=il({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Al(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;_l(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):hl("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:eg.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=function(e){return e.map(cl).filter(Boolean)}(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Gl(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await vA({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=He();t&&t.recordDroppedEvent("send_error","replay")}}else dl&&c.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(dl&&c.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=nthis._options.maxReplayDuration+5e3;if(r||i)return hl(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&hl("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){dl&&c.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ol(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=il({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function xA(e,t,n,r){const i=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&i.push(`.${n}`),C((()=>{}))),i.join(",")}const EA='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',kA=["content-length","content-type","accept"];let SA=!1;const TA=e=>new OA(e);class OA{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},sessionSampleRate:g,errorSampleRate:l,maskAllText:A=!0,maskAllInputs:C=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:I=750,mutationLimit:u=1e4,slowClickTimeout:d=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:f=[],networkDetailDenyUrls:p=[],networkCaptureBodies:m=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:w=["title","placeholder"],unmask:x=[],block:E=[],unblock:k=[],ignore:S=[],maskFn:T,beforeAddRecordingEvent:O,beforeErrorSampling:R,blockClass:N,blockSelector:_,maskInputOptions:P,maskTextClass:D,maskTextSelector:M,ignoreClass:L}={}){this.name=OA.id;const F=function({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:o,blockSelector:a,maskTextClass:s,maskTextSelector:g,ignoreClass:l}){const A={maskTextSelector:xA(e,[".sentry-mask","[data-sentry-mask]"],s,g),unmaskTextSelector:xA(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:xA(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,a),unblockSelector:xA(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:xA(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return o instanceof RegExp&&(A.blockClass=o),s instanceof RegExp&&(A.maskTextClass=s),A}({mask:b,unmask:x,block:E,unblock:k,ignore:S,blockClass:N,blockSelector:_,maskTextClass:D,maskTextSelector:M,ignoreClass:L});if(this._recordingOptions={maskAllInputs:C,maskAllText:A,maskInputOptions:{...P||{},password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return r?i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:w,maskAllText:A,privacyOptions:F,key:e,value:t,el:n}),...F,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,Wa),stickySession:i,sessionSampleRate:g,errorSampleRate:l,useCompression:o,workerUrl:a,blockAllMedia:c,maskAllInputs:C,maskAllText:A,mutationBreadcrumbLimit:I,mutationLimit:u,slowClickTimeout:d,slowClickIgnoreSelectors:h,networkDetailAllowUrls:f,networkDetailDenyUrls:p,networkCaptureBodies:m,networkRequestHeaders:RA(v),networkResponseHeaders:RA(y),beforeAddRecordingEvent:O,beforeErrorSampling:R,_experiments:s},"number"==typeof g&&(this._initialOptions.sessionSampleRate=g),"number"==typeof l&&(this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${EA}`:EA),this._isInitialized&&la())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return SA}set _isInitialized(e){SA=e}setupOnce(){la()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=He(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Z(e)};if(!n)return C((()=>{})),r;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&C((()=>{}));"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate);return r}(this._initialOptions);this._replay=new wA({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=He().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function RA(e){return[...kA,...e.map((e=>e.toLowerCase()))]}OA.__initStatic();function NA(){return NA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zA(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=_A.Pop,g=null,l=A();function A(){return(a.state||{idx:null}).idx}function C(){s=_A.Pop;let e=A(),t=null==e?null:e-l;l=e,g&&g({action:s,location:I.location,delta:t})}function c(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:jA(e);return n=n.replace(/ $/,"%20"),DA(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==l&&(l=0,a.replaceState(NA({},a.state,{idx:l}),""));let I={get action(){return s},get location(){return e(i,a)},listen(e){if(g)throw new Error("A history only accepts one active listener");return i.addEventListener(PA,C),g=e,()=>{i.removeEventListener(PA,C),g=null}},createHref:e=>t(i,e),createURL:c,encodeLocation(e){let t=c(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=_A.Push;let r=FA(I.location,e,t);n&&n(r,e),l=A()+1;let C=LA(r,l),c=I.createHref(r);try{a.pushState(C,"",c)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(c)}o&&g&&g({action:s,location:I.location,delta:1})},replace:function(e,t){s=_A.Replace;let r=FA(I.location,e,t);n&&n(r,e),l=A();let i=LA(r,l),C=I.createHref(r);a.replaceState(i,"",C),o&&g&&g({action:s,location:I.location,delta:0})},go:e=>a.go(e)};return I}var VA;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(VA||(VA={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function UA(e,t,n){return void 0===n&&(n="/"),ZA(e,t,n,!1)}function ZA(e,t,n,r){let i=rC(("string"==typeof t?BA(t):t).pathname||"/",n);if(null==i)return null;let o=GA(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let e=0;null==a&&e{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(DA(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=gC([r,a.relativePath]),g=n.concat(a);e.children&&e.children.length>0&&(DA(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),GA(e.children,t,g,s)),(null!=e.path||e.index)&&t.push({path:s,score:$A(s,e.index),routesMeta:g})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of WA(e.path))i(e,t,n);else i(e,t)})),t}function WA(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=WA(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const HA=/^:[\w-]+$/,YA=3,KA=2,QA=1,XA=10,qA=-2,JA=e=>"*"===e;function $A(e,t){let n=e.split("/"),r=n.length;return n.some(JA)&&(r+=qA),t&&(r+=KA),n.filter((e=>!JA(e))).reduce(((e,t)=>e+(HA.test(t)?YA:""===t?QA:XA)),r)}function eC(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1),g=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const g=s[n];return e[r]=i&&!g?void 0:(g||"").replace(/%2F/g,"/"),e}),{});return{params:g,pathname:o,pathnameBase:a,pattern:e}}function nC(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return MA(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function rC(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function iC(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function oC(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function aC(e,t){let n=oC(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function sC(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=BA(e):(i=NA({},e),DA(!i.pathname||!i.pathname.includes("?"),iC("?","pathname","search",i)),DA(!i.pathname||!i.pathname.includes("#"),iC("#","pathname","hash",i)),DA(!i.search||!i.search.includes("#"),iC("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let g=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?BA(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:AC(r),hash:CC(i)}}(i,o),l=s&&"/"!==s&&s.endsWith("/"),A=(a||"."===s)&&n.endsWith("/");return g.pathname.endsWith("/")||!l&&!A||(g.pathname+="/"),g}const gC=e=>e.join("/").replace(/\/\/+/g,"/"),lC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AC=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",CC=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function cC(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const IC=["post","put","patch","delete"],uC=(new Set(IC),["get",...IC]);new Set(uC),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let r=Jo.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,dC({fromRouteId:t},i)))}),[e,t]);return r}():function(){bC()||DA(!1);let e=Jo.useContext(hC),{basename:t,future:n,navigator:r}=Jo.useContext(pC),{matches:i}=Jo.useContext(vC),{pathname:o}=wC(),a=JSON.stringify(aC(i,n.v7_relativeSplatPath)),s=Jo.useRef(!1);xC((()=>{s.current=!0}));let g=Jo.useCallback((function(n,i){if(void 0===i&&(i={}),!s.current)return;if("number"==typeof n)return void r.go(n);let g=sC(n,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(g.pathname="/"===g.pathname?t:gC([t,g.pathname])),(i.replace?r.replace:r.push)(g,i.state,i)}),[t,r,a,o,e]);return g}()}const kC=Jo.createContext(null);function SC(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=Jo.useContext(pC),{matches:i}=Jo.useContext(vC),{pathname:o}=wC(),a=JSON.stringify(aC(i,r.v7_relativeSplatPath));return Jo.useMemo((()=>sC(e,JSON.parse(a),o,"path"===n)),[e,a,o,n])}function TC(e,t,n,r){bC()||DA(!1);let{navigator:i}=Jo.useContext(pC),{matches:o}=Jo.useContext(vC),a=o[o.length-1],s=a?a.params:{},g=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let l,A=wC();if(t){var C;let e="string"==typeof t?BA(t):t;"/"===g||(null==(C=e.pathname)?void 0:C.startsWith(g))||DA(!1),l=e}else l=A;let c=l.pathname||"/",I=c;if("/"!==g){let e=g.replace(/^\//,"").split("/");I="/"+c.replace(/^\//,"").split("/").slice(e.length).join("/")}let u=UA(e,{pathname:I});let d=PC(u&&u.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:gC([g,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:gC([g,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);return t&&d?Jo.createElement(mC.Provider,{value:{location:dC({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:_A.Pop}},d):d}function OC(){let e=function(){var e;let t=Jo.useContext(yC),n=FC(MC.UseRouteError),r=jC(MC.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=cC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return Jo.createElement(Jo.Fragment,null,Jo.createElement("h2",null,"Unexpected Application Error!"),Jo.createElement("h3",{style:{fontStyle:"italic"}},t),n?Jo.createElement("pre",{style:i},n):null,null)}const RC=Jo.createElement(OC,null);class NC extends Jo.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){}render(){return void 0!==this.state.error?Jo.createElement(vC.Provider,{value:this.props.routeContext},Jo.createElement(yC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _C(e){let{routeContext:t,match:n,children:r}=e,i=Jo.useContext(hC);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),Jo.createElement(vC.Provider,{value:t},r)}function PC(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let a=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||DA(!1),a=a.slice(0,Math.min(a.length,e+1))}let g=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e=0?a.slice(0,l+1):[a[0]];break}}}return a.reduceRight(((e,r,i)=>{let o,A=!1,C=null,c=null;var I;n&&(o=s&&r.route.id?s[r.route.id]:void 0,C=r.route.errorElement||RC,g&&(l<0&&0===i?(I="route-fallback",!1||BC[I]||(BC[I]=!0),A=!0,c=null):l===i&&(A=!0,c=r.route.hydrateFallbackElement||null)));let u=t.concat(a.slice(0,i+1)),d=()=>{let t;return t=o?C:A?c:r.route.Component?Jo.createElement(r.route.Component,null):r.route.element?r.route.element:e,Jo.createElement(_C,{match:r,routeContext:{outlet:e,matches:u,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?Jo.createElement(NC,{location:n.location,revalidation:n.revalidation,component:C,error:o,children:d(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):d()}),null)}var DC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(DC||{}),MC=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(MC||{});function LC(e){let t=Jo.useContext(hC);return t||DA(!1),t}function FC(e){let t=Jo.useContext(fC);return t||DA(!1),t}function jC(e){let t=function(){let e=Jo.useContext(vC);return e||DA(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||DA(!1),n.route.id}const BC={};const zC={};const VC=(e,t,n)=>{var r;zC[r="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+n+"."]||(zC[r]=!0)};function UC(e,t){null!=e&&e.v7_startTransition||VC("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),null!=e&&e.v7_relativeSplatPath||t&&t.v7_relativeSplatPath||VC("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||VC("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||VC("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||VC("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||VC("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}$o.startTransition;function ZC(e){return function(e){let t=Jo.useContext(vC).outlet;return t?Jo.createElement(kC.Provider,{value:e},t):t}(e.context)}function GC(e){DA(!1)}function WC(e){let{basename:t="/",children:n=null,location:r,navigationType:i=_A.Pop,navigator:o,static:a=!1,future:s}=e;bC()&&DA(!1);let g=t.replace(/^\/*/,"/"),l=Jo.useMemo((()=>({basename:g,navigator:o,static:a,future:dC({v7_relativeSplatPath:!1},s)})),[g,s,o,a]);"string"==typeof r&&(r=BA(r));let{pathname:A="/",search:C="",hash:c="",state:I=null,key:u="default"}=r,d=Jo.useMemo((()=>{let e=rC(A,g);return null==e?null:{location:{pathname:e,search:C,hash:c,state:I,key:u},navigationType:i}}),[g,A,C,c,I,u,i]);return null==d?null:Jo.createElement(pC.Provider,{value:l},Jo.createElement(mC.Provider,{children:n,value:d}))}function HC(e){let{children:t,location:n}=e;return TC(YC(t),n)}new Promise((()=>{}));Jo.Component;function YC(e,t){void 0===t&&(t=[]);let n=[];return Jo.Children.forEach(e,((e,r)=>{if(!Jo.isValidElement(e))return;let i=[...t,r];if(e.type===Jo.Fragment)return void n.push.apply(n,YC(e.props.children,i));e.type!==GC&&DA(!1),e.props.index&&e.props.children&&DA(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=YC(e.props.children,i)),n.push(o)})),n}!function(e){const t={...e};pn(t,"react"),ti(t)}({dsn:"https://6fe214881fe5713445937c8f65357ee5@o4505458059116544.ingest.us.sentry.io/4507697059135488",integrations:[function(e){const t=Ho({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:i,createRoutesFromChildren:o,matchRoutes:a,stripBasename:s,instrumentPageLoad:g=!0,instrumentNavigation:l=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e);const A=On&&On.location&&On.location.pathname;g&&A&&Yo(e,{name:A,attributes:{[oi]:"url",[si]:"pageload",[gi]:"auto.pageload.react.reactrouter_v6"}}),ea=n,ta=r,na=i,ia=a,ra=o,sa=s||!1,oa=t=>{Ko(e,t)},aa=l}}}({useEffect:Jo.useEffect,useLocation:wC,useNavigationType:function(){return Jo.useContext(mC).navigationType},createRoutesFromChildren:YC,matchRoutes:UA}),(e=>new Ma(e))({colorScheme:"system",isNameRequired:!0,isEmailRequired:!0}),TA()],tracesSampleRate:1,tracePropagationTargets:[/^https:\/\/bom-squad\.com\/api/],profilesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});n(1323);var KC=n(115),QC=n.n(KC),XC=n(311),qC=n.n(XC),JC=n(2833),$C=n.n(JC),ec=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(ec||{}),tc={rel:["amphtml","canonical","alternate"]},nc={type:["application/ld+json"]},rc={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},ic=Object.values(ec),oc={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ac=Object.entries(oc).reduce(((e,[t,n])=>(e[n]=t,e)),{}),sc="data-rh",gc="defaultTitle",lc="defer",Ac="encodeSpecialCharacters",Cc="onChangeClientState",cc="titleTemplate",Ic="prioritizeSeoTags",uc=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},dc=e=>{let t=uc(e,"title");const n=uc(e,cc);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=uc(e,gc);return t||r||void 0},hc=e=>uc(e,Cc)||(()=>{}),fc=(e,t)=>t.filter((t=>void 0!==t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),pc=(e,t)=>t.filter((e=>void 0!==e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let i=0;i{const r={};return n.filter((t=>!!Array.isArray(t[e])||(void 0!==t[e]&&(t[e],console&&console.warn),!1))).map((t=>t[e])).reverse().reduce(((e,n)=>{const i={};n.filter((e=>{let n;const o=Object.keys(e);for(let r=0;re.push(t)));const o=Object.keys(i);for(let e=0;e{if(Array.isArray(e)&&e.length)for(let n=0;nArray.isArray(e)?e.join(""):e,bc=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r({...e,[t]:void 0}),xc=["noscript","script","style"],Ec=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),kc=e=>Object.keys(e).reduce(((t,n)=>{const r=void 0!==e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),Sc=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[oc[n]||n]=e[n],t)),t),Tc=(e,t)=>t.map(((t,n)=>{const r={key:n,[sc]:!0};return Object.keys(t).forEach((e=>{const n=oc[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:e}}else r[n]=t[e]})),Jo.createElement(e,r)})),Oc=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const r=Sc(n,{key:t,[sc]:!0});return[Jo.createElement("title",r,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const i=kc(n),o=yc(t);return i?`<${e} ${sc}="true" ${i}>${Ec(o,r)}`:`<${e} ${sc}="true">${Ec(o,r)}`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Sc(t),toString:()=>kc(t)};default:return{toComponent:()=>Tc(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,r)=>{const i=r,o=Object.keys(i).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r=void 0===i[t]?t:`${t}="${Ec(i[t],n)}"`;return e?`${e} ${r}`:r}),""),a=i.innerHTML||i.cssText||"",s=-1===xc.indexOf(e);return`${t}<${e} ${sc}="true" ${o}${s?"/>":`>${a}`}`}),""))(e,t,n)}}},Rc=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:g,prioritizeSeoTags:l}=e;let{linkTags:A,metaTags:C,scriptTags:c}=e,I={toComponent:()=>{},toString:()=>""};return l&&({priorityMethods:I,linkTags:A,metaTags:C,scriptTags:c}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=bc(e,rc),o=bc(t,tc),a=bc(n,nc);return{priorityMethods:{toComponent:()=>[...Tc("meta",i.priority),...Tc("link",o.priority),...Tc("script",a.priority)],toString:()=>`${Oc("meta",i.priority,r)} ${Oc("link",o.priority,r)} ${Oc("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}})(e)),{priority:I,base:Oc("base",t,r),bodyAttributes:Oc("bodyAttributes",n,r),htmlAttributes:Oc("htmlAttributes",i,r),link:Oc("link",A,r),meta:Oc("meta",C,r),noscript:Oc("noscript",o,r),script:Oc("script",c,r),style:Oc("style",a,r),title:Oc("title",{title:s,titleAttributes:g},r)}},Nc=[],_c=!("undefined"==typeof window||!window.document||!window.document.createElement),Pc=class{instances=[];canUseDOM=_c;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Nc:this.instances,add:e=>{(this.canUseDOM?Nc:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Nc:this.instances).indexOf(e);(this.canUseDOM?Nc:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Rc({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Dc=Jo.createContext({}),Mc=class e extends Jo.Component{static canUseDOM=_c;helmetData;constructor(t){super(t),this.helmetData=new Pc(this.props.context||{},e.canUseDOM)}render(){return Jo.createElement(Dc.Provider,{value:this.helmetData.value},this.props.children)}},Lc=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${sc}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,i=void 0===t[r]?"":t[r];n.setAttribute(e,i)}n.setAttribute(sc,"true"),i.some(((e,t)=>(a=t,n.isEqualNode(e))))?i.splice(a,1):o.push(n)})),i.forEach((e=>e.parentNode?.removeChild(e))),o.forEach((e=>n.appendChild(e))),{oldTags:i,newTags:o}},Fc=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(sc),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const e of a){const r=t[e]||"";n.getAttribute(e)!==r&&n.setAttribute(e,r),-1===i.indexOf(e)&&i.push(e);const a=o.indexOf(e);-1!==a&&o.splice(a,1)}for(let e=o.length-1;e>=0;e-=1)n.removeAttribute(o[e]);i.length===o.length?n.removeAttribute(sc):n.getAttribute(sc)!==a.join(",")&&n.setAttribute(sc,a.join(","))},jc=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:g,scriptTags:l,styleTags:A,title:C,titleAttributes:c}=e;Fc("body",r),Fc("html",i),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=yc(e)),Fc("title",t)})(C,c);const I={baseTag:Lc("base",n),linkTags:Lc("link",o),metaTags:Lc("meta",a),noscriptTags:Lc("noscript",s),scriptTags:Lc("script",l),styleTags:Lc("style",A)},u={},d={};Object.keys(I).forEach((e=>{const{newTags:t,oldTags:n}=I[e];t.length&&(u[e]=t),n.length&&(d[e]=I[e].oldTags)})),t&&t(),g(e,u,d)},Bc=null,zc=e=>{Bc&&cancelAnimationFrame(Bc),e.defer?Bc=requestAnimationFrame((()=>{jc(e,(()=>{Bc=null}))})):(jc(e),Bc=null)},Vc=class extends Jo.Component{rendered=!1;shouldComponentUpdate(e){return!$C()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(i=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:pc(["href"],i),bodyAttributes:fc("bodyAttributes",i),defer:uc(i,lc),encode:uc(i,Ac),htmlAttributes:fc("htmlAttributes",i),linkTags:mc("link",["rel","href"],i),metaTags:mc("meta",["name","charset","http-equiv","property","itemprop"],i),noscriptTags:mc("noscript",["innerHTML"],i),onChangeClientState:hc(i),scriptTags:mc("script",["src","innerHTML"],i),styleTags:mc("style",["cssText"],i),title:dc(i),titleAttributes:fc("titleAttributes",i),prioritizeSeoTags:vc(i,Ic)});var i;Mc.canUseDOM?zc(r):Rc&&(n=Rc(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Uc=class extends Jo.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!QC()(wc(this.props,"helmetData"),wc(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return qC()(ic.some((t=>e.type===t)),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${ic.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),qC()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((e=>"string"!=typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return Jo.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...i}=e.props,o=Object.keys(i).reduce(((e,t)=>(e[ac[t]||t]=i[t],e)),{});let{type:a}=e;switch("symbol"==typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,o,r);break;default:t=this.mapObjectTypeChildren(e,t,o,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Pc)){r=new Pc(r.context,!0),delete n.helmetData}return r?Jo.createElement(Vc,{...n,context:r.value}):Jo.createElement(Dc.Consumer,null,(e=>Jo.createElement(Vc,{...n,context:e})))}},Zc="undefined"==typeof window||"Deno"in globalThis;function Gc(){}function Wc(e){return"number"==typeof e&&e>=0&&e!==1/0}function Hc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yc(e,t){return"function"==typeof e?e(t):e}function Kc(e,t){return"function"==typeof e?e(t):e}function Qc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==qc(a,t.options))return!1}else if(!$c(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Xc(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Jc(t.options.mutationKey)!==Jc(o))return!1}else if(!$c(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function qc(e,t){return((null==t?void 0:t.queryKeyHashFn)||Jc)(e)}function Jc(e){return JSON.stringify(e,((e,t)=>rI(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function $c(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!$c(e[n],t[n]))))}function eI(e,t){if(e===t)return e;const n=nI(e)&&nI(t);if(n||rI(e)&&rI(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let g=0;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:0;const r=[...e,t];return n&&r.length>n?r.slice(1):r}function sI(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gI=Symbol();function lI(e,t){return!e.queryFn&&null!=t&&t.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==gI?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var AI=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r{e(...n)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),CI=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cI=new class extends CI{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Zc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){var e;this.hasListeners()||(null===(e=this.#t)||void 0===e||e.call(this),this.#t=void 0)}setEventListener(e){var t;this.#n=e,null===(t=this.#t)||void 0===t||t.call(this),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var e;return"boolean"==typeof this.#e?this.#e:"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}},II=new class extends CI{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Zc&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){var e;this.hasListeners()||(null===(e=this.#t)||void 0===e||e.call(this),this.#t=void 0)}setEventListener(e){var t;this.#n=e,null===(t=this.#t)||void 0===t||t.call(this),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function uI(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function dI(e){return Math.min(1e3*2**e,3e4)}function hI(e){return"online"!==(null!=e?e:"online")||II.isOnline()}var fI=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function pI(e){return e instanceof fI}function mI(e){let t,n=!1,r=0,i=!1;const o=uI(),a=()=>cI.isFocused()&&("always"===e.networkMode||II.isOnline())&&e.canRun(),s=()=>hI(e.networkMode)&&e.canRun(),g=n=>{var r,a;i||(i=!0,null===(r=e.onSuccess)||void 0===r||r.call(e,n),null===(a=t)||void 0===a||a(),o.resolve(n))},l=n=>{var r,a;i||(i=!0,null===(r=e.onError)||void 0===r||r.call(e,n),null===(a=t)||void 0===a||a(),o.reject(n))},A=()=>new Promise((n=>{var r;t=e=>{(i||a())&&n(e)},null===(r=e.onPause)||void 0===r||r.call(e)})).then((()=>{var n;(t=void 0,i)||(null===(n=e.onContinue)||void 0===n||n.call(e))})),C=()=>{if(i)return;let t;const o=0===r?e.initialPromise:void 0;try{t=null!=o?o:e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch((t=>{var o,s,g;if(i)return;const c=null!==(o=e.retry)&&void 0!==o?o:Zc?0:3,I=null!==(s=e.retryDelay)&&void 0!==s?s:dI,u="function"==typeof I?I(r,t):I,d=!0===c||"number"==typeof c&&r{setTimeout(e,h)}))).then((()=>a()?void 0:A())).then((()=>{n?l(t):C()}))):l(t)}))};return{promise:o,cancel:t=>{var n;i||(l(new fI(t)),null===(n=e.abort)||void 0===n||n.call(e))},continue:()=>{var e;return null===(e=t)||void 0===e||e(),o},cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?C():A().then(C),o)}}var vI=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wc(this.gcTime)&&(this.#i=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!=e?e:Zc?1/0:3e5)}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},yI=class extends vI{#o;#a;#s;#g;#l;#A;constructor(e){var t;super(),this.#A=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=null!==(t=e.state)&&void 0!==t?t:this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=this.#g)||void 0===e?void 0:e.promise}setOptions(e){this.options={...this.#l,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=oI(this.state.data,e,this.options);return this.#C({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.#C({type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null===(t=this.#g)||void 0===t?void 0:t.promise;return null===(n=this.#g)||void 0===n||n.cancel(e),r?r.then(Gc).catch(Gc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some((e=>!1!==Kc(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gI||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||void 0===this.state.data||!Hc(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null===(e=this.#g)||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null===(e=this.#g)||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#g&&(this.#A?this.#g.cancel({revert:!0}):this.#g.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#C({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.#g)return this.#g.continueRetry(),this.#g.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#A=!0,i.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=lI(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return o(n),this.#A=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};var s;(o(a),null===(n=this.options.behavior)||void 0===n||n.onFetch(a,this),this.#a=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(r=a.fetchOptions)||void 0===r?void 0:r.meta))&&this.#C({type:"fetch",meta:null===(s=a.fetchOptions)||void 0===s?void 0:s.meta});const g=e=>{var t,n,r,i;(pI(e)&&e.silent||this.#C({type:"error",error:e}),pI(e))||(null===(t=(n=this.#s.config).onError)||void 0===t||t.call(n,e,this),null===(r=(i=this.#s.config).onSettled)||void 0===r||r.call(i,this.state.data,e,this));this.scheduleGc()};return this.#g=mI({initialPromise:null==t?void 0:t.initialPromise,fn:a.fetchFn,abort:i.abort.bind(i),onSuccess:e=>{var t,n,r,i;if(void 0!==e){try{this.setData(e)}catch(e){return void g(e)}null===(t=(n=this.#s.config).onSuccess)||void 0===t||t.call(n,e,this),null===(r=(i=this.#s.config).onSettled)||void 0===r||r.call(i,e,this.state.error,this),this.scheduleGc()}else g(new Error(`${this.queryHash} data is undefined`))},onError:g,onFail:(e,t)=>{this.#C({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#C({type:"pause"})},onContinue:()=>{this.#C({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#g.start()}#C(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...bI(t.data,this.options),fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!==(r=e.dataUpdatedAt)&&void 0!==r?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return pI(i)&&i.revert&&this.#a?{...this.#a,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),AI.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#s.notify({query:this,type:"updated",action:e})}))}};function bI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hI(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var wI=class extends CI{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config=e,this.#c=new Map}#c;build(e,t,n){var r;const i=t.queryKey,o=null!==(r=t.queryHash)&&void 0!==r?r:qc(i,t);let a=this.get(o);return a||(a=new yI({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.#c.has(e.queryHash)||(this.#c.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#c.get(e.queryHash);t&&(e.destroy(),t===e&&this.#c.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){AI.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#c.get(e)}getAll(){return[...this.#c.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Qc(t,e)))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Qc(e,t))):t}notify(e){AI.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){AI.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){AI.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},xI=class extends vI{#I;#u;#g;constructor(e){super(),this.mutationId=e.mutationId,this.#u=e.mutationCache,this.#I=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#I.includes(e)||(this.#I.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#I=this.#I.filter((t=>t!==e)),this.scheduleGc(),this.#u.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#I.length||("pending"===this.state.status?this.scheduleGc():this.#u.remove(this))}continue(){var e,t;return null!==(e=null===(t=this.#g)||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){var t;this.#g=mI({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#C({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#C({type:"pause"})},onContinue:()=>{this.#C({type:"continue"})},retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#u.canRun(this)});const n="pending"===this.state.status,r=!this.#g.canStart();try{var i,o,a,s,g,l,A,C;if(!n){var c,I,u,d;this.#C({type:"pending",variables:e,isPaused:r}),await(null===(c=(I=this.#u.config).onMutate)||void 0===c?void 0:c.call(I,e,this));const t=await(null===(u=(d=this.options).onMutate)||void 0===u?void 0:u.call(d,e));t!==this.state.context&&this.#C({type:"pending",context:t,variables:e,isPaused:r})}const t=await this.#g.start();return await(null===(i=(o=this.#u.config).onSuccess)||void 0===i?void 0:i.call(o,t,e,this.state.context,this)),await(null===(a=(s=this.options).onSuccess)||void 0===a?void 0:a.call(s,t,e,this.state.context)),await(null===(g=(l=this.#u.config).onSettled)||void 0===g?void 0:g.call(l,t,null,this.state.variables,this.state.context,this)),await(null===(A=(C=this.options).onSettled)||void 0===A?void 0:A.call(C,t,null,e,this.state.context)),this.#C({type:"success",data:t}),t}catch(t){try{var h,f,p,m,v,y,b,w;throw await(null===(h=(f=this.#u.config).onError)||void 0===h?void 0:h.call(f,t,e,this.state.context,this)),await(null===(p=(m=this.options).onError)||void 0===p?void 0:p.call(m,t,e,this.state.context)),await(null===(v=(y=this.#u.config).onSettled)||void 0===v?void 0:v.call(y,void 0,t,this.state.variables,this.state.context,this)),await(null===(b=(w=this.options).onSettled)||void 0===b?void 0:b.call(w,void 0,t,e,this.state.context)),t}finally{this.#C({type:"error",error:t})}}finally{this.#u.runNext(this)}}#C(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),AI.batch((()=>{this.#I.forEach((t=>{t.onMutationUpdate(e)})),this.#u.notify({mutation:this,type:"updated",action:e})}))}};var EI=class extends CI{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.config=e,this.#d=new Map,this.#h=Date.now()}#d;#h;build(e,t,n){const r=new xI({mutationCache:this,mutationId:++this.#h,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){var t;const n=kI(e),r=null!==(t=this.#d.get(n))&&void 0!==t?t:[];r.push(e),this.#d.set(n,r),this.notify({type:"added",mutation:e})}remove(e){const t=kI(e);if(this.#d.has(t)){var n;const r=null===(n=this.#d.get(t))||void 0===n?void 0:n.filter((t=>t!==e));r&&(0===r.length?this.#d.delete(t):this.#d.set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null===(t=this.#d.get(kI(e)))||void 0===t?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t,n;const r=null===(t=this.#d.get(kI(e)))||void 0===t?void 0:t.find((t=>t!==e&&t.state.isPaused));return null!==(n=null==r?void 0:r.continue())&&void 0!==n?n:Promise.resolve()}clear(){AI.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...this.#d.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Xc(t,e)))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter((t=>Xc(e,t)))}notify(e){AI.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return AI.batch((()=>Promise.all(e.map((e=>e.continue().catch(Gc))))))}};function kI(e){var t,n;return null!==(t=null===(n=e.options.scope)||void 0===n?void 0:n.id)&&void 0!==t?t:String(e.mutationId)}function SI(e){return{onFetch:(t,n)=>{var r,i,o,a,s;const g=t.options,l=null===(r=t.fetchOptions)||void 0===r||null===(i=r.meta)||void 0===i||null===(o=i.fetchMore)||void 0===o?void 0:o.direction,A=(null===(a=t.state.data)||void 0===a?void 0:a.pages)||[],C=(null===(s=t.state.data)||void 0===s?void 0:s.pageParams)||[];let c={pages:[],pageParams:[]},I=0;const u=async()=>{let n=!1;const r=lI(t.options,t.fetchOptions),i=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)})})(a);const s=await r(a),{maxPages:g}=t.options,l=o?sI:aI;return{pages:l(e.pages,s,g),pageParams:l(e.pageParams,i,g)}};if(l&&A.length){const e="backward"===l,t={pages:A,pageParams:C},n=(e?OI:TI)(g,t);c=await i(t,n,e)}else{const t=null!=e?e:A.length;do{var o;const e=0===I?null!==(o=C[0])&&void 0!==o?o:g.initialPageParam:TI(g,c);if(I>0&&null==e)break;c=await i(c,e),I++}while(I{var e,r;return null===(e=(r=t.options).persister)||void 0===e?void 0:e.call(r,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function TI(e,t){let{pages:n,pageParams:r}=t;const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function OI(e,t){var n;let{pages:r,pageParams:i}=t;return r.length>0?null===(n=e.getPreviousPageParam)||void 0===n?void 0:n.call(e,r[0],r,i[0],i):void 0}function RI(e,t){return!!t&&null!=TI(e,t)}function NI(e,t){return!(!t||!e.getPreviousPageParam)&&null!=OI(e,t)}var _I=n(4848),PI=Jo.createContext(void 0),DI=e=>{const t=Jo.useContext(PI);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MI=e=>{let{client:t,children:n}=e;return Jo.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]),(0,_I.jsx)(PI.Provider,{value:t,children:n})},LI=(n(6259),n(3757)),FI=n(6942),jI=n.n(FI);const BI=Object.freeze({INVENTORY:"inventory",SHOPPING:"shopping",SHOPPING_ANON:"shopping_anon"}),zI=e=>{let{useHook:t,hookArgs:n,replaceZero:r=!0,classNames:i="",hideLoadingTag:o=!1}=e;const[a,s]=Jo.useState(),{data:g,isLoading:l,error:A}=t(...Object.values(n));return(0,Jo.useEffect)((()=>{s(g)}),[g]),l&&!o?Jo.createElement("div",{className:"text-center text-gray-500 animate-pulse"},"Loading..."):l&&o?Jo.createElement("div",{className:"text-center text-gray-500 animate-pulse"},"-"):A?Jo.createElement("div",null,"Error: ",A.message):Jo.createElement("span",{className:jI()("font-bold",i,{"text-[#548a6a]":0!==a,"text-gray-500":0===a})},0===a&&r?"-":a)};function VI({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const UI=Jo.forwardRef(VI);function ZI(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function GI(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return ZI((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=GI();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function WI(){let[e]=(0,Jo.useState)(GI);return(0,Jo.useEffect)((()=>()=>e.dispose()),[e]),e}var HI=Object.defineProperty,YI=(e,t,n)=>(((e,t,n)=>{t in e?HI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let KI=new class{constructor(){YI(this,"current",this.detect()),YI(this,"handoffState","pending"),YI(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},QI=(e,t)=>{KI.isServer?(0,Jo.useEffect)(e,t):(0,Jo.useLayoutEffect)(e,t)};function XI(e){let t=(0,Jo.useRef)(e);return QI((()=>{t.current=e}),[e]),t}let qI=function(e){let t=XI(e);return Jo.useCallback(((...e)=>t.current(...e)),[t])};function JI(){let e=(0,Jo.useRef)(!1);return QI((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function $I(e=0){let[t,n]=(0,Jo.useState)(e),r=JI(),i=(0,Jo.useCallback)((e=>{r.current&&n((t=>t|e))}),[t,r]),o=(0,Jo.useCallback)((e=>Boolean(t&e)),[t]),a=(0,Jo.useCallback)((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=(0,Jo.useCallback)((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}function eu(){let e=function(){let e="undefined"==typeof document;return(e=>e.useSyncExternalStore)($o)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=Jo.useState(KI.isHandoffComplete);return t&&!1===KI.isHandoffComplete&&n(!1),Jo.useEffect((()=>{!0!==t&&n(!0)}),[t]),Jo.useEffect((()=>KI.handoff()),[]),!e&&t}let tu=Symbol();function nu(...e){let t=(0,Jo.useRef)(e);(0,Jo.useEffect)((()=>{t.current=e}),[e]);let n=qI((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[tu])))?void 0:n}function ru(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ru),r}function iu(e,...t){e&&t.length>0&&e.classList.add(...t)}function ou(e,...t){e&&t.length>0&&e.classList.remove(...t)}function au(e,t,n,r){let i=n?"enter":"leave",o=GI(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===i&&(e.removeAttribute("hidden"),e.style.display="");let s=ru(i,{enter:()=>t.enter,leave:()=>t.leave}),g=ru(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=ru(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ou(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),iu(e,...t.base,...s,...l),o.nextFrame((()=>{ou(e,...t.base,...s,...l),iu(e,...t.base,...s,...g),function(e,t){let n=GI();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[o,a]=[r,i].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=o+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(ou(e,...t.base,...s),iu(e,...t.base,...t.entered),a())))})),o.dispose}function su({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:o}){let a=JI(),s=WI(),g=XI(n);QI((()=>{e&&(g.current="enter")}),[e]),QI((()=>{let e=GI();s.add(e.dispose);let n=t.current;if(n&&"idle"!==g.current&&a.current)return e.dispose(),i.current(g.current),e.add(au(n,r.current,"enter"===g.current,(()=>{e.dispose(),o.current(g.current)}))),e.dispose}),[n])}let gu=(0,Jo.createContext)(null);gu.displayName="OpenClosedContext";var lu=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(lu||{});function Au(){return(0,Jo.useContext)(gu)}function Cu({value:e,children:t}){return Jo.createElement(gu.Provider,{value:e},t)}function cu(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Iu=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Iu||{}),uu=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(uu||{});function du({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:fu;let g=pu(t,e);if(o)return hu(g,n,r,a,s);let l=null!=i?i:0;if(2&l){let{static:e=!1,...t}=g;if(e)return hu(t,n,r,a,s)}if(1&l){let{unmount:e=!0,...t}=g;return ru(e?0:1,{0:()=>null,1:()=>hu({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return hu(g,n,r,a,s)}function hu(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...g}=yu(e,["unmount","static"]),l=void 0!==e.ref?{[s]:e.ref}:{},A="function"==typeof a?a(t):a;"className"in g&&g.className&&"function"==typeof g.className&&(g.className=g.className(t));let C={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(C["data-headlessui-state"]=n.join(" "))}if(o===Jo.Fragment&&Object.keys(vu(g)).length>0){if(!(0,Jo.isValidElement)(A)||Array.isArray(A)&&A.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(g).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=A.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>cu(null==e?void 0:e.className(...t),g.className):cu(null==e?void 0:e.className,g.className),n=t?{className:t}:{};return(0,Jo.cloneElement)(A,Object.assign({},pu(A.props,vu(yu(g,["ref"]))),C,l,{ref:i(A.ref,l.ref)},n))}return(0,Jo.createElement)(o,Object.assign({},yu(g,["ref"]),o!==Jo.Fragment&&l,o!==Jo.Fragment&&C),A)}function fu(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function pu(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let i=n[e];for(let e of i){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function mu(e){var t;return Object.assign((0,Jo.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function vu(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function yu(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function bu(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let wu=(0,Jo.createContext)(null);wu.displayName="TransitionContext";var xu=(e=>(e.Visible="visible",e.Hidden="hidden",e))(xu||{});let Eu=(0,Jo.createContext)(null);function ku(e){return"children"in e?ku(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Su(e,t){let n=XI(e),r=(0,Jo.useRef)([]),i=JI(),o=WI(),a=qI(((e,t=uu.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(ru(t,{[uu.Unmount](){r.current.splice(a,1)},[uu.Hidden](){r.current[a].state="hidden"}}),o.microTask((()=>{var e;!ku(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=qI((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,uu.Unmount)})),g=(0,Jo.useRef)([]),l=(0,Jo.useRef)(Promise.resolve()),A=(0,Jo.useRef)({enter:[],leave:[],idle:[]}),C=qI(((e,n,r)=>{g.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{g.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(A.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?l.current=l.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),c=qI(((e,t,n)=>{Promise.all(A.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=g.current.shift())||e()})).then((()=>n(t)))}));return(0,Jo.useMemo)((()=>({children:r,register:s,unregister:a,onStart:C,onStop:c,wait:l,chains:A})),[s,a,r,C,c,A,l])}function Tu(){}Eu.displayName="NestingContext";let Ou=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ru(e){var t;let n={};for(let r of Ou)n[r]=null!=(t=e[r])?t:Tu;return n}let Nu=Iu.RenderStrategy;let _u=mu((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=(0,Jo.useRef)(null),s=nu(a,t);eu();let g=Au();if(void 0===n&&null!==g&&(n=(g&lu.Open)===lu.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[l,A]=(0,Jo.useState)(n?"visible":"hidden"),C=Su((()=>{A("hidden")})),[c,I]=(0,Jo.useState)(!0),u=(0,Jo.useRef)([n]);QI((()=>{!1!==c&&u.current[u.current.length-1]!==n&&(u.current.push(n),I(!1))}),[u,n]);let d=(0,Jo.useMemo)((()=>({show:n,appear:r,initial:c})),[n,r,c]);(0,Jo.useEffect)((()=>{if(n)A("visible");else if(ku(C)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&A("hidden")}else A("hidden")}),[n,C]);let h={unmount:i},f=qI((()=>{var t;c&&I(!1),null==(t=e.beforeEnter)||t.call(e)})),p=qI((()=>{var t;c&&I(!1),null==(t=e.beforeLeave)||t.call(e)}));return Jo.createElement(Eu.Provider,{value:C},Jo.createElement(wu.Provider,{value:d},du({ourProps:{...h,as:Jo.Fragment,children:Jo.createElement(Pu,{ref:s,...h,...o,beforeEnter:f,beforeLeave:p})},theirProps:{},defaultTag:Jo.Fragment,features:Nu,visible:"visible"===l,name:"Transition"})))})),Pu=mu((function(e,t){var n,r;let{beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s,enter:g,enterFrom:l,enterTo:A,entered:C,leave:c,leaveFrom:I,leaveTo:u,...d}=e,h=(0,Jo.useRef)(null),f=nu(h,t),p=null==(n=d.unmount)||n?uu.Unmount:uu.Hidden,{show:m,appear:v,initial:y}=function(){let e=(0,Jo.useContext)(wu);if(null===e)throw new Error("A is used but it is missing a parent or .");return e}(),[b,w]=(0,Jo.useState)(m?"visible":"hidden"),x=function(){let e=(0,Jo.useContext)(Eu);if(null===e)throw new Error("A is used but it is missing a parent or .");return e}(),{register:E,unregister:k}=x;(0,Jo.useEffect)((()=>E(h)),[E,h]),(0,Jo.useEffect)((()=>{if(p===uu.Hidden&&h.current)return m&&"visible"!==b?void w("visible"):ru(b,{hidden:()=>k(h),visible:()=>E(h)})}),[b,h,E,k,m,p]);let S=XI({base:bu(d.className),enter:bu(g),enterFrom:bu(l),enterTo:bu(A),entered:bu(C),leave:bu(c),leaveFrom:bu(I),leaveTo:bu(u)}),T=function(e){let t=(0,Jo.useRef)(Ru(e));return(0,Jo.useEffect)((()=>{t.current=Ru(e)}),[e]),t}({beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s}),O=eu();(0,Jo.useEffect)((()=>{if(O&&"visible"===b&&null===h.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[h,b,O]);let R=v&&m&&y,N=!O||y&&!v?"idle":m?"enter":"leave",_=$I(0),P=qI((e=>ru(e,{enter:()=>{_.addFlag(lu.Opening),T.current.beforeEnter()},leave:()=>{_.addFlag(lu.Closing),T.current.beforeLeave()},idle:()=>{}}))),D=qI((e=>ru(e,{enter:()=>{_.removeFlag(lu.Opening),T.current.afterEnter()},leave:()=>{_.removeFlag(lu.Closing),T.current.afterLeave()},idle:()=>{}}))),M=Su((()=>{w("hidden"),k(h)}),x),L=(0,Jo.useRef)(!1);su({immediate:R,container:h,classes:S,direction:N,onStart:XI((e=>{L.current=!0,M.onStart(h,e,P)})),onStop:XI((e=>{L.current=!1,M.onStop(h,e,D),"leave"===e&&!ku(M)&&(w("hidden"),k(h))}))});let F=d,j={ref:f};return R?F={...F,className:cu(d.className,...S.current.enter,...S.current.enterFrom)}:L.current&&(F.className=cu(d.className,null==(r=h.current)?void 0:r.className),""===F.className&&delete F.className),Jo.createElement(Eu.Provider,{value:M},Jo.createElement(Cu,{value:ru(b,{visible:lu.Open,hidden:lu.Closed})|_.flags},du({ourProps:j,theirProps:F,defaultTag:"div",features:Nu,visible:"visible"===b,name:"Transition.Child"})))})),Du=mu((function(e,t){let n=null!==(0,Jo.useContext)(wu),r=null!==Au();return Jo.createElement(Jo.Fragment,null,!n&&r?Jo.createElement(_u,{ref:t,...e}):Jo.createElement(Pu,{ref:t,...e}))})),Mu=Object.assign(_u,{Child:Du,Root:_u});function Lu(e,t,n,r){let i=XI(n);(0,Jo.useEffect)((()=>{function n(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function Fu(e){let t=qI(e),n=(0,Jo.useRef)(!1);(0,Jo.useEffect)((()=>(n.current=!1,()=>{n.current=!0,ZI((()=>{n.current&&t()}))})),[t])}function ju(e){return KI.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Bu(...e){return(0,Jo.useMemo)((()=>ju(...e)),[...e])}function zu(e,t,n){let r=XI(t);(0,Jo.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var Vu=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Vu||{});function Uu(e,t){let n=(0,Jo.useRef)([]),r=qI(e);(0,Jo.useEffect)((()=>{let e=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let i=r(t,e);return n.current=t,i}}),[r,...t])}var Zu=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Zu||{});let Gu=mu((function(e,t){var n;let{features:r=1,...i}=e;return du({ourProps:{ref:t,"aria-hidden":!(2&~r)||(null!=(n=i["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}},theirProps:i,slot:{},defaultTag:"div",name:"Hidden"})}));let Wu=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&Wu[0]!==e.target&&(Wu.unshift(e.target),Wu=Wu.filter((e=>null!=e&&e.isConnected)),Wu.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));let Hu=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Yu=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Yu||{}),Ku=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ku||{}),Qu=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Qu||{});function Xu(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Hu)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var qu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(qu||{});function Ju(e,t=0){var n;return e!==(null==(n=ju(e))?void 0:n.body)&&ru(t,{0:()=>e.matches(Hu),1(){let t=e;for(;null!==t;){if(t.matches(Hu))return!0;t=t.parentElement}return!1}})}var $u=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))($u||{});function ed(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let td=["textarea","input"].join(",");function nd(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?function(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:Xu(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.includes(e)))),r=null!=r?r:o.activeElement;let s,g=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),A=32&t?{preventScroll:!0}:{},C=0,c=a.length;do{if(C>=c||C+c<=0)return 0;let e=l+C;if(16&t)e=(e+c)%c;else{if(e<0)return 3;if(e>=c)return 1}s=a[e],null==s||s.focus(A),C+=g}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,td))&&n}(s)&&s.select(),2}function rd(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var id=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(id||{});let od=mu((function(e,t){let n=(0,Jo.useRef)(null),r=nu(n,t),{initialFocus:i,containers:o,features:a=30,...s}=e;eu()||(a=1);let g=Bu(n);!function({ownerDocument:e},t){let n=function(e=!0){let t=(0,Jo.useRef)(Wu.slice());return Uu((([e],[n])=>{!0===n&&!1===e&&ZI((()=>{t.current.splice(0)})),!1===n&&!0===e&&(t.current=Wu.slice())}),[e,Wu,t]),qI((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Uu((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&ed(n())}),[t]),Fu((()=>{t&&ed(n())}))}({ownerDocument:g},Boolean(16&a));let l=function({ownerDocument:e,container:t,initialFocus:n},r){let i=(0,Jo.useRef)(null),o=JI();return Uu((()=>{if(!r)return;let a=t.current;a&&ZI((()=>{if(!o.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(i.current=t)}else if(a.contains(t))return void(i.current=t);null!=n&&n.current?ed(n.current):(nd(a,Yu.First),Ku.Error),i.current=null==e?void 0:e.activeElement}))}),[r]),i}({ownerDocument:g,container:n,initialFocus:i},Boolean(2&a));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){let o=JI();Lu(null==e?void 0:e.defaultView,"focus",(e=>{if(!i||!o.current)return;let a=rd(n);t.current instanceof HTMLElement&&a.add(t.current);let s=r.current;if(!s)return;let g=e.target;g&&g instanceof HTMLElement?sd(a,g)?(r.current=g,ed(g)):(e.preventDefault(),e.stopPropagation(),ed(s)):ed(r.current)}),!0)}({ownerDocument:g,container:n,containers:o,previousActiveElement:l},Boolean(8&a));let A=function(){let e=(0,Jo.useRef)(0);return zu("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),C=qI((e=>{let t=n.current;t&&ru(A.current,{[Vu.Forwards]:()=>{nd(t,Yu.First,{skipElements:[e.relatedTarget]})},[Vu.Backwards]:()=>{nd(t,Yu.Last,{skipElements:[e.relatedTarget]})}})})),c=WI(),I=(0,Jo.useRef)(!1),u={ref:r,onKeyDown(e){"Tab"==e.key&&(I.current=!0,c.requestAnimationFrame((()=>{I.current=!1})))},onBlur(e){let t=rd(o);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(sd(t,r)||(I.current?nd(n.current,ru(A.current,{[Vu.Forwards]:()=>Yu.Next,[Vu.Backwards]:()=>Yu.Previous})|Yu.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&ed(e.target)))}};return Jo.createElement(Jo.Fragment,null,Boolean(4&a)&&Jo.createElement(Gu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:C,features:Zu.Focusable}),du({ourProps:u,theirProps:s,defaultTag:"div",name:"FocusTrap"}),Boolean(4&a)&&Jo.createElement(Gu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:C,features:Zu.Focusable}))})),ad=Object.assign(od,{features:id});function sd(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var gd=n(961),ld=n.t(gd,2);let Ad=(0,Jo.createContext)(!1);function Cd(e){return Jo.createElement(Ad.Provider,{value:e.force},e.children)}function cd(e){let t=(0,Jo.useContext)(Ad),n=(0,Jo.useContext)(dd),r=Bu(e),[i,o]=(0,Jo.useState)((()=>{if(!t&&null!==n||KI.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let i=r.createElement("div");return i.setAttribute("id","headlessui-portal-root"),r.body.appendChild(i)}));return(0,Jo.useEffect)((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),(0,Jo.useEffect)((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}let Id=Jo.Fragment;let ud=Jo.Fragment,dd=(0,Jo.createContext)(null);let hd=(0,Jo.createContext)(null);let fd=mu((function(e,t){let n=e,r=(0,Jo.useRef)(null),i=nu(function(e,t=!0){return Object.assign(e,{[tu]:t})}((e=>{r.current=e})),t),o=Bu(r),a=cd(r),[s]=(0,Jo.useState)((()=>{var e;return KI.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),g=(0,Jo.useContext)(hd),l=eu();return QI((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),QI((()=>{if(s&&g)return g.register(s)}),[g,s]),Fu((()=>{var e;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))})),l&&a&&s?(0,gd.createPortal)(du({ourProps:{ref:i},theirProps:n,defaultTag:Id,name:"Portal"}),s):null})),pd=mu((function(e,t){let{target:n,...r}=e,i={ref:nu(t)};return Jo.createElement(dd.Provider,{value:n},du({ourProps:i,theirProps:r,defaultTag:ud,name:"Popover.Group"}))})),md=Object.assign(fd,{Group:pd});const vd="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:yd,useEffect:bd,useLayoutEffect:wd,useDebugValue:xd}=$o;function Ed(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!vd(n,e)}catch{return!0}}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;const kd=(e=>e.useSyncExternalStore)($o);function Sd(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=(null!=(n=t.defaultView)?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,i=r.clientWidth-r.offsetWidth,o=e-i;n.style(r,"paddingRight",`${o}px`)}}}function Td(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Od(){return Td()||/Android/gi.test(window.navigator.userAgent)}function Rd(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Nd=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:GI(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Rd(n)},i=[Td()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=GI();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);a&&!r(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},Sd(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach((({before:e})=>null==e?void 0:e(r))),i.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function _d(e,t,n){let r=function(e){return kd(e.subscribe,e.getSnapshot,e.getSnapshot)}(Nd),i=e?r.get(e):void 0,o=!!i&&i.count>0;return QI((()=>{if(e&&t)return Nd.dispatch("PUSH",e,n),()=>Nd.dispatch("POP",e,n)}),[t,e]),o}var Pd;Nd.subscribe((()=>{let e=Nd.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Nd.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Nd.dispatch("TEARDOWN",n)}}));let Dd=null!=(Pd=Jo.useId)?Pd:function(){let e=eu(),[t,n]=Jo.useState(e?()=>KI.nextId():null);return QI((()=>{null===t&&n(KI.nextId())}),[t]),null!=t?""+t:void 0},Md=new Map,Ld=new Map;function Fd(e,t=!0){QI((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let i=null!=(n=Ld.get(r))?n:0;return Ld.set(r,i+1),0!==i||(Md.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=Ld.get(r))?e:1;if(1===t?Ld.delete(r):Ld.set(r,t-1),1!==t)return;let n=Md.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,Md.delete(r))}}),[e,t])}function jd(e,t,n){let r=XI(t);(0,Jo.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Bd(e,t,n=!0){let r=(0,Jo.useRef)(!1);function i(n,i){if(!r.current||n.defaultPrevented)return;let o=i(n);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!Ju(o,qu.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}(0,Jo.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let o=(0,Jo.useRef)(null);jd("pointerdown",(e=>{var t,n;r.current&&(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),jd("mousedown",(e=>{var t,n;r.current&&(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),jd("click",(e=>{Od()||o.current&&(i(e,(()=>o.current)),o.current=null)}),!0),jd("touchend",(e=>i(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),zu("blur",(e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}let zd=(0,Jo.createContext)((()=>{}));zd.displayName="StackContext";var Vd=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Vd||{});function Ud({children:e,onUpdate:t,type:n,element:r,enabled:i}){let o=(0,Jo.useContext)(zd),a=qI(((...e)=>{null==t||t(...e),o(...e)}));return QI((()=>{let e=void 0===i||!0===i;return e&&a(0,n,r),()=>{e&&a(1,n,r)}}),[a,n,r,i]),Jo.createElement(zd.Provider,{value:a},e)}function Zd(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}let Gd=(0,Jo.createContext)(null);function Wd(){let e=(0,Jo.useContext)(Gd);if(null===e){let e=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Wd),e}return e}function Hd(){let[e,t]=(0,Jo.useState)([]);return[e.length>0?e.join(" "):void 0,(0,Jo.useMemo)((()=>function(e){let n=qI((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,Jo.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return Jo.createElement(Gd.Provider,{value:r},e.children)}),[t])]}let Yd=mu((function(e,t){let n=Dd(),{id:r=`headlessui-description-${n}`,...i}=e,o=Wd(),a=nu(t);return QI((()=>o.register(r)),[r,o.register]),du({ourProps:{ref:a,...o.props,id:r},theirProps:i,slot:o.slot||{},defaultTag:"p",name:o.name||"Description"})})),Kd=Object.assign(Yd,{});var Qd=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Qd||{}),Xd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Xd||{}),qd=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(qd||{});let Jd={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},$d=(0,Jo.createContext)(null);function eh(e){let t=(0,Jo.useContext)($d);if(null===t){let t=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eh),t}return t}function th(e,t){return ru(t.type,Jd,e,t)}$d.displayName="DialogContext";let nh=Iu.RenderStrategy|Iu.Static;let rh=mu((function(e,t){let n=Dd(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:a,role:s="dialog",__demoMode:g=!1,...l}=e,[A,C]=(0,Jo.useState)(0),c=(0,Jo.useRef)(!1);s="dialog"===s||"alertdialog"===s?s:(c.current||(c.current=!0),"dialog");let I=Au();void 0===i&&null!==I&&(i=(I&lu.Open)===lu.Open);let u=(0,Jo.useRef)(null),d=nu(u,t),h=Bu(u),f=e.hasOwnProperty("open")||null!==I,p=e.hasOwnProperty("onClose");if(!f&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!f)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!p)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof i)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if("function"!=typeof o)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let m=i?0:1,[v,y]=(0,Jo.useReducer)(th,{titleId:null,descriptionId:null,panelRef:(0,Jo.createRef)()}),b=qI((()=>o(!1))),w=qI((e=>y({type:0,id:e}))),x=!!eu()&&(!g&&0===m),E=A>1,k=null!==(0,Jo.useContext)($d),[S,T]=function(){let e=(0,Jo.useContext)(hd),t=(0,Jo.useRef)([]),n=qI((n=>(t.current.push(n),e&&e.register(n),()=>r(n)))),r=qI((n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)})),i=(0,Jo.useMemo)((()=>({register:n,unregister:r,portals:t})),[n,r,t]);return[t,(0,Jo.useMemo)((()=>function({children:e}){return Jo.createElement(hd.Provider,{value:i},e)}),[i])]}(),O={get current(){var e;return null!=(e=v.panelRef.current)?e:u.current}},{resolveContainers:R,mainTreeNodeRef:N,MainTreeNode:_}=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let i=(0,Jo.useRef)(null!=(r=null==n?void 0:n.current)?r:null),o=Bu(i),a=qI((()=>{var n,r,a;let s=[];for(let t of e)null!==t&&(t instanceof HTMLElement?s.push(t):"current"in t&&t.current instanceof HTMLElement&&s.push(t.current));if(null!=t&&t.current)for(let e of t.current)s.push(e);for(let e of null!=(n=null==o?void 0:o.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(i.current)||e.contains(null==(a=null==(r=i.current)?void 0:r.getRootNode())?void 0:a.host)||s.some((t=>e.contains(t)))||s.push(e));return s}));return{resolveContainers:a,contains:qI((e=>a().some((t=>t.contains(e))))),mainTreeNodeRef:i,MainTreeNode:(0,Jo.useMemo)((()=>function(){return null!=n?null:Jo.createElement(Gu,{features:Zu.Hidden,ref:i})}),[i,n])}}({portals:S,defaultContainers:[O]}),P=E?"parent":"leaf",D=null!==I&&(I&lu.Closing)===lu.Closing,M=!k&&!D&&x,L=(0,Jo.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==h?void 0:h.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&(e.contains(N.current)&&e instanceof HTMLElement))))?t:null}),[N]);Fd(L,M);let F=!!E||x,j=(0,Jo.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==h?void 0:h.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(N.current)&&e instanceof HTMLElement)))?t:null}),[N]);Fd(j,F),Bd(R,(e=>{e.preventDefault(),b()}),!(!x||E));let B=!(E||0!==m);Lu(null==h?void 0:h.defaultView,"keydown",(e=>{B&&(e.defaultPrevented||e.key===Qd.Escape&&(e.preventDefault(),e.stopPropagation(),b()))})),function(e,t,n=()=>[document.body]){_d(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(h,!(D||0!==m||k),R),(0,Jo.useEffect)((()=>{if(0!==m||!u.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&b()}}));return e.observe(u.current),()=>e.disconnect()}),[m,u,b]);let[z,V]=Hd(),U=(0,Jo.useMemo)((()=>[{dialogState:m,close:b,setTitleId:w},v]),[m,v,b,w]),Z=(0,Jo.useMemo)((()=>({open:0===m})),[m]),G={ref:d,id:r,role:s,"aria-modal":0===m||void 0,"aria-labelledby":v.titleId,"aria-describedby":z};return Jo.createElement(Ud,{type:"Dialog",enabled:0===m,element:u,onUpdate:qI(((e,t)=>{"Dialog"===t&&ru(e,{[Vd.Add]:()=>C((e=>e+1)),[Vd.Remove]:()=>C((e=>e-1))})}))},Jo.createElement(Cd,{force:!0},Jo.createElement(md,null,Jo.createElement($d.Provider,{value:U},Jo.createElement(md.Group,{target:u},Jo.createElement(Cd,{force:!1},Jo.createElement(V,{slot:Z,name:"Dialog.Description"},Jo.createElement(ad,{initialFocus:a,containers:R,features:x?ru(P,{parent:ad.features.RestoreFocus,leaf:ad.features.All&~ad.features.FocusLock}):ad.features.None},Jo.createElement(T,null,du({ourProps:G,theirProps:l,slot:Z,defaultTag:"div",features:nh,visible:0===m,name:"Dialog"}))))))))),Jo.createElement(_,null))})),ih=mu((function(e,t){let n=Dd(),{id:r=`headlessui-dialog-backdrop-${n}`,...i}=e,[{dialogState:o},a]=eh("Dialog.Backdrop"),s=nu(t);(0,Jo.useEffect)((()=>{if(null===a.panelRef.current)throw new Error("A component is being used, but a component is missing.")}),[a.panelRef]);let g=(0,Jo.useMemo)((()=>({open:0===o})),[o]);return Jo.createElement(Cd,{force:!0},Jo.createElement(md,null,du({ourProps:{ref:s,id:r,"aria-hidden":!0},theirProps:i,slot:g,defaultTag:"div",name:"Dialog.Backdrop"})))})),oh=mu((function(e,t){let n=Dd(),{id:r=`headlessui-dialog-panel-${n}`,...i}=e,[{dialogState:o},a]=eh("Dialog.Panel"),s=nu(t,a.panelRef),g=(0,Jo.useMemo)((()=>({open:0===o})),[o]),l=qI((e=>{e.stopPropagation()}));return du({ourProps:{ref:s,id:r,onClick:l},theirProps:i,slot:g,defaultTag:"div",name:"Dialog.Panel"})})),ah=mu((function(e,t){let n=Dd(),{id:r=`headlessui-dialog-overlay-${n}`,...i}=e,[{dialogState:o,close:a}]=eh("Dialog.Overlay"),s=nu(t),g=qI((e=>{if(e.target===e.currentTarget){if(Zd(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}));return du({ourProps:{ref:s,id:r,"aria-hidden":!0,onClick:g},theirProps:i,slot:(0,Jo.useMemo)((()=>({open:0===o})),[o]),defaultTag:"div",name:"Dialog.Overlay"})})),sh=mu((function(e,t){let n=Dd(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:a}]=eh("Dialog.Title"),s=nu(t);(0,Jo.useEffect)((()=>(a(r),()=>a(null))),[r,a]);let g=(0,Jo.useMemo)((()=>({open:0===o})),[o]);return du({ourProps:{ref:s,id:r},theirProps:i,slot:g,defaultTag:"h2",name:"Dialog.Title"})})),gh=Object.assign(rh,{Backdrop:ih,Panel:oh,Overlay:ah,Title:sh,Description:Kd});function lh({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Ah=Jo.forwardRef(lh),Ch=e=>{let{backgroundColor:t="",title:n,headerClasses:r="",borderColor:i="",bgColor:o="bg-white",rounded:a=!0,innerPadding:s="",children:g}=e;const[l,A]=(0,Jo.useState)(!1);return Jo.createElement(Jo.Fragment,null,Jo.createElement("button",{className:jI()("flex items-center w-full py-2 space-x-1 font-medium text-left text-gray-900 px-4 focus:outline-none "+(l?"justify-between":"justify-start"),a&&"rounded",i&&"border-b",t,i),onClick:()=>A(!l)},Jo.createElement("h4",{className:jI()("grow",r)},n),Jo.createElement("div",{className:"flex flex-col justify-center h-full"},Jo.createElement(Ah,{className:"h-6 w-6 transform transition-transform duration-300 "+(l?"rotate-180":"rotate-0")}))),Jo.createElement("div",{className:jI()("transition-all duration-300 overflow-y-auto rounded",{"max-h-48":l,"max-h-0":!l},o,l&&s)},g))};function ch(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ih(e){return e instanceof ch(e).Element||e instanceof Element}function uh(e){return e instanceof ch(e).HTMLElement||e instanceof HTMLElement}function dh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ch(e).ShadowRoot||e instanceof ShadowRoot)}var hh=Math.max,fh=Math.min,ph=Math.round;function mh(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function vh(){return!/^((?!chrome|android).)*safari/i.test(mh())}function yh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&uh(e)&&(i=e.offsetWidth>0&&ph(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ph(r.height)/e.offsetHeight||1);var a=(Ih(e)?ch(e):window).visualViewport,s=!vh()&&n,g=(r.left+(s&&a?a.offsetLeft:0))/i,l=(r.top+(s&&a?a.offsetTop:0))/o,A=r.width/i,C=r.height/o;return{width:A,height:C,top:l,right:g+A,bottom:l+C,left:g,x:g,y:l}}function bh(e){var t=ch(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wh(e){return e?(e.nodeName||"").toLowerCase():null}function xh(e){return((Ih(e)?e.ownerDocument:e.document)||window.document).documentElement}function Eh(e){return yh(xh(e)).left+bh(e).scrollLeft}function kh(e){return ch(e).getComputedStyle(e)}function Sh(e){var t=kh(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Th(e,t,n){void 0===n&&(n=!1);var r=uh(t),i=uh(t)&&function(e){var t=e.getBoundingClientRect(),n=ph(t.width)/e.offsetWidth||1,r=ph(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=xh(t),a=yh(e,i,n),s={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(r||!r&&!n)&&(("body"!==wh(t)||Sh(o))&&(s=function(e){return e!==ch(e)&&uh(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:bh(e);var t}(t)),uh(t)?((g=yh(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):o&&(g.x=Eh(o))),{x:a.left+s.scrollLeft-g.x,y:a.top+s.scrollTop-g.y,width:a.width,height:a.height}}function Oh(e){var t=yh(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Rh(e){return"html"===wh(e)?e:e.assignedSlot||e.parentNode||(dh(e)?e.host:null)||xh(e)}function Nh(e){return["html","body","#document"].indexOf(wh(e))>=0?e.ownerDocument.body:uh(e)&&Sh(e)?e:Nh(Rh(e))}function _h(e,t){var n;void 0===t&&(t=[]);var r=Nh(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=ch(r),a=i?[o].concat(o.visualViewport||[],Sh(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(_h(Rh(a)))}function Ph(e){return["table","td","th"].indexOf(wh(e))>=0}function Dh(e){return uh(e)&&"fixed"!==kh(e).position?e.offsetParent:null}function Mh(e){for(var t=ch(e),n=Dh(e);n&&Ph(n)&&"static"===kh(n).position;)n=Dh(n);return n&&("html"===wh(n)||"body"===wh(n)&&"static"===kh(n).position)?t:n||function(e){var t=/firefox/i.test(mh());if(/Trident/i.test(mh())&&uh(e)&&"fixed"===kh(e).position)return null;var n=Rh(e);for(dh(n)&&(n=n.host);uh(n)&&["html","body"].indexOf(wh(n))<0;){var r=kh(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Lh="top",Fh="bottom",jh="right",Bh="left",zh="auto",Vh=[Lh,Fh,jh,Bh],Uh="start",Zh="end",Gh="viewport",Wh="popper",Hh=Vh.reduce((function(e,t){return e.concat([t+"-"+Uh,t+"-"+Zh])}),[]),Yh=[].concat(Vh,[zh]).reduce((function(e,t){return e.concat([t,t+"-"+Uh,t+"-"+Zh])}),[]),Kh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qh(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var Xh={placement:"bottom",modifiers:[],strategy:"absolute"};function qh(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function of(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?tf(i):null,a=i?nf(i):null,s=n.x+n.width/2-r.width/2,g=n.y+n.height/2-r.height/2;switch(o){case Lh:t={x:s,y:n.y-r.height};break;case Fh:t={x:s,y:n.y+n.height};break;case jh:t={x:n.x+n.width,y:g};break;case Bh:t={x:n.x-r.width,y:g};break;default:t={x:n.x,y:n.y}}var l=o?rf(o):null;if(null!=l){var A="y"===l?"height":"width";switch(a){case Uh:t[l]=t[l]-(n[A]/2-r[A]/2);break;case Zh:t[l]=t[l]+(n[A]/2-r[A]/2)}}return t}const af={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=of({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var sf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gf(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,g=e.gpuAcceleration,l=e.adaptive,A=e.roundOffsets,C=e.isFixed,c=a.x,I=void 0===c?0:c,u=a.y,d=void 0===u?0:u,h="function"==typeof A?A({x:I,y:d}):{x:I,y:d};I=h.x,d=h.y;var f=a.hasOwnProperty("x"),p=a.hasOwnProperty("y"),m=Bh,v=Lh,y=window;if(l){var b=Mh(n),w="clientHeight",x="clientWidth";if(b===ch(n)&&"static"!==kh(b=xh(n)).position&&"absolute"===s&&(w="scrollHeight",x="scrollWidth"),i===Lh||(i===Bh||i===jh)&&o===Zh)v=Fh,d-=(C&&b===y&&y.visualViewport?y.visualViewport.height:b[w])-r.height,d*=g?1:-1;if(i===Bh||(i===Lh||i===Fh)&&o===Zh)m=jh,I-=(C&&b===y&&y.visualViewport?y.visualViewport.width:b[x])-r.width,I*=g?1:-1}var E,k=Object.assign({position:s},l&&sf),S=!0===A?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ph(n*i)/i||0,y:ph(r*i)/i||0}}({x:I,y:d},ch(n)):{x:I,y:d};return I=S.x,d=S.y,g?Object.assign({},k,((E={})[v]=p?"0":"",E[m]=f?"0":"",E.transform=(y.devicePixelRatio||1)<=1?"translate("+I+"px, "+d+"px)":"translate3d("+I+"px, "+d+"px, 0)",E)):Object.assign({},k,((t={})[v]=p?d+"px":"",t[m]=f?I+"px":"",t.transform="",t))}const lf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,g=void 0===s||s,l={placement:tf(t.placement),variation:nf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,gf(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:g})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,gf(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:g})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const Af={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];uh(i)&&wh(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});uh(r)&&wh(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};const Cf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Yh.reduce((function(e,n){return e[n]=function(e,t,n){var r=tf(e),i=[Bh,Lh].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Bh,jh].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],g=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=g,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}};var cf={left:"right",right:"left",bottom:"top",top:"bottom"};function If(e){return e.replace(/left|right|bottom|top/g,(function(e){return cf[e]}))}var uf={start:"end",end:"start"};function df(e){return e.replace(/start|end/g,(function(e){return uf[e]}))}function hf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ff(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pf(e,t,n){return t===Gh?ff(function(e,t){var n=ch(e),r=xh(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,g=0;if(i){o=i.width,a=i.height;var l=vh();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,g=i.offsetTop)}return{width:o,height:a,x:s+Eh(e),y:g}}(e,n)):Ih(t)?function(e,t){var n=yh(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ff(function(e){var t,n=xh(e),r=bh(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=hh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=hh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Eh(e),g=-r.scrollTop;return"rtl"===kh(i||n).direction&&(s+=hh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:g}}(xh(e)))}function mf(e,t,n,r){var i="clippingParents"===t?function(e){var t=_h(Rh(e)),n=["absolute","fixed"].indexOf(kh(e).position)>=0&&uh(e)?Mh(e):e;return Ih(n)?t.filter((function(e){return Ih(e)&&hf(e,n)&&"body"!==wh(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=pf(e,n,r);return t.top=hh(i.top,t.top),t.right=fh(i.right,t.right),t.bottom=fh(i.bottom,t.bottom),t.left=hh(i.left,t.left),t}),pf(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function vf(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function yf(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function bf(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,g=void 0===s?"clippingParents":s,l=n.rootBoundary,A=void 0===l?Gh:l,C=n.elementContext,c=void 0===C?Wh:C,I=n.altBoundary,u=void 0!==I&&I,d=n.padding,h=void 0===d?0:d,f=vf("number"!=typeof h?h:yf(h,Vh)),p=c===Wh?"reference":Wh,m=e.rects.popper,v=e.elements[u?p:c],y=mf(Ih(v)?v:v.contextElement||xh(e.elements.popper),g,A,a),b=yh(e.elements.reference),w=of({reference:b,element:m,strategy:"absolute",placement:i}),x=ff(Object.assign({},m,w)),E=c===Wh?x:b,k={top:y.top-E.top+f.top,bottom:E.bottom-y.bottom+f.bottom,left:y.left-E.left+f.left,right:E.right-y.right+f.right},S=e.modifiersData.offset;if(c===Wh&&S){var T=S[i];Object.keys(k).forEach((function(e){var t=[jh,Fh].indexOf(e)>=0?1:-1,n=[Lh,Fh].indexOf(e)>=0?"y":"x";k[e]+=T[n]*t}))}return k}const wf={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,g=n.fallbackPlacements,l=n.padding,A=n.boundary,C=n.rootBoundary,c=n.altBoundary,I=n.flipVariations,u=void 0===I||I,d=n.allowedAutoPlacements,h=t.options.placement,f=tf(h),p=g||(f===h||!u?[If(h)]:function(e){if(tf(e)===zh)return[];var t=If(e);return[df(e),t,df(t)]}(h)),m=[h].concat(p).reduce((function(e,n){return e.concat(tf(n)===zh?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,g=n.allowedAutoPlacements,l=void 0===g?Yh:g,A=nf(r),C=A?s?Hh:Hh.filter((function(e){return nf(e)===A})):Vh,c=C.filter((function(e){return l.indexOf(e)>=0}));0===c.length&&(c=C);var I=c.reduce((function(t,n){return t[n]=bf(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[tf(n)],t}),{});return Object.keys(I).sort((function(e,t){return I[e]-I[t]}))}(t,{placement:n,boundary:A,rootBoundary:C,padding:l,flipVariations:u,allowedAutoPlacements:d}):n)}),[]),v=t.rects.reference,y=t.rects.popper,b=new Map,w=!0,x=m[0],E=0;E=0,R=O?"width":"height",N=bf(t,{placement:k,boundary:A,rootBoundary:C,altBoundary:c,padding:l}),_=O?T?jh:Bh:T?Fh:Lh;v[R]>y[R]&&(_=If(_));var P=If(_),D=[];if(o&&D.push(N[S]<=0),s&&D.push(N[_]<=0,N[P]<=0),D.every((function(e){return e}))){x=k,w=!1;break}b.set(k,D)}if(w)for(var M=function(e){var t=m.find((function(t){var n=b.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},L=u?3:1;L>0;L--){if("break"===M(L))break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xf(e,t,n){return hh(e,fh(t,n))}const Ef={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,g=n.boundary,l=n.rootBoundary,A=n.altBoundary,C=n.padding,c=n.tether,I=void 0===c||c,u=n.tetherOffset,d=void 0===u?0:u,h=bf(t,{boundary:g,rootBoundary:l,padding:C,altBoundary:A}),f=tf(t.placement),p=nf(t.placement),m=!p,v=rf(f),y="x"===v?"y":"x",b=t.modifiersData.popperOffsets,w=t.rects.reference,x=t.rects.popper,E="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(b){if(o){var O,R="y"===v?Lh:Bh,N="y"===v?Fh:jh,_="y"===v?"height":"width",P=b[v],D=P+h[R],M=P-h[N],L=I?-x[_]/2:0,F=p===Uh?w[_]:x[_],j=p===Uh?-x[_]:-w[_],B=t.elements.arrow,z=I&&B?Oh(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=V[R],Z=V[N],G=xf(0,w[_],z[_]),W=m?w[_]/2-L-G-U-k.mainAxis:F-G-U-k.mainAxis,H=m?-w[_]/2+L+G+Z+k.mainAxis:j+G+Z+k.mainAxis,Y=t.elements.arrow&&Mh(t.elements.arrow),K=Y?"y"===v?Y.clientTop||0:Y.clientLeft||0:0,Q=null!=(O=null==S?void 0:S[v])?O:0,X=P+H-Q,q=xf(I?fh(D,P+W-Q-K):D,P,I?hh(M,X):M);b[v]=q,T[v]=q-P}if(s){var J,$="x"===v?Lh:Bh,ee="x"===v?Fh:jh,te=b[y],ne="y"===y?"height":"width",re=te+h[$],ie=te-h[ee],oe=-1!==[Lh,Bh].indexOf(f),ae=null!=(J=null==S?void 0:S[y])?J:0,se=oe?re:te-w[ne]-x[ne]-ae+k.altAxis,ge=oe?te+w[ne]+x[ne]-ae-k.altAxis:ie,le=I&&oe?function(e,t,n){var r=xf(e,t,n);return r>n?n:r}(se,te,ge):xf(I?se:re,te,I?ge:ie);b[y]=le,T[y]=le-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]};const kf={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=tf(n.placement),g=rf(s),l=[Bh,jh].indexOf(s)>=0?"height":"width";if(o&&a){var A=function(e,t){return vf("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:yf(e,Vh))}(i.padding,n),C=Oh(o),c="y"===g?Lh:Bh,I="y"===g?Fh:jh,u=n.rects.reference[l]+n.rects.reference[g]-a[g]-n.rects.popper[l],d=a[g]-n.rects.reference[g],h=Mh(o),f=h?"y"===g?h.clientHeight||0:h.clientWidth||0:0,p=u/2-d/2,m=A[c],v=f-C[l]-A[I],y=f/2-C[l]/2+p,b=xf(m,y,v),w=g;n.modifiersData[r]=((t={})[w]=b,t.centerOffset=b-y,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&hf(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sf(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tf(e){return[Lh,jh,Fh,Bh].some((function(t){return e[t]>=0}))}const Of={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=bf(t,{elementContext:"reference"}),s=bf(t,{altBoundary:!0}),g=Sf(a,r),l=Sf(s,i,o),A=Tf(g),C=Tf(l);t.modifiersData[n]={referenceClippingOffsets:g,popperEscapeOffsets:l,isReferenceHidden:A,hasPopperEscaped:C},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":A,"data-popper-escaped":C})}};var Rf=Jh({defaultModifiers:[ef,af,lf,Af,Cf,wf,Ef,kf,Of]}),Nf="tippy-content",_f="tippy-backdrop",Pf="tippy-arrow",Df="tippy-svg-arrow",Mf={passive:!0,capture:!0},Lf=function(){return document.body};function Ff(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function jf(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Bf(e,t){return"function"==typeof e?e.apply(void 0,t):e}function zf(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Vf(e){return[].concat(e)}function Uf(e,t){-1===e.indexOf(t)&&e.push(t)}function Zf(e){return e.split("-")[0]}function Gf(e){return[].slice.call(e)}function Wf(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Hf(){return document.createElement("div")}function Yf(e){return["Element","Fragment"].some((function(t){return jf(e,t)}))}function Kf(e){return jf(e,"MouseEvent")}function Qf(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Xf(e){return Yf(e)?[e]:function(e){return jf(e,"NodeList")}(e)?Gf(e):Array.isArray(e)?e:Gf(document.querySelectorAll(e))}function qf(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Jf(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function $f(e){var t,n=Vf(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function ep(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function tp(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var np={isTouch:!1},rp=0;function ip(){np.isTouch||(np.isTouch=!0,window.performance&&document.addEventListener("mousemove",op))}function op(){var e=performance.now();e-rp<20&&(np.isTouch=!1,document.removeEventListener("mousemove",op)),rp=e}function ap(){var e=document.activeElement;if(Qf(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var sp=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var gp={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},lp=Object.assign({appendTo:Lf,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},gp,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ap=Object.keys(lp);function Cp(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=lp[i])?r:o);return t}),{});return Object.assign({},e,t)}function cp(e,t){var n=Object.assign({},t,{content:Bf(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Cp(Object.assign({},lp,{plugins:t}))):Ap).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},lp.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ip(e,t){e.innerHTML=t}function up(e){var t=Hf();return!0===e?t.className=Pf:(t.className=Df,Yf(e)?t.appendChild(e):Ip(t,e)),t}function dp(e,t){Yf(t.content)?(Ip(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ip(e,t.content):e.textContent=t.content)}function hp(e){var t=e.firstElementChild,n=Gf(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Nf)})),arrow:n.find((function(e){return e.classList.contains(Pf)||e.classList.contains(Df)})),backdrop:n.find((function(e){return e.classList.contains(_f)}))}}function fp(e){var t=Hf(),n=Hf();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Hf();function i(n,r){var i=hp(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||dp(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(up(r.arrow))):o.appendChild(up(r.arrow)):s&&o.removeChild(s)}return r.className=Nf,r.setAttribute("data-state","hidden"),dp(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}fp.$$tippy=!0;var pp=1,mp=[],vp=[];function yp(e,t){var n,r,i,o,a,s,g,l,A=cp(e,Object.assign({},lp,Cp(Wf(t)))),C=!1,c=!1,I=!1,u=!1,d=[],h=zf(Y,A.interactiveDebounce),f=pp++,p=(l=A.plugins).filter((function(e,t){return l.indexOf(e)===t})),m={id:f,reference:e,popper:Hf(),popperInstance:null,props:A,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:p,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){0;if(m.state.isDestroyed)return;P("onBeforeUpdate",[m,t]),W();var n=m.props,r=cp(e,Object.assign({},n,Wf(t),{ignoreAttributes:!0}));m.props=r,G(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),h=zf(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Vf(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");M(),_(),b&&b(n,r);m.popperInstance&&(q(),$().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));P("onAfterUpdate",[m,t])},setContent:function(e){m.setProps({content:e})},show:function(){0;var e=m.state.isVisible,t=m.state.isDestroyed,n=!m.state.isEnabled,r=np.isTouch&&!m.props.touch,i=Ff(m.props.duration,0,lp.duration);if(e||t||n||r)return;if(T().hasAttribute("disabled"))return;if(P("onShow",[m],!1),!1===m.props.onShow(m))return;m.state.isVisible=!0,S()&&(y.style.visibility="visible");_(),z(),m.state.isMounted||(y.style.transition="none");if(S()){var o=R();qf([o.box,o.content],0)}s=function(){var e;if(m.state.isVisible&&!u){if(u=!0,y.offsetHeight,y.style.transition=m.props.moveTransition,S()&&m.props.animation){var t=R(),n=t.box,r=t.content;qf([n,r],i),Jf([n,r],"visible")}D(),M(),Uf(vp,m),null==(e=m.popperInstance)||e.forceUpdate(),P("onMount",[m]),m.props.animation&&S()&&function(e,t){U(e,t)}(i,(function(){m.state.isShown=!0,P("onShown",[m])}))}},function(){var e,t=m.props.appendTo,n=T();e=m.props.interactive&&t===Lf||"parent"===t?n.parentNode:Bf(t,[n]);e.contains(y)||e.appendChild(y);m.state.isMounted=!0,q(),!1}()},hide:function(){0;var e=!m.state.isVisible,t=m.state.isDestroyed,n=!m.state.isEnabled,r=Ff(m.props.duration,1,lp.duration);if(e||t||n)return;if(P("onHide",[m],!1),!1===m.props.onHide(m))return;m.state.isVisible=!1,m.state.isShown=!1,u=!1,C=!1,S()&&(y.style.visibility="hidden");if(L(),V(),_(!0),S()){var i=R(),o=i.box,a=i.content;m.props.animation&&(qf([o,a],r),Jf([o,a],"hidden"))}D(),M(),m.props.animation?S()&&function(e,t){U(e,(function(){!m.state.isVisible&&y.parentNode&&y.parentNode.contains(y)&&t()}))}(r,m.unmount):m.unmount()},hideWithInteractivity:function(e){0;O().addEventListener("mousemove",h),Uf(mp,h),h(e)},enable:function(){m.state.isEnabled=!0},disable:function(){m.hide(),m.state.isEnabled=!1},unmount:function(){0;m.state.isVisible&&m.hide();if(!m.state.isMounted)return;J(),$().forEach((function(e){e._tippy.unmount()})),y.parentNode&&y.parentNode.removeChild(y);vp=vp.filter((function(e){return e!==m})),m.state.isMounted=!1,P("onHidden",[m])},destroy:function(){0;if(m.state.isDestroyed)return;m.clearDelayTimeouts(),m.unmount(),W(),delete e._tippy,m.state.isDestroyed=!0,P("onDestroy",[m])}};if(!A.render)return m;var v=A.render(m),y=v.popper,b=v.onUpdate;y.setAttribute("data-tippy-root",""),y.id="tippy-"+m.id,m.popper=y,e._tippy=m,y._tippy=m;var w=p.map((function(e){return e.fn(m)})),x=e.hasAttribute("aria-expanded");return G(),M(),_(),P("onCreate",[m]),A.showOnCreate&&ee(),y.addEventListener("mouseenter",(function(){m.props.interactive&&m.state.isVisible&&m.clearDelayTimeouts()})),y.addEventListener("mouseleave",(function(){m.props.interactive&&m.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",h)})),m;function E(){var e=m.props.touch;return Array.isArray(e)?e:[e,0]}function k(){return"hold"===E()[0]}function S(){var e;return!(null==(e=m.props.render)||!e.$$tippy)}function T(){return g||e}function O(){var e=T().parentNode;return e?$f(e):document}function R(){return hp(y)}function N(e){return m.state.isMounted&&!m.state.isVisible||np.isTouch||o&&"focus"===o.type?0:Ff(m.props.delay,e?0:1,lp.delay)}function _(e){void 0===e&&(e=!1),y.style.pointerEvents=m.props.interactive&&!e?"":"none",y.style.zIndex=""+m.props.zIndex}function P(e,t,n){var r;(void 0===n&&(n=!0),w.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=m.props)[e].apply(r,t)}function D(){var t=m.props.aria;if(t.content){var n="aria-"+t.content,r=y.id;Vf(m.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(m.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function M(){!x&&m.props.aria.expanded&&Vf(m.props.triggerTarget||e).forEach((function(e){m.props.interactive?e.setAttribute("aria-expanded",m.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function L(){O().removeEventListener("mousemove",h),mp=mp.filter((function(e){return e!==h}))}function F(t){if(!np.isTouch||!I&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!m.props.interactive||!tp(y,n)){if(Vf(m.props.triggerTarget||e).some((function(e){return tp(e,n)}))){if(np.isTouch)return;if(m.state.isVisible&&m.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[m,t]);!0===m.props.hideOnClick&&(m.clearDelayTimeouts(),m.hide(),c=!0,setTimeout((function(){c=!1})),m.state.isMounted||V())}}}function j(){I=!0}function B(){I=!1}function z(){var e=O();e.addEventListener("mousedown",F,!0),e.addEventListener("touchend",F,Mf),e.addEventListener("touchstart",B,Mf),e.addEventListener("touchmove",j,Mf)}function V(){var e=O();e.removeEventListener("mousedown",F,!0),e.removeEventListener("touchend",F,Mf),e.removeEventListener("touchstart",B,Mf),e.removeEventListener("touchmove",j,Mf)}function U(e,t){var n=R().box;function r(e){e.target===n&&(ep(n,"remove",r),t())}if(0===e)return t();ep(n,"remove",a),ep(n,"add",r),a=r}function Z(t,n,r){void 0===r&&(r=!1),Vf(m.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),d.push({node:e,eventType:t,handler:n,options:r})}))}function G(){var e;k()&&(Z("touchstart",H,{passive:!0}),Z("touchend",K,{passive:!0})),(e=m.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(Z(e,H),e){case"mouseenter":Z("mouseleave",K);break;case"focus":Z(sp?"focusout":"blur",Q);break;case"focusin":Z("focusout",Q)}}))}function W(){d.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),d=[]}function H(e){var t,n=!1;if(m.state.isEnabled&&!X(e)&&!c){var r="focus"===(null==(t=o)?void 0:t.type);o=e,g=e.currentTarget,M(),!m.state.isVisible&&Kf(e)&&mp.forEach((function(t){return t(e)})),"click"===e.type&&(m.props.trigger.indexOf("mouseenter")<0||C)&&!1!==m.props.hideOnClick&&m.state.isVisible?n=!0:ee(e),"click"===e.type&&(C=!n),n&&!r&&te(e)}}function Y(e){var t=e.target,n=T().contains(t)||y.contains(t);if("mousemove"!==e.type||!n){var r=$().concat(y).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:A}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=Zf(i.placement),s=i.modifiersData.offset;if(!s)return!0;var g="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,A="right"===a?s.left.x:0,C="left"===a?s.right.x:0,c=t.top-r+g>o,I=r-t.bottom-l>o,u=t.left-n+A>o,d=n-t.right-C>o;return c||I||u||d}))})(r,e)&&(L(),te(e))}}function K(e){X(e)||m.props.trigger.indexOf("click")>=0&&C||(m.props.interactive?m.hideWithInteractivity(e):te(e))}function Q(e){m.props.trigger.indexOf("focusin")<0&&e.target!==T()||m.props.interactive&&e.relatedTarget&&y.contains(e.relatedTarget)||te(e)}function X(e){return!!np.isTouch&&k()!==e.type.indexOf("touch")>=0}function q(){J();var t=m.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,g=S()?hp(y).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||T()}:e,A={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=R().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},C=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},A];S()&&g&&C.push({name:"arrow",options:{element:g,padding:3}}),C.push.apply(C,(null==n?void 0:n.modifiers)||[]),m.popperInstance=Rf(l,y,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:C}))}function J(){m.popperInstance&&(m.popperInstance.destroy(),m.popperInstance=null)}function $(){return Gf(y.querySelectorAll("[data-tippy-root]"))}function ee(e){m.clearDelayTimeouts(),e&&P("onTrigger",[m,e]),z();var t=N(!0),r=E(),i=r[0],o=r[1];np.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){m.show()}),t):m.show()}function te(e){if(m.clearDelayTimeouts(),P("onUntrigger",[m,e]),m.state.isVisible){if(!(m.props.trigger.indexOf("mouseenter")>=0&&m.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&C)){var t=N(!1);t?r=setTimeout((function(){m.state.isVisible&&m.hide()}),t):i=requestAnimationFrame((function(){m.hide()}))}}else V()}}function bp(e,t){void 0===t&&(t={});var n=lp.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",ip,Mf),window.addEventListener("blur",ap);var r=Object.assign({},t,{plugins:n}),i=Xf(e).reduce((function(e,t){var n=t&&yp(t,r);return n&&e.push(n),e}),[]);return Yf(e)?i[0]:i}bp.defaultProps=lp,bp.setDefaultProps=function(e){Object.keys(e).forEach((function(t){lp[t]=e[t]}))},bp.currentInput=np;Object.assign({},Af,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});bp.setDefaultProps({render:fp});const wp=bp;function xp(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var Ep="undefined"!=typeof window&&"undefined"!=typeof document;function kp(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Sp(){return Ep&&document.createElement("div")}function Tp(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!Tp(e[n],t[n]))return!1}return!0}return!1}function Op(e){var t=[];return e.forEach((function(e){t.find((function(t){return Tp(e,t)}))||t.push(e)})),t}function Rp(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Op([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var Np=Ep?Jo.useLayoutEffect:Jo.useEffect;function _p(e){var t=(0,Jo.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Pp(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Dp={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Pp(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Pp(t,"remove",e.props.className)},onAfterUpdate:r}}};function Mp(e){return function(t){var n=t.children,r=t.content,i=t.visible,o=t.singleton,a=t.render,s=t.reference,g=t.disabled,l=void 0!==g&&g,A=t.ignoreAttributes,C=void 0===A||A,c=(t.__source,t.__self,xp(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),I=void 0!==i,u=void 0!==o,d=(0,Jo.useState)(!1),h=d[0],f=d[1],p=(0,Jo.useState)({}),m=p[0],v=p[1],y=(0,Jo.useState)(),b=y[0],w=y[1],x=_p((function(){return{container:Sp(),renders:1}})),E=Object.assign({ignoreAttributes:C},c,{content:x.container});I&&(E.trigger="manual",E.hideOnClick=!1),u&&(l=!0);var k=E,S=E.plugins||[];a&&(k=Object.assign({},E,{plugins:u&&null!=o.data?[].concat(S,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,w(n.content)}}}}]):S,render:function(){return{popper:x.container}}}));var T=[s].concat(n?[n.type]:[]);return Np((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||x.ref||Sp(),Object.assign({},k,{plugins:[Dp].concat(E.plugins||[])}));return x.instance=n,l&&n.disable(),i&&n.show(),u&&o.hook({instance:n,content:r,props:k,setSingletonContent:w}),f(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),T),Np((function(){var e;if(1!==x.renders){var t=x.instance;t.setProps(Rp(t.props,k)),null==(e=t.popperInstance)||e.forceUpdate(),l?t.disable():t.enable(),I&&(i?t.show():t.hide()),u&&o.hook({instance:t,content:r,props:k,setSingletonContent:w})}else x.renders++})),Np((function(){var e;if(a){var t=x.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;m.placement===n.placement&&m.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&m.escaped===(null==r?void 0:r.hasPopperEscaped)||v({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[m.placement,m.referenceHidden,m.escaped].concat(T)),Jo.createElement(Jo.Fragment,null,n?(0,Jo.cloneElement)(n,{ref:function(e){x.ref=e,kp(n.ref,e)}}):null,h&&(0,gd.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(m),b,x.instance):r,x.container))}}var Lp=function(e,t){return(0,Jo.forwardRef)((function(n,r){var i=n.children,o=xp(n,["children"]);return Jo.createElement(e,Object.assign({},t,o),i?(0,Jo.cloneElement)(i,{ref:function(e){kp(r,e),kp(i.ref,e)}}):null)}))};const Fp=Lp(Mp(wp)),jp={lg:"rounded-md px-3 py-2 text-sm",md:"rounded-md px-2.5 py-1.5 text-sm",sm:"rounded px-2 py-1 text-sm",xl:"rounded-md px-3.5 py-2.5 text-sm",xs:"rounded px-2 py-1 text-xs"},Bp={lg:"rounded-md p-3",md:"rounded-md p-2.5",sm:"rounded p-2",xl:"rounded-md p-3.5",xs:"rounded p-1.5"},zp={lg:"w-6 h-6",md:"w-5 h-5",sm:"w-4 h-4",xl:"w-7 h-7",xs:"w-3 h-3"},Vp={danger:"bg-red-500 hover:bg-red-700 text-white",light:"bg-white border-2 border-gray-400 text-gray-500 hover:border-gray-600 hover:text-gray-700",link:"text-gray-500 hover:text-red-500",linkBlue:"text-blue-500 hover:text-blue-700",muted:"bg-gray-400 text-white hover:bg-gray-500",mutedHoverPrimary:"bg-gray-400 text-white hover:bg-[#548a6a]",none:"text-white",primary:"bg-[#548a6a] hover:bg-[#406a4c] text-white",submit:"bg-blue-500 hover:bg-blue-700 text-white"},Up=e=>{let{size:t="md",variant:n="primary",onClick:r,classNames:i="",Icon:o,Image:a,imageAlt:s="",iconLocation:g="left",iconOnly:l=!1,tooltipText:A,expandOnHover:C=!1,children:c}=e;const I=l?Bp[t]:jp[t],u=Vp[n];return l||C?Jo.createElement(Fp,{content:A,disabled:!A},Jo.createElement("button",{"aria-label":c?c.toString():"",className:jI()("flex items-center justify-center group transition-all duration-700 overflow-hidden",I,u,i,C&&"w-auto min-w-[2.5rem] max-w-fit px-2 group-hover:px-4"),onClick:r,style:{transition:"width 0.7s ease, padding 0.7s ease"},type:"button"},o&&Jo.createElement(o,{className:jI()(zp[t],"group-hover:mr-2 transition-all duration-200")}),Jo.createElement("span",{className:jI()("transition-opacity duration-700 opacity-0 group-hover:opacity-100 whitespace-nowrap",C&&"hidden group-hover:inline")},c))):Jo.createElement("button",{className:jI()("flex gap-2 font-semibold h-min whitespace-nowrap items-center",I,u,i),onClick:r,type:"button"},o&&"left"===g&&Jo.createElement(o,{className:"w-4 h-4"}),a&&"left"===g&&Jo.createElement("img",{alt:s,className:"h-5 w-fit",src:a}),Jo.createElement("span",null,c),o&&"right"===g&&Jo.createElement(o,{className:"w-4 h-4"}),a&&"right"===g&&Jo.createElement("img",{alt:s,className:"h-5 w-fit",src:a}))};function Zp({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const Gp=Jo.forwardRef(Zp);function Wp({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Hp=Jo.forwardRef(Wp),Yp={danger:Jo.createElement(Gp,{"aria-hidden":"true",className:"w-6 h-6 text-red-600"}),info:Jo.createElement(Hp,{"aria-hidden":"true",className:"w-6 h-6 text-blue-600"}),warning:Jo.createElement(Gp,{"aria-hidden":"true",className:"w-6 h-6 text-yellow-500"})},Kp=e=>{let{open:t,setOpen:n,title:r,submitButtonText:i,onSubmit:o=()=>{},type:a="danger",buttons:s,bgOpacity:g="bg-opacity-75",backdropBlur:l,disabled:A=!1,onlyCancelButton:C=!1,children:c}=e;const I=(0,Jo.useRef)(null),u=Jo.createElement("div",{className:"w-full mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"},!C&&Jo.createElement("button",{className:jI()("inline-flex justify-center w-full px-3 py-2 text-sm font-semibold text-white rounded-md shadow-sm sm:ml-3 sm:w-auto",{"bg-red-500 hover:bg-red-700":"danger"===a,"bg-slate-500 hover:bg-slate-600":"danger"!==a}),disabled:A,onClick:()=>{o(),n(!1)},type:"button"},i),Jo.createElement("button",{className:"inline-flex justify-center w-full px-3 py-2 mt-3 text-sm font-semibold text-gray-900 bg-white rounded-md shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:mt-0 sm:w-auto",onClick:()=>n(!1),ref:I,type:"button"},"Cancel"));return Jo.createElement(Mu.Root,{as:Jo.Fragment,show:t},Jo.createElement(gh,{as:"div",className:"relative",initialFocus:I,onClose:()=>n(!1)},Jo.createElement(Mu.Child,{as:Jo.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},Jo.createElement("div",{className:jI()("fixed inset-0 z-50 transition-opacity bg-gray-500",g,l)})),Jo.createElement("div",{className:"fixed inset-0 z-50 overflow-y-auto"},Jo.createElement("div",{className:"flex items-end justify-center w-full min-h-full p-4 text-center sm:items-center sm:p-0"},Jo.createElement(Mu.Child,{as:Jo.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},Jo.createElement(gh.Panel,{className:"relative px-4 pt-5 pb-4 overflow-hidden text-left transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:w-full sm:max-w-lg md:max-w-2xl sm:p-6"},Jo.createElement("div",{className:"w-full sm:flex sm:items-start"},Jo.createElement("div",{className:jI()("flex items-center justify-center flex-shrink-0 w-12 h-12 mx-auto rounded-full sm:mx-0 sm:h-10 sm:w-10",{"bg-blue-100":"info"===a,"bg-red-100":"danger"===a,"bg-yellow-100":"warning"===a})},Yp[a]),Jo.createElement("div",{className:"w-full mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left"},Jo.createElement(gh.Title,{as:"h3",className:"text-base font-semibold leading-6 text-gray-900"},r),Jo.createElement("div",{className:"w-full mt-2"},Jo.createElement("p",{className:"text-sm text-gray-500"},c)))),s||u))))))},Qp=()=>{window.location.href=`${window.location.origin}/support/`},Xp=e=>{let{open:t,onClickSupport:n=()=>Qp(),onClickCancel:r,title:i="This is a feature for our subscribers",message:o="BOM Squad depends on our the support of our subscribers to keep our servers online. Please help support the project and get access to version history."}=e;return Jo.createElement(Kp,{open:t,title:i,type:"info",backdropBlur:"backdrop-blur-sm",buttons:Jo.createElement("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"},Jo.createElement("button",{type:"button",className:"inline-flex justify-center w-full px-3 py-2 text-sm font-semibold text-white rounded-md shadow-sm bg-slate-500 hover:bg-slate-600 sm:ml-3 sm:w-auto",onClick:n},"Support"),Jo.createElement("button",{type:"button",className:"inline-flex justify-center w-full px-3 py-2 mt-3 text-sm font-semibold text-gray-900 bg-white rounded-md shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:mt-0 sm:w-auto",onClick:r},"Cancel"))},o)};function qp({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{fillRule:"evenodd",d:"M16.72 7.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1 0 1.06l-3.75 3.75a.75.75 0 1 1-1.06-1.06l2.47-2.47H3a.75.75 0 0 1 0-1.5h16.19l-2.47-2.47a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Jp=Jo.forwardRef(qp),$p=e=>{let{color:t="bg-slate-500",border:n="border-slate-500",textColor:r="text-white",textSize:i="text-xs",showArrow:o=!0,showXMark:a=!0,onClick:s,children:g}=e;return Jo.createElement("li",{className:"flex my-0.5"},Jo.createElement("div",{className:jI()("flex pt-1 pb-1 pl-2 pr-2 no-underline rounded-full font-sans font-semibold btn-primary",n,t,r,i)},g),o&&Jo.createElement("div",{className:"flex flex-col justify-center h-full"},Jo.createElement(Jp,{className:"w-5 h-5"})))},em=e=>{var t;let{row:n,pointerEvents:r}=e;const i=null!==(t=null==n?void 0:n.locations)&&void 0!==t?t:[];return Jo.createElement("div",{className:jI()("flex",r)},i.length>0?i.map(((e,t)=>Jo.createElement($p,{border:"border-1",color:"bg-white",key:t,showArrow:t!==i.length-1,showXMark:!1,textColor:"text-slate-500"},e))):Jo.createElement("span",{className:"font-mono"},"[no location specified]"))},tm=e=>{let{data:t,onRowClicked:n,pointerEvents:r="pointer-events-auto"}=e;const i=[{cell:e=>Jo.createElement(em,{pointerEvents:r,row:e}),grow:3,name:"Location",pointerOnHover:!0,sortable:!1,wrap:!1},{maxWidth:"50px",name:"Quantity",pointerOnHover:!0,selector:e=>e.quantity,sortable:!1,wrap:!1}];return Jo.createElement(LI.Ay,{columns:i,data:t,dense:!0,highlightOnHover:!0,noHeader:!0,onRowClicked:n})};var nm=n(1099),rm=n.n(nm);function im({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const om=Jo.forwardRef(im),am=e=>{let{locationArray:t,submitLocationChange:n,showSeparateLocationsWithCommas:r=!0}=e;const[i,o]=(0,Jo.useState)([]),[a,s]=(0,Jo.useState)(!0);(0,Jo.useEffect)((()=>{t.length>0&&(o(t.join(", ")),s(!1))}),[t]);return Jo.createElement("div",{className:"flex justify-between w-full"},a?Jo.createElement("div",{className:"flex flex-col"},Jo.createElement("div",{className:"flex gap-1.5 pb-1 pt-2"},Jo.createElement("form",{className:"flex content-center w-full gap-1 align-middle"},Jo.createElement("input",{className:"block w-full rounded-md border-0 px-2 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-brandgreen-600 sm:text-sm sm:leading-6",onChange:e=>o(e.target.value),type:"text",value:i}),Jo.createElement(Up,{onClick:()=>{o([]),n([]),s(!1)},variant:"muted"},"Cancel"),Jo.createElement(Up,{onClick:e=>{e.preventDefault();const t=i.split(",").map((e=>e.trim())).filter((e=>e));t.length>0?n(t):n([]),s(!1)},type:"submit",variant:"primary"},"Update"))),r&&Jo.createElement("p",{className:"text-xs text-gray-500"},"Separate locations with commas.")):Jo.createElement("ul",{className:"flex flex-wrap w-full"},(null!=t?t:[]).length?t.map(((e,n)=>Jo.createElement($p,{key:n,onClick:()=>{},showArrow:n!==t.length-1,textSize:"text-xs"},e))):"-"),!a&&Jo.createElement("div",{className:"flex flex-col justify-center",onClick:()=>{s(!0)},role:"button"},Jo.createElement(om,{className:"w-4 h-4 stroke-slate-300 hover:stroke-pink-500"})))};var sm=class extends CI{#f;#p=void 0;#m;#v;constructor(e,t){super(),this.#f=e,this.setOptions(t),this.bindMethods(),this.#y()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.#f.defaultMutationOptions(e),tI(this.options,n)||this.#f.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#m,observer:this}),null!=n&&n.mutationKey&&this.options.mutationKey&&Jc(n.mutationKey)!==Jc(this.options.mutationKey)?this.reset():"pending"===(null===(t=this.#m)||void 0===t?void 0:t.state.status)&&this.#m.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null===(e=this.#m)||void 0===e||e.removeObserver(this))}onMutationUpdate(e){this.#y(),this.#b(e)}getCurrentResult(){return this.#p}reset(){var e;null===(e=this.#m)||void 0===e||e.removeObserver(this),this.#m=void 0,this.#y(),this.#b()}mutate(e,t){var n;return this.#v=t,null===(n=this.#m)||void 0===n||n.removeObserver(this),this.#m=this.#f.getMutationCache().build(this.#f,this.options),this.#m.addObserver(this),this.#m.execute(e)}#y(){var e,t;const n=null!==(e=null===(t=this.#m)||void 0===t?void 0:t.state)&&void 0!==e?e:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#p={...n,isPending:"pending"===n.status,isSuccess:"success"===n.status,isError:"error"===n.status,isIdle:"idle"===n.status,mutate:this.mutate,reset:this.reset}}#b(e){AI.batch((()=>{if(this.#v&&this.hasListeners()){const l=this.#p.variables,A=this.#p.context;var t,n,r,i;if("success"===(null==e?void 0:e.type))null===(t=(n=this.#v).onSuccess)||void 0===t||t.call(n,e.data,l,A),null===(r=(i=this.#v).onSettled)||void 0===r||r.call(i,e.data,null,l,A);else if("error"===(null==e?void 0:e.type)){var o,a,s,g;null===(o=(a=this.#v).onError)||void 0===o||o.call(a,e.error,l,A),null===(s=(g=this.#v).onSettled)||void 0===s||s.call(g,void 0,e.error,l,A)}}this.listeners.forEach((e=>{e(this.#p)}))}))}};function gm(e,t){return"function"==typeof e?e(...t):!!e}function lm(){}function Am(e,t){const n=DI(t),[r]=Jo.useState((()=>new sm(n,e)));Jo.useEffect((()=>{r.setOptions(e)}),[r,e]);const i=Jo.useSyncExternalStore(Jo.useCallback((e=>r.subscribe(AI.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),o=Jo.useCallback(((e,t)=>{r.mutate(e,t).catch(lm)}),[r]);if(i.error&&gm(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function Cm(e){for(var t=1;t{const t=um.call(e);return fm[t]||(fm[t]=t.slice(8,-1).toLowerCase())});var fm;const pm=e=>(e=e.toLowerCase(),t=>hm(t)===e),mm=e=>t=>typeof t===e,{isArray:vm}=Array,ym=mm("undefined");const bm=pm("ArrayBuffer");const wm=mm("string"),xm=mm("function"),Em=mm("number"),km=e=>null!==e&&"object"==typeof e,Sm=e=>{if("object"!==hm(e))return!1;const t=dm(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Tm=pm("Date"),Om=pm("File"),Rm=pm("Blob"),Nm=pm("FileList"),_m=pm("URLSearchParams"),[Pm,Dm,Mm,Lm]=["ReadableStream","Request","Response","Headers"].map(pm);function Fm(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),vm(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Bm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,zm=e=>!ym(e)&&e!==Bm;const Vm=(Um="undefined"!=typeof Uint8Array&&dm(Uint8Array),e=>Um&&e instanceof Um);var Um;const Zm=pm("HTMLFormElement"),Gm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Wm=pm("RegExp"),Hm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fm(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},Ym="abcdefghijklmnopqrstuvwxyz",Km="0123456789",Qm={DIGIT:Km,ALPHA:Ym,ALPHA_DIGIT:Ym+Ym.toUpperCase()+Km};const Xm=pm("AsyncFunction"),qm=(Jm="function"==typeof setImmediate,$m=xm(Bm.postMessage),Jm?setImmediate:$m?((e,t)=>(Bm.addEventListener("message",(({source:n,data:r})=>{n===Bm&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),Bm.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Jm,$m;const ev="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Bm):"undefined"!=typeof process&&process.nextTick||qm,tv={isArray:vm,isArrayBuffer:bm,isBuffer:function(e){return null!==e&&!ym(e)&&null!==e.constructor&&!ym(e.constructor)&&xm(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||xm(e.append)&&("formdata"===(t=hm(e))||"object"===t&&xm(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&bm(e.buffer),t},isString:wm,isNumber:Em,isBoolean:e=>!0===e||!1===e,isObject:km,isPlainObject:Sm,isReadableStream:Pm,isRequest:Dm,isResponse:Mm,isHeaders:Lm,isUndefined:ym,isDate:Tm,isFile:Om,isBlob:Rm,isRegExp:Wm,isFunction:xm,isStream:e=>km(e)&&xm(e.pipe),isURLSearchParams:_m,isTypedArray:Vm,isFileList:Nm,forEach:Fm,merge:function e(){const{caseless:t}=zm(this)&&this||{},n={},r=(r,i)=>{const o=t&&jm(n,i)||i;Sm(n[o])&&Sm(r)?n[o]=e(n[o],r):Sm(r)?n[o]=e({},r):vm(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e(Fm(t,((t,r)=>{n&&xm(t)?e[r]=Im(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&dm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:hm,kindOfTest:pm,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(vm(e))return e;let t=e.length;if(!Em(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Zm,hasOwnProperty:Gm,hasOwnProp:Gm,reduceDescriptors:Hm,freezeMethods:e=>{Hm(e,((t,n)=>{if(xm(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];xm(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return vm(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:jm,global:Bm,isContextDefined:zm,ALPHABET:Qm,generateString:(e=16,t=Qm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&xm(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(km(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=vm(e)?[]:{};return Fm(e,((e,t)=>{const o=n(e,r+1);!ym(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Xm,isThenable:e=>e&&(km(e)||xm(e))&&xm(e.then)&&xm(e.catch),setImmediate:qm,asap:ev};function nv(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}tv.inherits(nv,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:tv.toJSONObject(this.config),code:this.code,status:this.status}}});const rv=nv.prototype,iv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{iv[e]={value:e}})),Object.defineProperties(nv,iv),Object.defineProperty(rv,"isAxiosError",{value:!0}),nv.from=(e,t,n,r,i,o)=>{const a=Object.create(rv);return tv.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),nv.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const ov=nv;function av(e){return tv.isPlainObject(e)||tv.isArray(e)}function sv(e){return tv.endsWith(e,"[]")?e.slice(0,-2):e}function gv(e,t,n){return e?e.concat(t).map((function(e,t){return e=sv(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const lv=tv.toFlatObject(tv,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Av=function(e,t,n){if(!tv.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=tv.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!tv.isUndefined(t[e])}))).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&tv.isSpecCompliantForm(t);if(!tv.isFunction(i))throw new TypeError("visitor must be a function");function g(e){if(null===e)return"";if(tv.isDate(e))return e.toISOString();if(!s&&tv.isBlob(e))throw new ov("Blob is not supported. Use a Buffer instead.");return tv.isArrayBuffer(e)||tv.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(tv.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(tv.isArray(e)&&function(e){return tv.isArray(e)&&!e.some(av)}(e)||(tv.isFileList(e)||tv.endsWith(n,"[]"))&&(s=tv.toArray(e)))return n=sv(n),s.forEach((function(e,r){!tv.isUndefined(e)&&null!==e&&t.append(!0===a?gv([n],r,o):null===a?n:n+"[]",g(e))})),!1;return!!av(e)||(t.append(gv(i,n,o),g(e)),!1)}const A=[],C=Object.assign(lv,{defaultVisitor:l,convertValue:g,isVisitable:av});if(!tv.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!tv.isUndefined(n)){if(-1!==A.indexOf(n))throw Error("Circular reference detected in "+r.join("."));A.push(n),tv.forEach(n,(function(n,o){!0===(!(tv.isUndefined(n)||null===n)&&i.call(t,n,tv.isString(o)?o.trim():o,r,C))&&e(n,r?r.concat(o):[o])})),A.pop()}}(e),t};function Cv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function cv(e,t){this._pairs=[],e&&Av(e,this,t)}const Iv=cv.prototype;Iv.append=function(e,t){this._pairs.push([e,t])},Iv.toString=function(e){const t=e?function(t){return e.call(this,t,Cv)}:Cv;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const uv=cv;function dv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hv(e,t,n){if(!t)return e;const r=n&&n.encode||dv,i=n&&n.serialize;let o;if(o=i?i(t,n):tv.isURLSearchParams(t)?t.toString():new uv(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const fv=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){tv.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},pv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mv={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:uv,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},vv="undefined"!=typeof window&&"undefined"!=typeof document,yv="object"==typeof navigator&&navigator||void 0,bv=vv&&(!yv||["ReactNative","NativeScript","NS"].indexOf(yv.product)<0),wv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,xv=vv&&window.location.href||"http://localhost",Ev={...r,...mv};const kv=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&tv.isArray(r)?r.length:o,s)return tv.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&tv.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&tv.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return tv.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Sv={transitional:pv,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=tv.isObject(e);i&&tv.isHTMLForm(e)&&(e=new FormData(e));if(tv.isFormData(e))return r?JSON.stringify(kv(e)):e;if(tv.isArrayBuffer(e)||tv.isBuffer(e)||tv.isStream(e)||tv.isFile(e)||tv.isBlob(e)||tv.isReadableStream(e))return e;if(tv.isArrayBufferView(e))return e.buffer;if(tv.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Av(e,new Ev.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ev.isNode&&tv.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=tv.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Av(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(tv.isString(e))try{return(t||JSON.parse)(e),tv.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Sv.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(tv.isResponse(e)||tv.isReadableStream(e))return e;if(e&&tv.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ov.from(e,ov.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ev.classes.FormData,Blob:Ev.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};tv.forEach(["delete","get","head","post","put","patch"],(e=>{Sv.headers[e]={}}));const Tv=Sv,Ov=tv.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rv=Symbol("internals");function Nv(e){return e&&String(e).trim().toLowerCase()}function _v(e){return!1===e||null==e?e:tv.isArray(e)?e.map(_v):String(e)}function Pv(e,t,n,r,i){return tv.isFunction(r)?r.call(this,t,n):(i&&(t=n),tv.isString(t)?tv.isString(r)?-1!==t.indexOf(r):tv.isRegExp(r)?r.test(t):void 0:void 0)}class Dv{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Nv(t);if(!i)throw new Error("header name must be a non-empty string");const o=tv.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=_v(e))}const o=(e,t)=>tv.forEach(e,((e,n)=>i(e,n,t)));if(tv.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(tv.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Ov[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(tv.isHeaders(e))for(const[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=Nv(e)){const n=tv.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(tv.isFunction(t))return t.call(this,e,n);if(tv.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Nv(e)){const n=tv.findKey(this,e);return!(!n||void 0===this[n]||t&&!Pv(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Nv(e)){const i=tv.findKey(n,e);!i||t&&!Pv(0,n[i],i,t)||(delete n[i],r=!0)}}return tv.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Pv(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return tv.forEach(this,((r,i)=>{const o=tv.findKey(n,i);if(o)return t[o]=_v(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=_v(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return tv.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&tv.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Rv]=this[Rv]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Nv(e);t[r]||(!function(e,t){const n=tv.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return tv.isArray(e)?e.forEach(r):r(e),this}}Dv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),tv.reduceDescriptors(Dv.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),tv.freezeMethods(Dv);const Mv=Dv;function Lv(e,t){const n=this||Tv,r=t||n,i=Mv.from(r.headers);let o=r.data;return tv.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Fv(e){return!(!e||!e.__CANCEL__)}function jv(e,t,n){ov.call(this,null==e?"canceled":e,ov.ERR_CANCELED,t,n),this.name="CanceledError"}tv.inherits(jv,ov,{__CANCEL__:!0});const Bv=jv;function zv(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ov("Request failed with status code "+n.status,[ov.ERR_BAD_REQUEST,ov.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Vv=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const g=Date.now(),l=r[a];i||(i=g),n[o]=s,r[o]=g;let A=a,C=0;for(;A!==o;)C+=n[A++],A%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),g-i{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]},Zv=(e,t,n=3)=>{let r=0;const i=Vv(50,250);return Uv((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,g=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:g||void 0,estimated:g&&a&&o<=a?(a-o)/g:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Gv=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Wv=e=>(...t)=>tv.asap((()=>e(...t))),Hv=Ev.hasStandardBrowserEnv?function(){const e=Ev.navigator&&/(msie|trident)/i.test(Ev.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=tv.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Yv=Ev.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];tv.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),tv.isString(r)&&a.push("path="+r),tv.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Kv(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Qv=e=>e instanceof Mv?{...e}:e;function Xv(e,t){t=t||{};const n={};function r(e,t,n){return tv.isPlainObject(e)&&tv.isPlainObject(t)?tv.merge.call({caseless:n},e,t):tv.isPlainObject(t)?tv.merge({},t):tv.isArray(t)?t.slice():t}function i(e,t,n){return tv.isUndefined(t)?tv.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!tv.isUndefined(t))return r(void 0,t)}function a(e,t){return tv.isUndefined(t)?tv.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const g={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(Qv(e),Qv(t),!0)};return tv.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=g[r]||i,a=o(e[r],t[r],r);tv.isUndefined(a)&&o!==s||(n[r]=a)})),n}const qv=e=>{const t=Xv({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:g}=t;if(t.headers=s=Mv.from(s),t.url=hv(Kv(t.baseURL,t.url),e.params,e.paramsSerializer),g&&s.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),tv.isFormData(r))if(Ev.hasStandardBrowserEnv||Ev.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ev.hasStandardBrowserEnv&&(i&&tv.isFunction(i)&&(i=i(t)),i||!1!==i&&Hv(t.url))){const e=o&&a&&Yv.read(a);e&&s.set(o,e)}return t},Jv="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=qv(e);let i=r.data;const o=Mv.from(r.headers).normalize();let a,s,g,l,A,{responseType:C,onUploadProgress:c,onDownloadProgress:I}=r;function u(){l&&l(),A&&A(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let d=new XMLHttpRequest;function h(){if(!d)return;const r=Mv.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders());zv((function(e){t(e),u()}),(function(e){n(e),u()}),{data:C&&"text"!==C&&"json"!==C?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d}),d=null}d.open(r.method.toUpperCase(),r.url,!0),d.timeout=r.timeout,"onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(h)},d.onabort=function(){d&&(n(new ov("Request aborted",ov.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new ov("Network Error",ov.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||pv;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ov(t,i.clarifyTimeoutError?ov.ETIMEDOUT:ov.ECONNABORTED,e,d)),d=null},void 0===i&&o.setContentType(null),"setRequestHeader"in d&&tv.forEach(o.toJSON(),(function(e,t){d.setRequestHeader(t,e)})),tv.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),C&&"json"!==C&&(d.responseType=r.responseType),I&&([g,A]=Zv(I,!0),d.addEventListener("progress",g)),c&&d.upload&&([s,l]=Zv(c),d.upload.addEventListener("progress",s),d.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{d&&(n(!t||t.type?new Bv(null,e,d):t),d.abort(),d=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);f&&-1===Ev.protocols.indexOf(f)?n(new ov("Unsupported protocol "+f+":",ov.ERR_BAD_REQUEST,e)):d.send(i||null)}))},$v=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ov?t:new Bv(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new ov(`timeout ${t} of ms exceeded`,ov.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>tv.asap(a),s}},ey=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t){for await(const n of ty(e))yield*ey(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},ry="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,iy=ry&&"function"==typeof ReadableStream,oy=ry&&("function"==typeof TextEncoder?(ay=new TextEncoder,e=>ay.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ay;const sy=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},gy=iy&&sy((()=>{let e=!1;const t=new Request(Ev.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),ly=iy&&sy((()=>tv.isReadableStream(new Response("").body))),Ay={stream:ly&&(e=>e.body)};var Cy;ry&&(Cy=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ay[e]&&(Ay[e]=tv.isFunction(Cy[e])?t=>t[e]():(t,n)=>{throw new ov(`Response type '${e}' is not supported`,ov.ERR_NOT_SUPPORT,n)})})));const cy=async(e,t)=>{const n=tv.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(tv.isBlob(e))return e.size;if(tv.isSpecCompliantForm(e)){const t=new Request(Ev.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return tv.isArrayBufferView(e)||tv.isArrayBuffer(e)?e.byteLength:(tv.isURLSearchParams(e)&&(e+=""),tv.isString(e)?(await oy(e)).byteLength:void 0)})(t):n},Iy=ry&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:g,responseType:l,headers:A,withCredentials:C="same-origin",fetchOptions:c}=qv(e);l=l?(l+"").toLowerCase():"text";let I,u=$v([i,o&&o.toAbortSignal()],a);const d=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let h;try{if(g&&gy&&"get"!==n&&"head"!==n&&0!==(h=await cy(A,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(tv.isFormData(r)&&(e=n.headers.get("content-type"))&&A.setContentType(e),n.body){const[e,t]=Gv(h,Zv(Wv(g)));r=ny(n.body,65536,e,t)}}tv.isString(C)||(C=C?"include":"omit");const i="credentials"in Request.prototype;I=new Request(t,{...c,signal:u,method:n.toUpperCase(),headers:A.normalize().toJSON(),body:r,duplex:"half",credentials:i?C:void 0});let o=await fetch(I);const a=ly&&("stream"===l||"response"===l);if(ly&&(s||a&&d)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=tv.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Gv(t,Zv(Wv(s),!0))||[];o=new Response(ny(o.body,65536,n,(()=>{r&&r(),d&&d()})),e)}l=l||"text";let f=await Ay[tv.findKey(Ay,l)||"text"](o,e);return!a&&d&&d(),await new Promise(((t,n)=>{zv(t,n,{data:f,headers:Mv.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:I})}))}catch(t){if(d&&d(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ov("Network Error",ov.ERR_NETWORK,e,I),{cause:t.cause||t});throw ov.from(t,t&&t.code,e,I)}}),uy={http:null,xhr:Jv,fetch:Iy};tv.forEach(uy,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const dy=e=>`- ${e}`,hy=e=>tv.isFunction(e)||null===e||!1===e,fy=e=>{e=tv.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(dy).join("\n"):" "+dy(e[0]):"as no adapter specified";throw new ov("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function py(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bv(null,e)}function my(e){py(e),e.headers=Mv.from(e.headers),e.data=Lv.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fy(e.adapter||Tv.adapter)(e).then((function(t){return py(e),t.data=Lv.call(e,e.transformResponse,t),t.headers=Mv.from(t.headers),t}),(function(t){return Fv(t)||(py(e),t&&t.response&&(t.response.data=Lv.call(e,e.transformResponse,t.response),t.response.headers=Mv.from(t.response.headers))),Promise.reject(t)}))}const vy="1.7.7",yy={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{yy[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const by={};yy.transitional=function(e,t,n){return(r,i,o)=>{if(!1===e)throw new ov(function(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}(i," has been removed"+(t?" in "+t:"")),ov.ERR_DEPRECATED);return t&&!by[i]&&(by[i]=!0),!e||e(r,i,o)}};const wy={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ov("options must be an object",ov.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new ov("option "+o+" must be "+n,ov.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ov("Unknown option "+o,ov.ERR_BAD_OPTION)}},validators:yy},xy=wy.validators;class Ey{constructor(e){this.defaults=e,this.interceptors={request:new fv,response:new fv}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xv(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&wy.assertOptions(n,{silentJSONParsing:xy.transitional(xy.boolean),forcedJSONParsing:xy.transitional(xy.boolean),clarifyTimeoutError:xy.transitional(xy.boolean)},!1),null!=r&&(tv.isFunction(r)?t.paramsSerializer={serialize:r}:wy.assertOptions(r,{encode:xy.function,serialize:xy.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&tv.merge(i.common,i[t.method]);i&&tv.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Mv.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const g=[];let l;this.interceptors.response.forEach((function(e){g.push(e.fulfilled,e.rejected)}));let A,C=0;if(!s){const e=[my.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,g),A=e.length,l=Promise.resolve(t);C{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Bv(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new Sy((function(t){e=t}));return{token:t,cancel:e}}}const Ty=Sy;const Oy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Oy).forEach((([e,t])=>{Oy[t]=e}));const Ry=Oy;const Ny=function e(t){const n=new ky(t),r=Im(ky.prototype.request,n);return tv.extend(r,ky.prototype,n,{allOwnKeys:!0}),tv.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Xv(t,n))},r}(Tv);Ny.Axios=ky,Ny.CanceledError=Bv,Ny.CancelToken=Ty,Ny.isCancel=Fv,Ny.VERSION=vy,Ny.toFormData=Av,Ny.AxiosError=ov,Ny.Cancel=Ny.CanceledError,Ny.all=function(e){return Promise.all(e)},Ny.spread=function(e){return function(t){return e.apply(null,t)}},Ny.isAxiosError=function(e){return tv.isObject(e)&&!0===e.isAxiosError},Ny.mergeConfig=Xv,Ny.AxiosHeaders=Mv,Ny.formToJSON=e=>kv(tv.isHTMLForm(e)?new FormData(e):e),Ny.getAdapter=fy,Ny.HttpStatusCode=Ry,Ny.default=Ny;const _y=Ny,Py=e=>{try{return null==e?void 0:e.split("_")[0]}catch{}},Dy=()=>{const e=cm.get("csrftoken"),t=DI(),n=Am({mutationFn:t=>{let{componentId:n,quantity:r,editMode:i}=t;const o=Py(n);return _y.post(`/api/shopping-list/${o}/anonymous-create-or-update/`,{quantity:r,editMode:i},{headers:{"X-CSRFToken":e},withCredentials:!0})},onSuccess:()=>{t.invalidateQueries(["shoppingList"])}});return n},My=()=>{const e=cm.get("csrftoken")||"",t=DI(),n=Am({mutationFn:t=>{let{componentId:n,data:r}=t;const i=Py(n);return _y.post(`/api/inventory/${i}/create-or-update/`,r,{headers:{"X-CSRFToken":e},withCredentials:!0})},onSuccess:()=>{t.invalidateQueries({queryKey:["inventory"]}),t.invalidateQueries({queryKey:["authenticatedUserHistory"]})}});return n},Ly=()=>{const e=cm.get("csrftoken"),t=DI(),n=Am({mutationFn:t=>{let{componentId:n,...r}=t;const i=Py(r.modulebomlistitem_pk),o=Py(n);return _y.post(`/api/shopping-list/${o}/create-or-update/`,{...r,modulebomlistitem_pk:i},{headers:{"X-CSRFToken":e},withCredentials:!0})},onSuccess:()=>{t.invalidateQueries(["shoppingList"])}});return n};var Fy=class extends CI{constructor(e,t){super(),this.options=t,this.#f=e,this.#w=null,this.#x=uI(),this.options.experimental_prefetchInRender||this.#x.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#f;#E=void 0;#k=void 0;#p=void 0;#S;#T;#x;#w;#O;#R;#N;#_;#P;#D;#M=(()=>new Set)();bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#E.addObserver(this),jy(this.#E,this.options)?this.#L():this.updateResult(),this.#F())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return By(this.#E,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return By(this.#E,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#j(),this.#B(),this.#E.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.#E;if(this.options=this.#f.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Kc(this.options.enabled,this.#E))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#z(),this.#E.setOptions(this.options),n._defaulted&&!tI(this.options,n)&&this.#f.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#E,observer:this});const i=this.hasListeners();i&&zy(this.#E,r,this.options,n)&&this.#L(),this.updateResult(t),!i||this.#E===r&&Kc(this.options.enabled,this.#E)===Kc(n.enabled,this.#E)&&Yc(this.options.staleTime,this.#E)===Yc(n.staleTime,this.#E)||this.#V();const o=this.#U();!i||this.#E===r&&Kc(this.options.enabled,this.#E)===Kc(n.enabled,this.#E)&&o===this.#D||this.#Z(o)}getOptimisticResult(e){const t=this.#f.getQueryCache().build(this.#f,e),n=this.createResult(t,e);return function(e,t){if(!tI(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#p=n,this.#T=this.options,this.#S=this.#E.state),n}getCurrentResult(){return this.#p}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==t||t(r),e[r])})})),n}trackProp(e){this.#M.add(e)}getCurrentQuery(){return this.#E}refetch(){let{...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...e})}fetchOptimistic(e){const t=this.#f.defaultQueryOptions(e),n=this.#f.getQueryCache().build(this.#f,t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.#L({...e,cancelRefetch:null===(t=e.cancelRefetch)||void 0===t||t}).then((()=>(this.updateResult(),this.#p)))}#L(e){this.#z();let t=this.#E.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Gc)),t}#V(){this.#j();const e=Yc(this.options.staleTime,this.#E);if(Zc||this.#p.isStale||!Wc(e))return;const t=Hc(this.#p.dataUpdatedAt,e)+1;this.#_=setTimeout((()=>{this.#p.isStale||this.updateResult()}),t)}#U(){var e;return null!==(e="function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#E):this.options.refetchInterval)&&void 0!==e&&e}#Z(e){this.#B(),this.#D=e,!Zc&&!1!==Kc(this.options.enabled,this.#E)&&Wc(this.#D)&&0!==this.#D&&(this.#P=setInterval((()=>{(this.options.refetchIntervalInBackground||cI.isFocused())&&this.#L()}),this.#D))}#F(){this.#V(),this.#Z(this.#U())}#j(){this.#_&&(clearTimeout(this.#_),this.#_=void 0)}#B(){this.#P&&(clearInterval(this.#P),this.#P=void 0)}createResult(e,t){const n=this.#E,r=this.options,i=this.#p,o=this.#S,a=this.#T,s=e!==n?e.state:this.#k,{state:g}=e;let l,A={...g},C=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&jy(e,t),a=i&&zy(e,n,t,r);(o||a)&&(A={...A,...bI(g.data,e.options)}),"isRestoring"===t._optimisticResults&&(A.fetchStatus="idle")}let{error:c,errorUpdatedAt:I,status:u}=A;if(t.select&&void 0!==A.data)if(i&&A.data===(null==o?void 0:o.data)&&t.select===this.#O)l=this.#R;else try{this.#O=t.select,l=t.select(A.data),l=oI(null==i?void 0:i.data,l,t),this.#R=l,this.#w=null}catch(e){this.#w=e}else l=A.data;if(void 0!==t.placeholderData&&void 0===l&&"pending"===u){let e;var d;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==a?void 0:a.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null===(d=this.#N)||void 0===d?void 0:d.state.data,this.#N):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#w=null}catch(e){this.#w=e}void 0!==e&&(u="success",l=oI(null==i?void 0:i.data,e,t),C=!0)}this.#w&&(c=this.#w,l=this.#R,I=Date.now(),u="error");const h="fetching"===A.fetchStatus,f="pending"===u,p="error"===u,m=f&&h,v=void 0!==l,y={status:u,fetchStatus:A.fetchStatus,isPending:f,isSuccess:"success"===u,isError:p,isInitialLoading:m,isLoading:m,data:l,dataUpdatedAt:A.dataUpdatedAt,error:c,errorUpdatedAt:I,failureCount:A.fetchFailureCount,failureReason:A.fetchFailureReason,errorUpdateCount:A.errorUpdateCount,isFetched:A.dataUpdateCount>0||A.errorUpdateCount>0,isFetchedAfterMount:A.dataUpdateCount>s.dataUpdateCount||A.errorUpdateCount>s.errorUpdateCount,isFetching:h,isRefetching:h&&!f,isLoadingError:p&&!v,isPaused:"paused"===A.fetchStatus,isPlaceholderData:C,isRefetchError:p&&v,isStale:Vy(e,t),refetch:this.refetch,promise:this.#x};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===y.status?e.reject(y.error):void 0!==y.data&&e.resolve(y.data)},r=()=>{const e=this.#x=y.promise=uI();t(e)},i=this.#x;switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==y.status&&y.data===i.value||r();break;case"rejected":"error"===y.status&&y.error===i.reason||r()}}return y}updateResult(e){const t=this.#p,n=this.createResult(this.#E,this.options);if(this.#S=this.#E.state,this.#T=this.options,void 0!==this.#S.data&&(this.#N=this.#E),tI(n,t))return;this.#p=n;const r={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#M.size)return!0;const r=new Set(null!=n?n:this.#M);return this.options.throwOnError&&r.add("error"),Object.keys(this.#p).some((e=>{const n=e;return this.#p[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.#b({...r,...e})}#z(){const e=this.#f.getQueryCache().build(this.#f,this.options);if(e===this.#E)return;const t=this.#E;this.#E=e,this.#k=e.state,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#F()}#b(e){AI.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#p)})),this.#f.getQueryCache().notify({query:this.#E,type:"observerResultsUpdated"})}))}};function jy(e,t){return function(e,t){return!1!==Kc(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&By(e,t,t.refetchOnMount)}function By(e,t,n){if(!1!==Kc(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Vy(e,t)}return!1}function zy(e,t,n,r){return(e!==t||!1===Kc(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Vy(e,n)}function Vy(e,t){return!1!==Kc(t.enabled,e)&&e.isStaleByTime(Yc(t.staleTime,e))}function Uy(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Zy=Jo.createContext(Uy()),Gy=Jo.createContext(!1),Wy=(Gy.Provider,(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()})));function Hy(e,t,n){var r,i,o,a;const s=DI(n),g=Jo.useContext(Gy),l=Jo.useContext(Zy),A=s.defaultQueryOptions(e);null===(r=s.getDefaultOptions().queries)||void 0===r||null===(i=r._experimental_beforeQuery)||void 0===i||i.call(r,A),A._optimisticResults=g?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(A),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(A,l),(e=>{Jo.useEffect((()=>{e.clearReset()}),[e])})(l);const C=!s.getQueryCache().get(A.queryHash),[c]=Jo.useState((()=>new t(s,A))),I=c.getOptimisticResult(A);if(Jo.useSyncExternalStore(Jo.useCallback((e=>{const t=g?()=>{}:c.subscribe(AI.batchCalls(e));return c.updateResult(),t}),[c,g]),(()=>c.getCurrentResult()),(()=>c.getCurrentResult())),Jo.useEffect((()=>{c.setOptions(A,{listeners:!1})}),[A,c]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(A,I))throw Wy(A,c,l);if((e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&gm(r,[t.error,i])})({result:I,errorResetBoundary:l,throwOnError:A.throwOnError,query:s.getQueryCache().get(A.queryHash)}))throw I.error;if(null===(o=s.getDefaultOptions().queries)||void 0===o||null===(a=o._experimental_afterQuery)||void 0===a||a.call(o,A,I),A.experimental_prefetchInRender&&!Zc&&((e,t)=>e.isLoading&&e.isFetching&&!t)(I,g)){var u;const e=C?Wy(A,c,l):null===(u=s.getQueryCache().get(A.queryHash))||void 0===u?void 0:u.promise;null==e||e.catch(lm).finally((()=>{c.updateResult()}))}return A.notifyOnChangeProps?I:c.trackResult(I)}function Yy(e,t){return Hy(e,Fy,t)}const Ky=()=>{const{data:e,isLoading:t,isError:n}=Yy({queryFn:async()=>{try{return(await _y.get("/api/get-user-me/",{withCredentials:!0})).data}catch{throw new Error("Failed to fetch authenticated user")}},queryKey:["authenticatedUser"]});return{user:e,userIsError:n,userIsLoading:t}},Qy=e=>{const t=Py(e),{data:n,isLoading:r,isError:i,error:o}=Yy({queryFn:async()=>{try{return(await _y.get(`/api/inventory/${t}/locations/`)).data}catch(e){throw new Error(e.response.data.error)}},queryKey:["componentLocations",t]});return{data:n,error:o,isError:i,isLoading:r}},Xy=e=>{const t=Py(e),{data:n,isLoading:r,isError:i}=Yy({enabled:!!t,queryFn:async()=>{try{return(await _y.get(`/api/shopping-list/${t}/component-quantity/`)).data.quantity}catch(e){throw new Error(e.response.data.error)}},queryKey:["userAnonymousInventoryQuantity",t]});return{data:n,isError:i,isLoading:r}},qy=e=>{const t=Py(e),{data:n,isLoading:r,isError:i,error:o}=Yy({queryKey:["userInventoryQuantity",t],queryFn:async()=>{try{return(await _y.get(`/api/inventory/${t}/component-quantity/`)).data.quantity}catch(e){throw new Error(e.response.data.error)}}});return{data:n,isLoading:r,isError:i,error:o}},Jy=(e,t,n)=>{const r=Py(e),i=Py(t),o=Py(n);return Yy({queryFn:async()=>{try{return(await _y.get(`/api/shopping-list/${r}/${i}/${o}/component-quantity/`)).data.quantity}catch(n){var e,t;throw new Error((null===(e=n.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Error fetching data")}},queryKey:["userInventoryQuantity",r,i,o]})},$y=e=>{let{open:t,setOpen:n,title:r,text:i,type:o,componentId:a,hookArgs:s,quantityRequired:g,componentName:l}=e;const[A,C]=(0,Jo.useState)(),[c,I]=(0,Jo.useState)(!1),[u,d]=(0,Jo.useState)(),[h,f]=(0,Jo.useState)(!1),[p,m]=(0,Jo.useState)(""),[v,y]=(0,Jo.useState)(!0),{user:b,userIsLoading:w,userIsError:x}=Ky(),E=My(),k=Ly(),S=Dy(),{data:T}=qy(a),{data:O}=Xy(a),{data:R}=void 0!==s?Jy(...Object.values(s)):{data:void 0},{data:N}=Qy(a),_=null!=N?N:[],P=(0,Jo.useCallback)((async()=>{try{o===BI.INVENTORY?await E.mutateAsync({componentId:a,quantity:u,location:Array.isArray(p)?p.join(","):"",editMode:h},{onSuccess:()=>{n(!1)},onError:e=>{C("Failed to update quantity: ",e)}}):o===BI.SHOPPING?await k.mutateAsync({componentId:a,...s,quantity:u,editMode:h},{onSuccess:()=>{n(!1)},onError:e=>{C("Failed to update quantity: ",e)}}):o===BI.SHOPPING_ANON&&await S.mutateAsync({componentId:a,quantity:u,editMode:h},{onSuccess:()=>{n(!1)},onError:e=>{C("Failed to update quantity: ",e)}})}catch(e){C("Failed to update quantity: ",e)}}));(0,Jo.useEffect)((()=>{let e=parseInt(g);h&&(o===BI.SHOPPING?e=parseInt(R):o===BI.SHOPPING_ANON?e=parseInt(O):o===BI.INVENTORY&&(e=parseInt(T))),d(e)}),[g,h,o]);const D=!!T&&o===BI.INVENTORY||!!O&&o===BI.SHOPPING_ANON||!!R&&o===BI.SHOPPING;if(x)return Jo.createElement("div",null,"Error loading user");if(w)return Jo.createElement("div",{className:"text-center text-gray-500 animate-pulse"},"Loading...");const M=Array.isArray(_)?_.map((e=>({locations:e.location||[],quantity:e.quantity}))):[];return Jo.createElement(Jo.Fragment,null,Jo.createElement(Mu.Root,{show:t&&!c,as:Jo.Fragment},Jo.createElement(gh,{as:"div",className:"relative",onClose:n},Jo.createElement(Mu.Child,{as:Jo.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},Jo.createElement("div",{className:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-50"})),Jo.createElement("div",{className:"fixed inset-0 overflow-y-auto"},Jo.createElement("div",{className:"flex items-end justify-center min-h-full p-4 text-center sm:items-center sm:p-0"},Jo.createElement(Mu.Child,{as:Jo.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},Jo.createElement(gh.Panel,{className:"relative px-4 pt-5 pb-4 overflow-hidden text-left transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:w-full sm:p-6 md:max-w-lg"},Jo.createElement("div",null,Jo.createElement("div",{className:"mt-3 text-center sm:text-left"},Jo.createElement(gh.Title,{as:"h3",className:"text-base font-semibold leading-6 text-gray-900"},r),Jo.createElement("div",{className:"mt-2"},i&&Jo.createElement("p",{className:"pt-3 text-sm text-gray-500"},i),D&&Jo.createElement("div",{className:"pt-3 text-gray-700"},"Your"," ","shopping_anon"===o?"shopping list":o," ","already contains"," ",Jo.createElement(zI,{type:o,useHook:o===BI.INVENTORY?qy:o===BI.SHOPPING?Jy:Xy,hookArgs:s?Object.values(s):[a],replaceZero:!1}),h?`. Edit quantity to be ${u}?`:`. Add ${u} more?`),h?Jo.createElement("div",{className:"my-6"},Jo.createElement("label",{htmlFor:"quantityInput",className:"block mb-1 font-medium text-gray-700"},`Edit ${o===BI.INVENTORY?"inventory":"shopping list"} quantity:`),Jo.createElement("div",{className:"flex items-center w-full gap-2"},Jo.createElement("div",null,Jo.createElement("div",{className:"sm:w-2/5 md:w-1/5"},Jo.createElement(rm(),{id:"quantityInput",type:"number",min:1,value:null!=u?u:1,onChange:e=>d(e),className:"h-8 pl-2 border border-gray-300 rounded-md focus:border-brandgreen-500 focus:ring-1 focus:ring-brandgreen-500"}))),Jo.createElement("div",{role:"button",className:"text-blue-500 hover:text-blue-700",onClick:()=>f((e=>!e))},"or add to "+(o===BI.INVENTORY?"inventory":"shopping list")))):Jo.createElement("div",{className:"my-6"},Jo.createElement("label",{htmlFor:"quantityInput",className:"block mb-1 font-medium text-gray-700"},"Quantity to add:"),Jo.createElement("div",{className:"flex items-center w-full gap-2"},Jo.createElement("div",null,Jo.createElement("div",{className:"sm:w-2/5 md:w-1/5"},Jo.createElement(rm(),{id:"quantityInput",type:"number",min:1,value:null!=u?u:1,onChange:e=>d(e),className:"h-8 pl-2 border border-gray-300 rounded-md focus:border-brandgreen-500 focus:ring-1 focus:ring-brandgreen-500"}))),Jo.createElement("div",{role:"button",className:"text-blue-500 hover:text-blue-700",onClick:()=>f((e=>!e))},"or edit "+(o===BI.INVENTORY?"inventory":"shopping list"))))))),o===BI.INVENTORY&&Jo.createElement("div",{className:"p-4 mt-4 mb-2 bg-gray-100 rounded-md"},Jo.createElement("p",{className:"my-2 text-xs text-slate-500"},"Specify the location where you will store this item in your inventory. Separate locations with commas."),Jo.createElement(am,{locationArray:p,submitLocationChange:m,isEditable:v,setIsEditable:y,showSeparateLocationsWithCommas:!1})),o===BI.INVENTORY&&M.length>0&&Jo.createElement("div",null,Jo.createElement(Ch,{title:`Your inventory locations for ${l}`},Jo.createElement("div",{className:"p-4 rounded-md bg-blue-50"},Jo.createElement("p",{className:"mb-4 text-xs text-slate-500"},"It looks like you already have this component in your inventory. Click to select a pre-existing location."),Jo.createElement(tm,{data:M,onRowClicked:e=>{m(e.locations),y(!1)},pointerEvents:"pointer-events-none"})))),Jo.createElement("div",{className:"flex gap-2 mt-5 sm:mt-4 sm:flex-row-reverse flex-nowrap"},Jo.createElement(Up,{variant:"primary",onClick:()=>{P()}},h?"Update":"Add"),Jo.createElement(Up,{variant:"muted",onClick:()=>n(!1)},"Cancel")),Jo.createElement("div",{className:"bg-red-500"},A))))))),Jo.createElement(Xp,{open:c,title:"Limit reached: three modules already in shopping list",message:"Please become a subscriber to add more than 3 modules to your shopping list.",onClickSupport:()=>Qp(),onClickCancel:()=>I(!1)}))};var eb=Object.defineProperty,tb=(e,t,n)=>((e,t,n)=>t in e?eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),nb=new Map,rb=new WeakMap,ib=0,ob=void 0;function ab(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>`${t}_${"root"===t?function(e){return e?(rb.has(e)||(ib+=1,rb.set(e,ib.toString())),rb.get(e)):"0"}(e.root):e[t]}`)).toString()}function sb(e,t,n={},r=ob){if(void 0===window.IntersectionObserver&&void 0!==r){const i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:i,observer:o,elements:a}=function(e){const t=ab(e);let n=nb.get(t);if(!n){const r=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var n;const o=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(n=r.get(t.target))||n.forEach((e=>{e(o,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},nb.set(t,n)}return n}(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),o.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(a.delete(e),o.unobserve(e)),0===a.size&&(o.disconnect(),nb.delete(i))}}Jo.Component;var gb=xb(),lb=e=>vb(e,gb),Ab=xb();lb.write=e=>vb(e,Ab);var Cb=xb();lb.onStart=e=>vb(e,Cb);var cb=xb();lb.onFrame=e=>vb(e,cb);var Ib=xb();lb.onFinish=e=>vb(e,Ib);var ub=[];lb.setTimeout=(e,t)=>{const n=lb.now()+t,r=()=>{const e=ub.findIndex((e=>e.cancel==r));~e&&ub.splice(e,1),pb-=~e?1:0},i={time:n,handler:e,cancel:r};return ub.splice(db(n),0,i),pb+=1,yb(),i};var db=e=>~(~ub.findIndex((t=>t.time>e))||~ub.length);lb.cancel=e=>{Cb.delete(e),cb.delete(e),Ib.delete(e),gb.delete(e),Ab.delete(e)},lb.sync=e=>{mb=!0,lb.batchedUpdates(e),mb=!1},lb.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,lb.onStart(n)}return r.handler=e,r.cancel=()=>{Cb.delete(n),t=null},r};var hb="undefined"!=typeof window?window.requestAnimationFrame:()=>{};lb.use=e=>hb=e,lb.now="undefined"!=typeof performance?()=>performance.now():Date.now,lb.batchedUpdates=e=>e(),lb.catch=console.error,lb.frameLoop="always",lb.advance=()=>{"demand"!==lb.frameLoop||wb()};var fb=-1,pb=0,mb=!1;function vb(e,t){mb?(t.delete(e),e(0)):(t.add(e),yb())}function yb(){fb<0&&(fb=0,"demand"!==lb.frameLoop&&hb(bb))}function bb(){~fb&&(hb(bb),lb.batchedUpdates(wb))}function wb(){const e=fb;fb=lb.now();const t=db(fb);t&&(Eb(ub.splice(0,t),(e=>e.handler())),pb-=t),pb?(Cb.flush(),gb.flush(e?Math.min(64,fb-e):16.667),cb.flush(),Ab.flush(),Ib.flush()):fb=-1}function xb(){let e=new Set,t=e;return{add(n){pb+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(pb-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,pb-=t.size,Eb(t,(t=>t(n)&&e.add(t))),pb+=e.size,t=e)}}}function Eb(e,t){e.forEach((e=>{try{t(e)}catch(e){lb.catch(e)}}))}var kb=Object.defineProperty,Sb={};function Tb(){}((e,t)=>{for(var n in t)kb(e,n,{get:t[n],enumerable:!0})})(Sb,{assign:()=>Ub,colors:()=>Bb,createStringInterpolator:()=>Mb,skipAnimation:()=>zb,to:()=>Lb,willAdvance:()=>Vb});var Ob={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Rb(e,t){if(Ob.arr(e)){if(!Ob.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function _b(e,t,n){if(Ob.arr(e))for(let r=0;rOb.und(e)?[]:Ob.arr(e)?e:[e];function Db(e,t){if(e.size){const n=Array.from(e);e.clear(),Nb(n,t)}}var Mb,Lb,Fb=(e,...t)=>Db(e,(e=>e(...t))),jb=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Bb=null,zb=!1,Vb=Tb,Ub=e=>{e.to&&(Lb=e.to),e.now&&(lb.now=e.now),void 0!==e.colors&&(Bb=e.colors),null!=e.skipAnimation&&(zb=e.skipAnimation),e.createStringInterpolator&&(Mb=e.createStringInterpolator),e.requestAnimationFrame&&lb.use(e.requestAnimationFrame),e.batchedUpdates&&(lb.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Vb=e.willAdvance),e.frameLoop&&(lb.frameLoop=e.frameLoop)},Zb=new Set,Gb=[],Wb=[],Hb=0,Yb={get idle(){return!Zb.size&&!Gb.length},start(e){Hb>e.priority?(Zb.add(e),lb.onStart(Kb)):(Qb(e),lb(qb))},advance:qb,sort(e){if(Hb)lb.onFrame((()=>Yb.sort(e)));else{const t=Gb.indexOf(e);~t&&(Gb.splice(t,1),Xb(e))}},clear(){Gb=[],Zb.clear()}};function Kb(){Zb.forEach(Qb),Zb.clear(),lb(qb)}function Qb(e){Gb.includes(e)||Xb(e)}function Xb(e){Gb.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Gb,(t=>t.priority>e.priority)),0,e)}function qb(e){const t=Wb;for(let n=0;n0}var Jb="[-+]?\\d*\\.?\\d+",$b=Jb+"%";function ew(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var tw=new RegExp("rgb"+ew(Jb,Jb,Jb)),nw=new RegExp("rgba"+ew(Jb,Jb,Jb,Jb)),rw=new RegExp("hsl"+ew(Jb,$b,$b)),iw=new RegExp("hsla"+ew(Jb,$b,$b,Jb)),ow=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,aw=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,sw=/^#([0-9a-fA-F]{6})$/,gw=/^#([0-9a-fA-F]{8})$/;function lw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Aw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=lw(i,r,e+1/3),a=lw(i,r,e),s=lw(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Cw(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function cw(e){return(parseFloat(e)%360+360)%360/360}function Iw(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function uw(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function dw(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=sw.exec(e))?parseInt(t[1]+"ff",16)>>>0:Bb&&void 0!==Bb[e]?Bb[e]:(t=tw.exec(e))?(Cw(t[1])<<24|Cw(t[2])<<16|Cw(t[3])<<8|255)>>>0:(t=nw.exec(e))?(Cw(t[1])<<24|Cw(t[2])<<16|Cw(t[3])<<8|Iw(t[4]))>>>0:(t=ow.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gw.exec(e))?parseInt(t[1],16)>>>0:(t=aw.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=rw.exec(e))?(255|Aw(cw(t[1]),uw(t[2]),uw(t[3])))>>>0:(t=iw.exec(e))?(Aw(cw(t[1]),uw(t[2]),uw(t[3]))|Iw(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var hw=(e,t,n)=>{if(Ob.fun(e))return e;if(Ob.arr(e))return hw({range:e,output:t,extrapolate:n});if(Ob.str(e.output[0]))return Mb(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",g=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,g){let l=g?g(e):e;if(ln){if("identity"===s)return l;"clamp"===s&&(l=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r;return l}(e,o[t],o[t+1],i[t],i[t+1],g,a,s,r.map)}};var fw=1.70158,pw=1.525*fw,mw=fw+1,vw=2*Math.PI/3,yw=2*Math.PI/4.5,bw=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},ww={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>mw*e*e*e-fw*e*e,easeOutBack:e=>1+mw*Math.pow(e-1,3)+fw*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-pw)/2:(Math.pow(2*e-2,2)*((pw+1)*(2*e-2)+pw)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*vw),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*vw)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*yw)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*yw)/2+1,easeInBounce:e=>1-bw(1-e),easeOutBounce:bw,easeInOutBounce:e=>e<.5?(1-bw(1-2*e))/2:(1+bw(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},xw=Symbol.for("FluidValue.get"),Ew=Symbol.for("FluidValue.observers"),kw=e=>Boolean(e&&e[xw]),Sw=e=>e&&e[xw]?e[xw]():e,Tw=e=>e[Ew]||null;function Ow(e,t){const n=e[Ew];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Rw=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Nw(this,e)}},Nw=(e,t)=>Mw(e,xw,t);function _w(e,t){if(e[xw]){let n=e[Ew];n||Mw(e,Ew,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Pw(e,t){const n=e[Ew];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ew]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Dw,Mw=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Lw=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Fw=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,jw=new RegExp(`(${Lw.source})(%|[a-z]+)`,"i"),Bw=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,zw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Vw=e=>{const[t,n]=Uw(e);if(!t||jb())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&zw.test(n)?Vw(n):n||e},Uw=e=>{const t=zw.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Zw=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Gw=e=>{Dw||(Dw=Bb?new RegExp(`(${Object.keys(Bb).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Sw(e).replace(zw,Vw).replace(Fw,dw).replace(Dw,dw))),n=t.map((e=>e.match(Lw).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),i=r.map((t=>hw({...e,output:t})));return e=>{const n=!jw.test(t[0])&&t.find((e=>jw.test(e)))?.replace(Lw,"");let r=0;return t[0].replace(Lw,(()=>`${i[r++](e)}${n||""}`)).replace(Bw,Zw)}},Ww="react-spring: ",Hw=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Ww}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Yw=Hw(console.warn);var Kw=Hw(console.warn);function Qw(e){return Ob.str(e)&&("#"==e[0]||/\d/.test(e)||!jb()&&zw.test(e)||e in(Bb||{}))}var Xw=jb()?Jo.useEffect:Jo.useLayoutEffect;function qw(){const e=(0,Jo.useState)()[1],t=(()=>{const e=(0,Jo.useRef)(!1);return Xw((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var Jw=e=>(0,Jo.useEffect)(e,$w),$w=[];function ex(e){const t=(0,Jo.useRef)();return(0,Jo.useEffect)((()=>{t.current=e})),t.current}var tx=Symbol.for("Animated:node"),nx=e=>e&&e[tx],rx=(e,t)=>{return n=e,r=tx,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},ix=e=>e&&e[tx]&&e[tx].getPayload(),ox=class{constructor(){rx(this,this)}getPayload(){return this.payload||[]}},ax=class extends ox{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ob.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ax(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ob.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ob.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},sx=class extends ax{constructor(e){super(0),this._string=null,this._toString=hw({output:[e,e]})}static create(e){return new sx(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Ob.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=hw({output:[this.getValue(),e]})),this._value=0,super.reset()}},gx={dependencies:null},lx=class extends ox{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return _b(this.source,((n,r)=>{var i;(i=n)&&i[tx]===i?t[r]=n.getValue(e):kw(n)?t[r]=Sw(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Nb(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return _b(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){gx.dependencies&&kw(e)&&gx.dependencies.add(e);const t=ix(e);t&&Nb(t,(e=>this.add(e)))}},Ax=class extends lx{constructor(e){super(e)}static create(e){return new Ax(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Cx)),!0)}};function Cx(e){return(Qw(e)?sx:ax).create(e)}function cx(e){const t=nx(e);return t?t.constructor:Ob.arr(e)?Ax:Qw(e)?sx:ax}var Ix=(e,t)=>{const n=!Ob.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Jo.forwardRef)(((r,i)=>{const o=(0,Jo.useRef)(null),a=n&&(0,Jo.useCallback)((e=>{o.current=function(e,t){e&&(Ob.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[s,g]=function(e,t){const n=new Set;gx.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new lx(e),gx.dependencies=null,[e,n]}(r,t),l=qw(),A=()=>{const e=o.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&l()},C=new ux(A,g),c=(0,Jo.useRef)();Xw((()=>(c.current=C,Nb(g,(e=>_w(e,C))),()=>{c.current&&(Nb(c.current.deps,(e=>Pw(e,c.current))),lb.cancel(c.current.update))}))),(0,Jo.useEffect)(A,[]),Jw((()=>()=>{const e=c.current;Nb(e.deps,(t=>Pw(t,e)))}));const I=t.getComponentProps(s.getValue());return Jo.createElement(e,{...I,ref:a})}))},ux=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&lb.write(this.update)}};var dx=Symbol.for("AnimatedComponent"),hx=e=>Ob.str(e)?e:e&&Ob.str(e.displayName)?e.displayName:Ob.fun(e)&&e.name||null;function fx(e,...t){return Ob.fun(e)?e(...t):e}var px=(e,t)=>!0===e||!!(t&&e&&(Ob.fun(e)?e(t):Pb(e).includes(t))),mx=(e,t)=>Ob.obj(e)?t&&e[t]:e,vx=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yx=e=>e,bx=(e,t=yx)=>{let n=wx;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);Ob.und(n)||(r[i]=n)}return r},wx=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xx={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ex(e){const t=function(e){const t={};let n=0;if(_b(e,((e,r)=>{xx[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return _b(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function kx(e){return e=Sw(e),Ob.arr(e)?e.map(kx):Qw(e)?Sb.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Sx(e){for(const t in e)return!0;return!1}function Tx(e){return Ob.fun(e)||Ob.arr(e)&&Ob.obj(e[0])}function Ox(e,t){e.ref?.delete(e),t?.delete(e)}function Rx(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Nx={tension:170,friction:26,mass:1,damping:1,easing:ww.linear,clamp:!1},_x=class{constructor(){this.velocity=0,Object.assign(this,Nx)}};function Px(e,t){if(Ob.und(t.decay)){const n=!Ob.und(t.tension)||!Ob.und(t.friction);!n&&Ob.und(t.frequency)&&Ob.und(t.damping)&&Ob.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Dx=[],Mx=class{constructor(){this.changed=!1,this.values=Dx,this.toValues=null,this.fromValues=Dx,this.config=new _x,this.immediate=!1}};function Lx(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{let g,l,A=px(n.cancel??r?.cancel,t);if(A)I();else{Ob.und(n.pause)||(i.paused=px(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||px(e,t)),g=fx(n.delay||0,t),e?(i.resumeQueue.add(c),o.pause()):(o.resume(),c())}function C(){i.resumeQueue.add(c),i.timeouts.delete(l),l.cancel(),g=l.time-lb.now()}function c(){g>0&&!Sb.skipAnimation?(i.delayed=!0,l=lb.setTimeout(I,g),i.pauseQueue.add(C),i.timeouts.add(l)):I()}function I(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(C),i.timeouts.delete(l),e<=(i.cancelId||0)&&(A=!0);try{o.start({...n,callId:e,cancel:A},a)}catch(e){s(e)}}}))}var Fx=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?zx(e.get()):t.every((e=>e.noop))?jx(e.get()):Bx(e.get(),t.every((e=>e.finished))),jx=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Bx=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),zx=e=>({value:e,cancelled:!0,finished:!1});function Vx(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:g}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const l=bx(t,((e,t)=>"onRest"===t?void 0:e));let A,C;const c=new Promise(((e,t)=>(A=e,C=t))),I=e=>{const t=i<=(n.cancelId||0)&&zx(r)||i!==n.asyncId&&Bx(r,!1);if(t)throw e.result=t,C(e),e},u=(e,t)=>{const o=new Zx,a=new Gx;return(async()=>{if(Sb.skipAnimation)throw Ux(n),a.result=Bx(r,!1),C(a),a;I(o);const s=Ob.obj(e)?{...e}:{...t,to:e};s.parentId=i,_b(l,((e,t)=>{Ob.und(s[t])&&(s[t]=e)}));const g=await r.start(s);return I(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),g})()};let d;if(Sb.skipAnimation)return Ux(n),Bx(r,!1);try{let t;t=Ob.arr(e)?(async e=>{for(const t of e)await u(t)})(e):Promise.resolve(e(u,r.stop.bind(r))),await Promise.all([t.then(A),c]),d=Bx(r.get(),!0,!1)}catch(e){if(e instanceof Zx)d=e.result;else{if(!(e instanceof Gx))throw e;d=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?g:void 0)}return Ob.fun(a)&&lb.batchedUpdates((()=>{a(d,r,r.item)})),d})():g}function Ux(e,t){Db(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Zx=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Gx=class extends Error{constructor(){super("SkipAnimationSignal")}},Wx=e=>e instanceof Yx,Hx=1,Yx=class extends Rw{constructor(){super(...arguments),this.id=Hx++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=nx(this);return e&&e.getValue()}to(...e){return Sb.to(this,e)}interpolate(...e){return Yw(`${Ww}The "interpolate" function is deprecated in v9 (use "to" instead)`),Sb.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ow(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Yb.sort(this),Ow(this,{type:"priority",parent:this,priority:e})}},Kx=Symbol.for("SpringPhase"),Qx=e=>(1&e[Kx])>0,Xx=e=>(2&e[Kx])>0,qx=e=>(4&e[Kx])>0,Jx=(e,t)=>t?e[Kx]|=3:e[Kx]&=-3,$x=(e,t)=>t?e[Kx]|=4:e[Kx]&=-5,eE=class extends Yx{constructor(e,t){if(super(),this.animation=new Mx,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ob.und(e)||!Ob.und(t)){const n=Ob.obj(e)?{...e}:{...t,from:e};Ob.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Xx(this)||this._state.asyncTo)||qx(this)}get goal(){return Sw(this.animation.to)}get velocity(){const e=nx(this);return e instanceof ax?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Qx(this)}get isAnimating(){return Xx(this)}get isPaused(){return qx(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=ix(r.to);!a&&kw(r.to)&&(i=Pb(Sw(r.to))),r.values.forEach(((s,g)=>{if(s.done)return;const l=s.constructor==sx?1:a?a[g].lastPosition:i[g];let A=r.immediate,C=l;if(!A){if(C=s.lastPosition,o.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[g],i=null!=s.v0?s.v0:s.v0=Ob.arr(o.velocity)?o.velocity[g]:o.velocity;let a;const c=o.precision||(n==l?.005:Math.min(1,.001*Math.abs(l-n)));if(Ob.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);C=n+i/(1-e)*(1-r),A=Math.abs(s.lastPosition-C)<=c,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;const t=o.restVelocity||c/10,r=o.clamp?0:o.bounce,g=!Ob.und(r),I=n==l?s.v0>0:nt,u||(A=Math.abs(l-C)<=c,!A));++e){g&&(d=C==l||C>l==I,d&&(a=-a*r,C=l));a+=(1e-6*-o.tension*(C-l)+.001*-o.friction*a)/o.mass*h,C+=a*h}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),C=n+o.easing(r)*(l-n),a=(C-s.lastPosition)/e,A=1==r}s.lastVelocity=a,Number.isNaN(C)&&(A=!0)}a&&!a[g].done&&(A=!1),A?s.done=!0:t=!1,s.setValue(C,o.round)&&(n=!0)}));const s=nx(this),g=s.getValue();if(t){const e=Sw(r.to);g===e&&!n||o.decay?n&&o.decay&&this._onChange(g):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(g)}set(e){return lb.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Xx(this)){const{to:e,config:t}=this.animation;lb.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ob.und(e)?(n=this.queue||[],this.queue=[]):n=[Ob.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Fx(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ux(this._state,e&&this._lastCallId),lb.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ob.obj(n)?n[t]:n,(null==n||Tx(n))&&(n=void 0),r=Ob.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return Qx(this)||(e.reverse&&([n,r]=[r,n]),r=Sw(r),Ob.und(r)?nx(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bx(e,((e,t)=>/^on/.test(t)?mx(e,n):e))),sE(this,e,"onProps"),gE(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Lx(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{qx(this)||($x(this,!0),Fb(o.pauseQueue),gE(this,"onPause",Bx(this,tE(this,this.animation.to)),this))},resume:()=>{qx(this)&&($x(this,!1),Xx(this)&&this._resume(),Fb(o.resumeQueue),gE(this,"onResume",Bx(this,tE(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=nE(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(zx(this));const r=!Ob.und(e.to),i=!Ob.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(zx(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:g,from:l}=s;let{to:A=g,from:C=l}=e;!i||r||t.default&&!Ob.und(A)||(A=C),t.reverse&&([A,C]=[C,A]);const c=!Rb(C,l);c&&(s.from=C),C=Sw(C);const I=!Rb(A,g);I&&this._focus(A);const u=Tx(t.to),{config:d}=s,{decay:h,velocity:f}=d;(r||i)&&(d.velocity=0),t.config&&!u&&function(e,t,n){n&&(Px(n={...n},t),t={...n,...t}),Px(e,t),Object.assign(e,t);for(const t in Nx)null==e[t]&&(e[t]=Nx[t]);let{frequency:r,damping:i}=e;const{mass:o}=e;Ob.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(d,fx(t.config,o),t.config!==a.config?fx(a.config,o):void 0);let p=nx(this);if(!p||Ob.und(A))return n(Bx(this,!0));const m=Ob.und(t.reset)?i&&!t.default:!Ob.und(C)&&px(t.reset,o),v=m?C:this.get(),y=kx(A),b=Ob.num(y)||Ob.arr(y)||Qw(y),w=!u&&(!b||px(a.immediate||t.immediate,o));if(I){const e=cx(A);if(e!==p.constructor){if(!w)throw Error(`Cannot animate between ${p.constructor.name} and ${e.name}, as the "to" prop suggests`);p=this._set(y)}}const x=p.constructor;let E=kw(A),k=!1;if(!E){const e=m||!Qx(this)&&c;(I||e)&&(k=Rb(kx(v),y),E=!k),(Rb(s.immediate,w)||w)&&Rb(d.decay,h)&&Rb(d.velocity,f)||(E=!0)}if(k&&Xx(this)&&(s.changed&&!m?E=!0:E||this._stop(g)),!u&&((E||kw(g))&&(s.values=p.getPayload(),s.toValues=kw(A)?null:x==sx?[1]:Pb(y)),s.immediate!=w&&(s.immediate=w,w||m||this._set(g)),E)){const{onRest:e}=s;Nb(aE,(e=>sE(this,t,e)));const r=Bx(this,tE(this,g));Fb(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&lb.batchedUpdates((()=>{s.changed=!m,e?.(r,this),m?fx(a.onRest,r):s.onStart?.(r,this)}))}m&&this._set(v),u?n(Vx(t.to,t,this._state,this)):E?this._start():Xx(this)&&!I?this._pendingCalls.add(n):n(jx(v))}_focus(e){const t=this.animation;e!==t.to&&(Tw(this)&&this._detach(),t.to=e,Tw(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;kw(t)&&(_w(t,this),Wx(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;kw(e)&&Pw(e,this)}_set(e,t=!0){const n=Sw(e);if(!Ob.und(n)){const e=nx(this);if(!e||!Rb(n,e.getValue())){const r=cx(n);e&&e.constructor==r?e.setValue(n):rx(this,r.create(n)),e&&lb.batchedUpdates((()=>{this._onChange(n,t)}))}}return nx(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gE(this,"onStart",Bx(this,tE(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),fx(this.animation.onChange,e,this)),fx(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;nx(this).reset(Sw(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Xx(this)||(Jx(this,!0),qx(this)||this._resume())}_resume(){Sb.skipAnimation?this.finish():Yb.start(this)}_stop(e,t){if(Xx(this)){Jx(this,!1);const n=this.animation;Nb(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ow(this,{type:"idle",parent:this});const r=t?zx(this.get()):Bx(this.get(),tE(this,e??n.to));Fb(this._pendingCalls,r),n.changed&&(n.changed=!1,gE(this,"onRest",r,this))}}};function tE(e,t){const n=kx(t);return Rb(kx(e.get()),n)}function nE(e,t=e.loop,n=e.to){const r=fx(t);if(r){const i=!0!==r&&Ex(r),o=(i||e).reverse,a=!i||i.reset;return rE({...e,loop:t,default:!1,pause:void 0,to:!o||Tx(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function rE(e){const{to:t,from:n}=e=Ex(e),r=new Set;return Ob.obj(t)&&oE(t,r),Ob.obj(n)&&oE(n,r),e.keys=r.size?Array.from(r):null,e}function iE(e){const t=rE(e);return Ob.und(t.default)&&(t.default=bx(t)),t}function oE(e,t){_b(e,((e,n)=>null!=e&&t.add(n)))}var aE=["onStart","onRest","onChange","onPause","onResume"];function sE(e,t,n){e.animation[n]=t[n]!==vx(t,n)?mx(t[n],e.key):void 0}function gE(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var lE=["onStart","onChange","onRest"],AE=1,CE=class{constructor(e,t){this.id=AE++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Ob.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(rE(e)),this}start(e){let{queue:t}=this;return e?t=Pb(e).map(rE):this.queue=[],this._flush?this._flush(this,t):(pE(this,t),cE(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Nb(Pb(t),(t=>n[t].stop(!!e)))}else Ux(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Ob.und(e))this.start({pause:!0});else{const t=this.springs;Nb(Pb(e),(e=>t[e].pause()))}return this}resume(e){if(Ob.und(e))this.start({pause:!1});else{const t=this.springs;Nb(Pb(e),(e=>t[e].resume()))}return this}each(e){_b(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Db(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Db(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Db(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}lb.onFrame(this._onFrame)}};function cE(e,t){return Promise.all(t.map((t=>IE(e,t)))).then((t=>Fx(e,t)))}async function IE(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:g}=t,l=Ob.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const A=Ob.arr(i)||Ob.fun(i)?i:void 0;A?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):Nb(lE,(n=>{const r=t[n];if(Ob.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[n]=t[n])}}));const C=e._state;t.pause===!C.paused?(C.paused=t.pause,Fb(t.pause?C.pauseQueue:C.resumeQueue)):C.paused&&(t.pause=!0);const c=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),I=!0===t.cancel||!0===vx(t,"cancel");(A||I&&C.asyncId)&&c.push(Lx(++e._lastAsyncId,{props:t,state:C,actions:{pause:Tb,resume:Tb,start(t,n){I?(Ux(C,e._lastAsyncId),n(zx(e))):(t.onRest=s,n(Vx(A,t,C,e)))}}})),C.paused&&await new Promise((e=>{C.resumeQueue.add(e)}));const u=Fx(e,await Promise.all(c));if(a&&u.finished&&(!n||!u.noop)){const n=nE(t,a,i);if(n)return pE(e,[n]),IE(e,n,!0)}return g&&lb.batchedUpdates((()=>g(u,e,e.item))),u}function uE(e,t){const n={...e.springs};return t&&Nb(Pb(t),(e=>{Ob.und(e.keys)&&(e=rE(e)),Ob.obj(e.to)||(e={...e,to:void 0}),fE(n,e,(e=>hE(e)))})),dE(e,n),n}function dE(e,t){_b(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,_w(t,e))}))}function hE(e,t){const n=new eE;return n.key=e,t&&_w(n,t),n}function fE(e,t,n){t.keys&&Nb(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function pE(e,t){Nb(t,(t=>{fE(e.springs,t,(t=>hE(t,e)))}))}var mE=({children:e,...t})=>{const n=(0,Jo.useContext)(vE),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,Jo.useState)((()=>({inputs:t,result:e()}))),r=(0,Jo.useRef)(),i=r.current;let o=i;if(o){const n=Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:r,immediate:i})),[r,i]);const{Provider:o}=vE;return Jo.createElement(o,{value:t},e)},vE=function(e,t){return Object.assign(e,Jo.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(mE,{});mE.Provider=vE.Provider,mE.Consumer=vE.Consumer;var yE=()=>{const e=[],t=function(t){Kw(`${Ww}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Nb(e,((e,i)=>{if(Ob.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Nb(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Nb(e,(e=>e.resume(...arguments))),this},t.set=function(t){Nb(e,((e,n)=>{const r=Ob.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return Nb(e,((e,r)=>{if(Ob.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Nb(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Nb(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Ob.fun(e)?e(n,t):e};return t._getProps=n,t};function bE(e,t,n){const r=Ob.fun(t)&&t;r&&!n&&(n=[]);const i=(0,Jo.useMemo)((()=>r||3==arguments.length?yE():void 0),[]),o=(0,Jo.useRef)(0),a=qw(),s=(0,Jo.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=uE(e,t);return o.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?cE(e,t):new Promise((r=>{dE(e,n),s.queue.push((()=>{r(cE(e,t))})),a()}))}})),[]),g=(0,Jo.useRef)([...s.ctrls]),l=[],A=ex(e)||0;function C(e,n){for(let i=e;i{Nb(g.current.slice(e,A),(e=>{Ox(e,i),e.stop(!0)})),g.current.length=e,C(A,e)}),[e]),(0,Jo.useMemo)((()=>{C(0,Math.min(A,e))}),n);const c=g.current.map(((e,t)=>uE(e,l[t]))),I=(0,Jo.useContext)(mE),u=ex(I),d=I!==u&&Sx(I);Xw((()=>{o.current++,s.ctrls=g.current;const{queue:e}=s;e.length&&(s.queue=[],Nb(e,(e=>e()))),Nb(g.current,((e,t)=>{i?.add(e),d&&e.start({default:I});const n=l[t];n&&(Rx(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Jw((()=>()=>{Nb(s.ctrls,(e=>e.stop(!0)))}));const h=c.map((e=>({...e})));return i?[h,i]:h}function wE(e,t){const n=Ob.fun(e),[[r],i]=bE(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var xE=class extends Yx{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=hw(...t);const n=this._get(),r=cx(n);rx(this,r.create(n))}advance(e){const t=this._get();Rb(t,this.get())||(nx(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&kE(this._active)&&SE(this)}_get(){const e=Ob.arr(this.source)?this.source.map(Sw):Pb(Sw(this.source));return this.calc(...e)}_start(){this.idle&&!kE(this._active)&&(this.idle=!1,Nb(ix(this),(e=>{e.done=!1})),Sb.skipAnimation?(lb.batchedUpdates((()=>this.advance())),SE(this)):Yb.start(this))}_attach(){let e=1;Nb(Pb(this.source),(t=>{kw(t)&&_w(t,this),Wx(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Nb(Pb(this.source),(e=>{kw(e)&&Pw(e,this)})),this._active.clear(),SE(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Pb(this.source).reduce(((e,t)=>Math.max(e,(Wx(t)?t.priority:0)+1)),0))}};function EE(e){return!1!==e.idle}function kE(e){return!e.size||Array.from(e).every(EE)}function SE(e){e.idle||(e.idle=!0,Nb(ix(e),(e=>{e.done=!0})),Ow(e,{type:"idle",parent:e}))}Sb.assign({createStringInterpolator:Gw,to:(e,t)=>new xE(e,t)});Yb.advance;var TE=/^--/;function OE(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||TE.test(e)||NE.hasOwnProperty(e)&&NE[e]?(""+t).trim():t+"px"}var RE={};var NE={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_E=["Webkit","Ms","Moz","O"];NE=Object.keys(NE).reduce(((e,t)=>(_E.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),NE);var PE=/^(matrix|translate|scale|rotate|skew)/,DE=/^(translate)/,ME=/^(rotate|skew)/,LE=(e,t)=>Ob.num(e)&&0!==e?e+t:e,FE=(e,t)=>Ob.arr(e)?e.every((e=>FE(e,t))):Ob.num(e)?e===t:parseFloat(e)===t,jE=class extends lx{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>LE(e,"px"))).join(",")})`,FE(e,0)]))),_b(r,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(PE.test(t)){if(delete r[t],Ob.und(e))return;const n=DE.test(t)?"px":ME.test(t)?"deg":"";i.push(Pb(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${LE(i,n)})`,FE(i,0)]:e=>[`${t}(${e.map((e=>LE(e,n))).join(",")})`,FE(e,t.startsWith("scale")?1:0)])}})),i.length&&(r.transform=new BE(i,o)),super(r)}},BE=class extends Rw{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Nb(this.inputs,((n,r)=>{const i=Sw(n[0]),[o,a]=this.transforms[r](Ob.arr(i)?i:n.map(Sw));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Nb(this.inputs,(e=>Nb(e,(e=>kw(e)&&_w(e,this)))))}observerRemoved(e){0==e&&Nb(this.inputs,(e=>Nb(e,(e=>kw(e)&&Pw(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ow(this,e)}};Sb.assign({batchedUpdates:gd.unstable_batchedUpdates,createStringInterpolator:Gw,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var zE=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new lx(e),getComponentProps:r=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=hx(e)||"Anonymous";return(e=Ob.str(e)?o[e]||(o[e]=Ix(e,i)):e[dx]||(e[dx]=Ix(e,i))).displayName=`Animated(${t})`,e};return _b(e,((t,n)=>{Ob.arr(e)&&(n=hx(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:g,...l}=t,A=Object.values(l),C=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:RE[t]||(RE[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=OE(t,i[t]);TE.test(t)?e.style.setProperty(t,n):e.style[t]=n}C.forEach(((t,n)=>{e.setAttribute(t,A[n])})),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==g&&e.setAttribute("viewBox",g)},createAnimatedStyle:e=>new jE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),VE=zE.animated;function UE({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 8.25H7.5a2.25 2.25 0 0 0-2.25 2.25v9a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25H15M9 12l3 3m0 0 3-3m-3 3V2.25"}))}const ZE=Jo.forwardRef(UE),GE=e=>{let{title:t,onButtonClick:n,buttonText:r,icon:i=Jo.createElement(ZE,{className:"w-5 h-5"})}=e;const[o,a]=(0,Jo.useState)(!1),s=(0,Jo.useRef)(null),{ref:g,inView:l}=function({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:o,skip:a,initialInView:s,fallbackInView:g,onChange:l}={}){var A;const[C,c]=Jo.useState(null),I=Jo.useRef(),[u,d]=Jo.useState({inView:!!s,entry:void 0});I.current=l,Jo.useEffect((()=>{if(a||!C)return;let s;return s=sb(C,((e,t)=>{d({inView:e,entry:t}),I.current&&I.current(e,t),t.isIntersecting&&o&&s&&(s(),s=void 0)}),{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},g),()=>{s&&s()}}),[Array.isArray(e)?e.toString():e,C,i,r,o,a,n,g,t]);const h=null==(A=u.entry)?void 0:A.target,f=Jo.useRef();C||!h||o||a||f.current===h||(f.current=h,d({inView:!!s,entry:void 0}));const p=[c,u.inView,u.entry];return p.ref=p[0],p.inView=p[1],p.entry=p[2],p}({triggerOnce:!0}),A=e=>{if(s.current){const t=s.current.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/2,i=Math.sqrt(Math.pow(e.clientX-n,2)+Math.pow(e.clientY-r,2));a(i<300)}};(0,Jo.useEffect)((()=>(window.addEventListener("mousemove",A),()=>{window.removeEventListener("mousemove",A)})),[]);const C=wE({config:{bounce:.4,friction:12,tension:180},opacity:l?1:0,transform:l?"translateX(0px)":"translateX(300px)"});return Jo.createElement("div",{className:"relative mb-6"},Jo.createElement("div",{"aria-hidden":"true",className:"absolute inset-0 flex items-center"},Jo.createElement("div",{className:"w-full border-t border-gray-300"})),Jo.createElement("div",{className:"relative flex flex-wrap items-center justify-between gap-y-4 md:flex-nowrap"},Jo.createElement("div",{className:"w-full md:w-auto"},Jo.createElement("h1",{className:"pr-3 text-3xl font-semibold text-center text-gray-900 bg-white font-display"},t)),Jo.createElement("div",{className:jI()("flex justify-center w-full md:w-auto",{"animate-bounce":o}),ref:s},Jo.createElement(VE.button,{className:jI()("justify-center md:justify-start text-gray-600 hover:bg-gray-600 ring-gray-600 inline-flex items-center gap-x-1.5 rounded-md md:rounded-full bg-white px-3 py-1.5 text-md ring-1 ring-inset font-semibold shadow-sm hover:text-white transition-all duration-500 w-full mt-10 md:mt-0 md:w-auto",{"text-pink-600 hover:bg-pink-600 ring-pink-600":o}),onClick:n,ref:g,style:C,type:"button"},i,Jo.createElement("span",null,r)))))};var WE=n(5556),HE=n.n(WE),YE=["color","size","title","className"];function KE(){return KE=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var XE=(0,Jo.forwardRef)((function(e,t){var n=e.color,r=e.size,i=e.title,o=e.className,a=QE(e,YE);return Jo.createElement("svg",KE({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-shuffle",o].filter(Boolean).join(" ")},a),i?Jo.createElement("title",null,i):null,Jo.createElement("path",{fillRule:"evenodd",d:"M0 3.5A.5.5 0 0 1 .5 3H1c2.202 0 3.827 1.24 4.874 2.418.49.552.865 1.102 1.126 1.532.26-.43.636-.98 1.126-1.532C9.173 4.24 10.798 3 13 3v1c-1.798 0-3.173 1.01-4.126 2.082A9.6 9.6 0 0 0 7.556 8a9.6 9.6 0 0 0 1.317 1.918C9.828 10.99 11.204 12 13 12v1c-2.202 0-3.827-1.24-4.874-2.418A10.6 10.6 0 0 1 7 9.05c-.26.43-.636.98-1.126 1.532C4.827 11.76 3.202 13 1 13H.5a.5.5 0 0 1 0-1H1c1.798 0 3.173-1.01 4.126-2.082A9.6 9.6 0 0 0 6.444 8a9.6 9.6 0 0 0-1.317-1.918C4.172 5.01 2.796 4 1 4H.5a.5.5 0 0 1-.5-.5"}),Jo.createElement("path",{d:"M13 5.466V1.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384l-2.36 1.966a.25.25 0 0 1-.41-.192m0 9v-3.932a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384l-2.36 1.966a.25.25 0 0 1-.41-.192"}))}));XE.propTypes={color:HE().string,size:HE().oneOfType([HE().string,HE().number]),title:HE().string,className:HE().string},XE.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const qE=XE;var JE=["color","size","title","className"];function $E(){return $E=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tk=(0,Jo.forwardRef)((function(e,t){var n=e.color,r=e.size,i=e.title,o=e.className,a=ek(e,JE);return Jo.createElement("svg",$E({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-cone-striped",o].filter(Boolean).join(" ")},a),i?Jo.createElement("title",null,i):null,Jo.createElement("path",{d:"m9.97 4.88.953 3.811C10.159 8.878 9.14 9 8 9s-2.158-.122-2.923-.309L6.03 4.88C6.635 4.957 7.3 5 8 5s1.365-.043 1.97-.12m-.245-.978L8.97.88C8.718-.13 7.282-.13 7.03.88L6.275 3.9C6.8 3.965 7.382 4 8 4s1.2-.036 1.725-.098m4.396 8.613a.5.5 0 0 1 .037.96l-6 2a.5.5 0 0 1-.316 0l-6-2a.5.5 0 0 1 .037-.96l2.391-.598.565-2.257c.862.212 1.964.339 3.165.339s2.303-.127 3.165-.339l.565 2.257z"}))}));tk.propTypes={color:HE().string,size:HE().oneOfType([HE().string,HE().number]),title:HE().string,className:HE().string},tk.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const nk=tk;function rk({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z",clipRule:"evenodd"}))}const ik=Jo.forwardRef(rk),ok={info:"bg-blue-50 text-blue-700",muted:"bg-gray-100 text-gray-500",sky:"bg-sky-200 text-blue-900",transparent:"bg-transparent text-gray-500",underConstruction:"bg-yellow-100 text-yellow-800",warning:"bg-yellow-100 text-yellow-800"},ak={compact:"p-3",normal:"p-6"},sk={info:Jo.createElement("div",{className:"flex-shrink-0"},Jo.createElement(ik,{"aria-hidden":"true",className:"w-5 h-5 text-blue-400"})),sky:Jo.createElement("div",{className:"flex-shrink-0",style:{paddingTop:"2px"}},Jo.createElement(qE,{"aria-hidden":"true",className:"w-5 h-5 text-blue-900"})),underConstruction:Jo.createElement("div",{className:"flex-shrink-0"},Jo.createElement(nk,{"aria-hidden":"true",className:"w-6 h-6 text-yellow-800"}))},gk={around:"justify-around",between:"justify-between",center:"justify-center",end:"justify-end",start:"justify-start"},lk=e=>{let{variant:t="muted",icon:n=!1,padding:r="normal",align:i="between",expand:o=!0,children:a}=e;return Jo.createElement("div",{className:jI()("rounded w-full",ok[t],ak[r]),role:"alert"},Jo.createElement("div",{className:jI()("flex w-full",gk[i])},n&&sk[t],Jo.createElement("div",{className:jI()({"flex-1":o,"ml-3":n})},a)))};function Ak({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Ck=Jo.forwardRef(Ak);function ck({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))}const Ik=Jo.forwardRef(ck),uk=e=>{let{show:t,setShow:n,title:r,message:i}=e;return(0,Jo.useEffect)((()=>{if(t){const e=setTimeout((()=>{n(!1)}),6e3);return()=>clearTimeout(e)}}),[t,n]),Jo.createElement(Jo.Fragment,null,Jo.createElement("div",{"aria-live":"assertive",className:"fixed inset-0 flex items-start justify-end px-4 py-6 pointer-events-none sm:p-6",style:{top:"75px",zIndex:9999999}},Jo.createElement("div",{className:"flex flex-col items-center w-full space-y-4 sm:items-end"},Jo.createElement(Mu,{as:Jo.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:t},Jo.createElement("div",{className:"w-full max-w-sm overflow-hidden bg-white rounded-lg shadow-lg pointer-events-auto ring-1 ring-black ring-opacity-5"},Jo.createElement("div",{className:"p-4"},Jo.createElement("div",{className:"flex items-start"},Jo.createElement("div",{className:"flex-shrink-0"},Jo.createElement(Ck,{"aria-hidden":"true",className:"w-6 h-6 text-brandgreen-400"})),Jo.createElement("div",{className:"ml-3 w-0 flex-1 pt-0.5"},Jo.createElement("p",{className:"text-sm font-medium text-gray-900"},r),Jo.createElement("p",{className:"mt-1 text-sm text-gray-500"},i)),Jo.createElement("div",{className:"flex flex-shrink-0 ml-4"},Jo.createElement("button",{className:"inline-flex text-gray-400 bg-white rounded-md hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:()=>n(!1),type:"button"},Jo.createElement("span",{className:"sr-only"},"Close"),Jo.createElement(Ik,{"aria-hidden":"true",className:"w-5 h-5"}))))))))))},dk=e=>{let{open:t,setOpen:n,subtitle:r,subsubtitle:i="",title:o,submitButtonText:a,onSubmit:s=()=>{},customButtons:g,bgOpacity:l="bg-opacity-75",backdropBlur:A,disabled:C=!1,onlyCancelButton:c=!1,children:I}=e;const u=(0,Jo.useRef)(null),d=Jo.createElement("div",{className:"w-full mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"},!c&&Jo.createElement("button",{className:"inline-flex justify-center w-full px-3 py-2 text-sm font-semibold text-white rounded-md shadow-sm sm:ml-3 sm:w-auto",disabled:C,onClick:()=>{s(),n(!1)},type:"button"},a),Jo.createElement("button",{className:"inline-flex justify-center w-full px-3 py-2 mt-3 text-sm font-semibold text-gray-900 bg-white rounded-md shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:mt-0 sm:w-auto",onClick:()=>n(!1),ref:u,type:"button"},"Cancel"));return Jo.createElement(Mu.Root,{as:Jo.Fragment,show:t},Jo.createElement(gh,{as:"div",className:"relative",initialFocus:u,onClose:()=>n(!1)},Jo.createElement(Mu.Child,{as:Jo.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},Jo.createElement("div",{className:jI()("fixed inset-0 z-50 transition-opacity bg-gray-500",l,A)})),Jo.createElement("div",{className:"fixed inset-0 z-50 overflow-y-auto"},Jo.createElement("div",{className:"flex items-center justify-center w-full min-h-full p-4"},Jo.createElement(Mu.Child,{as:Jo.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},Jo.createElement(gh.Panel,{className:jI()("relative w-full max-w-7xl overflow-hidden text-left transition-all transform bg-white rounded-lg shadow-xl sm:my-8","flex flex-col max-h-[90vh]")},Jo.createElement("div",{className:"flex-1 overflow-y-auto p-8",id:"modal-content-container"},Jo.createElement(gh.Title,{as:"h3",className:"text-2xl text-left font-semibold leading-6 text-gray-900 py-4 font-display"},o),i&&Jo.createElement("div",{className:"text-xs mb-4"},Jo.createElement("small",null,i)),Jo.createElement("div",{className:"text-sm mb-4"},r),Jo.createElement("div",{className:"w-full mt-2"},I)),Jo.createElement("div",{className:"p-4 border-t border-gray-300"},g||d)))))))},hk=()=>{const{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?`:${n}`:""}`},fk=e=>{let{id:t,left:n="-37px",user_submitted_status:r,children:i}=e;return Jo.createElement("div",{className:"relative"},"pending"===r&&Jo.createElement(Fp,{content:"This component is a user submission. User submissions are reviewed for accuracy and relevance, typically within 24 hours."},Jo.createElement("div",{className:"flex justify-center align-middle text-2xl",style:{backgroundColor:"#db2777",borderRadius:"12px",color:"#ffffff",fontSize:"8px",fontWeight:"bold",height:"20px",left:n,overflow:"visible",padding:"0.1rem 0.1rem",position:"absolute",top:"50%",transform:"translateY(-50%) rotate(-90deg)",whiteSpace:"nowrap",width:"45px",zIndex:1}},Jo.createElement("div",{style:{transform:"translateY(-45%)"}},"verifying"))),Jo.createElement("a",{className:"text-blue-500 hover:text-blue-700",href:`${hk()}/components/${t}`},i))};function pk({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))}const mk=Jo.forwardRef(pk);function vk({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",clipRule:"evenodd"}))}const yk=Jo.forwardRef(vk);function bk({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const wk=Jo.forwardRef(bk);var xk=n(2543),Ek=n.n(xk);const kk=e=>{let{currentPage:t,totalPages:n,navigate:r}=e;const i=Ek().range(1,n+1);return Jo.createElement("nav",{"aria-label":"Pagination",className:"inline-flex -space-x-px rounded-md shadow-sm isolate"},Jo.createElement("a",{className:"relative inline-flex items-center px-2 py-2 text-gray-400 rounded-l-md ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:outline-offset-0",href:"#",onClick:e=>{e.preventDefault(),r(Math.max(1,t-1))}},Jo.createElement("span",{className:"sr-only"},"Previous"),Jo.createElement(yk,{"aria-hidden":"true",className:"w-5 h-5"})),i.map((e=>1===e||2===e||e===n||e>=t-1&&e<=t+1?Jo.createElement("a",{"aria-current":t===e?"page":void 0,className:jI()("relative inline-flex items-center px-4 py-2 text-sm font-semibold focus:outline-offset-0",{"bg-brandgreen-500 text-white":t===e,"text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-100":t!==e}),href:"#",key:e,onClick:t=>{t.preventDefault(),r(e)}},e):3===e||e===n-1?Jo.createElement("span",{className:"relative inline-flex items-center px-4 py-2 text-sm font-semibold text-gray-900",key:e},"..."):null)),Jo.createElement("a",{className:"relative inline-flex items-center px-2 py-2 text-gray-400 rounded-r-md ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:outline-offset-0",href:"#",onClick:e=>{e.preventDefault(),r(Math.min(n,t+1))}},Jo.createElement("span",{className:"sr-only"},"Next"),Jo.createElement(wk,{"aria-hidden":"true",className:"w-5 h-5"})))};var Sk=e=>"checkbox"===e.type,Tk=e=>e instanceof Date,Ok=e=>null==e;const Rk=e=>"object"==typeof e;var Nk=e=>!Ok(e)&&!Array.isArray(e)&&Rk(e)&&!Tk(e),_k=e=>Nk(e)&&e.target?Sk(e.target)?e.target.checked:e.target.value:e,Pk=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Dk="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Mk(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Dk&&(e instanceof Blob||e instanceof FileList)||!n&&!Nk(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return Nk(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Mk(e[n]));else t=e}return t}var Lk=e=>Array.isArray(e)?e.filter(Boolean):[],Fk=e=>void 0===e,jk=(e,t,n)=>{if(!t||!Nk(e))return n;const r=Lk(t.split(/[,[\].]+?/)).reduce(((e,t)=>Ok(e)?e:e[t]),e);return Fk(r)||r===e?Fk(e[t])?n:e[t]:r},Bk=e=>"boolean"==typeof e,zk=e=>/^\w*$/.test(e),Vk=e=>Lk(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Uk=(e,t,n)=>{let r=-1;const i=zk(t)?[t]:Vk(t),o=i.length,a=o-1;for(;++rJo.useContext(iS);var aS=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Xk&&(t._proxyFormState[i]=!r||Xk),n&&(n[i]=!0),e[i]}});return i},sS=e=>Nk(e)&&!Object.keys(e).length,gS=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return sS(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||Xk)))},lS=e=>Array.isArray(e)?e:[e],AS=(e,t,n)=>!e||!t||e===t||lS(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function CS(e){const t=Jo.useRef(e);t.current=e,Jo.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var cS=e=>"string"==typeof e,IS=(e,t,n,r,i)=>cS(e)?(r&&t.watch.add(e),jk(n,e,i)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),jk(n,e)))):(r&&(t.watchAll=!0),n);function uS(e){const t=oS(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=Jo.useRef(r);s.current=r,CS({disabled:o,subject:n._subjects.values,next:e=>{AS(s.current,e.name,a)&&l(Mk(IS(s.current,n._names,e.values||n._formValues,!1,i)))}});const[g,l]=Jo.useState(n._getWatch(r,i));return Jo.useEffect((()=>n._removeUnmounted())),g}function dS(e){const t=oS(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=Pk(i._names.array,n),s=uS({control:i,name:n,defaultValue:jk(i._formValues,n,jk(i._defaultValues,n,e.defaultValue)),exact:!0}),g=function(e){const t=oS(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=Jo.useState(n._formState),g=Jo.useRef(!0),l=Jo.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),A=Jo.useRef(i);return A.current=i,CS({disabled:r,next:e=>g.current&&AS(A.current,e.name,o)&&gS(e,l.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),Jo.useEffect((()=>(g.current=!0,l.current.isValid&&n._updateValid(!0),()=>{g.current=!1})),[n]),aS(a,n,l.current,!1)}({control:i,name:n,exact:!0}),l=Jo.useRef(i.register(n,{...e.rules,value:s,...Bk(e.disabled)?{disabled:e.disabled}:{}}));return Jo.useEffect((()=>{const e=i._options.shouldUnregister||o,t=(e,t)=>{const n=jk(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=Mk(jk(i._options.defaultValues,n));Uk(i._defaultValues,n,e),Fk(jk(i._formValues,n))&&Uk(i._formValues,n,e)}return()=>{(a?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}}),[n,i,a,o]),Jo.useEffect((()=>{jk(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:jk(i._fields,n)._f.value})}),[r,n,i]),{field:{name:n,value:s,...Bk(r)||g.disabled?{disabled:g.disabled||r}:{},onChange:Jo.useCallback((e=>l.current.onChange({target:{value:_k(e),name:n},type:Wk})),[n]),onBlur:Jo.useCallback((()=>l.current.onBlur({target:{value:jk(i._formValues,n),name:n},type:Zk})),[n,i]),ref:Jo.useCallback((e=>{const t=jk(i._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[i._fields,n])},formState:g,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!jk(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!jk(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!jk(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!jk(g.validatingFields,n)},error:{enumerable:!0,get:()=>jk(g.errors,n)}})}}const hS=e=>e.render(dS(e));var fS=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},pS=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(16*Math.random()+e)%16|0;return("x"==t?n:3&n|8).toString(16)}))},mS=(e,t,n={})=>n.shouldFocus||Fk(n.shouldFocus)?n.focusName||`${e}.${Fk(n.focusIndex)?t:n.focusIndex}.`:"",vS=e=>({isOnSubmit:!e||e===Kk,isOnBlur:e===Hk,isOnChange:e===Yk,isOnAll:e===Xk,isOnTouch:e===Qk}),yS=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const bS=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const n=jk(e,i);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(bS(o,t))break}else if(Nk(o)&&bS(o,t))break}}};var wS=(e,t,n)=>{const r=lS(jk(e,n));return Uk(r,"root",t[n]),Uk(e,n,r),e},xS=e=>"file"===e.type,ES=e=>"function"==typeof e,kS=e=>{if(!Dk)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},SS=e=>cS(e),TS=e=>"radio"===e.type,OS=e=>e instanceof RegExp;const RS={value:!1,isValid:!1},NS={value:!0,isValid:!0};var _S=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Fk(e[0].attributes.value)?Fk(e[0].value)||""===e[0].value?NS:{value:e[0].value,isValid:!0}:NS:RS}return RS};const PS={isValid:!1,value:null};var DS=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),PS):PS;function MS(e,t,n="validate"){if(SS(e)||Array.isArray(e)&&e.every(SS)||Bk(e)&&!e)return{type:n,message:SS(e)?e:"",ref:t}}var LS=e=>Nk(e)&&!OS(e)?e:{value:e,message:""},FS=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:g,minLength:l,min:A,max:C,pattern:c,validate:I,name:u,valueAsNumber:d,mount:h,disabled:f}=e._f,p=jk(t,u);if(!h||f)return{};const m=a?a[0]:o,v=e=>{r&&m.reportValidity&&(m.setCustomValidity(Bk(e)?"":e||""),m.reportValidity())},y={},b=TS(o),w=Sk(o),x=b||w,E=(d||xS(o))&&Fk(o.value)&&Fk(p)||kS(o)&&""===o.value||""===p||Array.isArray(p)&&!p.length,k=fS.bind(null,u,n,y),S=(e,t,n,r=$k,i=eS)=>{const a=e?t:n;y[u]={type:e?r:i,message:a,ref:o,...k(e?r:i,a)}};if(i?!Array.isArray(p)||!p.length:s&&(!x&&(E||Ok(p))||Bk(p)&&!p||w&&!_S(a).isValid||b&&!DS(a).isValid)){const{value:e,message:t}=SS(s)?{value:!!s,message:s}:LS(s);if(e&&(y[u]={type:nS,message:t,ref:m,...k(nS,t)},!n))return v(t),y}if(!(E||Ok(A)&&Ok(C))){let e,t;const r=LS(C),i=LS(A);if(Ok(p)||isNaN(p)){const n=o.valueAsDate||new Date(p),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,g="week"==o.type;cS(r.value)&&p&&(e=s?a(p)>a(r.value):g?p>r.value:n>new Date(r.value)),cS(i.value)&&p&&(t=s?a(p)r.value),Ok(i.value)||(t=n+e.value,i=!Ok(t.value)&&p.length<+t.value;if((r||i)&&(S(r,e.message,t.message),!n))return v(y[u].message),y}if(c&&!E&&cS(p)){const{value:e,message:t}=LS(c);if(OS(e)&&!p.match(e)&&(y[u]={type:tS,message:t,ref:o,...k(tS,t)},!n))return v(t),y}if(I)if(ES(I)){const e=MS(await I(p,t),m);if(e&&(y[u]={...e,...k(rS,e.message)},!n))return v(e.message),y}else if(Nk(I)){let e={};for(const r in I){if(!sS(e)&&!n)break;const i=MS(await I[r](p,t),m,r);i&&(e={...i,...k(r,i.message)},v(i.message),n&&(y[u]=e))}if(!sS(e)&&(y[u]={ref:m,...e},!n))return y}return v(!0),y},jS=(e,t)=>[...e,...lS(t)],BS=e=>Array.isArray(e)?e.map((()=>{})):void 0;function zS(e,t,n){return[...e.slice(0,t),...lS(n),...e.slice(t)]}var VS=(e,t,n)=>Array.isArray(e)?(Fk(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],US=(e,t)=>[...lS(t),...lS(e)];var ZS=(e,t)=>Fk(t)?[]:function(e,t){let n=0;const r=[...e];for(const e of t)r.splice(e-n,1),n++;return Lk(r).length?r:[]}(e,lS(t).sort(((e,t)=>e-t))),GS=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function WS(e,t){const n=Array.isArray(t)?t:zk(t)?[t]:Vk(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r(e[t]=n,e);function YS(e){const t=oS(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:o}=e,[a,s]=Jo.useState(n._getFieldArray(r)),g=Jo.useRef(n._getFieldArray(r).map(pS)),l=Jo.useRef(a),A=Jo.useRef(r),C=Jo.useRef(!1);A.current=r,l.current=a,n._names.array.add(r),e.rules&&n.register(r,e.rules),CS({next:({values:e,name:t})=>{if(t===A.current||!t){const t=jk(e,A.current);Array.isArray(t)&&(s(t),g.current=t.map(pS))}},subject:n._subjects.array});const c=Jo.useCallback((e=>{C.current=!0,n._updateFieldArray(r,e)}),[n,r]);return Jo.useEffect((()=>{if(n._state.action=!1,yS(r,n._names)&&n._subjects.state.next({...n._formState}),C.current&&(!vS(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then((e=>{const t=jk(e.errors,r),i=jk(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?Uk(n._formState.errors,r,t):WS(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))}));else{const e=jk(n._fields,r);!e||!e._f||vS(n._options.reValidateMode).isOnSubmit&&vS(n._options.mode).isOnSubmit||FS(e,n._formValues,n._options.criteriaMode===Xk,n._options.shouldUseNativeValidation,!0).then((e=>!sS(e)&&n._subjects.state.next({errors:wS(n._formState.errors,e,r)})))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&bS(n._fields,((e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1})),n._names.focus="",n._updateValid(),C.current=!1}),[a,r,n]),Jo.useEffect((()=>(!jk(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||o)&&n.unregister(r)})),[r,n,i,o]),{swap:Jo.useCallback(((e,t)=>{const i=n._getFieldArray(r);GS(i,e,t),GS(g.current,e,t),c(i),s(i),n._updateFieldArray(r,i,GS,{argA:e,argB:t},!1)}),[c,r,n]),move:Jo.useCallback(((e,t)=>{const i=n._getFieldArray(r);VS(i,e,t),VS(g.current,e,t),c(i),s(i),n._updateFieldArray(r,i,VS,{argA:e,argB:t},!1)}),[c,r,n]),prepend:Jo.useCallback(((e,t)=>{const i=lS(Mk(e)),o=US(n._getFieldArray(r),i);n._names.focus=mS(r,0,t),g.current=US(g.current,i.map(pS)),c(o),s(o),n._updateFieldArray(r,o,US,{argA:BS(e)})}),[c,r,n]),append:Jo.useCallback(((e,t)=>{const i=lS(Mk(e)),o=jS(n._getFieldArray(r),i);n._names.focus=mS(r,o.length-1,t),g.current=jS(g.current,i.map(pS)),c(o),s(o),n._updateFieldArray(r,o,jS,{argA:BS(e)})}),[c,r,n]),remove:Jo.useCallback((e=>{const t=ZS(n._getFieldArray(r),e);g.current=ZS(g.current,e),c(t),s(t),n._updateFieldArray(r,t,ZS,{argA:e})}),[c,r,n]),insert:Jo.useCallback(((e,t,i)=>{const o=lS(Mk(t)),a=zS(n._getFieldArray(r),e,o);n._names.focus=mS(r,e,i),g.current=zS(g.current,e,o.map(pS)),c(a),s(a),n._updateFieldArray(r,a,zS,{argA:e,argB:BS(t)})}),[c,r,n]),update:Jo.useCallback(((e,t)=>{const i=Mk(t),o=HS(n._getFieldArray(r),e,i);g.current=[...o].map(((t,n)=>t&&n!==e?g.current[n]:pS())),c(o),s([...o]),n._updateFieldArray(r,o,HS,{argA:e,argB:i},!0,!1)}),[c,r,n]),replace:Jo.useCallback((e=>{const t=lS(Mk(e));g.current=t.map(pS),c([...t]),s([...t]),n._updateFieldArray(r,[...t],(e=>e),{},!0,!1)}),[c,r,n]),fields:Jo.useMemo((()=>a.map(((e,t)=>({...e,[i]:g.current[t]||pS()})))),[a,i])}}var KS=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},QS=e=>Ok(e)||!Rk(e);function XS(e,t){if(QS(e)||QS(t))return e===t;if(Tk(e)&&Tk(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if(Tk(n)&&Tk(e)||Nk(n)&&Nk(e)||Array.isArray(n)&&Array.isArray(e)?!XS(n,e):n!==e)return!1}}return!0}var qS=e=>"select-multiple"===e.type,JS=e=>kS(e)&&e.isConnected,$S=e=>{for(const t in e)if(ES(e[t]))return!0;return!1};function eT(e,t={}){const n=Array.isArray(e);if(Nk(e)||n)for(const n in e)Array.isArray(e[n])||Nk(e[n])&&!$S(e[n])?(t[n]=Array.isArray(e[n])?[]:{},eT(e[n],t[n])):Ok(e[n])||(t[n]=!0);return t}function tT(e,t,n){const r=Array.isArray(e);if(Nk(e)||r)for(const r in e)Array.isArray(e[r])||Nk(e[r])&&!$S(e[r])?Fk(t)||QS(n[r])?n[r]=Array.isArray(e[r])?eT(e[r],[]):{...eT(e[r])}:tT(e[r],Ok(t)?{}:t[r],n[r]):n[r]=!XS(e[r],t[r]);return n}var nT=(e,t)=>tT(e,t,eT(t)),rT=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Fk(e)?e:t?""===e?NaN:e?+e:e:n&&cS(e)?new Date(e):r?r(e):e;function iT(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return xS(t)?t.files:TS(t)?DS(e.refs).value:qS(t)?[...t.selectedOptions].map((({value:e})=>e)):Sk(t)?_S(e.refs).value:rT(Fk(t.value)?e.ref.value:t.value,e)}var oT=e=>Fk(e)?e:OS(e)?e.source:Nk(e)?OS(e.value)?e.value.source:e.value:e;const aT="AsyncFunction";function sT(e,t,n){const r=jk(e,n);if(r||zk(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),o=jk(t,r),a=jk(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}const gT={mode:Kk,reValidateMode:Yk,shouldFocusError:!0};function lT(e={}){let t,n={...gT,...e},r={submitCount:0,isDirty:!1,isLoading:ES(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=(Nk(n.defaultValues)||Nk(n.values))&&Mk(n.defaultValues||n.values)||{},a=n.shouldUnregister?{}:Mk(o),s={action:!1,mount:!1,watch:!1},g={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l=0;const A={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},C={values:KS(),array:KS(),state:KS()},c=vS(n.mode),I=vS(n.reValidateMode),u=n.criteriaMode===Xk,d=async e=>{if(!n.disabled&&(A.isValid||e)){const e=n.resolver?sS((await v()).errors):await y(i,!0);e!==r.isValid&&C.state.next({isValid:e})}},h=(e,t)=>{n.disabled||!A.isValidating&&!A.validatingFields||((e||Array.from(g.mount)).forEach((e=>{e&&(t?Uk(r.validatingFields,e,t):WS(r.validatingFields,e))})),C.state.next({validatingFields:r.validatingFields,isValidating:!sS(r.validatingFields)}))},f=(e,t,n,r)=>{const g=jk(i,e);if(g){const i=jk(a,e,Fk(n)?jk(o,e):n);Fk(i)||r&&r.defaultChecked||t?Uk(a,e,t?i:iT(g._f)):x(e,i),s.mount&&d()}},p=(e,t,a,s,g)=>{let l=!1,c=!1;const I={name:e};if(!n.disabled){const n=!!(jk(i,e)&&jk(i,e)._f&&jk(i,e)._f.disabled);if(!a||s){A.isDirty&&(c=r.isDirty,r.isDirty=I.isDirty=b(),l=c!==I.isDirty);const i=n||XS(jk(o,e),t);c=!(n||!jk(r.dirtyFields,e)),i||n?WS(r.dirtyFields,e):Uk(r.dirtyFields,e,!0),I.dirtyFields=r.dirtyFields,l=l||A.dirtyFields&&c!==!i}if(a){const t=jk(r.touchedFields,e);t||(Uk(r.touchedFields,e,a),I.touchedFields=r.touchedFields,l=l||A.touchedFields&&t!==a)}l&&g&&C.state.next(I)}return l?I:{}},m=(n,i,o,a)=>{const s=jk(r.errors,n),g=A.isValid&&Bk(i)&&r.isValid!==i;var c;if(e.delayError&&o?(c=()=>((e,t)=>{Uk(r.errors,e,t),C.state.next({errors:r.errors})})(n,o),t=e=>{clearTimeout(l),l=setTimeout(c,e)},t(e.delayError)):(clearTimeout(l),t=null,o?Uk(r.errors,n,o):WS(r.errors,n)),(o?!XS(s,o):s)||!sS(a)||g){const e={...a,...g&&Bk(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},C.state.next(e)}},v=async e=>{h(e,!0);const t=await n.resolver(a,n.context,((e,t,n,r)=>{const i={};for(const n of e){const e=jk(t,n);e&&Uk(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||g.mount,i,n.criteriaMode,n.shouldUseNativeValidation));return h(e),t},y=async(e,t,i={valid:!0})=>{for(const s in e){const l=e[s];if(l){const{_f:e,...C}=l;if(e){const C=g.array.has(e.name),c=l._f&&!((o=l._f)&&o.validate||!(ES(o.validate)&&o.validate.constructor.name===aT||Nk(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===aT))));c&&A.validatingFields&&h([s],!0);const I=await FS(l,a,u,n.shouldUseNativeValidation&&!t,C);if(c&&A.validatingFields&&h([s]),I[e.name]&&(i.valid=!1,t))break;!t&&(jk(I,e.name)?C?wS(r.errors,I,e.name):Uk(r.errors,e.name,I[e.name]):WS(r.errors,e.name))}!sS(C)&&await y(C,t,i)}}var o;return i.valid},b=(e,t)=>!n.disabled&&(e&&t&&Uk(a,e,t),!XS(R(),o)),w=(e,t,n)=>IS(e,g,{...s.mount?a:Fk(t)?o:cS(e)?{[e]:t}:t},n,t),x=(e,t,n={})=>{const r=jk(i,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&Uk(a,e,rT(t,n)),o=kS(n.ref)&&Ok(t)?"":t,qS(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?Sk(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):xS(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||C.values.next({name:e,values:{...a}})))}(n.shouldDirty||n.shouldTouch)&&p(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&O(e)},E=(e,t,n)=>{for(const r in t){const o=t[r],a=`${e}.${r}`,s=jk(i,a);(g.array.has(e)||Nk(o)||s&&!s._f)&&!Tk(o)?E(a,o,n):x(a,o,n)}},k=(e,t,n={})=>{const l=jk(i,e),c=g.array.has(e),I=Mk(t);Uk(a,e,I),c?(C.array.next({name:e,values:{...a}}),(A.isDirty||A.dirtyFields)&&n.shouldDirty&&C.state.next({name:e,dirtyFields:nT(o,a),isDirty:b(e,I)})):!l||l._f||Ok(I)?x(e,I,n):E(e,I,n),yS(e,g)&&C.state.next({...r}),C.values.next({name:s.mount?e:void 0,values:{...a}})},S=async o=>{s.mount=!0;const l=o.target;let f=l.name,b=!0;const w=jk(i,f),x=e=>{b=Number.isNaN(e)||Tk(e)&&isNaN(e.getTime())||XS(e,jk(a,f,e))};if(w){let s,E;const k=l.type?iT(w._f):_k(o),S=o.type===Zk||o.type===Gk,T=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(w._f)&&!n.resolver&&!jk(r.errors,f)&&!w._f.deps||((e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e))(S,jk(r.touchedFields,f),r.isSubmitted,I,c),R=yS(f,g,S);Uk(a,f,k),S?(w._f.onBlur&&w._f.onBlur(o),t&&t(0)):w._f.onChange&&w._f.onChange(o);const N=p(f,k,S,!1),_=!sS(N)||R;if(!S&&C.values.next({name:f,type:o.type,values:{...a}}),T)return A.isValid&&("onBlur"===e.mode?S&&d():d()),_&&C.state.next({name:f,...R?{}:N});if(!S&&R&&C.state.next({...r}),n.resolver){const{errors:e}=await v([f]);if(x(k),b){const t=sT(r.errors,i,f),n=sT(e,i,t.name||f);s=n.error,f=n.name,E=sS(e)}}else h([f],!0),s=(await FS(w,a,u,n.shouldUseNativeValidation))[f],h([f]),x(k),b&&(s?E=!1:A.isValid&&(E=await y(i,!0)));b&&(w._f.deps&&O(w._f.deps),m(f,E,s,N))}},T=(e,t)=>{if(jk(r.errors,t)&&e.focus)return e.focus(),1},O=async(e,t={})=>{let o,a;const s=lS(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await v(e);if(e)for(const n of e){const e=jk(t,n);e?Uk(r.errors,n,e):WS(r.errors,n)}else r.errors=t;return t})(Fk(e)?e:s);o=sS(t),a=e?!s.some((e=>jk(t,e))):o}else e?(a=(await Promise.all(s.map((async e=>{const t=jk(i,e);return await y(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&d()):a=o=await y(i);return C.state.next({...!cS(e)||A.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!a&&bS(i,T,e?s:g.mount),a},R=e=>{const t={...s.mount?a:o};return Fk(e)?t:cS(e)?jk(t,e):e.map((e=>jk(t,e)))},N=(e,t)=>({invalid:!!jk((t||r).errors,e),isDirty:!!jk((t||r).dirtyFields,e),error:jk((t||r).errors,e),isValidating:!!jk(r.validatingFields,e),isTouched:!!jk((t||r).touchedFields,e)}),_=(e,t,n)=>{const o=(jk(i,e,{_f:{}})._f||{}).ref,a=jk(r.errors,e)||{},{ref:s,message:g,type:l,...A}=a;Uk(r.errors,e,{...A,...t,ref:o}),C.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},P=(e,t={})=>{for(const s of e?lS(e):g.mount)g.mount.delete(s),g.array.delete(s),t.keepValue||(WS(i,s),WS(a,s)),!t.keepError&&WS(r.errors,s),!t.keepDirty&&WS(r.dirtyFields,s),!t.keepTouched&&WS(r.touchedFields,s),!t.keepIsValidating&&WS(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&WS(o,s);C.values.next({values:{...a}}),C.state.next({...r,...t.keepDirty?{isDirty:b()}:{}}),!t.keepIsValid&&d()},D=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(Bk(e)&&s.mount||e){const o=e?void 0:Fk(i)?iT(n?n._f:jk(r,t)._f):i;Uk(a,t,o),p(t,o,!1,!1,!0)}},M=(e,t={})=>{let r=jk(i,e);const a=Bk(t.disabled)||Bk(n.disabled);return Uk(i,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),g.mount.add(e),r?D({field:r,disabled:Bk(t.disabled)?t.disabled:n.disabled,name:e,value:t.value}):f(e,!0,t.value),{...a?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:oT(t.min),max:oT(t.max),minLength:oT(t.minLength),maxLength:oT(t.maxLength),pattern:oT(t.pattern)}:{},name:e,onChange:S,onBlur:S,ref:a=>{if(a){M(e,t),r=jk(i,e);const n=Fk(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>TS(e)||Sk(e))(n),g=r._f.refs||[];if(s?g.find((e=>e===n)):n===r._f.ref)return;Uk(i,e,{_f:{...r._f,...s?{refs:[...g.filter(JS),n,...Array.isArray(jk(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),f(e,!1,void 0,n)}else r=jk(i,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!Pk(g.array,e)||!s.action)&&g.unMount.add(e)}}},L=()=>n.shouldFocusError&&bS(i,T,g.mount),F=(e,t)=>async o=>{let s;if(o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist()),n.disabled)return void(t&&await t({...r.errors},o));let g=Mk(a);if(C.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await v();r.errors=e,g=t}else await y(i);if(WS(r.errors,"root"),sS(r.errors)){C.state.next({errors:{}});try{await e(g,o)}catch(e){s=e}}else t&&await t({...r.errors},o),L(),setTimeout(L);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sS(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},j=(t,n={})=>{const l=t?Mk(t):o,c=Mk(l),I=sS(t),u=I?o:c;if(n.keepDefaultValues||(o=l),!n.keepValues){if(n.keepDirtyValues){const e=new Set([...g.mount,...Object.keys(nT(o,a))]);for(const t of Array.from(e))jk(r.dirtyFields,t)?Uk(u,t,jk(a,t)):k(t,jk(u,t))}else{if(Dk&&Fk(t))for(const e of g.mount){const t=jk(i,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(kS(e)){const t=e.closest("form");if(t){t.reset();break}}}}i={}}a=e.shouldUnregister?n.keepDefaultValues?Mk(o):{}:Mk(u),C.array.next({values:{...u}}),C.values.next({values:{...u}})}g={mount:n.keepDirtyValues?g.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!A.isValid||!!n.keepIsValid||!!n.keepDirtyValues,s.watch=!!e.shouldUnregister,C.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!I&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||XS(t,o))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:I?{}:n.keepDirtyValues?n.keepDefaultValues&&a?nT(o,a):r.dirtyFields:n.keepDefaultValues&&t?nT(o,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>j(ES(e)?e(a):e,t);return{control:{register:M,unregister:P,getFieldState:N,handleSubmit:F,setError:_,_executeSchema:v,_getWatch:w,_getDirty:b,_updateValid:d,_removeUnmounted:()=>{for(const e of g.unMount){const t=jk(i,e);t&&(t._f.refs?t._f.refs.every((e=>!JS(e))):!JS(t._f.ref))&&P(e)}g.unMount=new Set},_updateFieldArray:(e,t=[],g,l,c=!0,I=!0)=>{if(l&&g&&!n.disabled){if(s.action=!0,I&&Array.isArray(jk(i,e))){const t=g(jk(i,e),l.argA,l.argB);c&&Uk(i,e,t)}if(I&&Array.isArray(jk(r.errors,e))){const t=g(jk(r.errors,e),l.argA,l.argB);c&&Uk(r.errors,e,t),((e,t)=>{!Lk(jk(e,t)).length&&WS(e,t)})(r.errors,e)}if(A.touchedFields&&I&&Array.isArray(jk(r.touchedFields,e))){const t=g(jk(r.touchedFields,e),l.argA,l.argB);c&&Uk(r.touchedFields,e,t)}A.dirtyFields&&(r.dirtyFields=nT(o,a)),C.state.next({name:e,isDirty:b(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Uk(a,e,t)},_updateDisabledField:D,_getFieldArray:t=>Lk(jk(s.mount?a:o,t,e.shouldUnregister?jk(o,t,[]):[])),_reset:j,_resetDefaultValues:()=>ES(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),C.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{Bk(e)&&(C.state.next({disabled:e}),bS(i,((t,n)=>{const r=jk(i,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:C,_proxyFormState:A,_setErrors:e=>{r.errors=e,C.state.next({errors:r.errors,isValid:!1})},get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return g},set _names(e){g=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:O,register:M,handleSubmit:F,watch:(e,t)=>ES(e)?C.values.subscribe({next:n=>e(w(void 0,t),n)}):w(e,t,!0),setValue:k,getValues:R,reset:B,resetField:(e,t={})=>{jk(i,e)&&(Fk(t.defaultValue)?k(e,Mk(jk(o,e))):(k(e,t.defaultValue),Uk(o,e,Mk(t.defaultValue))),t.keepTouched||WS(r.touchedFields,e),t.keepDirty||(WS(r.dirtyFields,e),r.isDirty=t.defaultValue?b(e,Mk(jk(o,e))):b()),t.keepError||(WS(r.errors,e),A.isValid&&d()),C.state.next({...r}))},clearErrors:e=>{e&&lS(e).forEach((e=>WS(r.errors,e))),C.state.next({errors:e?r.errors:{}})},unregister:P,setError:_,setFocus:(e,t={})=>{const n=jk(i,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&ES(e.select)&&e.select())}},getFieldState:N}}function AT(e={}){const t=Jo.useRef(),n=Jo.useRef(),[r,i]=Jo.useState({isDirty:!1,isValidating:!1,isLoading:ES(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ES(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...lT(e),formState:r});const o=t.current.control;return o._options=e,CS({subject:o._subjects.state,next:e=>{gS(e,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),Jo.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),Jo.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,r.isDirty]),Jo.useEffect((()=>{e.values&&!XS(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),Jo.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),Jo.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),Jo.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=aS(r,o),t.current}function CT(e){return CT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CT(e)}function cT(e){var t=function(e,t){if("object"!=CT(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=CT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==CT(t)?t:t+""}function IT(e,t,n){return(t=cT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dT(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?jT(KT,--HT):0,GT--,10===YT&&(GT=1,ZT--),YT}function JT(){return YT=HT2||nO(YT)>3?"":" "}function sO(e,t){for(;--t&&JT()&&!(YT<48||YT>102||YT>57&&YT<65||YT>70&&YT<97););return tO(e,eO()+(t<6&&32==$T()&&32==JT()))}function gO(e){for(;JT();)switch(YT){case e:return HT;case 34:case 39:34!==e&&39!==e&&gO(YT);break;case 40:41===e&&gO(e);break;case 92:JT()}return HT}function lO(e,t){for(;JT()&&e+YT!==57&&(e+YT!==84||47!==$T()););return"/*"+tO(t,HT-1)+"*"+PT(47===e?e:JT())}function AO(e){for(;!nO($T());)JT();return tO(e,HT)}var CO="-ms-",cO="-moz-",IO="-webkit-",uO="comm",dO="rule",hO="decl",fO="@keyframes";function pO(e,t){for(var n="",r=VT(e),i=0;i0&&zT(w)-C&&UT(I>32?xO(w+";",r,n,C-1):xO(LT(w," ","")+";",r,n,C-2),g);break;case 59:w+=";";default:if(UT(b=bO(w,t,n,l,A,i,s,m,v=[],y=[],C),o),123===p)if(0===A)yO(w,t,b,b,v,o,C,s,y);else switch(99===c&&110===jT(w,3)?100:c){case 100:case 108:case 109:case 115:yO(e,b,b,r&&UT(bO(e,b,b,0,0,i,s,m,i,v=[],C),y),i,y,C,s,r?v:y);break;default:yO(w,b,b,b,[""],y,0,s,y)}}l=A=I=0,d=f=1,m=w="",C=a;break;case 58:C=1+zT(w),I=u;default:if(d<1)if(123==p)--d;else if(125==p&&0==d++&&125==qT())continue;switch(w+=PT(p),p*d){case 38:f=A>0?1:(w+="\f",-1);break;case 44:s[l++]=(zT(w)-1)*f,f=1;break;case 64:45===$T()&&(w+=oO(JT())),c=$T(),A=C=zT(m=w+=AO(eO())),p++;break;case 45:45===u&&2==zT(w)&&(d=0)}}return o}function bO(e,t,n,r,i,o,a,s,g,l,A){for(var C=i-1,c=0===i?o:[""],I=VT(c),u=0,d=0,h=0;u0?c[f]+" "+p:LT(p,/&\f/g,c[f])))&&(g[h++]=m);return QT(e,t,n,0===i?dO:s,g,l,A)}function wO(e,t,n){return QT(e,t,n,uO,PT(YT),BT(e,2,-2),0)}function xO(e,t,n,r){return QT(e,t,n,hO,BT(e,0,r),BT(e,r+1,-1),r)}var EO=function(e,t,n){for(var r=0,i=0;r=i,i=$T(),38===r&&12===i&&(t[n]=1),!nO(i);)JT();return tO(e,HT)},kO=function(e,t){return iO(function(e,t){var n=-1,r=44;do{switch(nO(r)){case 0:38===r&&12===$T()&&(t[n]=1),e[n]+=EO(HT-1,t,n);break;case 2:e[n]+=oO(r);break;case 4:if(44===r){e[++n]=58===$T()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=PT(r)}}while(r=JT());return e}(rO(e),t))},SO=new WeakMap,TO=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||SO.get(n))&&!r){SO.set(e,!0);for(var i=[],o=kO(t,i),a=n.props,s=0,g=0;s6)switch(jT(e,t+1)){case 109:if(45!==jT(e,t+4))break;case 102:return LT(e,/(.+:)(.+)-([^]+)/,"$1"+IO+"$2-$3$1"+cO+(108==jT(e,t+3)?"$3":"$2-$3"))+e;case 115:return~FT(e,"stretch")?RO(LT(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==jT(e,t+1))break;case 6444:switch(jT(e,zT(e)-3-(~FT(e,"!important")&&10))){case 107:return LT(e,":",":"+IO)+e;case 101:return LT(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+IO+(45===jT(e,14)?"inline-":"")+"box$3$1"+IO+"$2$3$1"+CO+"$2box$3")+e}break;case 5936:switch(jT(e,t+11)){case 114:return IO+e+CO+LT(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return IO+e+CO+LT(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return IO+e+CO+LT(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return IO+e+CO+e+e}return e}var NO=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case hO:e.return=RO(e.value,e.length);break;case fO:return pO([XT(e,{value:LT(e.value,"@","@"+IO)})],r);case dO:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pO([XT(e,{props:[LT(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return pO([XT(e,{props:[LT(t,/:(plac\w+)/,":"+IO+"input-$1")]}),XT(e,{props:[LT(t,/:(plac\w+)/,":-moz-$1")]}),XT(e,{props:[LT(t,/:(plac\w+)/,CO+"input-$1")]})],r)}return""}))}}],_O=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||NO,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+g;return{name:l,styles:i,next:ZO}}var HO=!!$o.useInsertionEffect&&$o.useInsertionEffect,YO=HO||function(e){return e()},KO=(HO||Jo.useLayoutEffect,Jo.createContext("undefined"!=typeof HTMLElement?_O({key:"css"}):null)),QO=(KO.Provider,function(e){return(0,Jo.forwardRef)((function(t,n){var r=(0,Jo.useContext)(KO);return e(t,r,n)}))}),XO=Jo.createContext({});var qO={}.hasOwnProperty,JO="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$O=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return PO(t,n,r),YO((function(){return function(e,t,n){PO(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)})),null},eR=QO((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[JO],o=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=WO(o,void 0,Jo.useContext(XO));a+=t.key+"-"+s.name;var g={};for(var l in e)qO.call(e,l)&&"css"!==l&&l!==JO&&(g[l]=e[l]);return g.className=a,n&&(g.ref=n),Jo.createElement(Jo.Fragment,null,Jo.createElement($O,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Jo.createElement(i,g))})),tR=eR,nR=function(e,t){var n=arguments;if(null==t||!qO.call(t,"css"))return Jo.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=tR,i[1]=function(e,t){var n={};for(var r in t)qO.call(t,r)&&(n[r]=t[r]);return n[JO]=e,n}(e,t);for(var o=2;o({x:e,y:e});function lR(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function AR(){return"undefined"!=typeof window}function CR(e){return uR(e)?(e.nodeName||"").toLowerCase():"#document"}function cR(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function IR(e){var t;return null==(t=(uR(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uR(e){return!!AR()&&(e instanceof Node||e instanceof cR(e).Node)}function dR(e){return!!AR()&&(e instanceof Element||e instanceof cR(e).Element)}function hR(e){return!!AR()&&(e instanceof HTMLElement||e instanceof cR(e).HTMLElement)}function fR(e){return!(!AR()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof cR(e).ShadowRoot)}function pR(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=yR(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function mR(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function vR(e){return["html","body","#document"].includes(CR(e))}function yR(e){return cR(e).getComputedStyle(e)}function bR(e){if("html"===CR(e))return e;const t=e.assignedSlot||e.parentNode||fR(e)&&e.host||IR(e);return fR(t)?t.host:t}function wR(e){const t=bR(e);return vR(t)?e.ownerDocument?e.ownerDocument.body:e.body:hR(t)&&pR(t)?t:wR(t)}function xR(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=wR(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=cR(i);if(o){const e=ER(a);return t.concat(a,a.visualViewport||[],pR(i)?i:[],e&&n?xR(e):[])}return t.concat(i,xR(i,[],n))}function ER(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kR(e){const t=yR(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=hR(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=aR(n)!==o||aR(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function SR(e){return dR(e)?e:e.contextElement}function TR(e){const t=SR(e);if(!hR(t))return gR(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=kR(t);let a=(o?aR(n.width):n.width)/r,s=(o?aR(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const OR=gR(0);function RR(e){const t=cR(e);return mR()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:OR}function NR(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=SR(e);let a=gR(1);t&&(r?dR(r)&&(a=TR(r)):a=TR(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==cR(e))&&t}(o,n,r)?RR(o):gR(0);let g=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,A=i.width/a.x,C=i.height/a.y;if(o){const e=cR(o),t=r&&dR(r)?cR(r):r;let n=e,i=ER(n);for(;i&&r&&t!==n;){const e=TR(i),t=i.getBoundingClientRect(),r=yR(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;g*=e.x,l*=e.y,A*=e.x,C*=e.y,g+=o,l+=a,n=cR(i),i=ER(n)}}return lR({width:A,height:C,x:g,y:l})}function _R(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:g=!1}=r,l=SR(e),A=i||o?[...l?xR(l):[],...xR(t)]:[];A.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const C=l&&s?function(e,t){let n,r=null;const i=IR(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,g){void 0===s&&(s=!1),void 0===g&&(g=1),o();const{left:l,top:A,width:C,height:c}=e.getBoundingClientRect();if(s||t(),!C||!c)return;const I={rootMargin:-sR(A)+"px "+-sR(i.clientWidth-(l+C))+"px "+-sR(i.clientHeight-(A+c))+"px "+-sR(l)+"px",threshold:oR(0,iR(1,g))||1};let u=!0;function d(e){const t=e[0].intersectionRatio;if(t!==g){if(!u)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}u=!1}try{r=new IntersectionObserver(d,{...I,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(d,I)}r.observe(e)}(!0),o}(l,n):null;let c,I=-1,u=null;a&&(u=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&u&&(u.unobserve(t),cancelAnimationFrame(I),I=requestAnimationFrame((()=>{var e;null==(e=u)||e.observe(t)}))),n()})),l&&!g&&u.observe(l),u.observe(t));let d=g?NR(e):null;return g&&function t(){const r=NR(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n();d=r,c=requestAnimationFrame(t)}(),n(),()=>{var e;A.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==C||C(),null==(e=u)||e.disconnect(),u=null,g&&cancelAnimationFrame(c)}}const PR=Jo.useLayoutEffect;var DR=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],MR=function(){};function LR(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function FR(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function UR(e){return VR(e)?window.pageYOffset:e.scrollTop}function ZR(e,t){VR(e)?window.scrollTo(0,t):e.scrollTop=t}function GR(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:MR,i=UR(e),o=t-i,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,i,o,n);ZR(e,s),an.bottom?ZR(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=u)return{placement:"bottom",maxHeight:t};if(x>=u&&!a)return o&&GR(g,E,S),{placement:"bottom",maxHeight:t};if(!a&&x>=r||a&&b>=r)return o&&GR(g,E,S),{placement:"bottom",maxHeight:a?b-m:x-m};if("auto"===i||a){var T=t,O=a?y:w;return O>=r&&(T=Math.min(O-m-s,t)),{placement:"top",maxHeight:T}}if("bottom"===i)return o&&ZR(g,E),{placement:"bottom",maxHeight:t};break;case"top":if(y>=u)return{placement:"top",maxHeight:t};if(w>=u&&!a)return o&&GR(g,k,S),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&y>=r){var R=t;return(!a&&w>=r||a&&y>=r)&&(R=a?y-v:w-v),o&&GR(g,k,S),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}var nN,rN=function(e){return"auto"===e?"bottom":e},iN=(0,Jo.createContext)(null),oN=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,g=((0,Jo.useContext)(iN)||{}).setPortalPlacement,l=(0,Jo.useRef)(null),A=pT((0,Jo.useState)(r),2),C=A[0],c=A[1],I=pT((0,Jo.useState)(null),2),u=I[0],d=I[1],h=s.spacing.controlHeight;return PR((function(){var e=l.current;if(e){var t="fixed"===o,s=tN({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:h});c(s.maxHeight),d(s.placement),null==g||g(s.placement)}}),[r,i,o,a,n,g,h]),t({ref:l,placerProps:dT(dT({},e),{},{placement:u||rN(i),maxHeight:C})})},aN=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return nR("div",wT({},zR(e,"menu",{menu:!0}),{ref:n},r),t)},sN=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return dT({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},gN=sN,lN=sN,AN=["size"],CN=["innerProps","isRtl","size"];var cN={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},IN=function(e){var t=e.size,n=vT(e,AN);return nR("svg",wT({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cN},n))},uN=function(e){return nR(IN,wT({size:20},e),nR("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},dN=function(e){return nR(IN,wT({size:20},e),nR("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},hN=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return dT({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},fN=hN,pN=hN,mN=function(){var e=rR.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(nN||(nN=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),vN=function(e){var t=e.delay,n=e.offset;return nR("span",{css:rR({animation:"".concat(mN," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yN=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return nR("div",wT({ref:i},zR(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},bN=["data"],wN=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,g=e.label,l=e.theme,A=e.selectProps;return nR("div",wT({},zR(e,"group",{group:!0}),s),nR(o,wT({},a,{selectProps:A,theme:l,getStyles:r,getClassNames:i,cx:n}),g),nR("div",null,t))},xN=["innerRef","isDisabled","isHidden","inputClassName"],EN={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":dT({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},EN)},SN=function(e){return dT({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},EN)},TN=function(e){var t=e.children,n=e.innerProps;return nR("div",n,t)};var ON=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,g=n.Container,l=n.Label,A=n.Remove;return nR(g,{data:r,innerProps:dT(dT({},zR(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},nR(l,{data:r,innerProps:dT({},zR(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),nR(A,{data:r,innerProps:dT(dT({},zR(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},RN={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return nR("div",wT({},zR(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||nR(uN,null))},Control:yN,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return nR("div",wT({},zR(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||nR(dN,null))},DownChevron:dN,CrossIcon:uN,Group:wN,GroupHeading:function(e){var t=BR(e);t.data;var n=vT(t,bN);return nR("div",wT({},zR(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return nR("div",wT({},zR(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return nR("span",wT({},t,zR(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=BR(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,s=r.inputClassName,g=vT(r,xN);return nR("div",wT({},zR(e,"input",{"input-container":!0}),{"data-value":n||""}),nR("input",wT({className:t({input:!0},s),ref:i,style:SN(a),disabled:o},g)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=vT(e,CN);return nR("div",wT({},zR(dT(dT({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),nR(vN,{delay:0,offset:n}),nR(vN,{delay:160,offset:!0}),nR(vN,{delay:320,offset:!n}))},Menu:aN,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return nR("div",wT({},zR(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,a=e.menuPosition,s=(0,Jo.useRef)(null),g=(0,Jo.useRef)(null),l=pT((0,Jo.useState)(rN(o)),2),A=l[0],C=l[1],c=(0,Jo.useMemo)((function(){return{setPortalPlacement:C}}),[]),I=pT((0,Jo.useState)(null),2),u=I[0],d=I[1],h=(0,Jo.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[A]+t;n===(null==u?void 0:u.offset)&&e.left===(null==u?void 0:u.rect.left)&&e.width===(null==u?void 0:u.rect.width)||d({offset:n,rect:e})}}),[r,a,A,null==u?void 0:u.offset,null==u?void 0:u.rect.left,null==u?void 0:u.rect.width]);PR((function(){h()}),[h]);var f=(0,Jo.useCallback)((function(){"function"==typeof g.current&&(g.current(),g.current=null),r&&s.current&&(g.current=_R(r,s.current,h,{elementResize:"ResizeObserver"in window}))}),[r,h]);PR((function(){f()}),[f]);var p=(0,Jo.useCallback)((function(e){s.current=e,f()}),[f]);if(!t&&"fixed"!==a||!u)return null;var m=nR("div",wT({ref:p},zR(dT(dT({},e),{},{offset:u.offset,position:a,rect:u.rect}),"menuPortal",{"menu-portal":!0}),i),n);return nR(iN.Provider,{value:c},t?(0,gd.createPortal)(m,t):m)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=vT(e,eN);return nR("div",wT({},zR(dT(dT({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=vT(e,$R);return nR("div",wT({},zR(dT(dT({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:ON,MultiValueContainer:TN,MultiValueLabel:TN,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return nR("div",wT({role:"button"},n),t||nR(uN,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return nR("div",wT({},zR(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return nR("div",wT({},zR(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return nR("div",wT({},zR(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return nR("div",wT({},zR(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return nR("div",wT({},zR(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},NN=function(e){return dT(dT({},RN),e.components)},_N=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function PN(e,t){return e===t||!(!_N(e)||!_N(t))}function DN(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,g=e.isSelected,l=e.isAppleDevice,A=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(A(a,n),".");if("menu"===t&&l){var C=s?" disabled":"",c="".concat(g?" selected":"").concat(C);return"".concat(o).concat(c,", ").concat(A(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},BN=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,s=e.selectProps,g=e.id,l=e.isAppleDevice,A=s.ariaLiveMessages,C=s.getOptionLabel,c=s.inputValue,I=s.isMulti,u=s.isOptionDisabled,d=s.isSearchable,h=s.menuIsOpen,f=s.options,p=s.screenReaderStatus,m=s.tabSelectsValue,v=s.isLoading,y=s["aria-label"],b=s["aria-live"],w=(0,Jo.useMemo)((function(){return dT(dT({},jN),A||{})}),[A]),x=(0,Jo.useMemo)((function(){var e,n="";if(t&&w.onChange){var r=t.option,i=t.options,o=t.removedValue,s=t.removedValues,g=t.value,l=o||r||(e=g,Array.isArray(e)?null:e),A=l?C(l):"",c=i||s||void 0,I=c?c.map(C):[],d=dT({isDisabled:l&&u(l,a),label:A,labels:I},t);n=w.onChange(d)}return n}),[t,w,u,a,C]),E=(0,Jo.useMemo)((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&w.onFocus){var s={focused:t,label:C(t),isDisabled:u(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=w.onFocus(s)}return e}),[n,r,C,u,w,i,a,l]),k=(0,Jo.useMemo)((function(){var e="";if(h&&f.length&&!v&&w.onFilter){var t=p({count:i.length});e=w.onFilter({inputValue:c,resultsMessage:t})}return e}),[i,c,h,w,f,p,v]),S="initial-input-focus"===(null==t?void 0:t.action),T=(0,Jo.useMemo)((function(){var e="";if(w.guidance){var t=r?"value":h?"menu":"input";e=w.guidance({"aria-label":y,context:t,isDisabled:n&&u(n,a),isMulti:I,isSearchable:d,tabSelectsValue:m,isInitialFocus:S})}return e}),[y,n,r,I,u,d,h,w,a,m,S]),O=nR(Jo.Fragment,null,nR("span",{id:"aria-selection"},x),nR("span",{id:"aria-focused"},E),nR("span",{id:"aria-results"},k),nR("span",{id:"aria-guidance"},T));return nR(Jo.Fragment,null,nR(FN,{id:g},S&&O),nR(FN,{"aria-live":b,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!S&&O))},zN=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],VN=new RegExp("["+zN.map((function(e){return e.letters})).join("")+"]","g"),UN={},ZN=0;ZN1?t-1:0),r=1;r0,d=C-c-A,h=!1;d>t&&a.current&&(r&&r(e),a.current=!1),u&&s.current&&(o&&o(e),s.current=!1),u&&t>d?(n&&!a.current&&n(e),I.scrollTop=C,h=!0,a.current=!0):!u&&-t>A&&(i&&!s.current&&i(e),I.scrollTop=0,h=!0,s.current=!0),h&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,o]),C=(0,Jo.useCallback)((function(e){A(e,e.deltaY)}),[A]),c=(0,Jo.useCallback)((function(e){g.current=e.changedTouches[0].clientY}),[]),I=(0,Jo.useCallback)((function(e){var t=g.current-e.changedTouches[0].clientY;A(e,t)}),[A]),u=(0,Jo.useCallback)((function(e){if(e){var t=!!XR&&{passive:!1};e.addEventListener("wheel",C,t),e.addEventListener("touchstart",c,t),e.addEventListener("touchmove",I,t)}}),[I,c,C]),d=(0,Jo.useCallback)((function(e){e&&(e.removeEventListener("wheel",C,!1),e.removeEventListener("touchstart",c,!1),e.removeEventListener("touchmove",I,!1))}),[I,c,C]);return(0,Jo.useEffect)((function(){if(t){var e=l.current;return u(e),function(){d(e)}}}),[t,u,d]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,Jo.useRef)({}),o=(0,Jo.useRef)(null),a=(0,Jo.useCallback)((function(e){if(i_){var t=document.body,n=t&&t.style;if(r&&JN.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&o_<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys($N).forEach((function(e){var t=$N[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&r_()&&(t.addEventListener("touchmove",e_,a_),e&&(e.addEventListener("touchstart",n_,a_),e.addEventListener("touchmove",t_,a_))),o_+=1}}),[r]),s=(0,Jo.useCallback)((function(e){if(i_){var t=document.body,n=t&&t.style;o_=Math.max(o_-1,0),r&&o_<1&&JN.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&r_()&&(t.removeEventListener("touchmove",e_,a_),e&&(e.removeEventListener("touchstart",n_,a_),e.removeEventListener("touchmove",t_,a_)))}}),[r]);return(0,Jo.useEffect)((function(){if(t){var e=o.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){o.current=e}}({isEnabled:n});return nR(Jo.Fragment,null,n&&nR("div",{onClick:s_,css:g_}),t((function(e){i(e),o(e)})))}var A_={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},C_=function(e){var t=e.name,n=e.onFocus;return nR("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:A_,value:"",onChange:function(){}})};function c_(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function I_(){return c_(/^Mac/i)}function u_(){return c_(/^iPhone/i)||c_(/^iPad/i)||I_()&&navigator.maxTouchPoints>1}var d_={clearIndicator:pN,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return dT({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:fN,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return dT({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return dT({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return dT(dT({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},kN),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return dT({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:lN,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return dT((IT(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),IT(n,"position","absolute"),IT(n,"width","100%"),IT(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return dT({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return dT({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return dT({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return dT({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:gN,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return dT({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return dT({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return dT({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return dT({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var h_={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},f_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:HR(),captureMenuScroll:!HR(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=dT({ignoreCase:!0,ignoreAccents:!0,stringify:QN,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,g=r.matchFrom,l=s?KN(n):n,A=s?KN(a(t)):a(t);return i&&(l=l.toLowerCase(),A=A.toLowerCase()),o&&(l=YN(l),A=HN(A)),"start"===g?A.substr(0,l.length)===l:A.indexOf(l)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function p_(e,t,n,r){return{type:"option",data:t,isDisabled:k_(e,t,n),isSelected:S_(e,t,n),label:x_(e,t),value:E_(e,t),index:r}}function m_(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return p_(e,n,t,r)})).filter((function(t){return b_(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=p_(e,n,t,r);return b_(e,o)?o:void 0})).filter(qR)}function v_(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,RT(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function y_(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,RT(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function b_(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!O_(e)||!o)&&T_(e,{label:a,value:s,data:i},r)}var w_=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},x_=function(e,t){return e.getOptionLabel(t)},E_=function(e,t){return e.getOptionValue(t)};function k_(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function S_(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=E_(e,t);return n.some((function(t){return E_(e,t)===r}))}function T_(e,t,n){return!e.filterOption||e.filterOption(t,n)}var O_=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},R_=1,N_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ET(e,t)}(n,e);var t=OT(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=I_()||u_(),r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),g=r.isOptionDisabled(e,a);if(s){var l=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(g)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(RT(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==i})),a=JR(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(JR(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=JR(e,i,i[0]||null);n&&r.onChange(o,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return w_(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return y_(m_(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return O_(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,g=t.isDisabled,l=t.menuIsOpen,A=t.onKeyDown,C=t.tabSelectsValue,c=t.openMenuOnFocus,I=r.state,u=I.focusedOption,d=I.focusedValue,h=I.selectValue;if(!(g||"function"==typeof A&&(A(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(d)r.removeValue(d);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!C||!u||c&&r.isOptionSelected(u,h))return;r.selectOption(u);break;case"Enter":if(229===e.keyCode)break;if(l){if(!u)return;if(r.isComposing)return;r.selectOption(u);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!u)return;r.selectOption(u);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++R_),r.state.selectValue=jR(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=w_(i,o[a])}return r}return function(e,t,n){t&&xT(e.prototype,t),n&&xT(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&WR(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(WR(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(h_):dT(dT({},h_),this.props.theme):h_}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,g=s.isMulti,l=s.isRtl,A=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:g,isRtl:l,options:A,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return k_(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return S_(this.props,e,t)}},{key:"filterOption",value:function(e,t){return T_(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,s=e.menuIsOpen,g=e.required,l=this.getComponents().Input,A=this.state,C=A.inputIsHidden,c=A.ariaSelection,I=this.commonProps,u=r||this.getElementId("input"),d=dT(dT(dT({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":g,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==c?void 0:c.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Jo.createElement(l,wT({},I,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},d)):Jo.createElement(qN,wT({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:MR,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:a,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,g=this.commonProps,l=this.props,A=l.controlShouldRenderValue,C=l.isDisabled,c=l.isMulti,I=l.inputValue,u=l.placeholder,d=this.state,h=d.selectValue,f=d.focusedValue,p=d.isFocused;if(!this.hasValue()||!A)return I?null:Jo.createElement(s,wT({},g,{key:"placeholder",isDisabled:C,isFocused:p,innerProps:{id:this.getElementId("placeholder")}}),u);if(c)return h.map((function(t,a){var s=t===f,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Jo.createElement(n,wT({},g,{components:{Container:r,Label:i,Remove:o},isFocused:s,isDisabled:C,key:l,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(I)return null;var m=h[0];return Jo.createElement(a,wT({},g,{data:m,isDisabled:C}),this.formatOptionLabel(m,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Jo.createElement(e,wT({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!e||!i)return null;return Jo.createElement(e,wT({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return Jo.createElement(n,wT({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Jo.createElement(e,wT({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,o=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,g=t.NoOptionsMessage,l=t.Option,A=this.commonProps,C=this.state.focusedOption,c=this.props,I=c.captureMenuScroll,u=c.inputValue,d=c.isLoading,h=c.loadingMessage,f=c.minMenuHeight,p=c.maxMenuHeight,m=c.menuIsOpen,v=c.menuPlacement,y=c.menuPosition,b=c.menuPortalTarget,w=c.menuShouldBlockScroll,x=c.menuShouldScrollIntoView,E=c.noOptionsMessage,k=c.onMenuScrollToTop,S=c.onMenuScrollToBottom;if(!m)return null;var T,O=function(t,n){var r=t.type,i=t.data,o=t.isDisabled,a=t.isSelected,s=t.label,g=t.value,c=C===i,I=o?void 0:function(){return e.onOptionHover(i)},u=o?void 0:function(){return e.selectOption(i)},d="".concat(e.getElementId("option"),"-").concat(n),h={id:d,onClick:u,onMouseMove:I,onMouseOver:I,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return Jo.createElement(l,wT({},A,{innerProps:h,data:i,isDisabled:o,isSelected:a,key:d,label:s,type:r,value:g,isFocused:c,innerRef:c?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,o=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),g="".concat(s,"-heading");return Jo.createElement(n,wT({},A,{key:s,data:i,options:o,Heading:r,headingProps:{id:g,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return O(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return O(t,"".concat(t.index))}));else if(d){var R=h({inputValue:u});if(null===R)return null;T=Jo.createElement(s,A,R)}else{var N=E({inputValue:u});if(null===N)return null;T=Jo.createElement(g,A,N)}var _={minMenuHeight:f,maxMenuHeight:p,menuPlacement:v,menuPosition:y,menuShouldScrollIntoView:x},P=Jo.createElement(oN,wT({},A,_),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return Jo.createElement(i,wT({},A,_,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:d,placement:a}),Jo.createElement(l_,{captureEnabled:I,onTopArrive:k,onBottomArrive:S,lockEnabled:w},(function(t){return Jo.createElement(o,wT({},A,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":A.isMulti,id:e.getElementId("listbox")},isLoading:d,maxHeight:s,focusedOption:C}),T)})))}));return b||"fixed"===y?Jo.createElement(a,wT({},A,{appendTo:b,controlElement:this.controlRef,menuPlacement:v,menuPosition:y}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return Jo.createElement(C_,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var g=s.map((function(t){return e.getOptionValue(t)})).join(n);return Jo.createElement("input",{name:o,type:"hidden",value:g})}var l=s.length>0?s.map((function(t,n){return Jo.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):Jo.createElement("input",{name:o,type:"hidden",value:""});return Jo.createElement("div",null,l)}var A=s[0]?this.getOptionValue(s[0]):"";return Jo.createElement("input",{name:o,type:"hidden",value:A})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return Jo.createElement(BN,wT({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,s=o.id,g=o.isDisabled,l=o.menuIsOpen,A=this.state.isFocused,C=this.commonProps=this.getCommonProps();return Jo.createElement(r,wT({},C,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:g,isFocused:A}),this.renderLiveRegion(),Jo.createElement(t,wT({},C,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:g,isFocused:A,menuIsOpen:l}),Jo.createElement(i,wT({},C,{isDisabled:g}),this.renderPlaceholderOrValue(),this.renderInput()),Jo.createElement(n,wT({},C,{isDisabled:g}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,g=t.instancePrefix,l=e.options,A=e.value,C=e.menuIsOpen,c=e.inputValue,I=e.isMulti,u=jR(A),d={};if(n&&(A!==n.value||l!==n.options||C!==n.menuIsOpen||c!==n.inputValue)){var h=C?function(e,t){return v_(m_(e,t))}(e,u):[],f=C?y_(m_(e,u),"".concat(g,"-option")):[],p=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,h);d={selectValue:u,focusedOption:m,focusedOptionId:w_(f,m),focusableOptionsWithIds:f,focusedValue:p,clearFocusValueOnUpdate:!1}}var v=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},y=o,b=a&&s;return a&&!b&&(y={value:JR(I,u,u[0]||null),options:u,action:"initial-input-focus"},b=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(y=null),dT(dT(dT({},d),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}]),n}(Jo.Component);N_.defaultProps=f_;var __=(0,Jo.forwardRef)((function(e,t){var n=bT(e);return Jo.createElement(N_,wT({ref:t},n))}));function P_(){return P_=Object.assign?Object.assign.bind():function(e){for(var t=1;te.map((e=>({label:e,value:e}))),M_=e=>{let{type:t,manufacturer:n,supplier:r,mounting_style:i,farads:o,ohms:a,register:s,handleSubmit:g,control:l,onSubmit:A}=e;const C=uS({control:l,defaultValue:"",name:"type"}),c=(e,t,n,r)=>Jo.createElement("div",{className:"flex flex-col w-full",key:t},Jo.createElement("label",{className:"block mb-2 font-semibold text-gray-700 text-md",htmlFor:t},e),Jo.createElement(hS,{control:r,defaultValue:null,name:t,render:e=>{let{field:t}=e;return Jo.createElement(__,{isClearable:!0,onChange:e=>t.onChange(null==e?void 0:e.value),options:[{label:"All",value:"all"},...n],value:n.find((e=>e.value===t.value))})}}));return Jo.createElement("form",{onSubmit:g(A)},Jo.createElement("div",{className:"flex flex-col w-full gap-6 -mx-2"},Jo.createElement("div",{className:"w-full px-2"},Jo.createElement("label",{className:"block mb-2 font-semibold text-gray-700 text-md",htmlFor:"search"},"Search"),Jo.createElement("input",P_({type:"text"},s("search"),{autoComplete:"off",className:"w-full h-10 pl-2 border border-gray-300 rounded-md focus:border-brandgreen-500 focus:ring-1 focus:ring-brandgreen-500",id:"search",placeholder:"Search"}))),Jo.createElement("div",{className:"grid w-full grid-cols-1 gap-4 px-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},c("Type","type",D_(t),l),c("Manufacturer","manufacturer",n,l),c("Supplier","supplier",r,l),c("Mounting Style","mounting_style",i,l),"Capacitor"===C&&c("Farads","farads",D_(o),l),"Resistor"===C&&c("Ohms","ohms",D_(a),l)),Jo.createElement("div",{className:"w-full px-2 md:w-1/2 lg:w-1/3"},Jo.createElement("button",{className:"inline-flex items-center px-4 py-2 text-base font-medium text-white border border-transparent rounded-md bg-brandgreen-500 hover:bg-brandgreen-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brandgreen-500",type:"submit"},"Search"))))},L_=(Object.freeze({AUD:"Australian Dollar",BRL:"Brazilian Real",CAD:"Canadian Dollar",CHF:"Swiss Franc",CNH:"Chinese Yuan",CZK:"Czech Koruna",DKK:"Danish Krone",EUR:"Euro",GBP:"British Pound",HKD:"Hong Kong Dollar",HUF:"Hungarian Forint",IDR:"Indonesian Rupiah",INR:"Indian Rupee",ILS:"Israeli New Shekel",JPY:"Japanese Yen",KRW:"South Korean Won",MXN:"Mexican Peso",MYR:"Malaysian Ringgit",NOK:"Norwegian Krone",NZD:"New Zealand Dollar",PHP:"Philippine Peso",PLN:"Polish Złoty",QAR:"Qatari Riyal",RUB:"Russian Ruble",SAR:"Saudi Riyal",SEK:"Swedish Krona",SGD:"Singapore Dollar",THB:"Thai Baht",TRY:"Turkish Lira",USD:"US Dollar",ZAR:"South African Rand",AED:"UAE Dirham"}),function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";"number"!=typeof e&&(e=parseFloat(e)),isNaN(e)&&(e=0);const r=null!==(t={AUD:2,BRL:2,CAD:2,CHF:2,CNH:2,CZK:2,DKK:2,EUR:2,GBP:2,HKD:2,HUF:0,IDR:0,INR:2,ILS:2,JPY:0,KRW:0,MXN:2,MYR:2,NOK:2,NZD:2,PHP:2,PLN:2,QAR:2,RUB:2,SAR:2,SEK:2,SGD:2,THB:2,TRY:2,USD:2,ZAR:2,AED:2}[n])&&void 0!==t?t:2;return e.toFixed(r)}),F_=e=>{let{page:t=1,search:n,filters:r={},order:i}=e;const o=DI(),{data:a,isLoading:s,isError:g}=Yy({queryFn:async()=>(await _y.get("/api/components/",{params:{page:t,search:n,...r,order:i}})).data,queryKey:["getComponents",JSON.stringify({filters:r,order:i,page:t,search:n})]});return{componentsAreError:g,componentsAreLoading:s,componentsData:a,refetchComponents:e=>{let{newPage:t,newSearch:n,newFilters:r,newOrder:i}=e;const a=["getComponents",JSON.stringify({filters:r,order:i,page:t,search:n})];o.invalidateQueries({queryKey:a})}}};let j_=function(e){return e.USD="USD",e.EUR="EUR",e.JPY="JPY",e.GBP="GBP",e.AUD="AUD",e.CAD="CAD",e.CHF="CHF",e.CNY="CNY",e.HKD="HKD",e.NZD="NZD",e.SEK="SEK",e.KRW="KRW",e.SGD="SGD",e.NOK="NOK",e.INR="INR",e}({});const B_={AUD:{name:"Australian Dollar",symbol:"A$"},CAD:{name:"Canadian Dollar",symbol:"C$"},CHF:{name:"Swiss Franc",symbol:"CHF"},CNY:{name:"Chinese Yuan",symbol:"¥"},EUR:{name:"Euro",symbol:"€"},GBP:{name:"British Pound",symbol:"£"},HKD:{name:"Hong Kong Dollar",symbol:"HK$"},INR:{name:"Indian Rupee",symbol:"₹"},JPY:{name:"Japanese Yen",symbol:"¥"},KRW:{name:"South Korean Won",symbol:"₩"},NOK:{name:"Norwegian Krone",symbol:"kr"},NZD:{name:"New Zealand Dollar",symbol:"NZ$"},SEK:{name:"Swedish Krona",symbol:"kr"},SGD:{name:"Singapore Dollar",symbol:"S$"},USD:{name:"US Dollar",symbol:"$"}},z_=e=>Object.keys(B_).includes(e),V_=()=>{const e=cm.get("csrftoken");return Yy({queryFn:async()=>{try{const t=await _y.get("/api/currency/",{headers:{"X-CSRFToken":e||""},withCredentials:!0}),n=t.data.default_currency;if(!z_(n))throw new Error("Invalid currency received from the server.");return localStorage.setItem("currency",n),{...t.data,currency_name:B_[n].name,currency_symbol:B_[n].symbol}}catch(e){const t=localStorage.getItem("currency")||"USD";if(!z_(t))throw new Error("Invalid currency found in localStorage");return{currency_name:B_[t].name,currency_symbol:B_[t].symbol,default_currency:t,exchange_rate:1}}},queryKey:["userCurrency"],retry:!1,staleTime:0})};function U_(){return U_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function G_(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const W_=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map;const H_=$o.startTransition;ld.flushSync,$o.useId;function Y_(e){let{basename:t,children:n,future:r,window:i}=e,o=Jo.useRef();null==o.current&&(o.current=function(e){return void 0===e&&(e={}),zA((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return FA("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:jA(t)}),null,e)}({window:i,v5Compat:!0}));let a=o.current,[s,g]=Jo.useState({action:a.action,location:a.location}),{v7_startTransition:l}=r||{},A=Jo.useCallback((e=>{l&&H_?H_((()=>g(e))):g(e)}),[g,l]);return Jo.useLayoutEffect((()=>a.listen(A)),[a,A]),Jo.useEffect((()=>UC(r)),[r]),Jo.createElement(WC,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const K_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Q_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,X_=Jo.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:g,to:l,preventScrollReset:A,viewTransition:C}=e,c=Z_(e,W_),{basename:I}=Jo.useContext(pC),u=!1;if("string"==typeof l&&Q_.test(l)&&(n=l,K_))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=rC(t.pathname,I);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:u=!0}catch(e){}let d=function(e,t){let{relative:n}=void 0===t?{}:t;bC()||DA(!1);let{basename:r,navigator:i}=Jo.useContext(pC),{hash:o,pathname:a,search:s}=SC(e,{relative:n}),g=a;return"/"!==r&&(g="/"===a?r:gC([r,a])),i.createHref({pathname:g,search:s,hash:o})}(l,{relative:i}),h=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=void 0===t?{}:t,g=EC(),l=wC(),A=SC(e,{relative:a});return Jo.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:jA(l)===jA(A);g(e,{replace:n,state:i,preventScrollReset:o,relative:a,viewTransition:s})}}),[l,g,A,r,i,n,e,o,a,s])}(l,{replace:a,state:s,target:g,preventScrollReset:A,relative:i,viewTransition:C});return Jo.createElement("a",U_({},c,{href:n||d,onClick:u||o?r:function(e){r&&r(e),e.defaultPrevented||h(e)},ref:t,target:g}))}));var q_,J_;function $_(e){let t=Jo.useRef(G_(e)),n=Jo.useRef(!1),r=wC(),i=Jo.useMemo((()=>function(e,t){let n=G_(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),o=EC(),a=Jo.useCallback(((e,t)=>{const r=G_("function"==typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(q_||(q_={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(J_||(J_={}));function eP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ET(e,t)}const tP=!1,nP=Jo.createContext(null);var rP="unmounted",iP="exited",oP="entering",aP="entered",sP="exiting",gP=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=iP,r.appearStatus=oP):i=aP:i=t.unmountOnExit||t.mountOnEnter?rP:iP,r.state={status:i},r.nextCallback=null,r}eP(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===rP?{status:iP}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oP&&n!==aP&&(t=oP):n!==oP&&n!==aP||(t=sP)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===oP){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:gd.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===iP&&this.setState({status:rP})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[gd.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),g=r?s.appear:s.enter;!e&&!n||tP?this.safeSetState({status:aP},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:oP},(function(){t.props.onEntering(o,a),t.onTransitionEnd(g,(function(){t.safeSetState({status:aP},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:gd.findDOMNode(this);t&&!tP?(this.props.onExit(r),this.safeSetState({status:sP},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:iP},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:iP},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:gd.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===rP)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,mT(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return Jo.createElement(nP.Provider,{value:null},"function"==typeof n?n(e,r):Jo.cloneElement(Jo.Children.only(n),r))},t}(Jo.Component);function lP(){}gP.contextType=nP,gP.propTypes={},gP.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lP,onEntering:lP,onEntered:lP,onExit:lP,onExiting:lP,onExited:lP},gP.UNMOUNTED=rP,gP.EXITED=iP,gP.ENTERING=oP,gP.ENTERED=aP,gP.EXITING=sP;const AP=gP;function CP(e,t){var n=Object.create(null);return e&&Jo.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,Jo.isValidElement)(e)?t(e):e}(e)})),n}function cP(e,t,n){return null!=n[t]?n[t]:e.props[t]}function IP(e,t,n){var r=CP(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var g in t){if(i[g])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{}}),t=e.Input,n=e.MultiValue,r=e.Placeholder,i=e.SingleValue,o=e.ValueContainer,a=vT(e,NP);return dT({Input:pP(t),MultiValue:wP(n),Placeholder:xP(r),SingleValue:EP(i),ValueContainer:RP(o)},a)},PP=_P(),DP=(PP.Input,PP.MultiValue,PP.Placeholder,PP.SingleValue,PP.ValueContainer,MN(_P));function MP({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const LP=Jo.forwardRef(MP);function FP(){return FP=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t,n;let{clearErrors:r,control:i,register:o,suppliers:a,errors:s}=e;const{fields:g,append:l,remove:A}=YS({control:i,name:"supplier_items"}),C=Jo.createElement("span",{className:"text-red-500"},"*");return Jo.createElement("div",{className:"md:col-span-2"},Jo.createElement("h4",{className:"text-sm font-medium text-gray-700 mb-1.5"},"Supplier Items ",C),(null===(t=s.supplier_items)||void 0===t?void 0:t.message)&&Jo.createElement("p",{className:"text-red-500 text-sm"},s.supplier_items.message),(null!=g?g:[]).map(((e,t)=>{var n,r,g,l,c,I,u,d,h,f;return Jo.createElement("div",{className:"border p-4 rounded-md mb-4",key:e.id},0===t&&Jo.createElement("div",{className:"mb-3"},Jo.createElement(lk,{icon:!0,padding:"compact",variant:"info"},Jo.createElement("p",{className:"text-xs text-blue-500"},"Suppliers are vendors where you can purchase components, such as Mouser or DigiKey, in contrast to manufacturers who produce the components. Please add one or more suppliers."))),Jo.createElement("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6"},Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:`supplier_items.${t}.supplier`},"Supplier ",C),Jo.createElement(hS,{control:i,name:`supplier_items.${t}.supplier`,render:e=>{let{field:t}=e;return Jo.createElement(__,FP({},t,{className:"react-select-container",classNamePrefix:"react-select",options:a.map((e=>({label:e.name,value:e.id}))),placeholder:"Select Supplier"}))},rules:{required:"Supplier is required"}}),(null==s||null===(n=s.supplier_items)||void 0===n||null===(r=n[t])||void 0===r?void 0:r.supplier)&&Jo.createElement("p",{className:"text-red-500 text-sm"}," ",s.supplier_items[t].supplier.message," ")),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:`supplier_items.${t}.supplier_item_no`},"Supplier Item No. ",C),Jo.createElement("input",FP({},o(`supplier_items.${t}.supplier_item_no`,{required:"Supplier Item No. is required"}),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:`supplier_items.${t}.supplier_item_no`,type:"text"})),(null==s||null===(g=s.supplier_items)||void 0===g||null===(l=g[t])||void 0===l?void 0:l.supplier_item_no)&&Jo.createElement("p",{className:"text-red-500 text-sm"},s.supplier_items[t].supplier_item_no.message)),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:`supplier_items.${t}.price`},"Price ",C),Jo.createElement("input",FP({},o(`supplier_items.${t}.price`,{min:{message:"Price must be greater than 0",value:.01},required:"Price is required"}),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:`supplier_items.${t}.price`,step:"0.01",type:"number"})),(null===(c=s.supplier_items)||void 0===c||null===(I=c[t])||void 0===I?void 0:I.price)&&Jo.createElement("p",{className:"text-red-500 text-sm"},s.supplier_items[t].price.message)),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:`supplier_items.${t}.currency`},"Currency ",C),Jo.createElement("select",FP({},o(`supplier_items.${t}.currency`,{required:"Currency is required"}),{className:"w-full p-2 border border-gray-300 rounded"}),Object.entries(B_).map((e=>{let[t,{name:n}]=e;return Jo.createElement("option",{key:t,value:t},n," (",t,")")}))),(null===(u=s.supplier_items)||void 0===u||null===(d=u[t])||void 0===d?void 0:d.currency)&&Jo.createElement("p",{className:"text-red-500 text-sm"},s.supplier_items[t].currency.message)),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:`supplier_items.${t}.link`},"Link ",C),Jo.createElement("input",FP({},o(`supplier_items.${t}.link`,{pattern:{message:"Invalid URL",value:/^(https?:\/\/)?([\w\d\-]+\.)+[\w\d]{2,}(\/.*)?\/?$/},required:"Link is required"}),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:`supplier_items.${t}.link`,type:"url"})),(null===(h=s.supplier_items)||void 0===h||null===(f=h[t])||void 0===f?void 0:f.link)&&Jo.createElement("p",{className:"text-red-500 text-sm"},s.supplier_items[t].link.message)),Jo.createElement("div",{className:"md:col-span-3 flex justify-end"},Jo.createElement("button",{className:"mt-2 text-sm text-red-500 hover:text-red-700",onClick:()=>A(t),type:"button"},Jo.createElement(LP,{className:"w-5 h-5"})))))})),Jo.createElement("button",{className:"mt-2 px-4 py-2 text-sm text-white bg-brandgreen-600 rounded-md hover:bg-brandgreen-500",onClick:()=>{r("supplier_items"),l({currency:"USD",link:"",pcs:1,price:0,supplier:"",supplier_item_no:""})},type:"button"},(null!=g?g:[]).length>=1?"Add another supplier":"Add supplier"),(null===(n=s.supplier_items)||void 0===n?void 0:n.root)&&Jo.createElement("p",{className:"text-red-500 text-sm mt-2"},s.supplier_items.root.message))};var BP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function zP(e,t){return e===t||!(!BP(e)||!BP(t))}function VP(e,t){if(e.length!==t.length)return!1;for(var n=0;n=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var HP=-1;function YP(e){if(void 0===e&&(e=!1),-1===HP||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),HP=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return HP}var KP=null;function QP(e){if(void 0===e&&(e=!1),null===KP||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?KP="positive-descending":(t.scrollLeft=1,KP=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),KP}return KP}var XP=function(e,t){return e};function qP(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,g=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,A=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,TT(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:TT(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=UP((function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})})),r._callOnScroll=void 0,r._callOnScroll=UP((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,g=o.layout,A=r._getItemStyleCache(l&&s,l&&g,l&&a);if(A.hasOwnProperty(e))t=A[e];else{var C=n(r.props,e,r._instanceProps),c=i(r.props,e,r._instanceProps),I="horizontal"===a||"horizontal"===g,u="rtl"===a,d=I?C:0;A[e]=t={position:"absolute",left:u?void 0:d,right:u?d:void 0,top:I?0:C,height:I?"100%":c,width:I?c:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=UP((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(QP()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffsetg.clientWidth?YP():0:g.scrollHeight>g.clientHeight?YP():0}this.scrollTo(o(this.props,e,t,a,this._instanceProps,s))},C.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},C.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(QP()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},C.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&GP(this._resetIsScrollingTimeoutId)},C.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,a=e.innerRef,s=e.innerElementType,g=e.innerTagName,l=e.itemCount,A=e.itemData,C=e.itemKey,c=void 0===C?XP:C,I=e.layout,u=e.outerElementType,d=e.outerTagName,h=e.style,f=e.useIsScrolling,p=e.width,m=this.state.isScrolling,v="horizontal"===i||"horizontal"===I,y=v?this._onScrollHorizontal:this._onScrollVertical,b=this._getRangeToRender(),w=b[0],x=b[1],E=[];if(l>0)for(var k=w;k<=x;k++)E.push((0,Jo.createElement)(t,{data:A,key:c(k,A),index:k,isScrolling:f?m:void 0,style:this._getItemStyle(k)}));var S=r(this.props,this._instanceProps);return(0,Jo.createElement)(u||d||"div",{className:n,onScroll:y,ref:this._outerRefSetter,style:wT({position:"relative",height:o,width:p,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},h)},(0,Jo.createElement)(s||g||"div",{children:E,ref:a,style:{height:v?"100%":S,pointerEvents:m?"none":void 0,width:v?S:"100%"}}))},C._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,g=o.scrollUpdateWasRequested;this._callOnScroll(a,s,g)}},C._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,g=r.scrollOffset;if(0===t)return[0,0,0,0];var l=a(this.props,g,this._instanceProps),A=s(this.props,l,g,this._instanceProps),C=i&&"backward"!==o?1:Math.max(1,n),c=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,l-C),Math.max(0,Math.min(t-1,A+c)),l,A]},t}(Jo.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var JP=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},$P=qP({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,g=e.itemCount,l=e.itemSize,A=e.layout,C=e.width,c="horizontal"===a||"horizontal"===A?C:s,I=Math.max(0,g*l-c),u=Math.min(I,t*l),d=Math.max(0,t*l-c+l+o);switch("smart"===n&&(n=r>=d-c&&r<=u+c?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var h=Math.round(d+(u-d)/2);return hI+Math.floor(c/2)?I:h;default:return r>=d&&r<=u?r:r{var t;const{options:n,children:r,maxHeight:i,getValue:o}=e,a=(null===(t=o())||void 0===t?void 0:t[0])||null,s=35*n.findIndex((e=>e.value===(null==a?void 0:a.value)));return Jo.createElement($P,{height:Math.min(i,35*n.length),initialScrollOffset:s,itemCount:n.length,itemSize:35,style:{overflow:"auto"}},(e=>{let{index:t,style:n}=e;return Jo.createElement("div",{style:n},r[t])}))};function tD(){return tD=Object.assign?Object.assign.bind():function(e){for(var t=1;tvoid 0!==e&&e>0||"Farads must be a positive number"}},ohms:{relevantTypes:["Resistor","Photoresistor (LDR)","Potentiometer","Trimpot"],rules:{required:"Ohms is required",validate:e=>void 0!==e&&e>0||"Ohms must be a positive number"}},tolerance:{relevantTypes:["Capacitor","Resistor","Potentiometer","Trimpot"],rules:{rules:{validate:e=>!e||/^(\+\/-|\+|-|\+-|-+)?\d+(\.\d+)?%$/.test(e)||"Invalid tolerance format (e.g., '+5%', '+/-10%', '-+3%')"}}},voltage_rating:{relevantTypes:["Resistor","Capacitor","Jack","Potentiometer","Trimpot"],rules:{validate:e=>{if(!e)return!0;const t=e.match(/^(\d+(\.\d+)?)(V|kV|mV)$/);if(!t)return"Invalid voltage rating format (e.g., '5V', '0.3kV', '120mV')";return!(parseFloat(t[1])<=0)||"Voltage must be greater than 0"}}},wattage:{relevantTypes:["Resistor","Potentiometer","Trimpot"],rules:{validate:e=>{if(!e)return!0;const t=e.match(/^(\d+(\.\d+)?)W$/);if(!t)return"Invalid wattage format (e.g., '5W', '0.3W')";return!(parseFloat(t[1])<=0)||"Wattage must be greater than 0"}}}},aD={farads:["Capacitor"],ohms:["Resistor","Photoresistor (LDR)","Potentiometer","Trimpot"],tolerance:["Capacitor","Resistor","Potentiometer","Trimpot"],voltage_rating:["Resistor","Capacitor","Jack","Potentiometer","Trimpot"],wattage:["Resistor","Potentiometer","Trimpot"]},sD=e=>{var t,n,r;let{formRef:i,isSubmitting:o,setIsSubmitting:a,handleSuccess:s,allowInventoryOption:g=!1}=e;const[l,A]=(0,Jo.useState)(null),[C,c]=(0,Jo.useState)(!1),{clearErrors:I,control:u,register:d,handleSubmit:h,setError:f,formState:{errors:p}}=AT({defaultValues:{supplier_items:[]},mode:"onSubmit",reValidateMode:"onChange"}),{user:m,userIsLoading:v,userIsError:y}=Ky(),{data:b,isLoading:w,isError:x}=(()=>{const e=cm.get("csrftoken");return Yy({queryFn:async()=>{try{return(await _y.get("/api/components/options/",{headers:{"X-CSRFToken":e||""},withCredentials:!0})).data}catch(e){throw new Error("Failed to fetch dropdown options.")}},queryKey:["componentDropdownOptions"]})})(),E=(()=>{const e=cm.get("csrftoken"),t=DI();return Am({mutationFn:async t=>{try{return(await _y.post("/api/components/create/",t,{headers:{"Content-Type":"application/json","X-CSRFToken":e||""},withCredentials:!0})).data}catch(e){if(e.response&&e.response.data)throw{fieldErrors:e.response.data,message:"Failed to submit component."};throw new Error("An unexpected error occurred while submitting the component.")}},onError:e=>{},onSuccess:()=>{t.invalidateQueries({queryKey:["inventory"]})}})})(),k=(null==b||null===(t=b.types)||void 0===t?void 0:t.map((e=>({label:e.name,value:e.id}))))||[],S=(null===(n=uS({control:u,name:"type"}))||void 0===n?void 0:n.label)||"",T=e=>{var t;return(null===(t=aD[e])||void 0===t?void 0:t.includes(S))||!1},O=Jo.createElement("span",{className:"text-red-500"},"*");return w?Jo.createElement("div",null,"Loading..."):x?Jo.createElement("div",null,"Error loading dropdown options."):v?Jo.createElement("div",{className:"text-center text-gray-500 animate-pulse"},"Loading..."):y||!m?Jo.createElement(lk,{icon:!0,variant:"warning"},Jo.createElement("p",null,"Please"," ",Jo.createElement("a",{className:"text-blue-500 hover:text-blue-700",href:"https://bom-squad.com/accounts/login/"},Jo.createElement("b",null,"login"))," ","or"," ",Jo.createElement("a",{className:"text-blue-500 hover:text-blue-700",href:"https://bom-squad.com/accounts/signup/"},Jo.createElement("b",null,"create an account"))," ","to add components.")):Jo.createElement(Jo.Fragment,null,Jo.createElement("div",{className:"mb-6"},l&&Jo.createElement(lk,{variant:"warning"},Jo.createElement("p",null,l.message),l.detailedMessage&&Jo.createElement("pre",{className:"text-xs text-gray-500 whitespace-pre-wrap"},l.detailedMessage))),Jo.createElement("form",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",onSubmit:h((async e=>{if(o)return;if(a(!0),!e.supplier_items||0===e.supplier_items.length)return f("supplier_items",{message:"At least one supplier item is required.",type:"manual"}),void a(!1);const t=(e=>{const t=e=>e&&e.value?e.value:e;return{component:{farads:e.farads||null,farads_unit:t(e.farads_unit),manufacturer:t(e.manufacturer),manufacturer_part_no:e.manufacturer_part_no,mounting_style:t(e.mounting_style),ohms:t(e.ohms),ohms_unit:t(e.ohms_unit),tolerance:e.tolerance||null,type:t(e.type),voltage_rating:e.voltage_rating||null,wattage:e.wattage||null},quantity:e.quantity,supplier_items:e.supplier_items.map((e=>({currency:e.currency,link:e.link||"",pcs:e.pcs?parseInt(e.pcs,1):null,price:parseFloat(e.price||0),supplier:t(e.supplier),supplier_item_no:e.supplier_item_no||""})))}})(e);try{await E.mutateAsync(t),s()}catch(e){if(e.fieldErrors){const t=e.fieldErrors;t.component_errors&&Object.entries(t.component_errors).forEach((e=>{let[t,n]=e;Array.isArray(n)&&n.length>0&&f(t,{message:n.join(" "),type:"server"})})),t.supplier_item_no&&t.supplier_item_no.forEach(((e,t)=>{f(`supplier_items.${t}.supplier_item_no`,{message:e,type:"server"})}));const n=Object.entries(t).flatMap((e=>{let[t,n]=e;return"fieldErrors"===t&&"object"==typeof n?Object.entries(n).flatMap((e=>{let[t,n]=e;return"object"==typeof n?Object.entries(n).map((e=>{let[n,r]=e;return`${t}.${n}: ${Array.isArray(r)?r.join(", "):r}`})):`${t}: ${n}`})):"object"==typeof n?Object.entries(n).map((e=>{let[n,r]=e;return`${t}.${n}: ${Array.isArray(r)?r.join(", "):r}`})):`${t}: ${n}`})).join("\n");A({detailedMessage:n,message:e.message||"An error occurred while submitting the component.",type:"error"})}}finally{a(!1)}})),ref:i},Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"manufacturer"},"Manufacturer ",O),Jo.createElement(hS,{control:u,name:"manufacturer",render:e=>{var t;let{field:n}=e;return Jo.createElement(__,tD({},n,{className:"react-select-container",classNamePrefix:"react-select",components:{MenuList:eD,...nD},options:(null==b||null===(t=b.manufacturers)||void 0===t?void 0:t.map((e=>({label:e.name,value:e.id}))))||[],placeholder:"Select Manufacturer"}))},rules:{required:'Manufacturer is required. If no specific manufacturer, select "Various."'}}),p.manufacturer&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.manufacturer.message)),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"manufacturer_part_no"},"Manufacturer Part No. ",O),Jo.createElement("input",tD({},d("manufacturer_part_no",{required:"Manufacturer Part Number is required"}),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:"manufacturer_part_no",type:"text"})),p.manufacturer_part_no&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.manufacturer_part_no.message)),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"mounting_style"},"Mounting Style ",O),Jo.createElement(hS,{control:u,name:"mounting_style",render:e=>{let{field:t}=e;return Jo.createElement(__,tD({},t,{className:"react-select-container",classNamePrefix:"react-select",options:rD}))},rules:{required:"Mounting Style is required."}}),p.mounting_style&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.mounting_style.message)),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"type"},"Type ",O),Jo.createElement(hS,{control:u,name:"type",render:e=>{let{field:t}=e;return Jo.createElement(__,tD({},t,{className:"react-select-container",classNamePrefix:"react-select",options:k}))},rules:{required:"Type is required."}}),p.type&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.type.message)),T("ohms")&&Jo.createElement(Jo.Fragment,null,Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"ohms"},"Ohms ",O),Jo.createElement("input",tD({},d("ohms"),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:"ohms",min:0,type:"number"}))),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"ohms_unit"},"Ohms Unit ",O),Jo.createElement(hS,{control:u,name:"ohms_unit",render:e=>{let{field:t}=e;return Jo.createElement(__,tD({},t,{className:"react-select-container",classNamePrefix:"react-select",options:iD.ohms}))}}),p.ohms&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.ohms.message))),T("farads")&&Jo.createElement(Jo.Fragment,null,Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"farads"},"Farads ",O),Jo.createElement("input",tD({},d("farads",T("farads")?oD.farads.rules:{}),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:"farads",min:0,type:"number"})),p.farads&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.farads.message)),Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"farads_unit"},"Farads Unit ",O),Jo.createElement(hS,{control:u,name:"farads_unit",render:e=>{let{field:t}=e;return Jo.createElement(__,tD({},t,{className:"react-select-container",classNamePrefix:"react-select",options:iD.farads}))}}),p.farads_unit&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.farads_unit.message))),T("tolerance")&&Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"tolerance"},"Tolerance"),Jo.createElement("input",tD({},d("tolerance"),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:"tolerance",type:"text"})),p.tolerance&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.tolerance.message)),T("voltage_rating")&&Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"voltage_rating"},"Voltage Rating"),Jo.createElement("input",tD({},d("voltage_rating"),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:"voltage_rating",type:"text"})),p.voltage_rating&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.voltage_rating.message)),T("wattage")&&Jo.createElement("div",null,Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"wattage"},"Wattage"),Jo.createElement("input",tD({},d("wattage",T("wattage")?oD.wattage.rules:{}),{className:"block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:"wattage",type:"text"})),p.wattage&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.wattage.message)),Jo.createElement(jP,{clearErrors:I,control:u,errors:p,register:d,suppliers:null!==(r=null==b?void 0:b.suppliers)&&void 0!==r?r:[]}),g&&Jo.createElement("div",{className:"col-span-full"},Jo.createElement("div",{className:"flex items-center"},Jo.createElement("input",{checked:C,className:"mr-2",id:"add_to_inventory",onChange:e=>c(e.target.checked),type:"checkbox"}),Jo.createElement("label",{className:"text-sm font-medium text-gray-700",htmlFor:"add_to_inventory"},"Add this component to your inventory")),C&&Jo.createElement("div",{className:"mt-4"},Jo.createElement("label",{className:"block text-sm font-medium text-gray-700",htmlFor:"quantity"},"Quantity"),Jo.createElement("input",tD({},d("quantity",{validate:e=>(null!=e?e:1)>0||"Quantity must be a positive number",valueAsNumber:!0}),{className:"block w-full md:w-24 mt-1 border-gray-300 rounded-md shadow-sm focus:ring-brandgreen-500 focus:border-brandgreen-500 sm:text-sm",id:"quantity",min:1,type:"number"})),p.quantity&&Jo.createElement("p",{className:"text-red-500 text-sm"},p.quantity.message)))))},gD={headCells:{style:{fontWeight:"bold"}},rows:{style:{padding:"0.2rem 0 0.2rem 0"}}},lD=()=>{var e,t,n,r,i,o,a,s,g,l,A,C,c,I,u,d;const[h,f]=(0,Jo.useState)({message:"",show:!1,title:""}),[p,m]=(0,Jo.useState)(),[v,y]=(0,Jo.useState)(),[b,w]=(0,Jo.useState)(!1),[x,E]=(0,Jo.useState)(1),[k,S]=(0,Jo.useState)(!1),[T,O]=$_(),{register:R,control:N,handleSubmit:_,setValue:P}=AT({defaultValues:{filters:JSON.parse(T.get("filters")||"{}"),search:T.get("search")||""}}),D=(0,Jo.useRef)(null),{componentsData:M,componentsAreLoading:L,componentsAreError:F,refetchComponents:j}=F_({filters:JSON.parse(T.get("filters")||"{}"),page:Number(T.get("page")||x),search:T.get("search")||""}),B=(0,Jo.useMemo)((()=>{if(null==M||!M.results)return[];const e=new Map;return M.results.forEach((t=>{e.has(t.id)||e.set(t.id,t)})),Array.from(e.values())}),[null==M?void 0:M.results]),{data:z}=V_(),{user:V}=Ky();if((0,Jo.useEffect)((()=>{P("filters",JSON.parse(T.get("filters")||"{}")),P("search",T.get("search")||""),E(Number(T.get("page")||1))}),[T,P]),(0,Jo.useEffect)((()=>{const e=document.getElementById("table__wrapper");e&&e.children&&Array.from(e.children).forEach((e=>{e instanceof HTMLElement&&(e.style.overflow="visible")}))}),[M]),(0,Jo.useEffect)((()=>{null!=M&&M.page&&E(M.page)}),[null==M?void 0:M.page]),F)return Jo.createElement("div",{className:"p-3 ml-[47px] bg-gray-100"},"Error");const U=30,Z=Math.ceil(((null==M?void 0:M.count)||0)/U),G=[{cell:e=>{var t;return Jo.createElement(fk,{id:e.id,user_submitted_status:null!==(t=e.user_submitted_status)&&void 0!==t?t:"approved"},e.discontinued?Jo.createElement("span",null,Jo.createElement("s",null,e.description)," ",Jo.createElement("span",{className:"italic font-bold text-red-500"},"DISCONTINUED")):Jo.createElement("a",{className:"text-blue-500 hover:text-blue-700",href:`${hk()}/components/${e.id}`},e.description))},grow:1,minWidth:"250px",name:"Name",sortable:!0,wrap:!0},{hide:1700,name:Jo.createElement("div",null,"Type"),selector:e=>{var t;return null===(t=e.type)||void 0===t?void 0:t.name},sortable:!0,wrap:!0},{hide:1700,name:Jo.createElement("div",null,"Manufacturer"),selector:e=>{var t;return(null===(t=e.manufacturer)||void 0===t?void 0:t.name)||""},sortable:!0,wrap:!0},{cell:e=>{var t;return(e.supplier_items||[]).length>0?Jo.createElement("ul",{className:"pl-5 list-disc"},null===(t=e.supplier_items)||void 0===t?void 0:t.map((e=>{var t;return Jo.createElement("li",{key:e.id},Jo.createElement("b",null,null===(t=e.supplier)||void 0===t?void 0:t.short_name,": "),e.supplier_item_no?Jo.createElement("a",{className:"text-blue-500 hover:text-blue-700",href:e.link,rel:"noreferrer",target:"_blank"},e.supplier_item_no):Jo.createElement("a",{className:"text-blue-500 hover:text-blue-700",href:e.link,rel:"noreferrer",target:"_blank"},Jo.createElement(mk,{className:"inline-block w-4 h-4"})),e.unit_price&&Jo.createElement("span",{className:"text-xs text-gray-600"}," ","(",(e=>{if(!z||null==e)return"N/A";const t=e*z.exchange_rate;return`${z.currency_symbol}${L_(t,z.default_currency)}`})(e.unit_price),")"))}))):"No supplier items"},name:"Suppliers",sortable:!1,width:"210px"},{cell:e=>e.qualities||"",name:Jo.createElement("div",null,"Qualities"),sortable:!1,wrap:!0},{cell:e=>Jo.createElement(zI,{hideLoadingTag:!0,hookArgs:{componentId:e.id},useHook:qy}),name:Jo.createElement("div",null,"Qty in User Inv."),omit:!(null!=V&&V.username),sortable:!1,width:"80px"},{cell:e=>Jo.createElement(zI,{hideLoadingTag:!0,hookArgs:{componentId:e.id},useHook:Xy}),name:Jo.createElement("div",null,"Qty in Shopping List"),omit:!(null!=V&&V.username),sortable:!1,width:"80px"},{button:!0,cell:e=>{var t,n,r;return Jo.createElement(Jo.Fragment,null,Jo.createElement(Up,{onClick:()=>m(e.id),size:"xs",variant:"primary"},"+ Inventory"),Jo.createElement($y,{componentId:e.id,componentName:e.supplier_item_no?`${null===(t=e.supplier)||void 0===t?void 0:t.short_name} ${e.supplier_item_no}`:e.description,open:p===e.id,quantityRequired:1,setOpen:m,text:`Add ${e.description} (${null===(n=e.supplier)||void 0===n?void 0:n.short_name} ${e.supplier_item_no}) to your inventory?`,title:e.supplier_item_no?`Add ${null===(r=e.supplier)||void 0===r?void 0:r.short_name} ${e.supplier_item_no} to Inventory?`:`Add ${e.description} to Inventory?`,type:BI.INVENTORY}))},ignoreRowClick:!0,name:"",omit:!(null!=V&&V.username),sortable:!1,width:"95px"},{button:!0,cell:e=>{var t,n;return Jo.createElement(Jo.Fragment,null,Jo.createElement(Up,{onClick:()=>{y(e.id)},size:"xs",variant:"primary"},"+ Shopping List"),Jo.createElement($y,{componentId:e.id,componentName:`${null===(t=e.supplier)||void 0===t?void 0:t.short_name} ${e.supplier_item_no}`,open:v===e.id,quantityRequired:1,setOpen:y,text:"",title:`Add ${null===(n=e.supplier)||void 0===n?void 0:n.short_name} ${e.supplier_item_no} to Shopping List?`,type:BI.SHOPPING_ANON}))},ignoreRowClick:!0,name:"",omit:!(null!=V&&V.username),sortable:!1,width:"115px"}];return Jo.createElement(Jo.Fragment,null,Jo.createElement(Uc,null,Jo.createElement("title",null,"Browse Components for DIY Synth Projects | BOM Squad"),Jo.createElement("meta",{content:"Explore a vast library of components for DIY synth projects. Filter by type, manufacturer, supplier, and more. Add components to your inventory and shopping list.",name:"description"}),Jo.createElement("meta",{content:"DIY synth components, modular synth parts, guitar pedal components, build your own synth",name:"keywords"})),Jo.createElement("div",{className:"mb-8"},Jo.createElement("div",{className:"w-full py-12"},Jo.createElement("div",{className:"p-10 bg-gray-100 rounded-lg",id:"dataElem"},Jo.createElement(M_,{control:N,farads:null!==(e=null==M||null===(t=M.unique_values)||void 0===t?void 0:t.farads)&&void 0!==e?e:[],handleSubmit:_,manufacturer:null!==(n=null==M||null===(r=M.unique_values)||void 0===r?void 0:r.manufacturer)&&void 0!==n?n:[],mounting_style:null!==(i=null==M||null===(o=M.unique_values)||void 0===o?void 0:o.mounting_style)&&void 0!==i?i:[],ohms:null!==(a=null==M||null===(s=M.unique_values)||void 0===s?void 0:s.ohms)&&void 0!==a?a:[],onSubmit:e=>{const{search:t,type:n,manufacturer:r,supplier:i,mounting_style:o,...a}=e,s={manufacturer:"all"!==r?r:void 0,mounting_style:"all"!==o?o:void 0,supplier:"all"!==i?i:void 0,type:"all"!==n?n:void 0,...Object.fromEntries(Object.entries(a).filter((e=>{let[,t]=e;return"all"!==t&&""!==t&&void 0!==t})))},g={filters:s,search:t||""};j({newFilters:s,newPage:1,newSearch:g.search}),O({filters:JSON.stringify(s),page:"1",search:g.search}),E(1)},register:R,supplier:null!==(g=null==M||null===(l=M.unique_values)||void 0===l?void 0:l.supplier)&&void 0!==g?g:[],tolerance:null!==(A=null==M||null===(C=M.unique_values)||void 0===C?void 0:C.tolerance)&&void 0!==A?A:[],type:null!==(c=null==M||null===(I=M.unique_values)||void 0===I?void 0:I.type)&&void 0!==c?c:[],voltage_rating:null!==(u=null==M||null===(d=M.unique_values)||void 0===d?void 0:d.voltage_rating)&&void 0!==u?u:[]}))),Jo.createElement(GE,{buttonText:"Add a Component",icon:Jo.createElement(UI,{className:"w-5 h-5"}),onButtonClick:()=>S(!0),title:"Components"}),L?Jo.createElement("div",{className:"text-center animate-pulse"},"Loading..."):Jo.createElement(Jo.Fragment,null,Jo.createElement(Jo.Fragment,null,!(null!=V&&V.username)&&Jo.createElement("div",{className:"mb-8"},Jo.createElement(lk,{variant:"warning"},Jo.createElement("div",{className:"alert alert-warning",role:"alert"},Jo.createElement("a",{className:"text-blue-500 hover:text-blue-700",href:"/accounts/login/"},Jo.createElement("b",null,"Login"))," ","to add components to your shopping list and inventory.")))),Jo.createElement("div",{id:"table__wrapper",style:{overflowX:"visible"}},Jo.createElement(LI.Ay,{columns:G,conditionalRowStyles:[{style:{borderRadius:"8px",boxShadow:"inset 0 0 0 2px #db2777",overflow:"visible"},when:e=>"pending"===e.user_submitted_status}],customStyles:gD,data:B,progressPending:L,responsive:!0})),(null==M?void 0:M.results)&&Jo.createElement("div",{className:"flex items-center justify-between py-4 bg-white border-t border-gray-200"},Jo.createElement(kk,{currentPage:x,navigate:e=>{const t=Math.ceil(((null==M?void 0:M.count)||0)/U);e<1||e>t||(O({filters:T.get("filters")||"{}",page:String(e),search:T.get("search")||""}),j({newFilters:JSON.parse(T.get("filters")||"{}"),newPage:e,newSearch:T.get("search")||""}),E(e))},totalPages:Z})))),Jo.createElement(dk,{customButtons:Jo.createElement("div",{className:"flex justify-end space-x-4"},Jo.createElement("button",{className:"px-4 py-2 mt-4 text-sm font-medium text-gray-900 bg-gray-200 rounded-md hover:bg-gray-300",onClick:()=>S(!1)},"Cancel"),Jo.createElement("button",{className:"px-4 py-2 mt-4 text-sm font-medium text-white border border-transparent rounded-md shadow-sm bg-brandgreen-600 hover:bg-brandgreen-700",onClick:()=>{D.current&&D.current.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))}},Jo.createElement("p",{className:jI()({"animate-pulse":b})},b?"Submiting...":"Submit"))),onSubmit:()=>{S(!1)},open:k,setOpen:S,submitButtonText:"Save",subtitle:Jo.createElement("p",null,'New components can be added to your inventory and shopping list. They can be suggested as options for BOM list items. New components will be marked as "pending" until reviewed by the BOM Squad team.'),title:"Add a Component"},Jo.createElement("div",null,Jo.createElement(sD,{formRef:D,handleSuccess:()=>{S(!1),f({message:"Your new component has been successfully submitted.",show:!0,title:"Component Added"})},isSubmitting:b,setIsSubmitting:w}))),Jo.createElement(uk,{message:h.message,setShow:e=>f((t=>({...t,show:"function"==typeof e?e(t.show):e}))),show:h.show,title:h.title}))};function AD({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"}))}const CD=Jo.forwardRef(AD);function cD({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 3.75V16.5L12 14.25 7.5 16.5V3.75m9 0H18A2.25 2.25 0 0 1 20.25 6v12A2.25 2.25 0 0 1 18 20.25H6A2.25 2.25 0 0 1 3.75 18V6A2.25 2.25 0 0 1 6 3.75h1.5m9 0h-9"}))}const ID=Jo.forwardRef(cD);function uD({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 13.5 3 3m0 0 3-3m-3 3v-6m1.06-4.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const dD=Jo.forwardRef(uD);function hD(){return hD=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{value:t,onChange:n,...r}=e;const[i,o]=(0,Jo.useState)(null),a=(0,Jo.useRef)(null);(0,Jo.useEffect)((()=>{const e=a.current;e&&null!==i&&e.setSelectionRange(i,i)}),[a,i,t]);return Jo.createElement("input",hD({onChange:e=>{o(e.target.selectionStart||0),n&&n(e)},ref:a,value:t},r))},pD=e=>{let{row:t,locationIdToEdit:n,updatedLocationToSubmit:r,handleLocationChange:i,setLocationIdToEdit:o,handleSubmitLocation:a,handlePillClick:s,handleClick:g,setUpdatedLocationToSubmit:l,showSeparateLocationsWithCommas:A=!0,textSize:C=""}=e;const c=t.location?t.location.filter(Boolean):[];return Jo.createElement("div",{className:"flex justify-between w-full"},t.id===n?Jo.createElement("div",{className:"flex flex-col"},Jo.createElement("div",{className:"flex gap-1.5 pb-1 pt-6"},Jo.createElement("form",{className:"flex content-center w-full gap-1",onSubmit:e=>e.preventDefault()},Jo.createElement(fD,{className:"block w-full rounded-md border-0 px-2 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-brandgreen-600 sm:text-sm sm:leading-6",onChange:e=>i(e),type:"text",value:null!=r?r:t.location}),Jo.createElement(Up,{onClick:()=>o(void 0),variant:"muted"},"Cancel"),Jo.createElement(Up,{onClick:()=>a(t.id),type:"submit",variant:"primary"},"Update"))),A&&Jo.createElement("p",{className:"text-xs text-gray-500"},"Separate locations with commas.")):Jo.createElement("ul",{className:"flex flex-wrap w-full"},c.length>0?c.map(((e,n)=>Jo.createElement($p,{key:n,onClick:()=>s(t.id,n),showArrow:n!==c.length-1,textSize:C},e))):Jo.createElement("li",{className:"text-gray-500"},"-")),t.id!==n&&Jo.createElement("div",{className:"flex flex-col justify-center",onClick:()=>{o(t.id),g(t,"location",n,o,l)},role:"button"},Jo.createElement(om,{className:"w-4 h-4 stroke-slate-300 hover:stroke-pink-500"})))};function mD({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const vD=Jo.forwardRef(mD);function yD({title:e,titleId:t,...n},r){return Jo.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Jo.createElement("title",{id:t},e):null,Jo.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const bD=Jo.forwardRef(yD),wD=e=>{let{row:t,quantityIdToEdit:n,updatedQuantityToSubmit:r,handleQuantityChange:i,handleSubmitQuantity:o,setQuantityIdToEdit:a,setUpdatedQuantityToSubmit:s,handleClick:g}=e;const{id:l,quantity:A}=t;return Jo.createElement("div",{className:"flex content-center justify-between w-full"},l===n?Jo.createElement("div",null,Jo.createElement("form",{className:"flex content-center w-full gap-1",onSubmit:e=>e.preventDefault()},Jo.createElement(rm(),{className:"block w-16 rounded-md border-0 px-2 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-brandgreen-600 sm:text-sm sm:leading-6",onChange:e=>i(e),type:"number",value:null!=r?r:A}),Jo.createElement("div",{className:"flex justify-around gap-1"},Jo.createElement(Up,{className:"h-full",Icon:vD,iconOnly:!0,onClick:()=>{a(void 0),s(void 0)},size:"xs",variant:"muted"},"Cancel"),Jo.createElement(Up,{className:"h-full",Icon:bD,iconOnly:!0,onClick:()=>o(l),size:"xs",variant:"primary"},"Update")))):Jo.createElement("span",{className:"font-bold"},A),l!==n&&Jo.createElement("div",{onClick:()=>g(t,"quantity",n,a,s),role:"button"},Jo.createElement(om,{className:"w-4 h-4 stroke-slate-300 hover:stroke-pink-500"})))};function xD(e){return Array.isArray?Array.isArray(e):"[object Array]"===ND(e)}function ED(e){return"string"==typeof e}function kD(e){return"number"==typeof e}function SD(e){return!0===e||!1===e||function(e){return TD(e)&&null!==e}(e)&&"[object Boolean]"==ND(e)}function TD(e){return"object"==typeof e}function OD(e){return null!=e}function RD(e){return!e.trim().length}function ND(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const _D=Object.prototype.hasOwnProperty;class PD{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=DD(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function DD(e){let t=null,n=null,r=null,i=1,o=null;if(ED(e)||xD(e))r=e,t=MD(e),n=LD(e);else{if(!_D.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,_D.call(e,"weight")&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(a));t=MD(a),n=LD(a),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function MD(e){return xD(e)?e:e.split(".")}function LD(e){return xD(e)?e.join("."):e}const FD={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const i=(e,t,o)=>{if(OD(e))if(t[o]){const a=e[t[o]];if(!OD(a))return;if(o===t.length-1&&(ED(a)||kD(a)||SD(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(xD(a)){r=!0;for(let e=0,n=a.length;ee.score===t.score?e.idx{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,ED(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();ED(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(OD(i))if(xD(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(OD(r))if(ED(r)&&!RD(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else xD(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(ED(i)&&!RD(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function VD(e,t,{getFn:n=jD.getFn,fieldNormWeight:r=jD.fieldNormWeight}={}){const i=new zD({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(DD)),i.setSources(t),i.create(),i}function UD(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=jD.distance,ignoreLocation:o=jD.ignoreLocation}={}){const a=t/e.length;if(o)return a;const s=Math.abs(r-n);return i?a+s/i:s?1:a}const ZD=32;function GD(e,t,n,{location:r=jD.location,distance:i=jD.distance,threshold:o=jD.threshold,findAllMatches:a=jD.findAllMatches,minMatchCharLength:s=jD.minMatchCharLength,includeMatches:g=jD.includeMatches,ignoreLocation:l=jD.ignoreLocation}={}){if(t.length>ZD)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(ZD));const A=t.length,C=e.length,c=Math.max(0,Math.min(r,C));let I=o,u=c;const d=s>1||g,h=d?Array(C):[];let f;for(;(f=e.indexOf(t,u))>-1;){let e=UD(t,{currentLocation:f,expectedLocation:c,distance:i,ignoreLocation:l});if(I=Math.min(e,I),u=f+A,d){let e=0;for(;e=g;o-=1){let a=o-1,s=n[e.charAt(a)];if(d&&(h[a]=+!!s),b[o]=(b[o+1]<<1|1)&s,r&&(b[o]|=(p[o+1]|p[o])<<1|1|p[o+1]),b[o]&y&&(m=UD(t,{errors:r,currentLocation:a,expectedLocation:c,distance:i,ignoreLocation:l}),m<=I)){if(I=m,u=a,u<=c)break;g=Math.max(1,2*c-u)}}if(UD(t,{errors:r+1,currentLocation:c,expectedLocation:c,distance:i,ignoreLocation:l})>I)break;p=b}const b={isMatch:u>=0,score:Math.max(.001,m)};if(d){const e=function(e=[],t=jD.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let a=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(h,s);e.length?g&&(b.indices=e):b.isMatch=!1}return b}function WD(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:e,alphabet:WD(e),startIndex:t})},A=this.pattern.length;if(A>ZD){let e=0;const t=A%ZD,n=A-t;for(;e{const{isMatch:u,score:d,indices:h}=GD(e,t,c,{location:r+I,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:g});u&&(C=!0),A+=d,u&&h&&(l=[...l,...h])}));let c={isMatch:C,score:C?A/this.chunks.length:1};return C&&n&&(c.indices=l),c}}class YD{constructor(e){this.pattern=e}static isMultiMatch(e){return KD(e,this.multiRegex)}static isSingleMatch(e){return KD(e,this.singleRegex)}search(){}}function KD(e,t){const n=e.match(t);return n?n[1]:null}class QD extends YD{constructor(e,{location:t=jD.location,threshold:n=jD.threshold,distance:r=jD.distance,includeMatches:i=jD.includeMatches,findAllMatches:o=jD.findAllMatches,minMatchCharLength:a=jD.minMatchCharLength,isCaseSensitive:s=jD.isCaseSensitive,ignoreLocation:g=jD.ignoreLocation}={}){super(e),this._bitapSearch=new HD(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:g})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class XD extends YD{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const qD=[class extends YD{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},XD,class extends YD{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends YD{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends YD{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends YD{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends YD{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},QD],JD=qD.length,$D=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const eM=new Set([QD.type,XD.type]);class tM{constructor(e,{isCaseSensitive:t=jD.isCaseSensitive,includeMatches:n=jD.includeMatches,minMatchCharLength:r=jD.minMatchCharLength,ignoreLocation:i=jD.ignoreLocation,findAllMatches:o=jD.findAllMatches,location:a=jD.location,threshold:s=jD.threshold,distance:g=jD.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:g},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split($D).filter((e=>e&&!!e.trim())),r=[];for(let e=0,i=n.length;e!(!e[iM]&&!e[oM]),lM=e=>({[iM]:Object.keys(e).map((t=>({[t]:e[t]})))});function AM(e,t,{auto:n=!0}={}){const r=e=>{let i=Object.keys(e);const o=(e=>!!e[aM])(e);if(!o&&i.length>1&&!gM(e))return r(lM(e));if((e=>!xD(e)&&TD(e)&&!gM(e))(e)){const r=o?e[aM]:i[0],a=o?e[sM]:e[r];if(!ED(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:LD(r),pattern:a};return n&&(s.searcher=rM(a,t)),s}let a={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];xD(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return gM(e)||(e=lM(e)),r(e)}function CM(e,t){const n=e.matches;t.matches=[],OD(n)&&n.forEach((e=>{if(!OD(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function cM(e,t){t.score=e.score}class IM{constructor(e,t={},n){this.options={...jD,...t},this.options.useExtendedSearch,this._keyStore=new PD(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof zD))throw new Error("Incorrect 'index' type");this._myIndex=t||VD(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){OD(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const t=[];for(let n=0,r=this._docs.length;n{let n=1;e.matches.forEach((({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),i&&s.sort(o),kD(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=jD.includeMatches,includeScore:r=jD.includeScore}={}){const i=[];return n&&i.push(CM),r&&i.push(cM),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=rM(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:i})=>{if(!OD(e))return;const{isMatch:o,score:a,indices:s}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:i,indices:s}]})})),r}_searchLogical(e){const t=AM(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}const i=[];for(let o=0,a=e.children.length;o{if(OD(e)){let a=n(t,e,r);a.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},o.push(i[r])),a.forEach((({matches:e})=>{i[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=rM(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((({$:e,i:r})=>{if(!OD(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&i.push({idx:r,item:e,matches:o})})),i}_findMatches({key:e,value:t,searcher:n}){if(!OD(t))return[];let r=[];if(xD(t))t.forEach((({v:t,i,n:o})=>{if(!OD(t))return;const{isMatch:a,score:s,indices:g}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:i,norm:o,indices:g})}));else{const{v:i,n:o}=t,{isMatch:a,score:s,indices:g}=n.searchIn(i);a&&r.push({score:s,key:e,value:i,norm:o,indices:g})}return r}}IM.version="6.6.2",IM.createIndex=VD,IM.parseIndex=function(e,{getFn:t=jD.getFn,fieldNormWeight:n=jD.fieldNormWeight}={}){const{keys:r,records:i}=e,o=new zD({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o},IM.config=jD,IM.parseQuery=AM,function(...e){nM.push(...e)}(tM);const uM=e=>{let{searchTerm:t,setSearchTerm:n}=e;return Jo.createElement("input",{className:"block w-full rounded-md border-0 p-2 h-[32px] text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-brandgreen-600 sm:text-sm sm:leading-6",id:"search",name:"search",onChange:e=>n(e.target.value),placeholder:"Search",type:"text",value:t})};var dM=["color","size","title","className"];function hM(){return hM=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var pM=(0,Jo.forwardRef)((function(e,t){var n=e.color,r=e.size,i=e.title,o=e.className,a=fM(e,dM);return Jo.createElement("svg",hM({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-signpost-split",o].filter(Boolean).join(" ")},a),i?Jo.createElement("title",null,i):null,Jo.createElement("path",{d:"M7 7V1.414a1 1 0 0 1 2 0V2h5a1 1 0 0 1 .8.4l.975 1.3a.5.5 0 0 1 0 .6L14.8 5.6a1 1 0 0 1-.8.4H9v10H7v-5H2a1 1 0 0 1-.8-.4L.225 9.3a.5.5 0 0 1 0-.6L1.2 7.4A1 1 0 0 1 2 7zm1 3V8H2l-.75 1L2 10zm0-5h6l.75-1L14 3H8z"}))}));pM.propTypes={color:HE().string,size:HE().oneOfType([HE().string,HE().number]),title:HE().string,className:HE().string},pM.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const mM=pM;function vM(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function yM(e,t){let[n,r]=(0,Jo.useState)((()=>vM(e)));return QI((()=>{r(vM(e))}),[e.type,e.as]),QI((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}let bM=(0,Jo.createContext)(null);function wM(){let e=(0,Jo.useContext)(bM);if(null===e){let e=new Error("You used a